body {
    font-family: 'Inter', sans-serif;
    display: block;
    margin: 0;
    background-color: #f8f9fa;
    padding: 20px;
}

.container-box {
    border: 2px solid #add8e6;
    padding: 30px;
    margin: 30px auto;
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.container {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    display: none; /* Start hidden */
}

.container.active {
    opacity: 1;
    display: block; /* Ensure it becomes visible */
}

.question-box {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f1faff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.question-box h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.tiles {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the tiles */
    gap: 12px; /* Reduces spacing */
    padding: 15px; /* Tightens layout */
}

.tile {
    width: 120px;
    height: 40px;
    padding: 10px;
    border-radius: 12px;
    background-color: #ffffff; /* Light gray background */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1em; /* Ensure readable text */
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border: 2px solid #d1d1d1; /* Light border to stand out */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    color: #333; /* Darker text for contrast */
}

.tile:hover, .tile.selected {
    background-color: #e8f0fe; /* Apple-like light blue */
    border-color: #0071e3; /* Apple blue border */
    color: #000; /* Ensure text is always visible */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.tile h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #1976d2;
    text-align: center;
}
.process-tile {
  flex: 1 1 180px;            /* 👈 Allows wrapping */
  min-height: 110px;          /* 👈 Not too tall */
  max-width: 220px;           /* 👈 Helps wrap into two rows */
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.process-tile strong {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: #000000;
}

.process-tile small {
  font-size: 0.85rem;
  color: #555;
}
.title-with-icon {
  display: inline-flex;
  align-items: baseline;     /* 👈 Aligns text and icon along the baseline */
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.title-with-icon .material-symbols-outlined {
  font-size: 18px;            /* Match text height */
  color: #4b4b4b;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  position: relative;
  top: 2px;                   /* 👈 Slight manual tweak for perfect alignment */
}





.small-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 10px 0;
}

.small-button {
  padding: 8px 15px;
  border-radius: 12px;
  background-color: #e3f2fd;
  border: none;
  cursor: pointer;
  font-size: 0.8em;
  color: #333;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 120px;            /* ✅ Prevent overflow wrap issues */
  text-align: center;          /* ✅ Center text if it's multiline */
  white-space: normal;         /* ✅ Allow wrapping inside buttons */
  word-wrap: break-word;
}


.small-button:hover {
    background-color: #1976d2;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between buttons */
    margin-top: 30px;
}

.action-button {
    background-color: #0071e3; /* Apple blue */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px; /* Soft rounded corners */
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
}

.action-button:hover {
    background-color: #005bb5; /* Darker blue on hover */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

.action-button:disabled {
    background-color: #d1d1d1;
    cursor: not-allowed;
    box-shadow: none;
}

.progress-bar {
    height: 12px;
    background-color: #dbe2ef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, #42a5f5, #1e88e5);
    width: 0%;
    transition: width 0.5s ease-in-out;
    border-radius: 10px;
}

.selected-equipment-row {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    background: #f1faff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.selected-equipment-row h3 {
    font-size: 1.2em;
    font-weight: bold;
    color: #1565c0;
}

/* Equipment display now allows overflow so that arrows can be visible */
.equipment-display {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
    font-size: 0.9em;
    font-weight: normal;
    color: #000;
    overflow: visible; /* Changed from hidden */
}

/* Make each equipment tile positioned relatively */
.equipment-display .tile {
    cursor: grab;
    user-select: none;
    position: relative;
}

/* Pseudo-element for the arrow, positioned outside the tile */
#selected-equipment-display .tile:not(:last-child)::after {
    content: "\1F806";  /* Unicode right arrow */
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #0071e3;
}

/* For Page 6 - Equipment Review */
#selected-equipment-review {
    overflow: visible;
}

#selected-equipment-review .tile {
    position: relative;
}

#selected-equipment-review .tile:not(:last-child)::after {
    content: "\1F806";  /* Unicode right arrow */
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #0071e3;
}

.arrow-icon {
    font-size: 1.5em;
    color: #0071e3; /* Apple blue */
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-info-box {

    margin-top: 20px;
    padding: 15px;
    background-color: #f1faff;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);


}

.equipment-info-box h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1976d2;
}

.equipment-info-box p {
    font-size: 1em;
    color: #333;
}

.equipment-info-box .small-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.draggable {
    cursor: grab;
    transition: transform 0.2s ease;
    font-size: 0.8em;
    text-align: center;
}

.draggable:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.dragging {
    opacity: 0.5;
    transform: scale(1.2);
}

.small-button.selected {
    background-color: #1976d2;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.summary-pane {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #f9f9f9;
    border-left: 1px solid #ddd;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    font-size: 0.9em;
    z-index: 1000;
    transition: transform 0.3s ease-in-out; /* Smooth transition */
}

.summary-pane.collapsed {
    transform: translateX(100%);
}

.toggle-summary {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border: none;
    background-color: #1976d2;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    transition: right 0.3s ease-in-out, background-color 0.3s;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust position when summary pane is expanded */
.summary-pane:not(.collapsed) + .toggle-summary {
    right: 290px; /* Move button with panel */
}

/* Keep it aligned properly when collapsed */
.summary-pane.collapsed + .toggle-summary {
    right: 0;
}

.toggle-summary:hover {
    background-color: #0d47a1;
}

/* Move button when collapsed */
.summary-pane.collapsed .toggle-summary {
    left: -45px; /* Ensure visibility even when collapsed */
}

.summary-pane h3 {
    font-size: 1.6em;
    color: #1976d2;
    margin-bottom: 20px;
}

.summary-pane p {
    font-size: 1em;
    line-height: 1.5;
}

.summary-pane .summary-item {
    margin-bottom: 10px;
    font-weight: bold;
}

#process-selection-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}
  /* Larger tiles for Workflow Selection only */
/* Larger tiles for Workflow Selection only */
#workflow-container {
    align-items: stretch; /* 👈 makes all tiles match the tallest */
  }

  #workflow-container .tile {
    flex: 1 1 280px;
    padding: 20px;
    min-height: 200px;
    height: 100%; /* 👈 stretch height */
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
  }
  .facility-tile {
    flex: 1 1 200px;
    min-height: 100px;
    width: 180px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.4;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
  }

  .facility-tile strong {
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: block;
  }

  .facility-tile small {
    font-size: 0.95rem;
    color: #555;
  }
  #automation-preferences-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    justify-items: center;
  }

  #automation-preferences-container .tile {
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    background-color: #f7faff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center; /* ✅ center content horizontally */
    text-align: center;  /* ✅ center text */
    gap: 12px;
    min-height: 200px;
    box-sizing: border-box;
  }

  #automation-preferences-container .tile-header {
    display: flex;
    flex-direction: column;
    align-items: center; /* ✅ center title & subtitle */
    gap: 4px;
  }

  #automation-preferences-container .tile-header strong {
    font-size: 1.05rem;
    font-weight: 600;
    color: #222;
  }

  #automation-preferences-container .tile-header small {
    font-size: 0.9rem;
    color: #555;
  }

  #automation-preferences-container .small-buttons {
    display: flex;
    flex-direction: column;  /* ✅ stack buttons vertically */
    align-items: center;     /* ✅ center buttons horizontally */
    gap: 10px;
  }





  #workflow-container .tile strong {
    font-size: 1.2rem;
    margin-bottom: 6px;
    display: block;
  }

  #workflow-container .tile small {
    font-size: 0.95rem;
    color: #555;
  }
.workflow-section {
    margin-bottom: 20px; /* Adds spacing between sections */
    text-align: center;
}

.workflow-section h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
    color: #1976d2;
}

    /* For Page 5 - Selected Equipment Display */
    #selected-equipment-display .tile:not(:last-child)::after {
        content: "\1F806";  /* Your chosen Unicode arrow */
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5em;
        color: #0071e3;
      }
      #selected-equipment-display .tile {
        position: relative;
      }
      /* For Page 6 - Equipment Review */
      #selected-equipment-review {
        overflow: visible;
      }
      #selected-equipment-review .tile {
        position: relative;
      }
      #selected-equipment-review .tile:not(:last-child)::after {
        content: "\1F806";  /* Your chosen Unicode arrow */
        position: absolute;
        left: 100%;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5em;
        color: #0071e3;
      }

      #compliance-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 15px;
        max-width: 900px;
        margin: 0 auto;
      }

      #compliance-container .tile {
        max-width: 280px;
        width: 100%;
        min-height: 150px;
        height: auto;              /* ✅ Allow height to grow */
        flex-grow: 1;
        padding: 16px 20px;
        border-radius: 16px;
        background-color: #f7faff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;   /* ✅ Stack vertically from top */
        align-items: center;
        text-align: center;
        gap: 12px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
      }


      #compliance-container .tile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
      }

      #compliance-container .tile-header strong {
        font-size: 1.05rem;
        font-weight: 600;
        color: #222;
      }

      #compliance-container .tile-header small {
        font-size: 0.9rem;
        color: #555;
      }
      #compliance-container .small-buttons {
        display: flex;
        flex-wrap: wrap;              /* ✅ Allow wrapping */
        justify-content: center;      /* ✅ Center button rows */
        gap: 10px;
        margin-top: 10px;
        width: 100%;
        box-sizing: border-box;
      }

      #project-details-container {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 15px;
        max-width: 1000px;
        margin: 20px auto 0;
        box-sizing: border-box;
      }


      #project-details-container .project-tile {
        width: 260px;
        min-height: 150px;
        height: auto;
        padding: 16px 20px;
        border-radius: 16px;
        background-color: #f7faff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 12px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
      }


      #project-details-container .tile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
      }

      #project-details-container .tile-header strong {
        font-size: 1.05rem;
        font-weight: 600;
        color: #222;
      }

      #project-details-container .tile-header small {
        font-size: 0.9rem;
        color: #555;
      }

      #project-details-container .small-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
      }

      .project-tile {
        width: 260px;
        min-height: 150px;
        height: auto;
        padding: 16px 20px;
        border-radius: 16px;
        background-color: #f7faff;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
        gap: 12px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        flex: 1 1 260px;
        max-width: 300px;
      }

      .project-tile .tile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
      }

      .project-tile .tile-header strong {
        font-size: 1.05rem;
        font-weight: 600;
        color: #222;
      }

      .project-tile .tile-header small {
        font-size: 0.9rem;
        color: #555;
      }

      .project-tile .small-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
      }



  /* Style for the contact summary pane */
  #contact-summary {
    margin-top: 20px;
    padding: 15px;
    background-color: #f1faff;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Optional styling for summary row headers */
  #contact-summary h4 {
    margin: 5px 0;
    color: #0071e3;
  }

  /* Ensure tiles inside the summary have consistent styling */
  #contact-summary .tile {
    margin: 5px 0;
    padding: 10px;
    min-width: 120px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  }

  /* Pulse effect on selection */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 0.4s ease-in-out;
}

/* Fade-in and slide effect for the details box */
@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (min-width: 768px) {
    #compliance-container > .tile:nth-child(4),
    #compliance-container > .tile:nth-child(5) {
      grid-column: span 1;
    }
  }

.fade-in-slide {
    animation: fadeSlide 0.5s ease-in-out;
}

/* Initially hidden state */
.hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
}
.remove-button {
  position: absolute;
  top: 1px;
  right: 1px;
  font-size: 2px;
  color: #1976d2;
  cursor: pointer;
  z-index: 2;
}

.remove-button:hover {
  color: #46a2ff;
}

  input[type="text"],
  input[type="email"] {
    padding: 10px 12px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
  }

  .tile span:hover {
    color: #46a2ff; /* Optional: red on hover */
  }
  .loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
  }

  select#region-select,
  select#country-select {
    padding: 10px 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background-color: #f1faff; /* ✅ matches your inputs' blue background */
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cpolygon points='0,0 140,0 70,70' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
  }

  select#region-select:focus,
  select#country-select:focus {
    border-color: #0071e3; /* match your action button hover */
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
  }


