/* Booking pages: the diagnostic and the pre-purchase inspection. Loaded only where a booking form is on the page.
   Same parts as the landing pages (graphite fields, red bars, condensed caps); the form adds square inputs,
   a month calendar, time chips, a running summary and a light signature pad (dark ink, so the signature the CRM
   stores reads on its white screens). */

.bk-facts .stat-num { white-space: nowrap; }
/* The form, the error and the booked panel are switched with the hidden attribute; class rules that set display
   (the form is a grid) would otherwise override it and leave the form on screen after booking. */
.bk [hidden] { display: none !important; }

.bk { padding: clamp(48px, 6vw, 96px) var(--edge-r) clamp(64px, 8vw, 128px) var(--edge-l); }
.bk-form { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); column-gap: clamp(32px, 4.5vw, 80px); align-items: start; }
.bk-step { grid-column: 1; min-width: 0; margin: 0; padding: 0 0 clamp(56px, 6vw, 88px); border: 0; scroll-margin-top: 24px; }
.bk-step > * { margin-block: 0; }
.bk-head { float: left; width: 100%; display: flex; align-items: baseline; gap: 18px; margin: 0 0 22px; padding: 0; }
.bk-head + * { clear: both; }
.bk-num { font: 800 clamp(2.5rem, 1.7rem + 2vw, 3.75rem)/.82 var(--display); color: var(--red); font-variant-numeric: tabular-nums; transition: color .3s var(--ease-out); }
.bk-title { font: 800 clamp(1.75rem, 1.25rem + 1.5vw, 2.75rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.bk-step.is-done .bk-num { color: var(--ink); }
.bk-step.is-done .bk-title::after { content: ""; display: inline-block; width: .5em; height: .26em; margin: 0 0 .2em .45em; border: solid var(--red-on-dark, #FF5A4E); border-width: 0 0 .12em .12em; transform: rotate(-45deg); }
.bk-lede { color: var(--soft); max-width: 60ch; }

/* Fields */
.bk-field { display: grid; gap: 8px; margin-top: 20px; min-width: 0; }
.bk-field:first-of-type { margin-top: 0; }
.bk-field label { font: 600 16px/1.25 var(--text); color: var(--ink); }
.bk-req, .bk-opt { margin-left: 8px; color: var(--soft); font: 400 14px/1 var(--text); }
.bk input, .bk select, .bk textarea {
	width: 100%; box-sizing: border-box; min-height: 56px; margin: 0; padding: 14px 16px; border: 1px solid rgba(244, 244, 242, .2); border-radius: 0;
	background: #0A0B0D; color: var(--ink); font: 400 17px/1.35 var(--text); -webkit-appearance: none; appearance: none;
	transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.bk textarea { min-height: 120px; resize: vertical; }
.bk input::placeholder, .bk textarea::placeholder { color: rgba(163, 168, 176, .7); }
.bk input:focus, .bk select:focus, .bk textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.bk select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23F4F4F2' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.bk .is-invalid { border-color: var(--red-on-dark, #FF5A4E); }
.bk-field-error { color: var(--red-on-dark, #FF5A4E); font-size: 16px; }
.bk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.bk-row + .bk-row, .bk-row + .bk-hint { margin-top: 20px; }
.bk-row .bk-field { margin-top: 0; }
.bk-hint { margin-top: 2px; color: var(--soft); font-size: 14px; line-height: 1.5; max-width: 64ch; }
.bk-status { min-height: 1.4em; font-size: 16px; line-height: 1.45; max-width: 70ch; }
.bk-status:empty { min-height: 0; }
.bk-status[data-tone="ok"] { color: var(--ink); }
.bk-status[data-tone="warn"] { color: #FFC4A8; }
.bk-status[data-tone="err"] { color: var(--red-on-dark, #FF5A4E); }
.bk-status[data-tone="busy"] { color: var(--soft); }
.bk-status[data-tone="ok"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px .1em 2px; background: var(--red); }

.bk-plate { display: grid; grid-template-columns: minmax(0, 1fr) 96px auto; gap: 8px; }
.bk-plate input { text-transform: uppercase; }
.bk-btn-line { min-height: 56px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 0; background: transparent; color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.bk-btn-line:hover { background: var(--ink); color: var(--ground); }
.bk-btn-line:disabled { opacity: .5; cursor: progress; }

/* Calendar */
.bk-cal { margin-top: 22px; padding: clamp(16px, 2vw, 24px); background: var(--ground-2); }
.bk-cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk-cal-month { margin: 0; font: 800 clamp(1.375rem, 1.1rem + .6vw, 1.75rem)/1 var(--display); text-transform: uppercase; }
.bk-cal-btn { width: 46px; height: 46px; border: 1px solid rgba(244, 244, 242, .2); border-radius: 0; background: transparent; color: var(--ink); font: 400 28px/1 var(--text); cursor: pointer; }
.bk-cal-btn:hover:not(:disabled) { border-color: var(--ink); }
.bk-cal-btn:disabled { opacity: .25; cursor: default; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 16px; }
.bk-dow { padding-bottom: 4px; text-align: center; color: var(--soft); font: 700 14px/1 var(--display); }
.bk-day { height: clamp(42px, 4.4vw, 54px); display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 0; background: var(--ground); color: var(--ink); font: 700 clamp(1rem, .9rem + .4vw, 1.25rem)/1 var(--display); font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s var(--ease-out), color .15s var(--ease-out); }
.bk-day:hover:not(:disabled) { background: #262930; }
.bk-day:disabled { background: transparent; color: rgba(163, 168, 176, .32); cursor: default; }
.bk-day.is-today { border-color: rgba(244, 244, 242, .4); }
.bk-day[aria-pressed="true"] { background: var(--red); color: #fff; }
.bk-cal-msg, .bk-slots-msg { grid-column: 1 / -1; margin: 0; padding: 18px 0; color: var(--soft); }

/* Times */
.bk-slots { margin-top: 26px; }
.bk-slots:empty { display: none; }
.bk { scroll-margin-top: 0; }
.bk-slots > .bk-status { margin: 0 0 14px; }
.bk-slots-day { margin: 0; font: 800 1.375rem/1 var(--display); text-transform: uppercase; }
.bk-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-top: 14px; }
.bk-slot { min-height: 54px; padding: 0 10px; border: 1px solid rgba(244, 244, 242, .16); border-radius: 0; background: var(--ground-2); color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: .03em; font-variant-numeric: tabular-nums; cursor: pointer; transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out); }
.bk-slot:hover { border-color: var(--ink); }
.bk-slot[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.bk-window { margin-top: 16px !important; }
.bk-window b { font-weight: 600; }

/* Running summary */
.bk-summary { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 24px; padding: 28px 26px 26px; background: var(--ground-2); }
.bk-summary::before { content: ""; display: block; width: 40px; height: 5px; margin-bottom: 18px; background: var(--red); }
.bk-summary-title { margin: 0; font: 800 1.875rem/1 var(--display); text-transform: uppercase; }
.bk-summary dl { margin: 18px 0 0; }
.bk-summary dl > div + div { margin-top: 18px; }
.bk-summary dt { color: var(--soft); font: 400 14px/1.2 var(--text); }
.bk-summary dd { margin: 4px 0 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.bk-summary dd b { font-weight: 700; }
.bk-summary .bk-empty { color: var(--soft); }
.bk-soft { color: var(--soft); }
.bk-summary-help { margin: 22px 0 0; color: var(--soft); font-size: 14px; }
.bk-summary-help a, .bk-fine a { color: var(--ink); }

/* Agree and sign */
.bk-fee { padding: 20px 22px; background: var(--ground-2); }
.bk-fee > * { margin: 0; }
.bk-fee-head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 6px !important; font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.bk-fee-head b { color: var(--red-on-dark, #FF5A4E); }
.bk-fee p:not(.bk-fee-head) { color: var(--soft); max-width: 70ch; }
.bk-terms { margin-top: 12px !important; max-height: 260px; overflow: auto; padding: 20px 22px; background: #0A0B0D; color: var(--soft); font-size: 16px; line-height: 1.6; }
.bk-terms p { max-width: 70ch; }
.bk-terms:focus { outline: 2px solid var(--ink); outline-offset: 2px; }
.bk-terms > * { margin: 0; }
.bk-terms-title { margin-bottom: 8px !important; color: var(--ink); font: 700 17px/1.3 var(--text); }
.bk-sign-note { margin-top: 18px !important; font-size: 17px; line-height: 1.5; max-width: 70ch; }
.bk-sig { position: relative; height: 200px; margin-top: 16px !important; background: #F4F4F2; touch-action: none; }
.bk-sig::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 48px; height: 1px; background: rgba(15, 16, 19, .28); pointer-events: none; }
.bk-sig-pad { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.bk-sig-ph { position: absolute; left: 24px; bottom: 58px; margin: 0; color: rgba(15, 16, 19, .38); font: 800 1.75rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
.bk-sig.is-signed .bk-sig-ph { display: none; }
.bk-sig-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 10px !important; font-size: 14px; }
.bk-link { padding: 8px 0; border: 0; background: none; color: var(--ink); font: 600 16px/1 var(--text); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.bk-error { margin-top: 20px !important; padding: 14px 16px; background: rgba(225, 37, 27, .18); color: var(--ink); font-size: 17px; line-height: 1.45; }
.bk-error a { color: var(--ink); }
.bk-submit { display: block; width: 100%; min-height: 70px; margin-top: 20px !important; padding: 0 24px; border: 0; border-radius: 0; background: var(--red); color: #fff; font: 800 clamp(1.25rem, 1.1rem + .4vw, 1.5rem)/1 var(--display); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background-color .2s var(--ease-out), transform .15s var(--ease-out); }
.bk-submit:hover:not(:disabled) { background: #B81B12; }
.bk-submit:active:not(:disabled) { transform: translateY(1px); }
.bk-submit:disabled { background: #25282E; color: var(--soft); cursor: not-allowed; }
.bk-submit.is-busy { cursor: progress; }
.bk-fine { margin-top: 14px !important; color: var(--soft); font-size: 14px; line-height: 1.5; }
.grecaptcha-badge { visibility: hidden; }
.bk-noscript { padding: 20px 22px; background: var(--ground-2); }
.bk-noscript a { color: var(--ink); }

/* Booked */
.bk-done { max-width: 760px; outline: none; }
.bk-done > * { margin: 0; }
.bk-done-mark { width: 64px; height: 64px; display: grid; place-items: center; background: var(--red); }
.bk-done-mark::after { content: ""; width: 26px; height: 13px; margin-top: -6px; border: solid #fff; border-width: 0 0 5px 5px; transform: rotate(-45deg); }
.bk-done h2 { margin-top: 28px; font-size: clamp(3rem, 1.6rem + 4.6vw, 5.75rem); line-height: .9; }
.bk-done-when { margin-top: 18px !important; font-size: var(--wp--preset--font-size--lead); line-height: 1.45; }
.bk-done dl { margin-top: 28px; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 28px; }
.bk-done dt { color: var(--soft); font: 400 14px/1.7 var(--text); }
.bk-done dd { margin: 0; overflow-wrap: anywhere; }
.bk-done-note { margin-top: 28px !important; color: var(--soft); max-width: 60ch; }
.bk-done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px !important; }
.bk-done-actions a { display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px; border: 2px solid var(--ink); color: var(--ink); font: 700 18px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.bk-done-actions a:first-child { background: var(--red); border-color: var(--red); color: #fff; }

/* Quote request: service chips, the repair note, personal or fleet, the consent boxes. */
.bk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bq-chip { min-height: 52px; padding: 0 20px; border: 1px solid rgba(244, 244, 242, .2); border-radius: 0; background: var(--ground-2); color: var(--ink); font: 700 17px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out); }
.bq-chip:hover { border-color: var(--ink); }
.bq-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.bq-repair { margin-top: 22px !important; padding: 20px 22px; background: var(--ground-2); transition: background-color .25s var(--ease-out); }
.bq-repair > * { margin: 0; max-width: 70ch; }
.bq-repair p + p { margin-top: 8px; }
.bq-repair-title { font: 800 1.375rem/1 var(--display); text-transform: uppercase; margin-bottom: 10px !important; }
.bq-repair p:not(.bq-repair-title) { color: var(--soft); }
.bq-repair-link { color: var(--ink); font-weight: 600; text-underline-offset: .2em; }
.bq-repair.is-on { background: #2A1513; }
.bq-repair.is-on p:not(.bq-repair-title) { color: var(--ink); }
.bq-repair.is-on .bq-repair-title { color: var(--red-on-dark, #FF5A4E); }
.bk-label { margin: 0; font: 600 16px/1.25 var(--text); }
.bq-type { margin-top: 26px !important; }
.bq-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.bq-seg label { position: relative; display: block; cursor: pointer; }
.bq-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bq-seg span { display: flex; align-items: center; min-height: 52px; padding: 0 20px; border: 1px solid rgba(244, 244, 242, .2); background: var(--ground-2); font: 600 16px/1 var(--text); }
.bq-seg input:checked + span { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--red); }
.bq-seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.bq-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 18px !important; font-size: 16px; line-height: 1.5; max-width: 70ch; cursor: pointer; }
.bq-check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--red); -webkit-appearance: auto; appearance: auto; }
.bq-check.is-invalid span { color: var(--red-on-dark, #FF5A4E); }
.bq-terms { margin-top: 16px !important; }
.bq-terms summary { cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.bq-terms .bk-terms { max-height: none; }

@media (prefers-reduced-motion: no-preference) {
	.bk-done:not([hidden]) { animation: bk-in .5s var(--ease-out) both; }
	.bk-slot-grid { animation: bk-in .35s var(--ease-out) both; }
	@keyframes bk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

@media (max-width: 960px) {
	.bk-form { grid-template-columns: minmax(0, 1fr); }
	.bk-summary { grid-column: 1; grid-row: auto; position: static; margin-bottom: clamp(56px, 6vw, 88px); }
}
@media (max-width: 700px) {
	.bk-facts .stat { grid-template-columns: 7rem 1fr; }
	.bk-row { grid-template-columns: minmax(0, 1fr); }
	.bk-row .bk-field + .bk-field { margin-top: 20px; }
	.bk-plate { grid-template-columns: minmax(0, 1fr) 88px; }
	.bk-plate .bk-btn-line { grid-column: 1 / -1; }
	.bk-head { gap: 14px; }
	.bk-cal { margin-inline: calc(var(--gutter-l) * -1) calc(var(--gutter-r) * -1); }
	.bk-cal-grid { gap: 4px; }
	.bk-sig { height: 180px; }
	.bk-done dl { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.bk-done dd + dt { margin-top: 12px; }
}

/* "By submitting…" line above the submit button: readable, not fine print. */
.bk-consent-note { margin-top: 18px !important; max-width: 70ch; color: var(--ink); font-size: 15px; line-height: 1.5; }
.bk-consent-note a { color: var(--ink); }
.bq-check .bk-opt { margin-left: 6px; }
