/* ==========================================================================
   ZeroPlastic Impact Center — Public Experience Booking Page
   Design system + component styles.

   Palette: deep forest green primary, warm off-white background, soft
   natural greys. No dark theme, no loud accent colours, per spec.
   Typography: system font stack only (no external font requests) — keeps
   the page fully self-contained and fast on first load, and looks native
   and premium on iOS/Android/desktop alike.
   ========================================================================== */

:root {
  /* Colour */
  --color-primary: #1F6D46;
  --color-primary-dark: #16512F;
  --color-primary-light: #E9F4EE;
  --color-primary-soft: #D3EBDD;
  --color-bg: #FBFAF7;
  --color-surface: #FFFFFF;
  --color-text: #1C2620;
  --color-text-muted: #5B6B62;
  --color-text-faint: #64716A; /* darkened from an earlier #8A968E (~2.95:1) to ~4.9:1 against --color-bg — WCAG AA for small text */
  --color-border: #E7E3DA;
  --color-border-strong: #D8D2C4;
  --color-danger: #B3432F;
  --color-danger-bg: #FBEDE9;
  --color-focus: #1F6D46;

  /* Type scale (fluid) */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.06rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.375rem, 1.25rem + 0.6vw, 1.75rem);
  --fs-xl: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --fs-xxl: clamp(2.25rem, 1.85rem + 2vw, 3.5rem);

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;

  /* Shape + elevation */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(28, 38, 32, 0.06), 0 1px 1px rgba(28, 38, 32, 0.04);
  --shadow-md: 0 8px 24px rgba(28, 38, 32, 0.08), 0 2px 6px rgba(28, 38, 32, 0.05);
  --shadow-lg: 0 20px 48px rgba(28, 38, 32, 0.14), 0 6px 16px rgba(28, 38, 32, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 520ms;

  color-scheme: light;
}

/* ── Reset / base ─────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.is-hidden { display: none !important; }

/* ── App shell ────────────────────────────────────────────────────────── */

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

/* Centered brand block — logo, name, subtitle, per the Final UI Enhancement spec. */
.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-2);
  width: 100%;
}
.brand-logo {
  width: 130px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md, 8px);
}
.brand-name {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.brand-subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.back-link {
  align-self: flex-start;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-pill);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.back-link:hover { color: var(--color-primary); background: var(--color-primary-light); }
.back-link-short { display: none; }

@media (max-width: 420px) {
  .back-link-full { display: none; }
  .back-link-short { display: inline; }
  .brand-logo { width: 110px; }
}

/* ── Progress indicator ───────────────────────────────────────────────── */

.progress-wrap {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-5) var(--sp-4);
}
.progress-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.progress-step {
  display: flex;
  align-items: center;
  flex: 1;
}
.progress-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text-faint);
  font-size: var(--fs-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur-med) var(--ease);
  position: relative;
}
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-border-strong);
  margin: 0 4px;
  position: relative;
  overflow: hidden;
}
.progress-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease);
}
.progress-step.is-done .progress-line::after { transform: scaleX(1); }
.progress-step.is-done .progress-dot,
.progress-step.is-current .progress-dot {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}
.progress-step.is-current .progress-dot {
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}
.progress-step.is-done .progress-dot svg { width: 13px; height: 13px; }
.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sp-2);
}
.progress-labels span {
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  flex: 1;
  text-align: center;
}
.progress-labels span:first-child { text-align: left; }
.progress-labels span:last-child { text-align: right; }
.progress-step:last-child .progress-line { visibility: hidden; }

/* ── Main / steps ─────────────────────────────────────────────────────── */

.main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-5) var(--sp-8);
}

.step {
  display: none;
}
/* Entering and leaving each play their own short animation (not a plain class
   toggle) so moving between steps reads as one continuous motion rather than
   a hard cut — the leaving step fades/slides out first, then the entering
   one fades/slides in (sequenced in JS via `animationend`, never both
   simultaneously in flow, so nothing stacks or jumps in height). */
.step.is-active {
  display: block;
}
.step.is-active:not(.is-leaving) {
  animation: step-in 360ms var(--ease);
}
.step.is-leaving {
  animation: step-out 180ms var(--ease) forwards;
}
@keyframes step-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes step-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.step-header {
  margin-bottom: var(--sp-6);
}
.step-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-2);
}
.step-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.step-subtitle {
  margin-top: var(--sp-2);
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 46ch;
}

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 52px;
  padding: 0 var(--sp-6);
  font-size: var(--fs-base);
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); box-shadow: var(--shadow-md); }

.btn-large {
  min-height: 60px;
  padding: 0 var(--sp-7);
  font-size: var(--fs-md);
  width: 100%;
}
@media (min-width: 560px) {
  .btn-large { width: auto; }
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 0 var(--sp-4);
  min-height: 44px;
}
.btn-ghost:hover:not(:disabled) { color: var(--color-text); background: var(--color-primary-light); }

/* ── Hero (Step 1) ────────────────────────────────────────────────────── */

.hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  /* The hero should dominate the first screen — sized off the viewport
     (78vh, with 78svh progressively enhancing on browsers that support the
     newer small-viewport unit) rather than a fixed pixel value, with a cap
     so it never becomes excessive on very tall desktop viewports. */
  min-height: 78vh;
  min-height: 78svh;
  max-height: 780px;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(255,255,255,0.16), transparent 55%),
    linear-gradient(155deg, #2C7A4F 0%, #1F6D46 42%, #14432C 100%);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,0.10) 0, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08) 0, transparent 45%),
    radial-gradient(circle at 70% 90%, rgba(0,0,0,0.14) 0, transparent 50%);
}
.hero-leaf {
  position: absolute;
  color: rgba(255,255,255,0.14);
}
.hero-leaf-1 { width: 220px; height: 220px; top: -40px; right: -30px; transform: rotate(12deg); }
.hero-leaf-2 { width: 140px; height: 140px; bottom: 10%; left: -20px; transform: rotate(-18deg); }
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--sp-7) var(--sp-6);
  color: #fff;
  max-width: 620px;
}
.hero-eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: var(--sp-3);
}
.hero-title {
  font-size: var(--fs-xxl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--sp-4);
}
.hero-text {
  font-size: var(--fs-md);
  color: rgba(255,255,255,0.88);
  max-width: 38ch;
  margin-bottom: var(--sp-6);
}

/* ── Experience cards (Step 2) ────────────────────────────────────────── */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
}
@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

.exp-card {
  text-align: left;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  /* Hover is a subtle lift; selection is a distinct, more deliberate settle —
     kept on separate easing curves so neither reads as the other. */
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-med) var(--ease);
  position: relative;
  display: flex;
  flex-direction: column;
}
.exp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.exp-card.is-selected {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: 0 0 0 3px var(--color-primary-soft), var(--shadow-md);
}

.exp-card-media {
  height: 208px;
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-soft), var(--color-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.exp-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.5), transparent 45%);
}
/* Real uploaded image — the primary visual element. object-fit:cover fills the same
   fixed-height media area the placeholder icon uses, at any viewport width, without
   ever distorting the source image's aspect ratio. */
.exp-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.exp-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exp-card-placeholder svg { width: 56px; height: 56px; color: var(--color-primary); opacity: 0.55; }

.exp-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(28, 38, 32, 0.25);
}
.exp-card.is-selected .exp-card-check { transform: scale(1); }
.exp-card-check svg { width: 16px; height: 16px; }

.exp-card-body {
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.exp-card-name { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; }
.exp-card-desc { color: var(--color-text-muted); font-size: var(--fs-sm); flex: 1; }
.exp-card-duration { font-size: var(--fs-xs); color: var(--color-text-faint); font-weight: 600; }
.exp-card-prices {
  display: flex;
  gap: var(--sp-5);
  margin-top: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}
.exp-card-price { font-size: var(--fs-xs); color: var(--color-text-faint); }
.exp-card-price strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: var(--fs-md);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ── Skeleton loaders ─────────────────────────────────────────────────── */

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-border);
  border-radius: var(--radius-sm);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.7), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.exp-card-skeleton { height: 388px; border-radius: var(--radius-lg); border: 2px solid var(--color-border); overflow: hidden; }
.exp-card-skeleton .sk-media { height: 208px; }
.exp-card-skeleton .sk-line { height: 14px; margin: var(--sp-5) var(--sp-5) 0; }
.exp-card-skeleton .sk-line.w-60 { width: 60%; }
.exp-card-skeleton .sk-line.w-90 { width: 90%; margin-top: var(--sp-3); }
.exp-card-skeleton .sk-line.w-40 { width: 40%; margin-top: var(--sp-5); }

/* ── Calendar (Step 3) ────────────────────────────────────────────────── */

.calendar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  max-width: 420px;
  box-shadow: var(--shadow-sm);
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.calendar-title { font-size: var(--fs-md); font-weight: 700; }
.calendar-nav { display: flex; gap: var(--sp-2); }
.calendar-nav-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  transition: all var(--dur-fast) var(--ease);
}
.calendar-nav-btn:hover:not(:disabled) { background: var(--color-primary-light); color: var(--color-primary); border-color: var(--color-primary-soft); }
.calendar-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-nav-btn svg { width: 16px; height: 16px; }

.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-weekdays span {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  padding-bottom: var(--sp-2);
}
.calendar-day {
  aspect-ratio: 1;
  border: none;
  background: transparent;
  border-radius: 50%;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  position: relative;
}
.calendar-day:hover:not(:disabled):not(.is-empty) { background: var(--color-primary-light); }
.calendar-day.is-empty { cursor: default; }
.calendar-day:disabled { color: var(--color-text-faint); opacity: 0.35; cursor: not-allowed; }
.calendar-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}
.calendar-day.is-selected { background: var(--color-primary); color: #fff; }
.calendar-day.is-selected::after { background: #fff; }

/* ── Time slots (Step 4) ──────────────────────────────────────────────── */

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: var(--sp-3);
}
.slot-btn {
  min-height: 52px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.slot-btn:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); }
.slot-btn.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.slot-btn:disabled {
  background: repeating-linear-gradient(135deg, var(--color-bg), var(--color-bg) 6px, var(--color-border) 6px, var(--color-border) 7px);
  color: var(--color-text-faint);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ── Visitors stepper (Step 5) ────────────────────────────────────────── */

.visitor-rows { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 420px; }
.visitor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}
.visitor-row-label strong { display: block; font-size: var(--fs-md); }
.visitor-row-label span { font-size: var(--fs-xs); color: var(--color-text-faint); }
.stepper { display: flex; align-items: center; gap: var(--sp-4); }
.stepper-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-primary);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease);
  line-height: 1;
}
.stepper-btn:hover:not(:disabled) { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper-value { min-width: 28px; text-align: center; font-size: var(--fs-md); font-weight: 700; font-variant-numeric: tabular-nums; }

.visitor-total {
  margin-top: var(--sp-5);
  max-width: 420px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
}
.visitor-total span:first-child { color: var(--color-primary-dark); font-weight: 600; font-size: var(--fs-sm); }
.visitor-total span:last-child { color: var(--color-primary-dark); font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }

/* ── Form (Step 6) ────────────────────────────────────────────────────── */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  max-width: 480px;
}
@media (min-width: 640px) {
  .form-grid.two-col { grid-template-columns: 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); }
.field-hint { font-size: var(--fs-xs); color: var(--color-text-faint); }
.field input, .field select {
  appearance: none;
  font-family: inherit;
  font-size: var(--fs-base);
  padding: var(--sp-4);
  min-height: 52px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  width: 100%;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235B6B62'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  padding-right: var(--sp-7);
}
.field input:focus, .field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
  outline: none;
}
.field.has-error input, .field.has-error select { border-color: var(--color-danger); }
.field-error {
  font-size: var(--fs-xs);
  color: var(--color-danger);
  display: none;
  align-items: center;
  gap: 6px;
}
.field.has-error .field-error { display: flex; }

/* ── Summary (Step 7) ─────────────────────────────────────────────────── */

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  max-width: 520px;
  box-shadow: var(--shadow-md);
}
.summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--color-border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-label { color: var(--color-text-faint); font-size: var(--fs-sm); }
.summary-value { font-weight: 700; text-align: right; }
.summary-total {
  margin-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  background: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
}
.summary-total-label { font-size: var(--fs-md); font-weight: 700; color: var(--color-primary-dark); }
.summary-total-value { font-size: var(--fs-xl); font-weight: 800; color: var(--color-primary-dark); font-variant-numeric: tabular-nums; }
.summary-note {
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
  text-align: center;
}

/* ── Loading overlay (submit) ─────────────────────────────────────────── */

.btn-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: none;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success screen ───────────────────────────────────────────────────── */

.success-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--sp-8) 0;
}
.success-icon {
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-6);
  position: relative;
  animation: pop-in var(--dur-slow) var(--ease);
}
/* A soft, once-only expanding ring — a small celebratory touch, kept subtle
   (single pass, low opacity) rather than a persistent/looping effect. */
.success-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--color-primary-soft);
  animation: ring-out 900ms var(--ease) 150ms backwards;
}
.success-icon svg { width: 56px; height: 56px; }
@keyframes pop-in {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}
@keyframes ring-out {
  from { transform: scale(1); opacity: 0.6; }
  to { transform: scale(1.5); opacity: 0; }
}
/* Deliberately smaller than the booking number below it — the number is the
   single most important thing on this screen, per spec. */
.success-title { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; margin-bottom: var(--sp-2); }
.success-text { color: var(--color-text-muted); max-width: 40ch; margin-bottom: var(--sp-6); }
.booking-number-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--color-surface);
  border: 1.5px dashed var(--color-primary-soft);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-7);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.booking-number-chip span { font-size: var(--fs-xs); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.booking-number-chip strong { font-size: var(--fs-xxl); font-weight: 800; color: var(--color-primary-dark); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.whatsapp-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-pill);
  margin-bottom: var(--sp-7);
}
.whatsapp-note svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Toast (generic error banner) ─────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-6);
  transform: translate(-50%, 20px);
  background: var(--color-text);
  color: #fff;
  padding: var(--sp-4) var(--sp-6);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-med) var(--ease);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 639px) {
  .site-header { padding: var(--sp-3) var(--sp-4); }
  .main { padding: 0 var(--sp-4) var(--sp-7); }
  .progress-wrap { padding: 0 var(--sp-4) var(--sp-3); }
  .hero { min-height: 72vh; min-height: 72svh; max-height: none; }
  .hero-content { padding: var(--sp-6) var(--sp-4); }
  .summary-card, .calendar { padding: var(--sp-4); }
}
