/* ============================================================
   pages/booking.css — the booking wizard: progress, steps,
   choice cards, dietary pills, guest stepper, nav row.
   Generic field controls live in components/forms.css.
   ============================================================ */
.booking-main { padding-top: 7rem; padding-bottom: 5rem; min-height: 100vh; }
.booking-shell { max-width: 42rem; margin-inline: auto; }

.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.progress-step { display: flex; align-items: center; flex: 1; }
.progress-step:last-child { flex: 0 0 auto; }
.progress-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  flex: 0 0 auto;
  transition: all var(--transition-base);
}
.progress-line { flex: 1; height: 1px; background: hsl(var(--border)); margin-inline: 0.5rem; transition: background var(--transition-base); }
.progress-step.is-active .progress-dot { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.progress-step.is-complete .progress-dot { background: hsl(var(--primary) / 0.2); color: hsl(var(--primary)); border-color: hsl(var(--primary) / 0.4); cursor: pointer; }
.progress-step.is-complete .progress-line { background: hsl(var(--primary) / 0.4); }

.step { display: none; }
.step.is-active { display: block; animation: fadeIn var(--transition-base) ease-out; }
.step-eyebrow { color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: 0.3em; font-size: 0.75rem; margin-bottom: 0.75rem; }
.step h2 { font-size: 1.875rem; font-weight: 300; margin-bottom: 0.5rem; }
.step-sub { color: hsl(var(--muted-foreground)); margin-bottom: 2rem; }

/* selectable cards */
.choice-grid { display: grid; gap: 1rem; }
.choice {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.choice:hover { border-color: hsl(var(--primary) / 0.5); }
.choice.is-selected { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.05); }
.choice-thumb { width: 5rem; height: 5rem; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 auto; }
.choice-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1.5rem;
  color: hsl(var(--primary));
  flex: 0 0 auto;
}
.choice-body { flex: 1; }
.choice-body h3 { font-size: 1.15rem; font-weight: 400; margin-bottom: 0.2rem; }
.choice-body p { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }
.choice-price {
  display: inline-block;
  margin-top: 0.5rem;
  color: hsl(var(--primary));
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.choice-indicator {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: hsl(var(--primary-foreground));
  transition: all var(--transition-base);
}
.choice-indicator svg { width: 0.9rem; height: 0.9rem; opacity: 0; }
.choice.is-selected .choice-indicator { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.choice.is-selected .choice-indicator svg { opacity: 1; }

/* dietary pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground) / 0.8);
  font-size: 0.85rem;
  transition: all var(--transition-base);
}
.pill:hover { border-color: hsl(var(--primary) / 0.5); }
.pill.is-selected { border-color: hsl(var(--primary)); background: hsl(var(--primary) / 0.1); color: hsl(var(--primary)); }
.pill svg { width: 0.85rem; height: 0.85rem; display: none; }
.pill.is-selected svg { display: inline-flex; }

/* guest stepper */
.stepper { display: flex; align-items: center; gap: 1.25rem; }
.stepper-btn {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  font-size: 1.25rem;
  transition: all var(--transition-base);
}
.stepper-btn:hover:not(:disabled) { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper-count { font-family: var(--font-display); font-size: 2rem; font-weight: 300; min-width: 3ch; text-align: center; }

/* custom date/time pickers */
.picker { position: relative; }
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  height: 3rem;
  padding: 0 0.9rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: hsl(var(--foreground));
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.select-trigger:hover { border-color: hsl(var(--primary) / 0.5); }
.select-trigger:focus-visible,
.select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px hsl(var(--primary));
}
.select-trigger.is-placeholder [data-label] { color: hsl(var(--muted-foreground)); }
.select-trigger i,
.select-trigger svg { color: hsl(var(--primary)); width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }

.popover {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  background: hsl(var(--popover));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-elevated);
  padding: 0.5rem;
}
.popover[hidden] { display: none; }

/* time listbox */
.listbox { max-height: 16rem; overflow-y: auto; }
.listbox li {
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: hsl(var(--foreground) / 0.85);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.listbox li:hover { background: hsl(var(--primary) / 0.1); color: hsl(var(--foreground)); }
.listbox li.is-selected { background: hsl(var(--primary) / 0.15); color: hsl(var(--primary)); }

/* calendar */
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 0.6rem;
}
.calendar-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; }
.calendar-nav {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  color: hsl(var(--foreground));
  transition: all var(--transition-fast);
}
.calendar-nav:hover { border-color: hsl(var(--primary)); color: hsl(var(--primary)); }
.calendar-nav svg { width: 1rem; height: 1rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.15rem; }
.calendar-weekday {
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  padding: 0.3rem 0;
}
.day {
  aspect-ratio: 1 / 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: hsl(var(--foreground) / 0.85);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.day.is-empty { pointer-events: none; }
.day:not(:disabled):not(.is-empty):hover { background: hsl(var(--primary) / 0.1); }
.day.is-today { box-shadow: inset 0 0 0 1px hsl(var(--primary) / 0.5); }
.day.is-selected { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.day:disabled { opacity: 0.3; cursor: not-allowed; }

/* nav row */
.step-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 2.5rem; gap: 1rem; }
.step-nav .spacer { flex: 1; }

@media (min-width: 768px) {
  .step h2 { font-size: 2.25rem; }
}
