/* Page-level styles for the public booking journey.
 *
 * Colour, type and shape come from /ui/theme.css; the component kit from /ui/components.css; the
 * wizard vocabulary (plate, stepper, cards, basket, offer rows) from /ui/workbench.css. This file
 * only sets the page frame — there is no app shell here, because the page sits inside a client's
 * own website — and the few pieces the public journey has that the internal screens do not.
 */
* { box-sizing: border-box; }
html { font-variant-numeric: tabular-nums; }
body { margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
main.book-page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 4rem; }
@media (max-width: 820px) { main.book-page { padding: 1rem .9rem 3rem; } }

/* The card the server's refusal lands in. */
.cg-alert[hidden] { display: none !important; }
.book-msg { margin: 0 0 1rem; }

/* Chips that are buttons, not labels: a chosen day or time. */
.chips button.chk { font: inherit; }
button.chk[aria-pressed="true"], .chips .chk.on { border-color: var(--accent); box-shadow: inset 2px 0 0 var(--accent); font-weight: 600; }

/* The problem box on the repair step. */
textarea.issue { width: 100%; font: inherit; font-size: 15px; padding: .7rem .8rem; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--text); resize: vertical; }

/* Contact fields on the last step, laid out as a form rather than a filter bar. */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin: .4rem 0 1rem; }
.contact label { display: flex; flex-direction: column; gap: .3rem; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact input { font-family: var(--sans); font-size: 15px; letter-spacing: 0; text-transform: none; padding: .55rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); color: var(--text); }
.contact input:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } }

/* A card is dimmed, not hidden, while the server is answering. */
.busy { opacity: .55; pointer-events: none; }

/* Booked. (Not `.done` — the stepper uses that class for a completed step.) */
.booked { border: 1px solid var(--ok); border-left: 4px solid var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--card)); padding: 1.1rem 1.2rem; }
.booked .ref { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: .06em; margin: .25rem 0 .5rem; color: var(--text); }
.booked p { margin: .3rem 0; }

/* Who the customer is contracting with. Quiet, but present on every screen — it is a legal
   requirement for a trader selling online, not a design flourish. */
footer.legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; line-height: 1.6; }

/* Chosen-step buttons in the stepper are real buttons; the rest are not clickable. */
.stepper .stepitem[aria-current="step"] { cursor: default; }
.vehfacts .quote-sub { margin-top: .15rem; }
.offrow .locprice { font-size: 15px; }
/* A grade pill with nothing to say keeps its grid column and loses its outline. */
.offrow .grade:empty { border: 0; padding: 0; }
.offrow small .offtechbody ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ---- the opening choice --------------------------------------------------------------------
 * Two ways into the journey: the registration, or who you are. Deliberately equal weight — the
 * details-first route exists for people the registration-first one turns away, so presenting it
 * as the lesser option would defeat it. */
.flowpick { display: grid; gap: .7rem; margin-top: 1rem; }
@media (min-width: 40rem) { .flowpick { grid-template-columns: 1fr 1fr; } }
.flowopt { display: block; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card);
  padding: 1rem 1.1rem; color: var(--text); }
.flowopt:hover { border-color: var(--accent); background: rgba(53, 87, 199, .05); }
.flowopt b { display: block; font-size: 15px; margin-bottom: .25rem; }
.flowopt small { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* "My address isn't listed" is a choice, not navigation, so it is a button wearing a link. */
.linklike { font: inherit; font-size: inherit; color: var(--accent); background: none; border: 0;
  padding: 0; cursor: pointer; text-decoration: underline; }
