.book-page {
  align-items: stretch;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

.book-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--page);
}

.book-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header, plate and car name sit where the Reminder page puts them. */
.book-header {
  display: flex;
  justify-content: center;
  padding: 11px 20px 11px;
}

.book-header img {
  height: 84px;
  width: auto;
}

.book-main,
.book-form {
  flex: 1;
  padding: 11px 20px 24px;
}

@media (max-width: 430px) {
  .book-header {
    padding: 8px 20px 6px;
  }

  .book-header img {
    height: 72px;
  }

  .book-main,
  .book-form {
    padding-top: 10px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Car block: plate (or the registration box), model and spec, centred. Plate and model sit
   exactly where the Reminder page puts them (reminders.css main padding-top and .model). */
.book-car {
  padding: 11px 20px 0;
  text-align: center;
}

.spec {
  margin-top: 6px;
  color: var(--slate);
  font-size: 14px;
}

@media (max-width: 430px) {
  .book-car {
    padding-top: 10px;
  }
}

.book-car .reg-start + .model {
  margin-top: 10px;
}

.reg-start {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.book-direct-gate .reg-start {
  margin-top: 24px;
}

.reg-start-label {
  font-weight: 700;
  font-size: 16px;
}

.reg-go {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 520px;
}

.reg-input {
  flex: 1;
  min-width: 0;
  background: #f6c516;
  border: 2px solid #1c1c1c;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: Plate, sans-serif;
  font-size: 28px;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  color: #111;
}

.reg-go-btn {
  border: none;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 0 22px;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

/* Sections */
.book-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.book-choices {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.book-section h2,
.book-h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
}

.book-section h2.need-title {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 2px;
}

.choose-note {
  color: var(--slate);
  font-size: 14px;
}

.group-label {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--slate);
}

.book-form.is-fault .need-title {
  margin-bottom: 10px;
  scroll-margin-top: 18px;
}

/* With no prices line under it (rulings 04/11/2026 forms) the first group label sits closer to
   the heading than the heading sits to the car above. */
.need-title + .group-label {
  margin-top: 10px;
}

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: inherit;
  position: relative;
}

.service-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card:has(input:checked) {
  border: 2px solid var(--green);
  padding: 11px 13px;
  background: #e9f1ec;
}

.service-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.service-card-text {
  display: flex;
  flex-direction: column;
}

.service-name {
  font-weight: 700;
  font-size: 15px;
}

.service-price {
  font-weight: 700;
  white-space: nowrap;
}

.service-sub {
  margin-top: 2px;
  color: var(--slate);
  font-size: 13px;
}

/* The MOT booking page (rulings C1-C2, 21/11/2026): a fixed MOT card, then up to one service
   tile from a row of three that stays one row down to 320px. */
.mot-card {
  cursor: default;
  border: 2px solid var(--green);
  padding: 11px 13px;
  background: #e9f1ec;
}

.mot-card .service-card-body {
  justify-content: flex-start;
}

.mot-card-text {
  flex: 1;
  min-width: 0;
}

.mot-tick {
  display: flex;
  flex: none;
}

.mot-card + .group-label {
  margin-top: 16px;
}

.mot-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mot-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 10px 8px;
}

.mot-tile:has(input:checked) {
  padding: 9px 7px;
}

.mot-tile-name {
  font-weight: 700;
  font-size: 15px;
}

.mot-tile .service-sub {
  margin-top: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mot-tile .service-price {
  margin-top: auto;
  padding-top: 4px;
}

.mot-tiles-note {
  margin: 8px 0 0;
  color: var(--slate);
  font-size: 13px;
}

/* A repair or a fault uses the same card as a service. The wrench box keeps its shape. */
.fault-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fault-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.fault-name {
  color: inherit;
}

.fault-sub {
  color: var(--slate);
}

.compact-note {
  margin: 12px 0 6px;
  font-size: 13px;
  color: var(--slate);
}

.compact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.compact-btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
}

.compact-btn span {
  display: block;
  color: var(--slate);
  font-weight: 500;
  font-size: 13px;
}

.includes-wrap {
  margin-top: 10px;
}

.fault-box {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fault-label {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.fault-box textarea {
  display: block;
  width: 100%;
  height: 180px;
  min-height: 180px;
  border: 1px solid #c9d3cd;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-size: 15px;
  background: #fff;
  resize: none;
}

.fault-btn {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  padding: 0 16px;
}

.fault-btn[aria-pressed="true"] {
  box-shadow: 0 0 0 3px #e7efeb, 0 0 0 5px var(--green);
}

.fault-btn-diag {
  display: block;
  width: 100%;
}

.cta2.fault-cta2 {
  margin-top: 0;
}

.fault-cta2 .b {
  height: 46px;
  font-size: 15px;
  font-weight: 700;
  width: 100%;
  border: 0;
  padding: 0 12px;
  cursor: pointer;
}

.fault-cta2 .b.callme {
  background: #fff;
  color: var(--green);
  border: 2px solid var(--green);
}

.fault-cta2 .b[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}

.fault-advice {
  font-size: 13px;
  color: var(--slate);
}

/* Request an estimate (target v6-2): between the diagnostic and the Call me back / WhatsApp pair. */
.fault-how {
  font-size: 14px;
  color: var(--slate);
}

.fault-estimate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  /* The estimate choice keeps this sandy card, as prominent as the green diagnostic button. */
  border: 1px solid #e8b85c;
  border-radius: 12px;
  background: #fdf1dc;
  color: var(--ink);
  padding: 11px 15px;
  font-family: inherit;
  cursor: pointer;
}

.fault-estimate-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--green);
}

.fault-estimate-sub {
  display: block;
  font-size: 13px;
  color: var(--slate);
}

.fault-estimate-on {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.fault-estimate[aria-pressed="true"] {
  border: 2px solid var(--green);
  padding: 10px 14px;
}

.fault-estimate[aria-pressed="true"] .fault-estimate-on {
  display: inline;
}

/* Ask us a question (target v6-1): under the registration box. */
.ask-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin: 14px auto 0;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 13px 15px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.ask-option.is-on {
  border: 2px solid var(--green);
  background: #e9f1ec;
  padding: 12px 14px;
}

.ask-state {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}

.book-question-form {
  padding: 0;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.question-box {
  gap: 12px;
}

.question-box textarea {
  height: 150px;
  min-height: 150px;
}

.question-details-h {
  margin: 24px 0 10px;
}

.question-submit {
  margin-top: 22px;
}

.field-help {
  font-size: 12px;
  color: var(--slate);
}

[hidden] {
  display: none !important;
}

.includes-list {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.includes-list li {
  padding-left: 22px;
  position: relative;
  font-size: 13px;
  line-height: 1.35;
  color: var(--slate);
}

.includes-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.extras-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.extra-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}

.extra-row input {
  width: 20px;
  height: 20px;
  margin: 0;
}

/* Batch 05/11i I1: an option's own small grey line under its name (the MOT's
   "Subject to confirmation"), in the service cards' description style. */
.extra-text { display: flex; flex-direction: column; min-width: 0; }
.extra-note,
.opt-note {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-size: 13px;
  font-weight: 400;
}

.extra-price {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.book-section h2 + .drop-note {
  margin-top: -6px;
}

.drop-note {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.4;
  margin-bottom: 10px;
}

.cal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 10px 10px;
}

.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.cal-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  color: var(--green);
}

.cal-label {
  font-weight: 700;
  font-size: 15px;
}

.cal-weekdays,
.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekdays {
  font-size: 12px;
  color: var(--slate);
  text-align: center;
  margin-bottom: 4px;
  font-weight: 500;
}

.cal-week {
  margin-bottom: 4px;
}

.cal-day {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 8px;
  position: relative;
}

.cal-day input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cal-avail {
  background: #e7efeb;
  cursor: pointer;
  font-weight: 700;
  color: var(--green);
}

.cal-avail:has(input:checked) {
  background: var(--green);
  color: #fff;
}

.cal-full {
  background: #fdeaea;
  color: #c44;
  font-weight: 600;
}

.cal-full span {
  text-decoration: line-through;
}

.cal-closed {
  color: #b0bab6;
  background: transparent;
}

.cal-pad {
  height: 40px;
}

html.js-cal .cal-month {
  display: none;
}

html.js-cal .cal-month.is-active {
  display: block;
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--slate);
  margin-top: 10px;
}

.cal-legend .leg {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: -2px;
}

.leg-avail {
  background: #e7efeb;
}

.leg-full {
  background: #fdeaea;
}

.leg-closed {
  background: transparent;
  border: 1px solid var(--line);
}

/* Your details */
.known-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.known-line {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}

.known-line svg {
  flex: none;
}

.known-other {
  /* Starts where the text beside the tick starts: tick 18px + .known-line gap 10px. */
  margin-left: 28px;
  font-size: 14px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.details-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field-notes,
.field-email {
  margin-top: 12px;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #c9d3cd;
  border-radius: 8px;
  padding: 11px 12px;
  font: inherit;
  font-size: 15px;
  background: #fff;
}

.field textarea {
  resize: none;
  min-height: 80px;
}

.field-error {
  color: #b33;
  font-size: 13px;
  margin-top: 4px;
}

/* "Your booking" is the wide-screen recap; the customer sends from "Check and send" at the end
   of the form on every size (rulings 05/11/2026, target v7-1 screen 8). */
.book-side {
  display: none;
  flex-direction: column;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-grid .field-email {
  margin-top: 0;
}

.check-send {
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 16px 18px;
  gap: 8px;
  scroll-margin-top: 18px;
}

.check-send:focus {
  outline: none;
}

.check-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.check-lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  max-width: 420px;
  font-size: 15px;
  justify-items: start;
}

.check-amt {
  font-weight: 700;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.check-lines .check-total {
  font-size: 17px;
  font-weight: 800;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  justify-self: stretch;
}

/* Ruling A3: "£439 inc VAT", the words smaller and secondary. */
.check-lines .check-vat {
  font-size: 13px;
  font-weight: 400;
  color: var(--slate);
}

.check-send .book-submit {
  min-height: 58px;
  font-size: 18px;
  font-weight: 800;
  margin-top: 4px;
}

/* Rulings 05/11/2026: the padlock on the left, both lines to its right as one left-aligned
   block, the second line starting where the first starts; the same on every screen size. */
.check-foot {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  column-gap: 8px;
  align-items: start;
  text-align: left;
}

.check-lock {
  margin-top: 2px;
}

.check-foot-lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.check-foot .secure-line {
  display: block;
  order: 0;
}

.nothing-to-pay {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.45;
}

.recap-questions {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 13px;
  color: var(--slate);
}

.recap-questions a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-submit.is-sending {
  background: #10261d;
  cursor: progress;
}

.send-result {
  font-size: 14px;
  font-weight: 600;
  color: #b33;
  line-height: 1.45;
}

.send-result a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thanks-title:focus {
  outline: none;
}

.summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-body {
  display: none;
}

.summary-title {
  font-size: 18px;
  font-weight: 800;
}

.summary-car {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.summary-plate {
  background: #f6c516;
  border: 2px solid #111;
  border-radius: 4px;
  padding: 1px 8px;
  font-family: Plate, sans-serif;
  letter-spacing: 2px;
}

.summary-model {
  font-size: 14px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  font-size: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.summary-label {
  flex: 1;
  min-width: 0;
}

.summary-amt {
  font-weight: 700;
  white-space: nowrap;
}

.summary-lines:empty {
  display: none;
}

.summary-empty {
  margin-top: 12px;
  font-size: 14px;
  color: var(--slate);
}

.summary-total {
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
}

.summary-total strong {
  font-weight: 800;
}

.total-note {
  margin-top: 6px;
  font-size: 12px;
  color: var(--slate);
  line-height: 1.4;
}

.submit-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-submit {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* On a phone the padlock line sits above the button (target v5-1). */
.secure-line {
  order: -1;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.45;
}

.secure-line svg {
  flex: none;
  margin-top: 1px;
}

.questions-line {
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}

.questions-line a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.book-footer {
  padding: 16px 20px 22px;
  text-align: center;
  font-size: 14px;
  color: var(--slate);
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-address {
  display: block;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-address span {
  display: block;
}

/* Registration not recognised */
.lookup-msg {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
}

.book-callback-form {
  padding: 20px 0 0;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-lookup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.book-lookup-actions .b {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.book-lookup-actions .b.wa {
  background: var(--wa);
  color: #fff;
}

/* A make we don't work on (rulings 05/11/2026 batch f Q5). */
.book-wrong-make {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.wrong-make-h {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--green);
}

.wrong-make-text {
  margin: 10px 0 18px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.book-wrong-make .reg-start {
  margin: 0 auto;
  text-align: left;
}

.wrong-make-wa {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--slate);
}

.wrong-make-wa a {
  color: var(--green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Batch 05/11g R1: another customer's car that is with us or booked; the state is never shown. */
.book-cannot {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
}

.cannot-book-text {
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

.book-message {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 32px;
}

.book-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 22px;
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.book-card h1 {
  font-size: clamp(20px, 4.5vw, 24px);
  line-height: 1.35;
  font-weight: 700;
  margin: 0;
}

.book-card p {
  margin-top: 12px;
  color: var(--slate);
  line-height: 1.5;
}

/* Thank-you pages (target-v4-4). */
.thanks-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 20px 32px;
}

.thanks-tick {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e3ebe6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-title {
  margin-top: 24px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.thanks-text {
  margin-top: 12px;
  max-width: 320px;
  font-size: 17px;
  line-height: 1.5;
}

.thanks-actions {
  width: 100%;
  max-width: 390px;
  margin-top: 56px;
}

.thanks-q {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--slate);
}

/* Wide own page (target v7-1 screen 8): numbered steps ~470px, sticky "Your booking" recap ~410px. */
@media (min-width: 900px) {
  .book-form {
    padding: 8px 32px 32px;
  }

  .book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 413px;
    gap: 32px;
    align-items: start;
    width: 100%;
    max-width: 915px;
    margin: 0 auto;
  }

  .book-side {
    display: flex;
    position: sticky;
    top: 24px;
    margin-top: 24px;
  }

  .summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
  }

  .summary-body {
    display: block;
  }

  .secure-line {
    order: 0;
  }

  .reg-go,
  .ask-option {
    max-width: 392px;
  }

  .step-h::before {
    content: attr(data-step);
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    vertical-align: 2px;
  }

  .extras-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cal-card {
    max-width: 440px;
  }

  .book-section .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .book-section .details-grid .details-fields {
    display: contents;
  }

  .book-section .details-grid .known-card {
    grid-column: 1 / -1;
  }
}

.step-optional {
  font-weight: 500;
  color: var(--slate);
  font-size: 15px;
}

.book-section h2.step-h {
  scroll-margin-top: 18px;
}

/* Inside a kmotors.co.uk page (target v5-4): no logo, transparent page, white panel. */
html:has(body.is-embed),
body.is-embed,
body.is-embed .book-shell {
  background: transparent;
  min-height: 0;
}

body.is-embed {
  padding: 16px 10px 20px;
}

/* Batch 05/11i I3: inside the website frame the form never scrolls on its own (embed.js sets
   in-frame and reports every height change), so no scroll bar can narrow it. */
html.in-frame,
html.in-frame body.is-embed {
  overflow: hidden;
}

body.is-embed .book-shell {
  max-width: 975px;
}

body.is-embed .book-panel {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 26px 0 30px;
}

body.is-embed .book-main,
body.is-embed .book-form {
  padding: 4px 30px 0;
}

body.is-embed .book-car {
  padding: 0 30px;
}

body.is-embed .book-direct-gate .reg-start {
  margin-top: 0;
}

/* The website page carries its own "Enter Registration to Start" above the frame; the
   not-found and wrong-make boxes keep their own labels (batch f Q5). */
body.is-embed .reg-start-label:not(.reg-start-label--keep) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.is-embed .thanks-main,
body.is-embed .book-message {
  padding: 24px 30px 8px;
}

@media (min-width: 700px) {
  body.is-embed .book-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
    max-width: none;
  }

  body.is-embed .book-side {
    display: flex;
    position: static;
    margin-top: 24px;
  }

  body.is-embed .summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
  }

  body.is-embed .summary-body {
    display: block;
  }

  body.is-embed .secure-line {
    order: 0;
  }

  body.is-embed .reg-go,
  body.is-embed .ask-option {
    max-width: 392px;
  }

  body.is-embed .step-h::before {
    content: attr(data-step);
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    vertical-align: 2px;
  }

  body.is-embed .cal-card {
    max-width: 440px;
  }
}

/* A wide website frame (target v7-1 screen 8): 975px panel, ~470px steps beside a ~410px recap. */
@media (min-width: 860px) {
  body.is-embed .book-layout {
    grid-template-columns: minmax(0, 1fr) 413px;
    gap: 32px;
  }

  body.is-embed .extras-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.is-embed .book-section .details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  body.is-embed .book-section .details-grid .details-fields {
    display: contents;
  }

  body.is-embed .book-section .details-grid .known-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  body.is-embed {
    padding: 8px 6px 16px;
  }

  body.is-embed .book-main,
  body.is-embed .book-form,
  body.is-embed .book-car {
    padding-left: 16px;
    padding-right: 16px;
  }
}
