/* ==========================================================================
   Wheelhaus — Book Service
   book.css  ·  v1.0.0-mock
   Scoped entirely to #wh-book so it cannot collide with Webflow's styles.
   Palette is the locked Wheelhaus system (see Wheelhaus-Color-System-Pass.md).
   ========================================================================== */

#wh-book {
  /* --- locked brand palette --- */
  --wh-green:    #004934;
  --wh-green-dk: #00301F;
  --wh-mint:     #D3F2E3;
  --wh-teal:     #00D3FF;
  --wh-orange:   #FF6B00;
  --wh-cream:    #F0EFE1;
  --wh-black:    #000000;

  /* --- roles --- */
  --wh-bg:        var(--wh-cream);
  --wh-surface:   #F8F7F1;
  --wh-line:      #CFCDBB;
  --wh-line-2:    #A9A897;
  --wh-text:      #101512;
  --wh-muted:     #5C6B65;
  --wh-danger:    #A3300E;
  --wh-danger-bg: #FBE9E2;

  /* Q8: black on orange = 7.36:1. White would be 2.86:1 and fails AA.
     One line to revert: change --wh-cta-ink to #FFFFFF. */
  --wh-cta-bg:  var(--wh-orange);
  --wh-cta-ink: #000000;

  --wh-radius: 10px;
  --wh-tap: 56px;

  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--wh-text);
  background: var(--wh-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

#wh-book *,
#wh-book *::before,
#wh-book *::after { box-sizing: border-box; }

/* NOTE: do not add `color: inherit` here. This selector carries ID
   specificity (1,0,1) and would beat every component's own colour rule —
   which is exactly how the solid buttons ended up dark-on-dark. Components
   set their own colour; only the inputs inherit. */
#wh-book button,
#wh-book input,
#wh-book textarea,
#wh-book select {
  font: inherit;
  margin: 0;
}
#wh-book input,
#wh-book textarea,
#wh-book select { color: var(--wh-text); }

#wh-book :focus-visible {
  outline: 3px solid var(--wh-teal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  #wh-book *,
  #wh-book *::before,
  #wh-book *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- shell ---------- */

.whb-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--wh-bg);
}

.whb-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--wh-green);
  color: var(--wh-cream);
  padding-top: env(safe-area-inset-top);
}

.whb-top-row {
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 18px 11px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whb-back {
  background: none;
  border: 0;
  color: var(--wh-cream);
  padding: 8px 10px 8px 0;
  margin-left: -2px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.whb-back[hidden] { display: none; }
.whb-back:hover { color: var(--wh-teal); }

.whb-wordmark {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: 22px;
  letter-spacing: .14em;
  line-height: 1;
  margin: 0;
  flex: 1;
}

/* The wordmark is the only way back to the site from this standalone flow.
   It is an anchor, so it needs the link defaults removed explicitly — there is
   no global anchor reset in this file and the UA blue/underline would read as
   a stray link rather than as the brand. */
#wh-book a.whb-wordmark {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  align-self: center;
}

#wh-book a.whb-wordmark:hover { color: var(--wh-orange); }

.whb-count {
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--wh-teal);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.whb-progress {
  height: 3px;
  background: rgba(240, 239, 225, .22);
}
.whb-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--wh-orange);
  transition: width .32s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- screens ---------- */

.whb-main {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 18px 152px;
}

.whb-screen { display: none; }
.whb-screen.is-active {
  display: block;
  animation: whb-in .26s cubic-bezier(.2, .7, .3, 1);
}
@keyframes whb-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Focus is moved here programmatically on each step so screen readers announce
   the new screen; a visible ring is noise, not affordance. Must be scoped with
   #wh-book to outrank the ID-specificity :focus-visible rule above — a plain
   .whb-h1 selector loses to it. */
#wh-book .whb-h1:focus,
#wh-book .whb-h1:focus-visible { outline: none; }

.whb-h1 {
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 9vw, 42px);
  line-height: 1.02;
  letter-spacing: .015em;
  margin: 0 0 8px;
  color: var(--wh-black);
  text-wrap: balance;
}

.whb-sub {
  margin: 0 0 22px;
  color: var(--wh-muted);
  font-size: 16px;
  max-width: 42ch;
}

.whb-legend {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--wh-green);
  margin: 26px 0 10px;
  display: block;
}
.whb-legend:first-of-type { margin-top: 0; }
.whb-legend .whb-opt {
  color: var(--wh-muted);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
  margin-left: 6px;
}

/* ---------- service tiles ---------- */

.whb-tiles { display: grid; gap: 10px; }

.whb-tile {
  color: var(--wh-text);
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--wh-tap);
  width: 100%;
  padding: 12px 16px;
  background: var(--wh-surface);
  border: 1.5px solid var(--wh-line);
  border-radius: var(--wh-radius);
  text-align: left;
  cursor: pointer;
  transition: background .14s, border-color .14s, transform .1s;
}
.whb-tile:active { transform: scale(.99); }
.whb-tile:hover { border-color: var(--wh-green); }

.whb-tile-name {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  flex: 1;
}
.whb-tile-hint {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--wh-muted);
  margin-top: 2px;
}

.whb-check {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--wh-line-2);
  display: grid;
  place-items: center;
}
.whb-check svg { width: 12px; height: 12px; opacity: 0; }

/* selected state uses FILL, not just a border — a 1px outline is invisible
   in sunlight, which is the real lighting condition for half these bookings */
.whb-tile[aria-pressed="true"] {
  background: var(--wh-mint);
  border-color: var(--wh-green);
  box-shadow: inset 0 0 0 1px var(--wh-green);
}
.whb-tile[aria-pressed="true"] .whb-check {
  background: var(--wh-green);
  border-color: var(--wh-green);
}
.whb-tile[aria-pressed="true"] .whb-check svg {
  opacity: 1;
  stroke: var(--wh-cream);
}

/* ---------- fields ---------- */

.whb-field { margin-bottom: 16px; }
.whb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.whb-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wh-green);
  margin-bottom: 6px;
}
.whb-label .whb-opt {
  color: var(--wh-muted);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: none;
}

.whb-input,
.whb-textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  background: #FFFFFF;
  border: 1.5px solid var(--wh-line);
  border-radius: 8px;
  font-size: 17px; /* 17px+ stops iOS zooming the viewport on focus */
  color: var(--wh-text);
  -webkit-appearance: none;
  appearance: none;
}
.whb-textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.whb-input::placeholder,
.whb-textarea::placeholder { color: #9AA39E; }
.whb-input:focus,
.whb-textarea:focus {
  border-color: var(--wh-green);
  box-shadow: 0 0 0 3px rgba(0, 73, 52, .14);
  outline: none;
}
.whb-input[aria-invalid="true"],
.whb-textarea[aria-invalid="true"] {
  border-color: var(--wh-danger);
  background: var(--wh-danger-bg);
}

.whb-err {
  display: none;
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--wh-danger);
  font-weight: 500;
}
.whb-err.is-on { display: block; }

.whb-help { margin: 6px 0 0; font-size: 13.5px; color: var(--wh-muted); }

/* combobox */
.whb-combo { position: relative; }
.whb-options {
  position: absolute;
  z-index: 30;
  left: 0; right: 0;
  top: calc(100% + 4px);
  background: #FFFFFF;
  border: 1.5px solid var(--wh-green);
  border-radius: 8px;
  max-height: 240px;
  overflow-y: auto;
  box-shadow: 0 12px 28px -14px rgba(0, 48, 31, .5);
  padding: 4px;
}
.whb-options[hidden] { display: none; }
.whb-option {
  color: var(--wh-text);
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  min-height: 44px;
  background: none;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}
.whb-option:hover,
.whb-option.is-focus { background: var(--wh-mint); }

/* chips (bike type) */
.whb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.whb-chip {
  color: var(--wh-text);
  padding: 10px 14px;
  min-height: 44px;
  background: var(--wh-surface);
  border: 1.5px solid var(--wh-line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.whb-chip[aria-pressed="true"] {
  background: var(--wh-green);
  border-color: var(--wh-green);
  color: var(--wh-cream);
}

/* ---------- photos ---------- */

.whb-photo-box {
  border: 1.5px dashed var(--wh-line-2);
  border-radius: var(--wh-radius);
  padding: 20px 16px;
  text-align: center;
  background: var(--wh-surface);
}
.whb-photo-box p { margin: 0 0 12px; color: var(--wh-muted); font-size: 14.5px; }
.whb-photo-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  background: #FFFFFF;
  border: 1.5px solid var(--wh-green);
  border-radius: 8px;
  color: var(--wh-green);
  font-weight: 600;
  cursor: pointer;
}
.whb-photo-add[disabled] { opacity: .5; cursor: not-allowed; }

.whb-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.whb-thumb { position: relative; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; border: 1px solid var(--wh-line); }
.whb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.whb-thumb-x {
  position: absolute; top: 3px; right: 3px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .72); color: #fff; border: 0;
  font-size: 15px; line-height: 1; cursor: pointer;
}

.whb-flagoff {
  margin-top: 12px;
  padding: 11px 14px;
  background: var(--wh-mint);
  border-left: 3px solid var(--wh-green);
  font-size: 14px;
  color: var(--wh-green-dk);
}

/* ---------- date rail + slots ---------- */

.whb-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 18px 12px;
  margin: 0 -18px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.whb-day {
  color: var(--wh-text);
  flex: none;
  width: 68px;
  min-height: 84px;
  padding: 9px 4px;
  border: 1.5px solid var(--wh-line);
  border-radius: var(--wh-radius);
  background: var(--wh-surface);
  cursor: pointer;
  scroll-snap-align: start;
  text-align: center;
  line-height: 1.15;
}
.whb-day-dow {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--wh-muted);
}
.whb-day-num {
  display: block;
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: 26px;
  letter-spacing: .02em;
  margin-top: 2px;
}
.whb-day-tag {
  display: block;
  font-size: 9.5px;
  line-height: 1.15;
  letter-spacing: .04em;
  color: var(--wh-muted);
  margin-top: 2px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.whb-day[aria-pressed="true"] {
  background: var(--wh-green);
  border-color: var(--wh-green);
  color: var(--wh-cream);
}
.whb-day[aria-pressed="true"] .whb-day-dow,
.whb-day[aria-pressed="true"] .whb-day-tag { color: var(--wh-teal); }
.whb-day[disabled] { opacity: .42; cursor: default; background: transparent; }

.whb-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
  margin-top: 4px;
}
.whb-slot {
  color: var(--wh-text);
  min-height: 50px;
  border: 1.5px solid var(--wh-line);
  border-radius: 8px;
  background: var(--wh-surface);
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.whb-slot[aria-pressed="true"] {
  background: var(--wh-green);
  border-color: var(--wh-green);
  color: var(--wh-cream);
}
.whb-slot[disabled] {
  opacity: .34;
  cursor: default;
  text-decoration: line-through;
  background: transparent;
}
.whb-slot.is-gone {
  border-color: var(--wh-danger);
  color: var(--wh-danger);
  opacity: .6;
}

.whb-skel { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px; }
.whb-skel i {
  display: block; height: 50px; border-radius: 8px;
  background: linear-gradient(90deg, #E6E4D6 25%, #EFEDE1 37%, #E6E4D6 63%);
  background-size: 400% 100%;
  animation: whb-shim 1.3s linear infinite;
}
@keyframes whb-shim { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.whb-tz {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--wh-muted);
}

/* ---------- review ---------- */

.whb-summary {
  background: var(--wh-surface);
  border: 1.5px solid var(--wh-line);
  border-radius: var(--wh-radius);
  overflow: hidden;
}
.whb-sumrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-top: 1px solid var(--wh-line);
}
.whb-sumrow:first-child { border-top: 0; }
.whb-sumrow dt {
  flex: none;
  width: 88px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--wh-muted);
  padding-top: 4px;
}
.whb-sumrow dd {
  margin: 0; flex: 1; font-size: 16.5px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 12px;
}
.whb-sum-val { flex: 1; }
.whb-sumrow dd small { display: block; font-weight: 400; font-size: 14.5px; color: var(--wh-muted); margin-top: 2px; }

/* Visually hidden, still announced — lets each Edit say what it edits. */
.whb-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.whb-edit {
  background: none; border: 0; padding: 4px 2px;
  color: var(--wh-green); font-size: 14px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
  min-height: 32px;
}

.whb-notice {
  margin: 18px 0 0;
  padding: 15px 17px;
  background: var(--wh-mint);
  border-left: 3px solid var(--wh-green);
  font-size: 15px;
  line-height: 1.5;
  color: var(--wh-green-dk);
}

.whb-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 6px;
  padding: 13px 14px;
  background: var(--wh-surface);
  border: 1.5px solid var(--wh-line);
  border-radius: 8px;
  cursor: pointer;
}
.whb-consent input {
  width: 24px; height: 24px; flex: none; margin-top: 1px;
  accent-color: var(--wh-green);
}
.whb-consent span { font-size: 15px; line-height: 1.4; }
.whb-consent small { display: block; color: var(--wh-muted); font-size: 13px; margin-top: 3px; }

/* ---------- sticky CTA ---------- */

.whb-foot {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 25;
  background: linear-gradient(to top, var(--wh-bg) 68%, rgba(240, 239, 225, 0));
  padding: 20px 18px calc(16px + env(safe-area-inset-bottom));
}
.whb-foot-in { max-width: 560px; margin: 0 auto; }

.whb-cta {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: var(--wh-radius);
  background: var(--wh-cta-bg);
  color: var(--wh-cta-ink);
  font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: 22px;
  letter-spacing: .1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px -10px rgba(255, 107, 0, .8);
}
.whb-cta[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.whb-cta.is-busy { pointer-events: none; }

.whb-spin {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(0, 0, 0, .25);
  border-top-color: #000;
  animation: whb-spin .7s linear infinite;
}
@keyframes whb-spin { to { transform: rotate(360deg); } }


/* ---------- error panel ---------- */

.whb-error {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--wh-danger-bg);
  border: 1.5px solid #E4B7A5;
  border-left: 4px solid var(--wh-danger);
  border-radius: 8px;
}
.whb-error[hidden] { display: none; }
.whb-error h3 {
  margin: 0 0 6px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--wh-danger);
}
.whb-error p { margin: 0 0 12px; font-size: 15px; }
.whb-error-acts { display: flex; flex-wrap: wrap; gap: 9px; }
.whb-mini {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1.5px solid var(--wh-green);
  background: #FFFFFF;
  color: var(--wh-green);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.whb-mini.is-solid { background: var(--wh-green); color: var(--wh-cream); }

.whb-alts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- empty state ---------- */

.whb-empty {
  padding: 26px 20px;
  text-align: center;
  background: var(--wh-surface);
  border: 1.5px dashed var(--wh-line-2);
  border-radius: var(--wh-radius);
}
.whb-empty p { margin: 0 0 14px; color: var(--wh-muted); }

/* ---------- confirmation ---------- */

.whb-done-mark {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--wh-green);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.whb-done-mark svg { width: 28px; height: 28px; stroke: var(--wh-teal); }

.whb-code {
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--wh-muted);
  margin: 0 0 24px;
  user-select: all;
}
.whb-code b { color: var(--wh-text); font-weight: 600; }

.whb-card {
  background: var(--wh-green);
  color: var(--wh-cream);
  border-radius: var(--wh-radius);
  padding: 22px;
  margin-bottom: 18px;
}
.whb-card .whb-when {
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: .02em;
  margin: 0 0 2px;
}
.whb-card .whb-when em { font-style: normal; color: var(--wh-teal); }
.whb-card dl { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid rgba(0, 211, 255, .35); display: grid; gap: 12px; }
.whb-card dt {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--wh-teal); margin-bottom: 2px;
}
.whb-card dd { margin: 0; font-size: 16px; }

.whb-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 26px; }
.whb-acts .whb-mini { justify-content: center; }
.whb-acts .whb-mini:first-child { grid-column: 1 / -1; }

.whb-steps { counter-reset: whb; list-style: none; margin: 0 0 24px; padding: 0; }
.whb-steps li {
  counter-increment: whb;
  display: flex; gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--wh-line);
  font-size: 15.5px;
}
.whb-steps li::before {
  content: counter(whb);
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--wh-green);
  color: var(--wh-cream);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
  margin-top: 1px;
}

.whb-visit {
  background: var(--wh-surface);
  border: 1.5px solid var(--wh-line);
  border-radius: var(--wh-radius);
  padding: 18px;
  font-size: 15.5px;
  line-height: 1.55;
}
.whb-visit strong { display: block; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--wh-green); margin-bottom: 6px; }
.whb-visit a { color: var(--wh-green); }



.whb-devbar {
  background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 10px, #262626 10px, #262626 20px);
  color: #FFD9B8;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 14px;
  font-weight: 600;
}

/* Variants must follow .whb-devbar — equal specificity, later wins. */
.whb-devbar-live {
  background: #00301F;
  background-image: none;
  color: #00D3FF;
}
.whb-devbar-stop {
  background: #7A1F06;
  background-image: none;
  color: #FFE2D6;
}

/* ---------- desktop ---------- */

@media (min-width: 720px) {
  #wh-book { font-size: 17px; }
  .whb-main { padding-top: 40px; }
  .whb-row { gap: 14px; }
}

@media (max-width: 359px) {
  .whb-row { grid-template-columns: 1fr; }
  .whb-acts { grid-template-columns: 1fr; }
}
