/* Amelia Overrides */
.am-icon-check {
  background-color: #ffd3d3 !important;
}

.file-error {
    margin-bottom: 0.25rem;
    color: #b91c1c !important;
    font-size: 0.9rem; 
}

.step { animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

  /* ---------- PROGRESS BAR ---------- */
  .progress {
  margin-bottom: 36px;
  }

  .progress-track {
  position: relative;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  }

  .progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: width 0.4s ease;
  }

  .progress-steps {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  }

  .progress-step {
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
  position: relative;
  text-align: center;
  flex: 1;
  font-family: 'atkinson';
  }

  .progress-step::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 6px;
  background: #e5e7eb;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
  }

  .progress-step.active {
  color: var(--primary);
  }

  .progress-step.active::before {
  background: var(--orange);
  transform: scale(1.15);
  }

  @keyframes milestonePop {
      0% { transform: scale(0.8); }
      50% { transform: scale(1.4); }
      100% { transform: scale(1); }
  }
  .progress-step.active::before {
  animation: milestonePop 0.4s ease;
  }

  .progress-step.completed {
  color: #4b5563;
  }

  .progress-step.completed::before {
  background: var(--orange);
  }

  /* ---------- MOBILE PROGRESS ---------- */
  .progress-mobile {
    display: none;
    margin-bottom: 24px;
  }

  .progress-mobile span {
    display: block;
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary);
    font-family: 'poppins';
  }

/* FIELDS */
.digital-induction-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.field { margin-top: 24px; }

.attachments-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 15px;
}

.radio-group {
  display: flex;
  gap: 24px;
  margin-top: 12px;
}

.radio-group-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

/* TILES */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-top: 30px;
}

.tile {
  padding: 26px;
  border-radius: 20px;
  background: #f9fafb;
  cursor: pointer;
  font-weight: 600;
  border: 2px solid transparent;
  transition: 0.2s;
  font-family: 'atkinson';
}

.tile.selected {
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  border-color: var(--primary);
}

/* Container */
#address-form {
    max-width: 100%;
    position: relative;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Main input */
#address-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}

/* Focus state */
#address-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}

/* Suggestions dropdown */
#suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
}

/* Suggestion item */
#suggestions li {
    padding: 10px;
    cursor: pointer;
}

#suggestions li:hover {
    background: #f1f5f9;
}

/* Active (for keyboard nav later) */
#suggestions li.active {
    background: #4a90e2;
    color: #fff;
}

/* Divider between items */
#suggestions li:not(:last-child) {
    border-bottom: 1px solid #eee;
}

/* Address fields */
#address-form input:not(#address-input) {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border 0.2s, box-shadow 0.2s;
}

/* Focus state for fields */
#address-form input:not(#address-input):focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.1);
}

/* Optional: group spacing */
#address-form .field-group {
    margin-top: 12px;
}

/* Field group */
.field-group {
    display: flex;
    flex-direction: column;
    margin-top: 14px;
    position: relative;
}

/* Labels */
.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-family: 'atkinson';
}

/* Inputs */
.field-group input {
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    background: #fff;
    transition: all 0.2s ease;
}

/* Focus */
.field-group input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    outline: none;
}

/* Pre-filled styling (auto-populated fields) */
.field-group input.filled {
    background-color: #f8fafc;
    border-color: #c7d2fe;
}

/* Placeholder styling */
.field-group input::placeholder {
    color: #9aa0a6;
}

/* Rows (2 columns) */
.address-row {
    display: flex;
    gap: 12px;
}

.address-row .field-group {
    flex: 1;
}

/* Optional: two-column layout */
#address-form .address-row {
    display: flex;
    gap: 10px;
}

#address-form .address-row input {
    flex: 1;
}

#address-input.loading {
    background-image: linear-gradient(
        90deg,
        #eef2ff 0%,   /* soft blue */
        #e0e7ff 25%,  /* light indigo */
        #d8b4fe 50%,  /* soft purple highlight */
        #e0e7ff 75%,
        #eef2ff 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.4s ease-in-out infinite;
}

#suggestions .no-results {
    padding: 10px 14px;
    color: #888;
    cursor: default;
}

#suggestions {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

#suggestions.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(246, 249, 248, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 999;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.loading-overlay p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Spinner */
.booking-spinner {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid #dfe8e6;
  border-top-color: var(--orange);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media screen and (min-width: 768px) and (max-width: 1366px) {
    .progress-step {
      font-size: 0;
    }
    .progress-step::before {
      margin-bottom: 0;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* PROGRESS BAR */
    .progress {
        display: none;
    }

    .progress-mobile {
        display: block;
    }

    .address-row {
        flex-direction: column;
    }

    .radio-group {
        display: flex;
        gap: 5px;
        margin-top: 12px;
        flex-direction: column;
    }
}