/* ── Consultation page hero ── */
.consult-hero {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 55%, #f4faf7 100%);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

.consult-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.consult-hero__badge {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(27, 127, 78, 0.1);
  border: 1px solid rgba(27, 127, 78, 0.2);
  border-radius: 999px;
}

.consult-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.consult-hero p {
  margin: 0;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.8;
}

.consult-hero__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.consult-hero__features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
}

.consult-hero__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(27, 127, 78, 0.1);
  flex-shrink: 0;
}

.consult-body {
  padding: 2.5rem 0 4rem;
}

/* ── Wizard shell ── */
.consultation-wizard {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wizard-header {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem 1.15rem;
  box-shadow: var(--shadow-soft);
}

.wizard-header__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.wizard-header__lead {
  min-width: 0;
}

.wizard-header__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.wizard-header__status {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.4;
}

.wizard-header__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.wizard-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-action--ghost {
  color: var(--color-text-muted);
  border-color: var(--color-border);
  background: #fff;
}

.wizard-action--ghost:hover {
  color: var(--color-text);
  border-color: rgba(27, 127, 78, 0.25);
  background: #f8fafc;
}

.wizard-action--primary {
  color: var(--color-primary);
  border-color: rgba(27, 127, 78, 0.25);
  background: var(--color-primary-light);
}

.wizard-action--primary:hover {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(27, 127, 78, 0.22);
}

/* Stepper */
.wizard-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: var(--color-border);
  border-radius: 999px;
  z-index: 0;
  transition: background 0.35s ease;
}

.wizard-steps:has(.wizard-step.is-done)::before {
  background: linear-gradient(to left, var(--color-border) 0%, var(--color-primary) 100%);
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.wizard-step.is-active,
.wizard-step.is-done {
  opacity: 1;
}

.wizard-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  background: #fff;
  border: 2px solid var(--color-border);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.wizard-step__num svg {
  width: 16px;
  height: 16px;
}

.wizard-step.is-active .wizard-step__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(27, 127, 78, 0.32);
  transform: scale(1.06);
}

.wizard-step.is-done .wizard-step__num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.wizard-step__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  line-height: 1.35;
  max-width: 88px;
}

.wizard-step.is-active .wizard-step__label {
  color: var(--color-text);
  font-weight: 700;
}

.wizard-step.is-done .wizard-step__label {
  color: var(--color-primary);
}

/* Progress bar */
.wizard-progress {
  height: 4px;
  margin-top: 1.15rem;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.wizard-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-primary), #2d9f6a);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Selection trail */
.wizard-trail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-height: 0;
}

.wizard-trail:empty {
  display: none;
}

.wizard-trail__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border: 1px solid rgba(27, 127, 78, 0.15);
  border-radius: 999px;
  animation: wizardChipIn 0.3s ease;
}

.wizard-trail__chip svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

@keyframes wizardChipIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Main card */
.wizard-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  animation: wizardFadeIn 0.4s ease;
}

.wizard-form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  animation: wizardFadeIn 0.4s ease;
}

.wizard-form-card__header {
  margin-bottom: 1.5rem;
}

/* Question */
.wizard-question {
  margin-bottom: 1.75rem;
}

.wizard-question__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.wizard-question__title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.wizard-question__hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.7;
}

/* Options grid */
.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.wizard-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: right;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
  animation: wizardFadeIn 0.35s ease backwards;
}

.wizard-option:nth-child(1) { animation-delay: 0.03s; }
.wizard-option:nth-child(2) { animation-delay: 0.06s; }
.wizard-option:nth-child(3) { animation-delay: 0.09s; }
.wizard-option:nth-child(4) { animation-delay: 0.12s; }
.wizard-option:nth-child(5) { animation-delay: 0.15s; }
.wizard-option:nth-child(6) { animation-delay: 0.18s; }

.wizard-option:hover {
  border-color: rgba(27, 127, 78, 0.5);
  background: var(--color-primary-light);
  box-shadow: 0 6px 20px rgba(27, 127, 78, 0.1);
  transform: translateY(-2px);
}

.wizard-option:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 127, 78, 0.15);
}

.wizard-option__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.wizard-option:hover .wizard-option__icon {
  background: var(--color-primary);
  color: #fff;
}

.wizard-option__icon svg {
  width: 22px;
  height: 22px;
}

.wizard-option__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.wizard-option__body strong {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.4;
}

.wizard-option__body small {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.wizard-option__arrow {
  margin-right: auto;
  align-self: center;
  color: var(--color-border);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.wizard-option:hover .wizard-option__arrow {
  color: var(--color-primary);
  transform: translateX(-3px);
}

/* Nav */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  gap: 1rem;
}

.wizard-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Profile summary */
.wizard-profile {
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, rgba(27, 127, 78, 0.06) 0%, #fff 100%);
  border: 1px solid rgba(27, 127, 78, 0.15);
  border-radius: var(--radius-md);
  animation: wizardFadeIn 0.35s ease backwards;
}

.wizard-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.wizard-profile__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(27, 127, 78, 0.1);
  border-radius: 999px;
}

.wizard-profile__path {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Guidance report */
.wizard-guidance {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: wizardFadeIn 0.35s ease backwards;
}

.wizard-guidance__block {
  margin: 0;
}

.wizard-guidance__title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.wizard-guidance__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.85;
}

.wizard-guidance__list {
  margin: 0;
  padding-right: 1.15rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.wizard-guidance__list li {
  margin-bottom: 0.35rem;
}

.wizard-guidance__list--tips li {
  color: var(--color-text);
}

.wizard-question__hint p {
  margin: 0 0 0.65rem;
  line-height: 1.85;
}

.wizard-question__hint p:last-child {
  margin-bottom: 0;
}

.wizard-rec-card__guide {
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.8;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  background: rgba(27, 127, 78, 0.05);
  border-radius: 8px;
  border-right: 3px solid var(--color-primary);
}

/* Results */
.wizard-results-header {
  margin-bottom: 1.5rem;
}

.wizard-rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wizard-rec-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  animation: wizardFadeIn 0.4s ease backwards;
}

.wizard-rec-card:nth-child(1) { animation-delay: 0.05s; }
.wizard-rec-card:nth-child(2) { animation-delay: 0.1s; }
.wizard-rec-card:nth-child(3) { animation-delay: 0.15s; }
.wizard-rec-card:nth-child(4) { animation-delay: 0.2s; }

.wizard-rec-card--top {
  grid-column: 1 / -1;
  border-color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #fff 50%);
  box-shadow: 0 6px 24px rgba(27, 127, 78, 0.12);
}

.wizard-rec-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(27, 127, 78, 0.1);
  border-radius: 999px;
  width: fit-content;
}

.wizard-rec-card__badge-icon svg {
  width: 12px;
  height: 12px;
  color: #f5a623;
}

.wizard-rec-card__rank {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.wizard-rec-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.wizard-rec-card__match {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.wizard-rec-card__bar {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}

.wizard-rec-card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), #2d9f6a);
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-rec-card__desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.7;
}

.wizard-rec-card__reasons {
  margin: 0 0 1rem;
  padding-right: 1.1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  flex: 1;
}

.wizard-rec-card__reasons li {
  margin-bottom: 0.25rem;
}

.wizard-rec-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 767.98px) {
  .consult-hero__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .consult-hero__features {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }

  .wizard-header {
    padding: 1.1rem 1rem 1rem;
  }

  .wizard-header__top {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
  }

  .wizard-header__actions {
    width: 100%;
  }

  .wizard-action {
    flex: 1;
    min-height: 2.25rem;
  }

  .wizard-step__label {
    font-size: 0.68rem;
    max-width: 72px;
  }

  .wizard-step__num {
    width: 32px;
    height: 32px;
    font-size: 0.72rem;
  }

  .wizard-steps::before {
    top: 16px;
    right: 14%;
    left: 14%;
  }

  .wizard-card,
  .wizard-form-card {
    padding: 1.25rem;
  }

  .wizard-options,
  .wizard-rec-grid {
    grid-template-columns: 1fr;
  }

  .wizard-rec-card--top {
    grid-column: auto;
  }

  .wizard-nav__note {
    display: none;
  }
}

@media (max-width: 420px) {
  .wizard-step__label {
    display: none;
  }

  .wizard-step.is-active .wizard-step__label {
    display: block;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 50%;
    transform: translateX(50%);
    max-width: none;
    white-space: nowrap;
    font-size: 0.72rem;
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
  }

  .wizard-steps {
    padding-bottom: 1.75rem;
  }

  .wizard-action {
    font-size: 0.72rem;
    padding: 0 0.65rem;
  }
}
