/* Booking page styles. Mobile first: everything below is written for a 390 px
   phone and only widens at 640 px. No framework, no build step. */

:root {
  --brand: #d81f26;
  --ink: #17171a;
  --muted: #5b5b66;
  --line: #e3e3e8;
  --bg: #f7f7f9;
  --card: #ffffff;
  --ok: #0a7d3f;
  --warn: #9a3412;
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 14px; z-index: 10;
}
.skip:focus { left: 8px; top: 8px; }

.topbar { background: var(--brand); color: #fff; padding: 12px 0; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar .venue { font-weight: 700; }
.topbar .phone { color: #fff; text-decoration: none; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.6); }

h1 { font-size: 22px; line-height: 1.25; margin: 20px 0 6px; }
h2 { font-size: 19px; margin: 20px 0 6px; }
h3.sub { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.lede { color: var(--muted); }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; min-height: 1.2em; }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.error { color: var(--warn); font-weight: 600; }
/* A deep link naming a session type that is not sold online lands here. */
.notice { color: var(--ink); font-weight: 600; }

.step { padding-bottom: 24px; }
.stepHead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.chosen { font-weight: 600; }

/* Session type cards */
.cards { display: grid; gap: 12px; }
.card {
  width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; cursor: pointer; font: inherit; color: inherit;
  display: grid; gap: 4px;
}
.card:hover { border-color: var(--brand); }
.card:focus-visible, .slot:focus-visible, .day:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.card .title { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card .price { font-weight: 700; color: var(--brand); }
.card .meta { color: var(--muted); font-size: 14px; }
.badge {
  background: var(--brand); color: #fff; border-radius: 999px; padding: 2px 9px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.badge.quiet { background: #ecebf0; color: var(--muted); }

/* Day strip: scrolls sideways inside itself, never the page */
.days {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.day {
  flex: 0 0 auto; scroll-snap-align: start; min-width: 62px; padding: 8px 6px;
  border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  font: inherit; color: inherit; cursor: pointer; text-align: center; line-height: 1.2;
}
.day .dow { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.day .dnum { display: block; font-size: 18px; font-weight: 700; }
.day .dmon { display: block; font-size: 12px; color: var(--muted); }
.day[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.day[aria-pressed="true"] .dow, .day[aria-pressed="true"] .dmon { color: rgba(255,255,255,.85); }
.day[disabled] { opacity: .4; cursor: not-allowed; }

/* Slot grid */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot {
  padding: 10px 6px; border: 1px solid var(--line); background: var(--card); border-radius: 10px;
  font: inherit; color: inherit; cursor: pointer; text-align: center; line-height: 1.25;
}
.slot .time { display: block; font-weight: 700; }
.slot .left { display: block; font-size: 13px; color: var(--ok); }
/* The slot's own price, shown only when it differs from the headline one
   (TrackStack Phase 5e). It is the final all-in number the checkout charges,
   so it reads as a price rather than as a note. */
.slot .cost { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.slot[aria-pressed="true"] .cost { color: #fff; }
.slot[disabled] .cost { color: var(--muted); }
.slot .left.low { color: var(--warn); }
.slot[disabled] { opacity: .45; cursor: not-allowed; }
.slot[disabled] .left { color: var(--muted); }
.slot[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.slot[aria-pressed="true"] .left { color: rgba(255,255,255,.9); }

/* Form */
.field { margin: 16px 0; }
.field .label, label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; padding: 12px; font: inherit; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }

/* Marketing consent: a real checkbox with a big tap target, unticked, sitting
   quietly under the contact details rather than dressed up as an offer. */
.field.consent { margin-top: 20px; }
.field .check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; margin: 0; cursor: pointer; }
.field .check input[type="checkbox"] { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.field .check span { font-size: 15px; line-height: 1.45; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 48px; height: 48px; font-size: 24px; line-height: 1; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.stepper output { font-size: 22px; font-weight: 700; min-width: 2ch; text-align: center; }

.total { font-size: 18px; font-weight: 700; margin: 18px 0 10px; }

.primary {
  display: block; width: 100%; padding: 15px 18px; font: inherit; font-weight: 700;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
  text-align: center; text-decoration: none;
}
.primary[disabled] { opacity: .5; cursor: not-allowed; }
.link {
  background: none; border: 0; padding: 0; font: inherit; color: var(--brand);
  text-decoration: underline; cursor: pointer;
}

.countdown { font-size: 28px; font-weight: 700; }
.countdown span { font-variant-numeric: tabular-nums; }

.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }

.foot { padding: 18px 16px 40px; color: var(--muted); font-size: 14px; }

@media (min-width: 640px) {
  h1 { font-size: 26px; }
  .cards { grid-template-columns: 1fr 1fr; }
}

/* Book with mates: the seat lists on the share page and the organiser's page. */
.seatList { list-style: none; margin: 10px 0 16px; padding: 0; }
.seatList li {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); margin-bottom: 8px;
}
.seatList strong { color: var(--muted); font-weight: 600; font-size: 14px; }
#shareLink { width: 100%; font-size: 14px; }
