/* ============================================
   THE WIZARD — DOPAMINE-DRIVEN INTERACTION
   ============================================ */

.wizard-page {
  min-height: 100vh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
}

/* Top bar with progress */
.wizard-header {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--cream-darker);
  background: var(--cream);
}

.wizard-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.wizard-logo {
  display: inline-block;
  width: 160px;
  flex-shrink: 0;
  color: var(--burgundy);
  transition: opacity 0.2s;
}

.wizard-logo:hover {
  opacity: 0.7;
}

.wizard-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .wizard-logo { width: 120px; }
}

.progress-track {
  flex: 1;
  max-width: 400px;
  height: 2px;
  background: var(--cream-darker);
  margin: 0 var(--space-6);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-step-count {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Main wizard area */
.wizard-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-7) var(--space-5);
  position: relative;
}

.wizard-step {
  width: 100%;
  max-width: 720px;
  display: none;
}

.wizard-step.active {
  display: block;
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Step number badge */
.step-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--blush-soft);
  border: 1px solid var(--blush);
  border-radius: 50px;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: var(--space-5);
}

.step-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--burgundy);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.step-question {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--burgundy-deep);
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.step-question em {
  font-style: italic;
  color: var(--burgundy);
}

.step-subtitle {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: var(--space-7);
  font-style: italic;
}

/* Date input */
.date-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
}

input[type="date"] {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 24px;
  border: 1px solid var(--cream-darker);
  background: var(--white);
  color: var(--burgundy-deep);
  width: 100%;
}

input[type="date"]:focus {
  outline: none;
  border-color: var(--gold);
}

/* Multi-choice cards */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.choice-card {
  position: relative;
  padding: var(--space-6) var(--space-5);
  background: var(--white);
  border: 1px solid var(--cream-darker);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.choice-card:hover {
  border-color: var(--gold);
  background: var(--cream-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.choice-card.selected {
  border-color: var(--burgundy);
  background: var(--blush-soft);
  box-shadow: var(--shadow-md);
}

.choice-card.selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: var(--burgundy);
  color: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  animation: scaleIn 0.3s ease;
}

.choice-icon {
  font-size: 32px;
  font-family: var(--font-display);
  color: var(--gold);
  font-style: italic;
}

.choice-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--burgundy-deep);
  font-weight: 500;
}

.choice-desc {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Slider for budget / guests */
.slider-wrap {
  margin: var(--space-6) 0;
}

.slider-display {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--burgundy);
  margin-bottom: var(--space-4);
  font-weight: 300;
  font-style: italic;
}

.slider-display-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}

input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--cream-darker);
  outline: none;
  margin: var(--space-4) 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  background: var(--burgundy);
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  background: var(--burgundy);
  border-radius: 50%;
  cursor: pointer;
  border: 4px solid var(--cream);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  margin-top: var(--space-2);
}

/* Names input (final step) */
.names-input-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
  margin: var(--space-6) 0;
}

.names-amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 48px;
  color: var(--gold);
  text-align: center;
}

@media (max-width: 600px) {
  .names-input-grid {
    grid-template-columns: 1fr;
  }
  .names-amp {
    transform: rotate(0deg);
    font-size: 32px;
  }
}

/* Wizard navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--cream-darker);
}

.btn-back {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-muted);
  text-transform: uppercase;
  padding: 12px 0;
}

.btn-back:hover {
  color: var(--burgundy);
}

.btn-next {
  padding: 16px 36px;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-next:hover:not(:disabled) {
  background: var(--burgundy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Transition message between steps (dopamine hit) */
.transition-message {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.transition-message.show {
  opacity: 1;
  pointer-events: auto;
}

.transition-content {
  text-align: center;
  max-width: 600px;
  padding: 0 var(--space-5);
  animation: fadeUp 0.6s ease;
}

.transition-icon {
  font-family: var(--font-display);
  font-size: 96px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.transition-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--burgundy-deep);
  line-height: 1.4;
  font-style: italic;
}

.transition-text strong {
  color: var(--burgundy);
  font-weight: 500;
}

/* ============================================
   LOADING / GENERATION SCREEN
   ============================================ */

.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: var(--space-7) var(--space-5);
}

.loading-content {
  text-align: center;
  max-width: 600px;
}

.loading-orb {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  position: relative;
}

.loading-orb::before, .loading-orb::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold);
}

.loading-orb::before {
  animation: spin 4s linear infinite;
  border-top-color: var(--burgundy);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-width: 2px;
}

.loading-orb::after {
  inset: 20px;
  animation: spin 3s linear infinite reverse;
  border-top-color: transparent;
  border-right-color: var(--burgundy);
  border-bottom-color: transparent;
  border-left-color: transparent;
}

.loading-orb-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  font-style: italic;
}

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

.loading-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--burgundy-deep);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.loading-status {
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  min-height: 24px;
  transition: opacity 0.4s;
}

.loading-detail {
  margin-top: var(--space-3);
  color: var(--ink-soft);
  font-style: italic;
  font-size: 16px;
}
