/* =========================================================
   Booking flow — clean, minimal-click, premium.
   ========================================================= */

.book-body { background: var(--paper); min-height: 100svh; padding-bottom: 130px; }
.book-body * { -webkit-tap-highlight-color: transparent; }
.book-body button:focus { outline: none; }
.book-body button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Header — navy/gold, same identity as the homepage */
.book-header {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  box-shadow: 0 14px 30px -22px rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
}
.book-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: #fff; font-size: 1rem; }
.book-brand em { font-family: var(--script); font-style: normal; color: var(--gold-soft); }
.book-secure { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-soft); }
.book-secure svg { width: 14px; height: 14px; }

/* Progress dots — own stacking context + clip, or engines paint a giant phantom
   copy of a dot at the page origin once the row scrolls under the sticky header */
.progress { display: flex; gap: 8px; justify-content: center; padding: 20px 0 6px; position: relative; z-index: 1; overflow: hidden; }
.step-dot { width: 34px; height: 5px; border-radius: 999px; background: rgba(12,37,49,.14); transition: background .3s; }
.step-dot.active { background: var(--gold); }
.step-dot.done { background: var(--gold-soft); }

/* Main / steps */
.book-main { width: min(100% - 36px, 620px); margin: 0 auto; padding: 12px 0 20px; }
.step { display: none; animation: stepIn .4s var(--ease); }
.step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.step-title { font-size: clamp(1.7rem, 5vw, 2.3rem); color: var(--ink); }
.step-sub { color: var(--grey-teal); margin: 8px 0 26px; }

/* Experience picker */
.pick-grid { display: grid; gap: 14px; }
.pick {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  background: #fff; border: 2px solid rgba(15,58,64,.1); border-radius: 16px;
  padding: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; width: 100%;
}
.pick:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pick.selected { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224,168,62,.18); }
.pick img { width: 96px; height: 84px; object-fit: cover; border-radius: 11px; flex: none; }
.pick-body { display: flex; flex-direction: column; gap: 3px; }
.pick-body b { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); }
.pick-body small { color: var(--grey-teal); font-size: .86rem; }
.pick-price { color: var(--deep-gold); font-weight: 700; font-size: .9rem; margin-top: 2px; }

/* Fields */
.field { display: block; margin-bottom: 24px; }
.field-label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 10px; font-size: .98rem; }
.field-label em { color: var(--grey-teal); font-weight: 500; font-style: normal; }
input[type="date"], input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 15px 16px; border: 2px solid rgba(15,58,64,.14); border-radius: 13px;
  font-family: var(--sans); font-size: 1.05rem; color: var(--ink); background: #fff;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none;
}
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(224,168,62,.16); }
textarea { resize: vertical; }
.hint { display: block; color: var(--grey-teal); font-size: .84rem; margin-top: 8px; }

/* Chips (duration, time, license, payment) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  cursor: pointer; padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  border: 2px solid rgba(15,58,64,.14); background: #fff; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s;
}
.chip:hover { border-color: var(--gold-soft); }
.chip.active { border-color: transparent; background: linear-gradient(135deg, var(--gold), var(--deep-gold)); color: var(--navy-deep); font-weight: 700; box-shadow: 0 8px 18px -8px rgba(224,168,62,.7); }
.chip.sold-out { opacity: .45; text-decoration: line-through; cursor: not-allowed; }

/* Multi-day toggle */
.multi-toggle { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); cursor: pointer; }
.multi-toggle input { width: 20px; height: 20px; accent-color: var(--deep-gold); }

/* Waiver & terms modal */
.waiver-modal { position: fixed; inset: 0; z-index: 120; background: rgba(15,58,64,.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 18px; }
.waiver-card { background: var(--paper); border-radius: 20px; padding: 26px 24px; width: min(100%, 560px); max-height: 86svh; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.waiver-head { display: flex; justify-content: space-between; align-items: center; }
.waiver-head h2 { font-size: 1.4rem; color: var(--ink); }
.waiver-head button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.7rem; color: var(--grey-teal); cursor: pointer; }
.waiver-body { overflow-y: auto; color: var(--grey-teal); font-size: .93rem; line-height: 1.65; padding-right: 6px; }
.waiver-body h3 { color: var(--ink); font-size: 1rem; margin: 14px 0 4px; }
.waiver-body p { white-space: pre-wrap; margin: 0 0 10px; }

/* Guest stepper */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 2px solid rgba(15,58,64,.14); border-radius: 999px; padding: 6px; }
.step-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(224,168,62,.16); color: var(--deep-gold); font-size: 1.5rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.step-btn:hover { background: rgba(224,168,62,.3); }
.step-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper-val { min-width: 108px; text-align: center; font-size: 1rem; }
.stepper-val b { font-family: var(--serif); font-size: 1.35rem; }

/* License box */
.license-box { background: #fff; border: 2px solid rgba(224,168,62,.4); border-radius: 16px; padding: 20px; margin-bottom: 24px; }
.license-box > b { display: block; margin-bottom: 12px; color: var(--ink); }
.license-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(15,58,64,.1); }
.license-note p { margin: 0 0 10px; font-size: .95rem; color: var(--grey-teal); }
.license-note a { color: var(--deep-gold); font-weight: 700; }
.license-note .or { text-align: center; color: var(--grey-teal); font-size: .82rem; margin: 14px 0; }
.add-captain { width: 100%; padding: 14px; border-radius: 12px; border: 2px dashed var(--deep-gold); background: rgba(255,194,74,.12); color: var(--ink); font-weight: 700; cursor: pointer; transition: background .2s; }
.add-captain:hover { background: rgba(255,194,74,.22); }
.captain-ask { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(15,58,64,.1); }
.captain-ask > b { display: block; margin-bottom: 6px; color: var(--ink); }
.cap-note { font-size: .9rem; color: var(--grey-teal); line-height: 1.5; margin: 0 0 12px; }
.cap-note b { color: var(--ink); }
.add-captain.added { border-style: solid; background: var(--gold); }

/* Add-ons */
.addons { display: grid; gap: 12px; }
.addon {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #fff; border: 2px solid rgba(15,58,64,.12); border-radius: 14px; padding: 14px 16px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.addon.added { border-color: var(--gold); background: rgba(224,168,62,.07); }
.addon-info b { display: block; color: var(--ink); font-size: 1rem; }
.addon-info small { color: var(--grey-teal); font-size: .84rem; }
.addon-right { display: flex; align-items: center; gap: 12px; flex: none; }
.addon-price { font-weight: 700; color: var(--deep-gold); }
.addon-check { width: 26px; height: 26px; border-radius: 999px; border: 2px solid rgba(15,58,64,.2); display: grid; place-items: center; color: #fff; font-size: .8rem; transition: background .2s, border-color .2s; }
.addon.added .addon-check { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* Waiver */
.waiver { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid rgba(15,58,64,.12); border-radius: 14px; padding: 16px; cursor: pointer; }
.waiver input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--deep-gold); }
.waiver span { font-size: .92rem; color: var(--ink); }
.waiver a { color: var(--deep-gold); font-weight: 700; }

/* Sticky bottom bar — navy, so the gold Continue pops like the homepage CTAs */
.book-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  box-shadow: 0 -12px 34px -18px rgba(0,0,0,.75);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.book-bar .summary { display: flex; flex-direction: column; min-width: 0; }
.sum-line { font-size: .8rem; color: rgba(255,255,255,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sum-total { font-family: var(--serif); font-weight: 800; font-size: 1.35rem; color: var(--gold-soft); }
.book-nav { display: flex; align-items: center; gap: 10px; flex: none; }
.btn-back { background: transparent; color: rgba(255,255,255,.7); padding: 15px 14px; }
.btn-back:hover { color: #fff; }
.btn-next:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.book-main-wrap { max-width: 620px; margin: 0 auto; }

/* Success overlay */
.done { position: fixed; inset: 0; z-index: 100; background: rgba(15,58,64,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .4s; }
.done[hidden] { display: none; } /* the hidden attribute must beat display:grid, or the overlay blocks the whole page */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.done-card { background: var(--paper); border-radius: 22px; padding: 40px 30px; max-width: 440px; text-align: center; box-shadow: var(--shadow); animation: stepIn .5s var(--ease); }
.done-check { width: 74px; height: 74px; border-radius: 999px; background: linear-gradient(135deg, var(--gold), var(--deep-gold)); color: var(--navy-deep); font-size: 2.4rem; display: grid; place-items: center; margin: 0 auto 20px; box-shadow: 0 16px 32px -14px rgba(224,168,62,.8); }
.done-card h2 { font-size: 1.9rem; color: var(--ink); }
.done-card h2 .script { color: var(--deep-gold); }
.done-card p { color: var(--grey-teal); margin: 14px 0 22px; }
.done-sum { background: #fff; border: 1px solid rgba(15,58,64,.1); border-radius: 14px; padding: 16px; text-align: left; font-size: .9rem; margin-bottom: 22px; }
.done-sum div { display: flex; justify-content: space-between; padding: 4px 0; }
.done-sum b { color: var(--ink); }

/* Desktop: summary + form side by side feel */
@media (min-width: 900px) {
  .book-main { width: min(100% - 60px, 640px); padding-top: 24px; }
  .book-bar { padding-left: max(20px, calc((100vw - 640px) / 2)); padding-right: max(20px, calc((100vw - 640px) / 2)); }
}

@media (prefers-reduced-motion: reduce) {
  .step, .done, .done-card { animation: none; }
}

/* Kids' life jackets — size breakdown (compact steppers per weight band) */
.lj-list { display: flex; flex-direction: column; gap: 12px; }
.lj-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.lj-name { font-weight: 700; font-size: 1rem; color: var(--ink); }
.lj-name span { display: block; font-weight: 500; font-size: .8rem; color: #5A6E70; margin-top: 1px; }
.lj-step .stepper-val { min-width: 42px; }
.lj-step .step-btn { width: 40px; height: 40px; font-size: 1.35rem; }
