/* ── WIZARD PROGRESS INDICATOR ── */
.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}
.wizard-progress::-webkit-scrollbar { display: none; }

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.wizard-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DDD7CE;
  color: var(--warm-gray);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}

.wizard-step-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #A09080;
  text-align: center;
  white-space: nowrap;
}

.wizard-step.active .wizard-step-dot {
  background: var(--clay);
  color: white;
  box-shadow: 0 2px 8px rgba(196, 82, 42, 0.3);
}
.wizard-step.active .wizard-step-label {
  color: var(--clay);
  font-weight: 600;
}

.wizard-step.completed .wizard-step-dot {
  background: var(--clay-light);
  color: white;
}
.wizard-step.completed .wizard-step-label {
  color: var(--clay-light);
}

/* Clickable steps: completed and active dots are tappable */
.wizard-step.completed .wizard-step-dot,
.wizard-step.active .wizard-step-dot {
  cursor: pointer;
}
.wizard-step.completed .wizard-step-dot:hover {
  background: var(--clay);
  box-shadow: 0 2px 8px rgba(196, 82, 42, 0.25);
  transform: scale(1.1);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
/* Future steps stay inert */
.wizard-step:not(.completed):not(.active) .wizard-step-dot {
  cursor: default;
  opacity: 0.6;
}

.wizard-step-line {
  flex: 1;
  height: 1.5px;
  background: #DDD7CE;
  min-width: 16px;
  margin: 0 4px;
  margin-bottom: 1.4rem; /* align with dot center */
}

.wizard-step.completed + .wizard-step-line,
.wizard-step-line.completed {
  background: var(--clay-light);
}

/* ── WIZARD SECTION WRAPPER ── */
.wizard-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── WIZARD SECTION LABEL ── */
.wizard-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.wizard-step-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid rgba(196, 82, 42, 0.3);
  background: rgba(196, 82, 42, 0.07);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

/* ── WIZARD NAVIGATION ── */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1.5px solid #E8E0D4;
}

.btn-wizard-next {
  padding: 0.85rem 2rem;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(196, 82, 42, 0.25);
  margin-left: auto;
}
.btn-wizard-next:hover {
  background: #B04420;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 82, 42, 0.3);
}

.btn-wizard-back {
  padding: 0.85rem 1.5rem;
  background: transparent;
  color: var(--warm-gray);
  border: 1.5px solid #DDD7CE;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-wizard-back:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
  background: rgba(45, 42, 38, 0.04);
}

/* ── SERVICE PREFERENCE CARDS ── */
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-card-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
  user-select: none;
}
.service-card-label:hover {
  border-color: var(--clay-light);
  background: #FEF9F6;
}
.service-card-label--checked {
  border-color: var(--clay);
  background: rgba(196, 82, 42, 0.05);
  box-shadow: 0 0 0 2px rgba(196, 82, 42, 0.1);
}

.service-card-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--clay);
  flex-shrink: 0;
  cursor: pointer;
  margin-top: 0.1rem;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.85rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

/* ── AVAILABILITY GROUP BLOCKS (NEW STEP 4) ── */
.avail-group-block {
  margin-bottom: 1rem;
}

.avail-group-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm-gray);
  margin-bottom: 0.6rem;
}

.avail-group-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.avail-confirm-note {
  margin-bottom: 0;
}

/* ── RADIO STACK (vertical stacked radios) ── */
.radio-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.radio-label--full {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
  min-height: 44px;
}
.radio-label--full:hover {
  border-color: var(--clay-light);
  background: #FEF9F6;
}
.radio-label--full:has(input:checked) {
  border-color: var(--clay);
  background: rgba(196, 82, 42, 0.06);
  color: var(--clay);
  font-weight: 500;
}

/* ── STEP TRANSITIONS ── */
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes wizardFadeOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-16px); }
}

.wizard-section--entering {
  animation: wizardFadeIn 0.3s ease forwards;
}

.wizard-section--exiting {
  animation: wizardFadeOut 0.25s ease forwards;
}

/* ── MOBILE STEP LABEL ── */
.wizard-mobile-label {
  display: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--warm-gray);
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* ── CONDITIONAL FIELDS ── */
.conditional-field-wrap {
  padding: 1rem;
  background: #F8F5F0;
  border-radius: 10px;
  border: 1px solid #E8E0D4;
}

.conditional-field-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
}

.conditional-field-input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: white;
  color: var(--charcoal);
  transition: border-color 0.15s ease;
}
.conditional-field-input:focus {
  outline: none;
  border-color: var(--clay-light);
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.1);
}

/* ── FIELD GROUP: 2 COLUMNS ── */
.field-group--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .wizard-step-label {
    display: none;
  }

  .wizard-step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .wizard-step-line {
    min-width: 8px;
    margin-bottom: 1.3rem;
  }

  .btn-wizard-next {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 1rem 1.5rem;
  }

  .btn-wizard-back {
    padding: 1rem 1.25rem;
  }

  .service-cards {
    gap: 0.6rem;
  }

  .service-card-label {
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .avail-group-items {
    gap: 0.4rem;
  }

  .radio-stack {
    gap: 0.4rem;
  }

  .wizard-mobile-label {
    display: block;
  }

  .field-group--2col {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}