/* The booking page in short steps (2026-10-19) — made for older guests: Atkinson Hyperlegible
   (designed for low vision) at 18px, dark text, big tiles and buttons that look pressable, one
   job per step. Built on the site's own colour tokens (style.css + branding), so it follows each
   site's colours and light/dark mode. Scoped to .bk (the booking page's .wrap). */
[hidden] { display: none !important; }

.bk {
  --bk-font: 'Atkinson Hyperlegible', Verdana, system-ui, sans-serif;
  --bk-ok: var(--pine-light);
  font-family: var(--bk-font);
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  max-width: 640px;
}
.bk .card { padding: 1.4rem 1.25rem 1.5rem; }
.bk h2 { font-size: 1.6rem; line-height: 1.2; margin: 0 0 0.9rem; text-wrap: balance; }
.bk h3 { font-size: 1.2rem; margin: 1.1rem 0 0.5rem; }
.bk small { font-size: 0.9em; }
.bk input, .bk select, .bk textarea, .bk button { font-family: var(--bk-font); }
.layout-website .bk input, .layout-website .bk select, .layout-website .bk textarea,
.layout-website .bk .btn { font-family: var(--bk-font); }

/* Questions and help */
.bk .bk-q { display: block; font-weight: 700; font-size: 1.05rem; margin: 1.15rem 0 0.45rem; color: var(--ink); }
.bk .bk-q small { font-weight: 400; color: var(--muted); }
.bk .bk-help { display: block; color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 0; }
.bk .bk-good { color: var(--bk-ok); }
.bk .bk-field {
  display: block; width: 100%; box-sizing: border-box; font-size: 1.1rem; padding: 0.75rem 0.85rem;
  border: 2px solid var(--muted); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.bk .bk-field:focus { outline: 3px solid var(--amber); outline-offset: 1px; border-color: var(--pine); }
.bk .bk-short { max-width: 14rem; }
.bk .bk-row { display: flex; gap: 0.6rem; align-items: stretch; flex-wrap: wrap; }
.bk .bk-row .bk-field { flex: 1 1 10rem; }
.bk .bk-names { display: grid; gap: 0.45rem; }

/* Buttons: normal case, big, easy to hit */
.bk button.btn, .bk a.btn, .layout-website .bk button.btn, .layout-website .bk a.btn {
  font-family: var(--bk-font); font-size: 1.12rem; font-weight: 700; letter-spacing: 0; text-transform: none;
  padding: 0.9rem 1.5rem; border-radius: 14px; min-height: 3.2rem;
}
.layout-website .bk button.btn.secondary, .layout-website .bk a.btn.secondary,
.bk button.btn.secondary { background: var(--surface); border: 2px solid var(--ink); color: var(--ink); }
.bk .step-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 0.7rem; margin-top: 1.6rem; }
.bk .step-nav > span:empty { display: block; }
.bk .step-nav .btn { width: 100%; }
.bk .btn.bk-pay { width: 100%; margin-top: 1rem; font-size: 1.25rem; }
.bk .bk-link { background: none; border: 0; padding: 0.25rem 0; color: var(--ink); text-decoration: underline; font-size: 0.95rem; cursor: pointer; }
.bk .bk-photos { display: inline-block; margin: -0.2rem 0 0.3rem 0.2rem; }

/* Tiles: radio buttons you can see */
.bk .bk-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
.bk .bk-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk .bk-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bk .bk-tile {
  border: 2px solid var(--muted); border-radius: 14px; background: var(--surface); color: var(--ink);
  padding: 0.85rem 0.5rem; font-size: 1.05rem; font-weight: 700; cursor: pointer; text-align: center; min-height: 3.3rem;
}
.bk .bk-tile:hover { border-color: var(--ink); }
.bk .bk-tile[aria-checked="true"] { border: 3px solid var(--pine); background: var(--tint-good); }
.bk .bk-tile[aria-checked="true"]::before { content: "✓ "; }
.bk .bk-tile:focus-visible, .bk .bk-choice:focus-visible, .bk .bk-step-btn:focus-visible, .bk .bf-face:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

/* Progress */
.bk .bk-progress { display: grid; gap: 0.35rem; margin: 0 0 0.9rem; }
.bk .bk-progress span { font-weight: 700; color: var(--pine); font-size: 1rem; }
.bk .bk-bar { height: 9px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bk .bk-bar i { display: block; height: 100%; background: var(--pine); transition: width 0.3s; }

/* The short lines at the top */
.bk .bk-signin, .bk .bk-club, .bk .bk-note {
  border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0 0 0.75rem; font-size: 1rem; background: var(--surface); border: 1px solid var(--line);
}
.bk .bk-signin { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.bk .bk-club { background: var(--tint-good); border-color: transparent; }
.bk .bk-note { background: var(--tint-warn); border-color: transparent; }
.bk .bk-club p, .bk .bk-note p { margin: 0; }
.bk a { color: inherit; }

/* The calendar: the same pop-up as before, with bigger numbers */
.bk .drp-trigger { font-family: var(--bk-font); font-size: 1.1rem; min-height: 3.2rem; border-width: 2px; border-radius: 12px; }
.bk .drp-day { font-family: var(--bk-font); font-size: 1.05rem; }
.bk .drp-weekdays span { font-family: var(--bk-font); font-size: 0.85rem; color: var(--ink); }
.bk .drp-month-label { font-family: var(--bk-font); font-size: 1.1rem; font-weight: 700; }
.bk .drp-nav button { width: 40px; height: 40px; font-size: 1.3rem; color: var(--ink); }
.bk .drp-hint { font-size: 0.95rem; color: var(--ink); }
.bk .drp-nights-badge { font-family: var(--bk-font); font-size: 0.9rem; }

/* Four parts across the top */
.bk .bk-steps { display: flex; gap: 0.3rem; }
.bk .bk-steps span { flex: 1; text-align: center; border-top: 6px solid var(--line); padding-top: 0.3rem; font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.bk .bk-steps span.done { border-color: var(--pine); }
.bk .bk-steps span.on { border-color: var(--pine); color: var(--pine); }
.bk-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Yes / No questions on one line */
.bk .bk-yesno { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.bk .bk-yesno-q { font-weight: 700; font-size: 1.05rem; }
.bk .bk-yesno-btns { display: flex; gap: 0.5rem; }
.bk .bk-yesno .bk-tile { min-width: 5.2rem; min-height: 2.9rem; padding: 0.5rem 0.8rem; }

/* The price so far, kept in view on the details screens */
.bk-pricebar { position: sticky; bottom: 0; z-index: 30; display: flex; justify-content: space-between; align-items: center;
  max-width: 640px; margin: 0 auto; box-sizing: border-box; padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--pine); color: var(--surface); font-family: 'Atkinson Hyperlegible', Verdana, system-ui, sans-serif; font-size: 1.05rem; border-radius: 14px 14px 0 0; }
.bk-pricebar b { font-size: 1.3rem; }

/* Step 3: today's map and pitch buttons, slightly bigger */
.bk .pitch-chip { font-size: 1.08rem; min-height: 3rem; }
.bk .pitch-chip .pc-meta { font-size: 0.95rem; }
.bk .bk-map-hint { display: none; }
@media (max-width: 640px) { .bk .bk-map-hint { display: block; } .bk #pitch-map-image { cursor: zoom-in; } }

/* Choices: pitch types and pitches */
.bk .bk-list { display: grid; gap: 0.55rem; }
.bk .bk-choice {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; width: 100%; box-sizing: border-box;
  text-align: left; border: 2px solid var(--muted); border-radius: 14px; background: var(--surface); color: var(--ink);
  padding: 0.75rem 0.9rem; cursor: pointer; font-size: 1.05rem;
}
.bk .bk-choice:hover { border-color: var(--ink); }
.bk .bk-choice.on { border: 3px solid var(--pine); background: var(--tint-good); }
.bk .bk-choice.gone { border-style: dashed; color: var(--muted); cursor: default; opacity: 0.8; }
.bk .bk-choice-main { display: grid; gap: 0.1rem; min-width: 0; }
.bk .bk-choice-main b { font-size: 1.12rem; }
.bk .bk-choice-main small { color: var(--muted); }
.bk .bk-choice.on .bk-choice-main small { color: var(--ink); }
.bk .bk-thumb { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; cursor: zoom-in; }
.bk .bk-cat { justify-content: flex-start; }
.bk .bk-cat .bk-choice-price { margin-left: auto; }
.bk .bk-choice.gone .bk-thumb { filter: grayscale(1); opacity: 0.6; }
.bk .bk-choice-price { font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.bk .bk-pill { font-size: 0.85rem; font-weight: 700; border-radius: 999px; padding: 0.2rem 0.7rem; background: var(--tint-good); color: var(--ink); white-space: nowrap; }
.bk .bk-pill.on { background: var(--pine); color: var(--surface); }
.bk .gone .bk-pill { background: var(--line); color: var(--muted); }

.bk details summary { cursor: pointer; text-decoration: underline; font-size: 1rem; padding: 0.3rem 0; }

/* − 2 + steppers */
.bk .bk-stepper { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; border: 2px solid var(--line); border-radius: 14px; padding: 0.55rem 0.7rem; margin: 0 0 0.6rem; background: var(--surface); }
.bk .bk-stepper-label { display: grid; }
.bk .bk-stepper-label b { font-size: 1.12rem; }
.bk .bk-stepper-label small { color: var(--muted); }
.bk .bk-stepper-ctrl { display: flex; align-items: center; gap: 0.8rem; }
.bk .bk-stepper-ctrl output { min-width: 1.6rem; text-align: center; font-size: 1.4rem; font-weight: 700; }
.bk .bk-step-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--pine); background: var(--surface); color: var(--pine); font-size: 1.6rem; font-weight: 700; line-height: 1; cursor: pointer; }
.bk .bk-qty { margin: -0.2rem 0 0.6rem 2.6rem; }

/* Tick boxes */
.bk .bk-tick { display: flex; gap: 0.75rem; align-items: flex-start; border: 2px solid var(--muted); border-radius: 14px; padding: 0.75rem 0.85rem; margin: 0 0 0.6rem; cursor: pointer; background: var(--surface); font-weight: 400; }
.bk .bk-tick.on { border: 3px solid var(--pine); background: var(--tint-good); }
.bk .bk-tick input { width: 26px; height: 26px; flex: none; margin: 0.05rem 0 0; accent-color: var(--pine); }
.bk .bk-tick > span { display: grid; gap: 0.15rem; }
.bk label, .bk .bk-tick { color: var(--ink); font-size: inherit; }
.bk .bk-tick b { font-size: 1.05rem; color: var(--ink); }
.bk .bk-tick small { color: var(--muted); }
.bk .bk-tick-small { font-size: 1rem; border: 0; padding: 0.4rem 0; background: none; margin: 0.3rem 0 0; }
.bk .bk-tick-small.on { border: 0; background: none; }

/* Price so far, review, pay */
.bk .bk-sofar { display: flex; justify-content: space-between; align-items: baseline; background: var(--surface-alt); border-radius: 12px; padding: 0.7rem 0.9rem; margin-top: 0.8rem; }
.bk .bk-sofar b { font-size: 1.3rem; }
.bk .bk-review { border: 2px solid var(--pine); border-radius: 14px; overflow: hidden; margin-bottom: 0.9rem; }
.bk .bk-review .row { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.65rem 0.85rem; border-top: 1px solid var(--line); }
.bk .bk-review .row:first-child { border-top: 0; }
.bk .bk-review .row small { color: var(--muted); }
.bk .bk-review a { font-size: 0.95rem; white-space: nowrap; }
.bk .price-summary { border: 0; margin: 0; padding: 0; }
.bk .bk-total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 700; padding: 0.4rem 0.2rem; }
.bk .bk-paytoday { display: grid; gap: 0.25rem; background: var(--surface-alt); border-radius: 14px; padding: 0.85rem 1rem; margin: 0.4rem 0 0.9rem; }
.bk .bk-paytoday > div { display: flex; justify-content: space-between; gap: 0.6rem; }
.bk .bk-paytoday .now { font-size: 1.25rem; font-weight: 700; }
.bk .bk-breakdown { margin: 0 0 0.8rem; }
.bk .bk-breakdown .row { display: flex; justify-content: space-between; font-size: 0.98rem; padding: 0.2rem 0; font-family: var(--bk-font); }
.bk .club-offer-pay { background: var(--tint-good); border: 2px solid var(--pine); border-radius: 12px; padding: 0.75rem 0.9rem; margin: 0 0 0.9rem; font-size: 1rem; }
.bk .club-offer-pay p { margin: 0; }
.bk .bk-terms, .bk .bk-discount { margin: 0.6rem 0; font-size: 1rem; }
.bk .bk-terms p { margin: 0.4rem 0; }
.bk #payment-element { margin-top: 1rem; }
.bk .privacy-line { font-size: 0.9rem; color: var(--muted); }

/* After paying */
.bk .bk-done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); color: var(--surface); display: grid; place-items: center; font-size: 2rem; font-weight: 700; margin-bottom: 0.6rem; }
.bk .bk-friends, .bk .bk-after { border: 2px solid var(--line); border-radius: 14px; padding: 0.9rem; margin-top: 1rem; }
.bk .bk-friends h3, .bk .bk-after h3 { margin-top: 0; }
.bk .bk-applink .btn { display: inline-flex; margin-top: 0.4rem; text-decoration: none; }
.bk .bk-applink-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.bk .bk-applink-row p { flex: 1; min-width: 12rem; margin: 0; }
.bk .bk-applink-qr { width: 148px; height: 148px; flex: none; background: #fff; border-radius: 8px; padding: 6px; }
.bk .bk-applink-qr svg { width: 100%; height: 100%; display: block; }
.bk .bk-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; margin: 0.5rem 0 0.75rem; }
.bk .bf-face { border: 2px solid var(--muted); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: 1.6rem; padding: 0.4rem 0; cursor: pointer; }
.bk .bf-face span { display: block; font-size: 0.78rem; font-weight: 700; }
.bk .bf-face[aria-checked="true"] { border: 3px solid var(--pine); background: var(--tint-good); }
.bk #bf-send, .bk #after-send { margin-top: 0.7rem; }

@media (max-width: 480px) {
  .bk { font-size: 17px; }
  .bk h2 { font-size: 1.45rem; }
  .bk .bk-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.4rem; }
  .bk .bk-tiles-5 .bk-tile { padding: 0.8rem 0; font-size: 1rem; }
  .bk .bk-tiles-5 .bk-tile[aria-checked="true"]::before { content: ""; }
  .bk .bk-faces span { font-size: 0.7rem; }
}

/* Members' box above Pay (2026-10-22): what they'd save, a short list of perks, and Join. */
.bk .club-offer-pay .club-pay-head { font-size: 1.15rem; margin: 0 0 0.35rem; }
.bk .club-offer-pay p + p { margin-top: 0.4rem; }
.bk .club-offer-pay .club-pay-perks { margin: 0.45rem 0 0.8rem; padding-left: 1.3rem; font-size: 1.05rem; line-height: 1.5; }
.bk .club-offer-pay .club-pay-perks li::marker { color: var(--pine); }
.bk .club-offer-pay #club-join-btn { width: 100%; font-size: 1.1rem; padding: 0.95rem; margin: 0.2rem 0 0.4rem; }
.bk .club-offer-pay .bk-help { font-size: 0.92rem; }

/* "Tell me if a pitch comes free" (booking-waitlist.js): one short box when the dates are full. */
.bk .bk-wait { border: 2px solid var(--pine); border-radius: 14px; padding: 1rem; margin: 0.9rem 0; background: var(--surface); }
.bk .bk-wait p { margin: 0 0 0.5rem; }
.bk .bk-wait .bk-wait-head { font-weight: 700; font-size: 1.1rem; }
.bk .bk-wait-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bk .bk-wait-row .bk-field { flex: 1 1 14rem; margin: 0; }
.bk .bk-wait-row .btn { flex: 0 0 auto; width: auto; margin: 0; }

/* "Camp next to your friends" (booking-friends.js): the banner from a friend's link, their
   pitch and the free ones beside it at the pitch step, and the share box after booking. */
.bk .bk-friends { border-radius: 12px; padding: 0.7rem 0.9rem; margin: 0 0 0.75rem; font-size: 1rem; background: var(--tint-good); border: 2px solid var(--pine); }
.bk .bk-friends p { margin: 0; }
.bk .pitch-section-friends { border: 2px solid var(--pine); border-radius: 14px; padding: 0.7rem; background: var(--tint-good); }
.bk .pitch-chip-friends { border: 2px solid var(--pine); }
.pitch-map-marker.near-friends .pitch-map-marker-dot { width: 15px; height: 15px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pine) 45%, transparent), 0 1px 3px rgba(0,0,0,0.5); }
.pitch-map-friend {
  position: absolute; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.6); pointer-events: none;
}
.pitch-map-friend-label {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px;
  background: #16241D; color: #fff; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: 4px; white-space: nowrap;
}
.bk .bk-friends-share { border: 3px solid var(--pine); border-radius: 14px; padding: 1rem; margin: 1rem 0; background: var(--tint-good); }
.bk .bk-friends-share h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.bk .bk-friends-share p { margin: 0 0 0.6rem; }
.bk .bk-friends-share .bk-field { width: 100%; margin: 0 0 0.6rem; font-size: 0.95rem; }
.bk .bk-friends-share .btn { width: 100%; }
/* Step 2: "Coming with friends? Send them these dates" (booking-friends.js). */
.bk .bk-friends-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 1.2rem 0 0.4rem; padding: 0.9rem 1rem; border: 2px dashed var(--pine); border-radius: 12px; }
.bk .bk-friends-dates p { margin: 0; flex: 1 1 16rem; }
.bk .bk-friends-dates #fs-dates-msg { flex-basis: 100%; overflow-wrap: anywhere; }
.bk .bk-friends-dates #fs-dates-msg:empty { display: none; }
