/* Shared waitlist wizard — cream cards, progress, slide-in steps */

.wizard-shell {
  max-width: 720px;
}

.wizard {
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--brand-cream);
  border: 1px solid var(--surface-line);
  box-shadow: var(--shadow-soft);
}

.wizard-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(3, 45, 32, 0.1);
  overflow: hidden;
  margin-bottom: 10px;
}

.wizard-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand-agave), var(--brand-gold));
  border-radius: inherit;
  transition: width 0.28s ease;
}

.wizard-step-label {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.wizard-viewport {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.wizard-track {
  position: relative;
}

.wizard-card {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 100%;
  animation: wizard-card-in 0.32s ease both;
}

.wizard-card[hidden] {
  display: none !important;
}

.wizard-card legend {
  padding: 0;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--brand-forest);
  line-height: 1.2;
}

.wizard-hint {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.wizard-card label {
  margin-bottom: 12px;
}

.wizard-card textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid rgba(3, 45, 32, 0.18);
  border-radius: var(--radius-sm);
  background: var(--brand-ivory);
  color: var(--text-primary);
  padding: 12px;
  font: inherit;
  resize: vertical;
}

.wizard-card textarea:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(244, 180, 26, 0.28);
}

.wizard-path-note {
  margin: 0 0 var(--space-3);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--brand-ivory);
  border: 1px solid var(--surface-line);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.wizard-path-note a {
  color: var(--brand-agave);
  font-weight: 700;
}

.review-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.review-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-line);
}

.review-list dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand-agave);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.review-list dd {
  margin: 0;
  color: var(--brand-forest);
  font-weight: 600;
  word-break: break-word;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--surface-line);
}

.wizard-actions .btn {
  flex: 1 1 140px;
  min-height: 44px;
}

/* `.btn { display: inline-flex }` overrides the UA [hidden] rule without this. */
.wizard-actions .btn[hidden] {
  display: none !important;
}

.wizard-actions .btn-ghost[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.wizard-card .check {
  min-height: 44px;
  align-items: center;
}

@keyframes wizard-card-in {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 820px) {
  .review-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-card {
    animation: none !important;
  }

  .wizard-progress-bar {
    transition: none;
  }
}
