/* Wizard */

.wizard-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-xl);
}

.wizard-page__intro {
  padding: 44px 0 26px;
  text-align: center;
}

.wizard-page__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 40px;
  line-height: 1.08;
  color: var(--ppch-deep);
  margin: 0 auto 12px;
  max-width: 620px;
}

.wizard-page__lead {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 560px;
}

.wizard-card {
  background: var(--ppch-haze-soft);
  border: var(--stroke-hair) solid var(--ppch-haze);
  border-radius: 28px;
  padding: 38px 40px 34px;
  box-shadow: var(--shadow-sm);
}

.wizard-card__progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--ppch-haze);
}

.wizard-card__progress-bar {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-card__step-label {
  margin: 22px 0 6px;
  font-size: 15px;
  color: var(--text-secondary);
}

.wizard-card__question {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 32px;
  line-height: 1.15;
  color: var(--ppch-deep);
  margin: 0 0 26px;
}

.wizard-card__options {
  display: grid;
  gap: 14px;
}

.wizard-card__options--cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.wizard-card__options--cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.wizard-option {
  cursor: pointer;
}

.wizard-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wizard-option__label {
  display: block;
  border: var(--stroke-medium) solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--ppch-deep);
  font-size: 16px;
  font-weight: var(--fw-medium);
  padding: 17px 16px;
  border-radius: 16px;
  text-align: center;
  line-height: 1.25;
  transition: all 0.18s ease;
}

.wizard-option input:checked + .wizard-option__label,
.wizard-option.is-selected .wizard-option__label,
.wizard-option:hover .wizard-option__label {
  border-color: var(--accent);
  background: var(--surface-accent-soft);
  color: var(--accent);
}

.wizard-card__helper {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.wizard-card__nav {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wizard-pills {
  margin: 26px 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: var(--stroke-hair) solid var(--border-subtle);
  background: var(--surface-card);
  color: var(--ppch-grey-700);
  font-size: 14.5px;
  font-weight: var(--fw-regular);
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.wizard-pill.is-active {
  border-color: var(--accent);
  background: var(--surface-accent-soft);
  color: var(--accent);
  font-weight: var(--fw-medium);
}

.wizard-pill.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}


.wizard-card__error {
  color: #b42318;
  font-size: 14px;
  margin: 0 0 12px;
}

.btn.is-disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 960px) {
  .wizard-page {
    padding-inline: var(--space-md);
  }

  .wizard-page__title {
    font-size: clamp(28px, 7vw, 36px);
  }

  .wizard-card__options--cols-3,
  .wizard-card__options--cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-results__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wizard-page__intro {
    padding: 28px 0 18px;
  }

  .wizard-card {
    padding: 24px 18px 22px;
    border-radius: 22px;
  }

  .wizard-card__question {
    font-size: clamp(22px, 6vw, 28px);
    margin-bottom: 18px;
  }

  .wizard-card__options--cols-3,
  .wizard-card__options--cols-4 {
    grid-template-columns: 1fr;
  }

  .wizard-card__nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wizard-card__nav .btn {
    width: 100%;
    justify-content: center;
  }

  .wizard-results {
    padding: 22px 16px;
  }

  .wizard-results__sort-note {
    white-space: normal;
  }
}

/* Wizard results */

.wizard-page--results {
  max-width: var(--container-wide);
}

.wizard-results__eyebrow {
  padding: 40px 0 22px;
  text-align: center;
  font-size: 12px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.wizard-results {
  background: var(--ppch-haze-soft);
  border: var(--stroke-hair) solid var(--ppch-haze);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.wizard-results__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.wizard-results__title {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 26px;
  line-height: 1.25;
  color: var(--ppch-deep);
  margin: 0;
  max-width: 820px;
}

.wizard-results__query-label {
  color: var(--text-secondary);
  font-weight: var(--fw-regular);
}

.wizard-results__query {
  color: var(--ppch-deep);
  font-weight: var(--fw-medium);
}

.wizard-results__sort-note {
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wizard-results__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.wizard-results__catalog {
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
  font-size: 16px;
}

@media (max-width: 960px) {
  .wizard-results__grid {
    grid-template-columns: 1fr;
  }
}
