/* Keep the checker presentation isolated from booking forms and CAPTCHA behaviour. */
.mot-check-page { padding-top: 28px; padding-bottom: 32px; color: #183e4c; }
.mot-check-page *, .mot-check-page *::before, .mot-check-page *::after { box-sizing: border-box; }
.mot-check-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #607682; margin-bottom: 30px; }
.mot-check-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(370px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 3.5vw, 48px); background: radial-gradient(ellipse at 90% 10%, #124776 0%, #0a304c 50%, #071f32 100%); border: 1px solid #123e58; border-radius: 24px; }
.mot-check-page h1 { font-size: clamp(32px, 3.5vw, 48px); line-height: 1.13; letter-spacing: -.035em; color: #09273b; margin: 12px 0 20px; }
.mot-check-page h2 { font-size: 25px; line-height: 1.25; letter-spacing: -.02em; color: #09273b; margin: 0 0 14px; }
.mot-check-page p { line-height: 1.65; }
.mot-check-page .mot-check-eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: #007785; margin: 0 0 10px; }
.mot-check-lead { color: #516b76; font-size: 16px; max-width: 460px; }
.mot-check-benefits { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.mot-check-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.mot-check-benefits li > span { flex: 0 0 34px; height: 34px; display: grid; place-items: center; color: #007785; background: #dff0f1; border-radius: 10px; font-size: 12px; font-weight: 700; }
.mot-check-benefits strong { font-size: 15px; }
.mot-check-benefits p { margin: 2px 0 0; color: #607682; font-size: 13px; }
/* Light text belongs only to the blue introduction; the form retains dark text on white. */
.mot-check-introduction { text-align: left; }
.mot-check-introduction h1 { color: #fff; }
.mot-check-introduction .mot-check-eyebrow { color: #77dce5; }
.mot-check-introduction .mot-check-lead,
.mot-check-introduction .mot-check-benefits p { color: #ccdeec; }
.mot-check-introduction .mot-check-benefits strong,
.mot-check-introduction .mot-check-free { color: #fff; }
.mot-check-introduction .mot-check-benefits li > span { background: #164861; color: #9ce8ee; }
.mot-check-free { font-size: 13px; font-weight: 600; margin: 0; }
.mot-check-card { min-width: 0; background: #fff; border: 1px solid #dce7eb; border-radius: 18px; padding: clamp(20px, 2.5vw, 32px); box-shadow: 0 12px 32px rgb(9 39 59 / 6%); }
.mot-check-card-heading { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #edf1f3; }
.mot-check-card-heading h2 { font-size: 22px; margin-bottom: 6px; }
.mot-check-card-heading p { color: #607682; font-size: 14px; margin: 0; }
.mot-check-form label, .mot-check-form small { display: block; }
.mot-check-form label { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.mot-check-form input { display: block; width: 100%; margin: 0 0 8px; padding: 14px 12px; border: 2px solid #bacbd1; border-radius: 9px; font-size: 28px; font-weight: 700; letter-spacing: 3px; text-align: center; text-transform: uppercase; background: #fffdf4; color: #09273b; }
.mot-check-form input::placeholder { color: #74818a; opacity: 1; }
.mot-check-form small { color: #607682; font-size: 12px; line-height: 1.5; }
.mot-check-submit { margin-top: 20px; }
.mot-check-submit .g-recaptcha { width: fit-content; margin: 0 auto 18px; }
.mot-check-page button, .mot-check-page .mot-check-button { display: inline-block; background: #ffbb00; color: #07313a; padding: 14px 22px; border: 0; border-radius: 9px; font-weight: 700; text-decoration: none; min-height: 48px; line-height: 1.5; cursor: pointer; }
.mot-check-submit button { width: 100%; }
.mot-check-page button:hover, .mot-check-page .mot-check-button:hover { background: #ffd04a; color: #07313a; }
.mot-check-page a:focus-visible, .mot-check-page button:focus-visible, .mot-check-page input:focus-visible, .mot-check-page summary:focus-visible { outline: 3px solid #007b88; outline-offset: 4px; }
.mot-check-page .mot-check-privacy { font-size: 11px; margin: 14px 0 0; color: #607682; }
.mot-check-result { margin: 32px 0 24px; padding: clamp(22px, 3vw, 36px); border: 1px solid #cbdce5; border-top: 5px solid #ffbb00; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgb(9 39 59 / 10%); }
.mot-check-result-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.mot-check-result-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); }
.mot-check-result-source { border: 1px solid #dce7eb; padding: 6px 12px; border-radius: 20px; font-size: 12px; color: #607682; }
.mot-check-result dl { display: grid; gap: 16px; margin: 0 0 24px; }
.mot-check-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mot-check-status-grid > div { padding: clamp(22px, 3vw, 32px); border-radius: 14px; background: #092e48; }
.mot-check-result dt { font-size: 12px; color: #607682; font-weight: 500; margin-bottom: 8px; }
.mot-check-result dd { font-size: 22px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
/* Emphasise the returned facts without implying that every status is a successful MOT. */
.mot-check-status-grid dt { color: #cedfe9; font-size: 14px; margin-bottom: 12px; }
.mot-check-status-grid dd { color: #fff; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.2; letter-spacing: -.025em; }
.mot-check-vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 0 24px; border-bottom: 1px solid #e6eef0; }
.mot-check-vehicle-grid dd { font-size: 17px; }
.mot-check-plate { display: inline-block; padding: 7px 12px; background: #ffda35; color: #09273b; border: 1px solid #e7bd20; border-radius: 6px; letter-spacing: 1px; font-size: 20px; }
.mot-check-result-note { font-size: 13px; color: #607682; }
.mot-check-result-actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 20px; font-size: 14px; }
.mot-check-next { margin: 24px 0; padding: 28px; border-radius: 16px; background: #f5f8fa; }
.mot-check-next p { color: #516b76; }
.mot-check-result { scroll-margin-top: 110px; }
.mot-check-next h2 { scroll-margin-top: 110px; }
.mot-check-garage-search { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.mot-check-garage-search label { display: block; font-weight: 700; margin-bottom: 8px; }
.mot-check-garage-search input[type="text"] { min-height: 50px; padding: 12px; border: 1px solid #8ea9b7; border-radius: 8px; max-width: 100%; }
.mot-check-retention { margin-top: 24px; padding-top: 22px; border-top: 1px solid #d4e2e8; }
.mot-check-retention h3 { font-size: 21px; }
.mot-check-retention > p { margin-top: 12px; }
.mot-check-message { padding: 16px; background: #fff4d8; border-left: 3px solid #aa6c00; border-radius: 6px; font-size: 14px; }
.mot-check-explanation { margin: 44px calc(clamp(24px, 3.5vw, 48px) + 1px) 28px; }
.mot-check-explanation > h2:not(:first-child) { margin-top: 32px; }
.mot-check-explanation > p { color: #516b76; font-size: 15px; }
/* Match the banner's inner edge while limiting paragraph length for comfortable reading. */
.mot-check-explanation > h2 { text-align: left; text-wrap: balance; }
.mot-check-explanation > p { max-width: 72ch; text-align: left; }
.mot-check-explanation details { text-align: left; }
/* Native details retain keyboard access while the question row provides a generous click target. */
.mot-check-explanation details { margin: 12px 0; border: 1px solid #d9e4ec; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgb(9 39 59 / 4%); }
.mot-check-explanation summary { position: relative; padding: 21px 56px 21px 20px; cursor: pointer; font-weight: 700; font-size: 15px; line-height: 1.5; color: #09273b; list-style: none; border-radius: 12px; }
.mot-check-explanation summary::-webkit-details-marker { display: none; }
.mot-check-explanation summary::marker { content: ""; }
/* Draw decorative plus/minus marks without requiring an icon font or adding screen-reader text. */
.mot-check-explanation summary::before, .mot-check-explanation summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 2px; background: #1268fb; }
.mot-check-explanation summary::after { transform: rotate(90deg); }
.mot-check-explanation details[open] summary::after { transform: rotate(0); }
.mot-check-explanation details[open] summary { border-bottom: 1px solid #edf1f3; border-radius: 12px 12px 0 0; }
.mot-check-explanation summary:hover { background: #f7fafc; }
.mot-check-explanation details p { margin: 0; padding: 18px 20px 22px; color: #516b76; font-size: 14px; }
.mot-check-explanation > p:last-child { margin-top: 24px; }
.mot-check-source { font-size: 12px; line-height: 1.6; color: #607682; margin: 0 calc(clamp(24px, 3.5vw, 48px) + 1px); padding-top: 20px; border-top: 1px solid #e1eaed; }
@media (max-width: 991px) {
    .mot-check-hero { grid-template-columns: 1fr; }
    .mot-check-introduction { max-width: 640px; }
    .mot-check-card { width: 100%; max-width: 560px; justify-self: center; }
    .mot-check-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .mot-check-benefits li { display: block; }
    .mot-check-benefits li > span { width: 34px; margin-bottom: 8px; }
}
@media (max-width: 575px) {
    .mot-check-page { padding-top: 20px; }
    .mot-check-breadcrumb { margin-bottom: 20px; }
    .mot-check-hero { padding: 24px 0 0; border: 0; border-radius: 16px; gap: 24px; }
    .mot-check-introduction { padding: 0 20px; }
    .mot-check-explanation, .mot-check-source { margin-left: 20px; margin-right: 20px; }
    .mot-check-card { padding: 16px; }
    .mot-check-introduction .mot-check-benefits { display: none; }
    .mot-check-page h1 { font-size: 32px; }
    .mot-check-benefits { grid-template-columns: 1fr; gap: 12px; margin: 20px 0; }
    .mot-check-benefits li { display: flex; }
    .mot-check-status-grid, .mot-check-vehicle-grid { grid-template-columns: 1fr; }
    .mot-check-status-grid dd { font-size: 28px; }
    .mot-check-result-actions { align-items: stretch; flex-direction: column; }
    .mot-check-result-actions .mot-check-button { text-align: center; }
    .mot-check-next { padding: 22px; }
}

/* Give the standard 304px CAPTCHA room on narrow phones without scaling or clipping its controls. */
@media (max-width: 360px) {
    .mot-check-page { padding-right: 6px; padding-left: 6px; }
    .mot-check-card { padding-right: 0; padding-left: 0; border: 0; box-shadow: none; }
}
