.book { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 90px; }
.book-head { margin-bottom: 34px; }
.book-head h1 { font-size: clamp(34px, 5.4vw, 64px); line-height: .96; margin-bottom: 14px; }
.book-head .hl { color: var(--text); display: block; }
.book-head .sub { margin-bottom: 28px; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 9px; padding: 9px 16px 9px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.steps li span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--panel); font-size: 12px; }
.steps li.on { border-color: var(--violet); color: #fff; }
.steps li.on span { background: var(--purple); }
.steps li.done span { background: var(--purple-deep); color: #cbb8ef; }

.book-grid { display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: start; }
.book-form { background: var(--ink-2); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); min-height: 420px; }
.step-h { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
.hint { color: var(--muted); margin-bottom: 24px; }
.err { color: #ff9a9a; font-weight: 600; font-size: 14px; min-height: 1.4em; margin: 14px 0 0; }
.err:empty { margin: 0; min-height: 0; }
.small { color: var(--muted); font-size: 13px; }
.opt { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.muted { color: var(--muted); }

/* inputs */
.book-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.book-form input:not([type=checkbox]):not([type=radio]), .book-form textarea {
  display: block; width: 100%; margin-top: 7px; background: var(--ink); border: 1.5px solid var(--line-2); color: #fff;
  font: 400 16px/1.4 var(--body); padding: 13px 14px; border-radius: 0; transition: border-color .2s;
}
.book-form input:focus, .book-form textarea:focus { outline: none; border-color: var(--violet); }
.book-form textarea { resize: vertical; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.book-form .plate { margin-top: 0; }
.plate-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
/* beats the general input rule above so the reg box stays a number plate */
.book-form input.plate-xl:not([type=checkbox]):not([type=radio]) { width: 280px; height: 64px; font: 700 30px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-align: center; padding: 0 14px 0 40px; background-color: var(--plate); color: #111; border: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.6); background-image: linear-gradient(90deg, #1d4fb3 0 30px, transparent 30px); }
.book-form input.plate-xl:focus { outline: 3px solid var(--violet); outline-offset: 3px; }
.plate-row .btn { min-height: 64px; }
.text-btn { background: none; border: 0; color: var(--violet); font: 600 14px/1.4 var(--body); padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.manual { margin-top: 14px; }
.mileage { max-width: 480px; margin-top: 22px; }
.engine-hint { font-size: 14px; margin: 8px 0 0; }
.incl { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 2px 0 4px; }
.incl span { font-size: 13px; padding: 2px 8px; border-radius: 99px; background: rgba(154,118,224,.16); color: var(--text); }
.demo-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; flex-basis: 100%; }

/* found car */
.car-card { border: 1.5px solid var(--violet); background: rgba(89,55,140,.16); padding: 18px 20px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; animation: pop .35s ease; }
.car-main { display: flex; gap: 14px; align-items: center; flex: 1 1 260px; }
.car-main b { display: block; font-size: 18px; }
.car-main span { color: var(--muted); font-size: 14px; }
.car-tick { width: 34px; height: 34px; border-radius: 50%; background: var(--purple); position: relative; flex: none; }
.car-tick::after { content: ""; position: absolute; left: 11px; top: 9px; width: 12px; height: 7px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg); }
.car-mot { font-size: 14px; }
.car-mot.due { color: var(--warn); }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }

/* services */
.svc-group { border: 0; padding: 0; margin: 0 0 26px; }
.svc-group legend { font: 800 14px/1 var(--display); text-transform: uppercase; color: var(--violet); letter-spacing: .05em; margin-bottom: 12px; padding: 0; }
.book-form .svc { margin-bottom: 10px; font-weight: 400; cursor: pointer; }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc-box { display: grid; gap: 4px; padding: 16px 18px 16px 52px; border: 1.5px solid var(--line-2); position: relative; transition: border-color .15s, background .15s; }
.svc-box::before { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 20px; border: 1.5px solid var(--line-2); }
.svc:hover .svc-box { border-color: rgba(255,255,255,.4); }
.svc input:checked + .svc-box { border-color: var(--violet); background: rgba(89,55,140,.16); }
.svc input:checked + .svc-box::before { background: var(--purple); border-color: var(--purple); }
.svc input:checked + .svc-box::after { content: ""; position: absolute; left: 24px; top: 23px; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.svc input:focus-visible + .svc-box { outline: 2px solid var(--violet); outline-offset: 2px; }
.book-form .remind { margin: 18px 0 6px; }
.svc-top { display: flex; justify-content: space-between; gap: 14px; }
.svc-top b { font-size: 16px; }
.svc-top em { font-style: normal; margin-left: 8px; background: var(--purple); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; vertical-align: 2px; }
.svc-price { font-weight: 700; white-space: nowrap; }
.svc-price small { color: var(--muted); font-weight: 500; font-size: 12px; margin-right: 3px; }
.svc-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
.svc-time { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.problem { margin-top: 6px; }

/* calendar */
.cal { max-width: 460px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-head b { font: 800 18px/1 var(--display); text-transform: uppercase; }
.cal-head .icon-btn[disabled] { opacity: .25; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dow { text-align: center; color: var(--muted); font-size: 12px; font-weight: 600; padding-bottom: 4px; }
.day { aspect-ratio: 1; display: grid; place-items: center; font: 600 15px/1 var(--body); border: 1.5px solid transparent; background: none; color: var(--muted); }
.day.off, .day.closed { color: rgba(255,255,255,.18); }
.day.full { color: rgba(255,255,255,.3); text-decoration: line-through; }
button.day { cursor: pointer; color: #fff; border-color: var(--line-2); }
button.day:hover { border-color: #fff; }
button.day.some { border-style: dashed; border-color: var(--warn); }
button.day.sel { background: var(--purple); border: 1.5px solid var(--purple); }
.cal-key { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.cal-key span { display: flex; align-items: center; gap: 6px; }
.cal-demo { margin: 10px 0 0; padding: 8px 10px; font-size: 12.5px; line-height: 1.4; color: var(--warn); border: 1px dashed var(--warn); }
.k { width: 14px; height: 14px; border: 1.5px solid var(--line-2); display: inline-block; }
.k.some { border: 1.5px dashed var(--warn); }
.k.full { border-color: transparent; background: linear-gradient(135deg, transparent 45%, rgba(255,255,255,.35) 45% 55%, transparent 55%); }
.slots { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); animation: pop .3s ease; }
.slots-day { font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.dropoff { margin: 0; font-size: 16px; }
.dropoff b { color: #fff; }
.slot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; }
.book-form .slot { margin: 0; cursor: pointer; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; padding: 16px 18px; border: 1.5px solid var(--line-2); font-weight: 400; color: var(--muted); font-size: 14px; }
.slot b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.slot input:checked + span { border-color: var(--violet); background: rgba(89,55,140,.2); }
.slot input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.slot.is-full { cursor: not-allowed; opacity: .4; }

/* checkboxes */
.book-form .check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; margin-top: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--purple); flex: none; margin: 1px 0 0; }

/* nav */
.step-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.step-nav .btn-slant { min-width: 200px; }

/* summary */
.summary { position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line); padding: 26px 24px; }
.summary h2 { color: var(--text); font: 800 12.5px/1 var(--body); letter-spacing: .18em; padding-bottom: 12px; border-bottom: 3px solid var(--purple); }
.summary dl { margin: 0; }
.summary dt { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: 16px; }
.summary dd { margin: 4px 0 0; font-weight: 600; }
.sum-line { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14.5px; padding: 2px 0; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.sum-total b { font: 800 24px/1 var(--display); }
.sum-help { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sum-help a { color: #fff; font-weight: 700; text-decoration: none; font-size: 17px; }

/* done */
.done { text-align: left; }
.done-tick { width: 64px; height: 64px; border-radius: 50%; background: var(--purple); position: relative; margin-bottom: 22px; animation: pop .4s ease; }
.done-tick::after { content: ""; position: absolute; left: 20px; top: 18px; width: 24px; height: 13px; border-left: 4px solid #fff; border-bottom: 4px solid #fff; transform: rotate(-45deg); }
.done-lede { font-size: 18px; max-width: 32em; }
/* Job card: a printed garage card, the one light object on a dark page. */
.job-card { --paper: #f3eee4; --paper-ink: #17140f; --paper-rule: rgba(23,20,15,.16); max-width: 520px; margin: 4px 0 34px; background: var(--paper); color: var(--paper-ink); border-top: 8px solid var(--purple); border-radius: 3px; padding: 22px 26px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.jc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.jc-firm { font: 900 15px/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.jc-no { font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: #5b5448; }
.jc-no b { font: 800 22px/1 var(--display); letter-spacing: .02em; color: var(--paper-ink); margin-left: 4px; font-variant-numeric: tabular-nums lining-nums; }
.jc-type { margin: 6px 0 14px; font: 700 11.5px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--purple); padding-bottom: 14px; border-bottom: 2px solid var(--paper-ink); }
.jc-rows { margin: 0; }
.jc-rows > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--paper-rule); }
.jc-rows dt { font: 700 11.5px/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #6b6355; }
.jc-rows dd { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.jc-foot { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding-top: 12px; font-size: 12.5px; color: #6b6355; font-weight: 500; }
@media (max-width: 760px) { .job-card { padding: 18px 18px 14px; } .jc-rows > div { grid-template-columns: 76px minmax(0, 1fr); } }
.next-steps { list-style: none; margin: 0 0 34px; padding: 0; border-left: 2px solid var(--purple); }
.next-steps li { padding: 0 0 18px 22px; position: relative; color: #cfc8ba; font-size: 16px; }
.next-steps li::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-2); border: 2px solid var(--violet); }
.next-steps b { display: block; color: #fff; }
.done-ctas { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
body.is-done .summary { opacity: .6; }

.foot-slim { padding: 10px 0 30px; }
.foot-slim .foot-base { margin-top: 0; }

@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; }
  .summary { position: static; order: -1; padding: 18px 20px; }
  .summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
  .summary dt { margin: 0; padding-top: 2px; }
  .summary dd { margin: 0; }
  .sum-help { display: none; }
}
@media (max-width: 760px) {
  .book-page { padding-bottom: 0; }
  .book { padding: 32px 16px 60px; }
  .steps li { padding: 7px 10px 7px 7px; font-size: 12px; }
  .steps li:not(.on) { font-size: 0; gap: 0; padding: 7px; }
  .book-form { padding: 22px 16px; }
  .field-2 { grid-template-columns: 1fr; }
  .book-form input.plate-xl:not([type=checkbox]):not([type=radio]) { width: 100%; font-size: 26px; }
  .plate-row .btn { flex: 1 1 100%; }
  .slot-btns { grid-template-columns: 1fr; }
  .step-nav { position: sticky; bottom: 0; background: var(--ink-2); margin: 24px -16px -22px; padding: 14px 16px; }
  .step-nav .btn-slant { flex: 1; min-width: 0; }
}
.done-wa { margin: -6px 0 30px; }
.done-wa p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.done-wa p a { color: #fff; }
.btn-wa { background: #25d366; color: #062a14; }
.btn-wa:hover { background: #1ebe5a; }
/* Last step: the customer picks how the booking reaches the garage. */
.send-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.send-btns .btn-wa { clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); padding: 0 36px; }
.send-btns .btn { min-width: 200px; }
.send-btns .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 760px) {
  .step-nav { flex-wrap: wrap; }
  .send-btns { order: -1; flex: 1 1 100%; flex-direction: column; gap: 10px; }
  .send-btns .btn { min-width: 0; width: 100%; }
  .step-nav:has(.send-btns:not([hidden])) [data-back] { flex: 1 1 100%; min-height: 42px; }
}
/* Phones stack the summary above the form: on the done screen it pushed the confirmation off screen. */
@media (max-width: 760px) { body.is-done .summary { display: none; } }
