/* ==========================================================================
   SellAnyCarFast — MOT Search page (mot-check/index_tpl.html)
   Visual language: ported from the /api/v1/trader/loveable reference design
   (hero + plate registration card, alternating mist bands, 16px cards with
   teal-soft icon tiles, dense check grid, numbered failure list, FAQ
   accordion, dark CTA band) expressed in the SellAnyCarFast brand system:
   Poppins + teal (#42cbb2) and the tokens shared with mot-check/results.css.

   Mobile-first; tablet >= 640px; desktop >= 992px.
   Scoped with .mot- prefixes so it never clashes with global.css.
   ========================================================================== */

.mot-page {
  /* Shared MOT-page design tokens — identical to mot-check/results.css so both
     pages of the flow resolve to the same palette, radii and shadows. */
  --mot-teal: #42cbb2;
  --mot-teal-dark: #2aa892;
  --mot-teal-soft: #e7f8f4;
  /* MOT pass green — same tokens as mot-check/results.css (pass pills/chips). */
  --mot-pass: #15803d;
  --mot-pass-soft: #e7f8ef;
  --mot-ink: #12201d;
  --mot-ink-2: #182a26;
  --mot-muted: #63707c;
  --mot-border: #e3e9f0;
  --mot-bg: #f6fafa;
  --mot-mist: #f6fafa;
  --mot-danger: #ef4444;
  --mot-danger-soft: #fdecec;
  --mot-plate: #ffd60a;
  --mot-plate-ink: #101418;
  --mot-blue: #16308f;
  --mot-radius: 16px;
  --mot-radius-sm: 12px;
  --mot-shadow-sm: 0 2px 10px rgba(18, 32, 29, 0.05);
  --mot-shadow: 0 14px 40px rgba(18, 32, 29, 0.10);
  --mot-shadow-lg: 0 32px 64px -28px rgba(18, 32, 29, 0.32);

  overflow-x: clip;
  background: #fff;
  color: var(--mot-ink);
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mot-page *,
.mot-page *::before,
.mot-page *::after { box-sizing: border-box; }

.mot-main { display: block; }

.mot-page h1,
.mot-page h2,
.mot-page h3,
.mot-page h4 { color: var(--mot-ink); }

/* Visible keyboard focus everywhere, incl. the reg input and submit button. */
.mot-page :focus-visible {
  outline: 3px solid var(--mot-teal-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.mot-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================ SECTION HEAD */

.mot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--mot-teal-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mot-eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--mot-teal);
}

/* ------------------------------------------- on-page anchor strip */
.mot-jumpbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-block: 1px solid var(--mot-border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(14px);
}
.mot-jumps {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 0;
  scrollbar-width: none;
}
.mot-jumps::-webkit-scrollbar { display: none; }
.mot-jumps a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--mot-ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.mot-jumps a:hover { background: var(--mot-teal-soft); color: var(--mot-ink); }

/* Keep in-page anchor targets clear of the sticky strip. */
.mot-page section[id] { scroll-margin-top: 76px; }

.mot-breadcrumb {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--mot-muted);
}
.mot-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mot-breadcrumb a { color: var(--mot-muted); text-decoration: none; }
.mot-breadcrumb a:hover { color: var(--mot-ink); text-decoration: underline; text-underline-offset: 3px; }
.mot-breadcrumb [aria-current] { color: var(--mot-ink); font-weight: 500; }
.mot-breadcrumb__list li + li::before {
  content: "\203A";
  margin-right: 8px;
  color: var(--mot-muted);
}

/* ================================================================== HERO */

.mot-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 56px;
  border-bottom: 1px solid var(--mot-border);
  /* Teal-led hero: the reference's soft teal wash over the mist band. */
  background:
    radial-gradient(40% 55% at 82% 52%, rgba(66, 203, 178, 0.14), transparent 72%),
    var(--mot-mist);
}
.mot-hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 203, 178, 0.22), transparent 68%);
  pointer-events: none;
}
.mot-hero__grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}
.mot-hero__copy { min-width: 0; }
.mot-hero__title {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
/* Heading stack, straight from the /api/v1/trader/loveable reference
   (.hero h1 + .hero h1 .place): "Free" is its own line in the brand ink, then
   the teal phrase sits on the line(s) below it as an inline-block, with a slim
   yellow marker bar behind the bottom of the phrase only — 0.22em tall at 75%
   opacity, 0.06em up from the box bottom, bleeding 2px past each end. The
   bar is a ::after behind the text (z-index:-1 inside the span's own stacking
   context), so it never washes over the letters. */
.mot-hero__title-lead {
  display: block;
  color: var(--mot-ink);
}
.mot-hero__title-accent {
  position: relative;
  z-index: 0;
  display: inline-block;
  padding: 0 2px;
  color: var(--mot-teal-dark);
}
.mot-hero__title-accent::after {
  position: absolute;
  z-index: -1;
  right: -2px;
  bottom: 0.06em;
  left: -2px;
  height: 0.22em;
  border-radius: 3px;
  background: rgba(255, 214, 10, 0.75);
  content: "";
}
.mot-hero__sub {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--mot-ink-2);
  font-size: 17px;
  line-height: 1.65;
}

/* --------------------------------------------- search card + plate input */

.mot-searchcard {
  max-width: 580px;
  margin: 28px 0 0;
  padding: 20px;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: #fff;
  box-shadow: var(--mot-shadow);
}
.mot-searchform { display: block; margin: 0; }

.mot-regrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.mot-field { min-width: 0; }
.mot-field__label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mot-ink);
}
.mot-field__control {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 62px;
  border: 2px solid var(--mot-plate-ink);
  border-radius: 10px;
  background: var(--mot-plate);
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.mot-field__control:focus-within { box-shadow: 0 0 0 4px rgba(66, 203, 178, 0.45); }
.mot-plate-gb {
  display: grid;
  flex: none;
  width: 40px;
  place-items: center;
  background: var(--mot-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.mot-input {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--mot-plate-ink);
  font: 700 clamp(22px, 5.4vw, 30px)/1 Poppins, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  outline: none;
}
.mot-input::placeholder {
  color: rgba(16, 20, 24, 0.35);
  font-weight: 600;
  font-size: clamp(17px, 4.2vw, 21px);
  letter-spacing: 0.06em;
}
.mot-input:focus-visible {
  outline: 3px solid var(--mot-teal-dark);
  outline-offset: -3px;
  border-radius: 4px;
}
.mot-field__hint {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mot-muted);
}
.mot-field--invalid .mot-field__control {
  border-color: #c81e1e;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3);
}

.mot-searchbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--mot-radius-sm);
  background: var(--mot-teal);
  color: #04211b;
  font: 700 16px/1 Poppins, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 12px 26px -14px rgba(66, 203, 178, 0.95);
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.mot-searchbtn:hover { background: #3dc3ab; }
.mot-searchbtn:active { transform: translateY(1px); }
.mot-searchbtn:focus-visible { outline: 3px solid var(--mot-teal-dark); outline-offset: 3px; }
.mot-searchbtn[disabled] { cursor: progress; opacity: 0.85; }
.mot-searchbtn__arrow { flex: none; transition: transform 160ms ease; }
.mot-searchbtn:hover .mot-searchbtn__arrow { transform: translateX(3px); }
.mot-searchbtn.is-loading .mot-searchbtn__arrow { display: none; }
.mot-spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(4, 33, 27, 0.35);
  border-top-color: #04211b;
  animation: mot-spin 0.7s linear infinite;
}
.mot-searchbtn.is-loading .mot-spinner { display: inline-block; }
@keyframes mot-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------- alerts / statuses */

.mot-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-left: 4px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.mot-alert[data-show="1"] { display: flex; }
.mot-alert svg { flex: none; margin-top: 2px; }
.mot-alert span { min-width: 0; }
.mot-alert--error {
  border-left-color: var(--mot-danger);
  background: var(--mot-danger-soft);
  color: #a11d1d;
  font-weight: 500;
}
.mot-alert--notice {
  border-left-color: var(--mot-teal-dark);
  background: var(--mot-teal-soft);
  color: #116354;
  font-weight: 500;
}
.mot-inline-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 4px solid var(--mot-danger);
  border-radius: 10px;
  background: var(--mot-danger-soft);
  color: #a11d1d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
.mot-inline-error[hidden] { display: none; }

.mot-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.mot-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mot-ink-2);
  font-size: 14px;
  font-weight: 500;
}
.mot-trust svg { flex: none; color: var(--mot-teal-dark); }

/* ------------------------------------------- hero example-report preview */

.mot-report {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: #fff;
  box-shadow: var(--mot-shadow-lg);
}
.mot-report__topline,
.mot-report__heading,
.mot-report__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.mot-report__topline {
  padding: 14px 22px;
  border-bottom: 1px solid var(--mot-border);
  background: var(--mot-mist);
  color: var(--mot-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mot-report__vehicle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
}
.mot-report__id { min-width: 0; }
.mot-report__id b,
.mot-report__id span { display: block; }
.mot-report__id b {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mot-ink);
}
.mot-report__id span { margin-top: 2px; color: var(--mot-muted); font-size: 13px; }
.mot-report__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 22px;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius-sm);
}
.mot-report__stats > div { min-width: 0; padding: 14px 16px; }
.mot-report__stats > div + div { border-left: 1px solid var(--mot-border); }
.mot-report__stats span,
.mot-report__heading span { display: block; color: var(--mot-muted); font-size: 12px; }
.mot-report__stats b {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.mot-report__history { padding: 22px 22px 10px; }
.mot-report__heading b { font-size: 14px; font-weight: 600; color: var(--mot-ink); }
.mot-report__chart { display: block; width: 100%; height: auto; margin-top: 12px; }
.mot-report__footer {
  padding: 13px 22px;
  border-top: 1px solid var(--mot-border);
  color: var(--mot-muted);
  font-size: 13px;
}
.mot-report__pass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mot-teal-dark);
  font-weight: 600;
}
.mot-report__pass i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mot-teal);
}

/* ------------------------------------------- number plate + status chips */

.mot-report__plate {
  display: inline-flex;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--mot-plate-ink);
  border-radius: 6px;
  background: var(--mot-plate);
}
.mot-report__gb {
  display: grid;
  place-items: center;
  padding: 4px 5px;
  background: var(--mot-blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}
.mot-report__vrm {
  padding: 8px 13px;
  color: var(--mot-plate-ink);
  font: 700 22px/1.1 Poppins, sans-serif;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.mot-statuschip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.mot-statuschip svg { flex: none; }
.mot-statuschip--pass { background: var(--mot-pass-soft); color: var(--mot-pass); }

/* ============================================================== SECTIONS */

.mot-section { padding: 60px 0; }
.mot-section--alt {
  border-block: 1px solid var(--mot-border);
  background: var(--mot-mist);
}

.mot-section__head { margin-bottom: 32px; }
.mot-section__title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.mot-section__lede {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--mot-muted);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ================================================================= CARDS */

.mot-grid { display: grid; gap: 16px; }
.mot-grid--4,
.mot-grid--3 { grid-template-columns: 1fr; }

.mot-card {
  padding: 26px;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: #fff;
  box-shadow: var(--mot-shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.mot-card:hover {
  border-color: rgba(66, 203, 178, 0.55);
  box-shadow: var(--mot-shadow);
  transform: translateY(-2px);
}
.mot-card__icon {
  display: grid;
  width: 48px; height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--mot-teal-soft);
  color: var(--mot-teal-dark);
}
.mot-card__title {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mot-card__text {
  margin: 0;
  color: var(--mot-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ------------------------------------------- dense checklist (what's in an MOT) */

.mot-grid--checks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: var(--mot-border);
  box-shadow: var(--mot-shadow-sm);
}
.mot-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  color: var(--mot-ink);
  font-size: 15px;
  font-weight: 500;
}
.mot-chip__ico {
  display: grid;
  flex: none;
  width: 40px; height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--mot-teal-soft);
  font-size: 18px;
  line-height: 1;
}

/* ------------------------------------------- numbered failure list */

.mot-faillist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fail;
}
.mot-faicard {
  position: relative;
  display: block;
  padding: 28px;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: #fff;
  box-shadow: var(--mot-shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.mot-faicard:hover { border-color: rgba(66, 203, 178, 0.55); box-shadow: var(--mot-shadow); }
/* Numbered tile, styled like the reference .mic icon tile (mint block, teal
   glyph) rather than a solid dark chip, per the required design. */
.mot-faicard__num {
  display: grid;
  width: 48px; height: 48px;
  place-items: center;
  border-radius: 12px;
  background: var(--mot-teal-soft);
  color: var(--mot-teal-dark);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mot-faicard__title {
  margin: 20px 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mot-faicard__text {
  margin: 0;
  color: var(--mot-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ================================================ PROSE + SIDE CARD BLOCK */

.mot-what__grid { display: grid; gap: 32px; align-items: start; }
.mot-what__copy { min-width: 0; max-width: 720px; }
.mot-what__copy p {
  margin: 0 0 16px;
  color: var(--mot-ink-2);
  font-size: 16.5px;
  line-height: 1.75;
}
.mot-what__copy p:last-child { margin-bottom: 0; }

/* Right rail: two stacked cards beside the long-form prose. */
.mot-what__side { display: grid; gap: 20px; align-content: start; min-width: 0; }

.mot-sidecard {
  padding: 26px;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: #fff;
  box-shadow: var(--mot-shadow-sm);
}
.mot-sidecard__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Two-column label+value rows, each closed by a full-width left divider. */
.mot-statlist { margin: 0; }
.mot-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mot-border);
}
.mot-stat:first-child { padding-top: 0; }
.mot-stat:last-child { padding-bottom: 0; border-bottom: 0; }
.mot-stat b {
  color: var(--mot-ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.mot-stat span {
  color: var(--mot-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

/* Pill chips + italic tip. */
.mot-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mot-chip {
  padding: 6px 12px;
  border: 1px solid var(--mot-border);
  border-radius: 999px;
  background: var(--mot-mist);
  color: var(--mot-ink-2);
  font-size: 13px;
  font-weight: 500;
}
.mot-sidecard__tip {
  margin: 16px 0 0;
  color: var(--mot-muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* Tablet: the two rail cards sit side by side under the prose. */
@media (min-width: 640px) and (max-width: 991px) {
  .mot-what__side { grid-template-columns: 1fr 1fr; }
}

/* ============================================================ DARK CTA BAND */

.mot-cta { padding: 0 0 60px; }
.mot-ctaband {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  overflow: hidden;
  padding: 36px 32px;
  border-radius: 20px;
  background: var(--mot-ink);
  color: #fff;
  box-shadow: var(--mot-shadow-lg);
}
.mot-ctaband__glow {
  position: absolute;
  top: -46%; right: -8%;
  width: 440px; height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 203, 178, 0.34), transparent 66%);
  pointer-events: none;
}
.mot-ctaband__copy,
.mot-ctaband__action { position: relative; }
.mot-page .mot-ctaband__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.mot-ctaband__text {
  max-width: 640px;
  margin: 0;
  color: #c3ccd2;
  font-size: 16px;
  line-height: 1.65;
}
.mot-ctabtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--mot-radius);
  background: var(--mot-teal);
  color: #04211b;
  font: 600 15px/1 Poppins, sans-serif;
  text-decoration: none;
  box-shadow: 0 10px 24px -14px rgba(66, 203, 178, 0.9);
  transition: background-color 160ms ease, transform 160ms ease;
}
.mot-ctabtn:hover { background: #3dc3ab; }
.mot-ctabtn:active { transform: translateY(1px); }
.mot-ctabtn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.mot-ctabtn svg { transition: transform 160ms ease; }
.mot-ctabtn:hover svg { transform: translateX(3px); }
.mot-ctaband__note {
  margin: 12px 0 0;
  color: #9fb0b6;
  font-size: 13px;
}

/* ==================================================================== FAQ */

.mot-faq__inner { }
.mot-faqsearch {
  position: relative;
  max-width: 860px;
  margin: 48px auto 20px;
}
.mot-faqsearch svg {
  position: absolute;
  top: 50%; left: 18px;
  transform: translateY(-50%);
  color: var(--mot-muted);
}
.mot-faqsearch__input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius-sm);
  background: #fff;
  padding: 0 18px 0 50px;
  color: var(--mot-ink);
  font: 400 15px/1.4 Poppins, sans-serif;
  box-shadow: var(--mot-shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.mot-faqsearch__input:focus { border-color: var(--mot-teal-dark); }
.mot-faqsearch__input:focus-visible {
  outline: 3px solid var(--mot-teal-dark);
  outline-offset: 2px;
}
.mot-faqlist { max-width: 860px; margin: 0 auto; }

.faqitem {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius-sm);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.faqitem:hover { border-color: #cfd9e3; }
.faqitem.open { border-color: rgba(66, 203, 178, 0.6); box-shadow: var(--mot-shadow); }
.faqitem.hidden { display: none; }
.faqq {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 18px 20px;
  border: 0;
  background: none;
  color: var(--mot-ink);
  font: 600 15.5px/1.45 Poppins, sans-serif;
  text-align: left;
  cursor: pointer;
}
.faqq:focus-visible { outline: 3px solid var(--mot-teal-dark); outline-offset: -3px; }
.faqico {
  display: grid;
  flex: none;
  width: 30px; height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--mot-teal-soft);
  color: var(--mot-teal-dark);
  transition: transform 250ms ease, background-color 200ms ease, color 200ms ease;
}
.faqitem.open .faqico { transform: rotate(45deg); background: var(--mot-teal); color: #04211b; }
.faqans {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faqans-inner { padding: 0 56px 20px 20px; }
.faqans-inner p {
  margin: 0;
  color: var(--mot-muted);
  font-size: 15px;
  line-height: 1.7;
}
.mot-faq__none {
  max-width: 860px;
  margin: 16px auto 0;
  color: var(--mot-muted);
  font-size: 14.5px;
}
.mot-faq__none a { color: var(--mot-teal-dark); font-weight: 600; }
.mot-faq__none[hidden] { display: none; }

/* ============================================================= RESPONSIVE */

@media (min-width: 640px) {
  .mot-hero { padding: 44px 0 72px; }
  .mot-searchcard { padding: 24px; }
  .mot-report__topline,
  .mot-report__vehicle,
  .mot-report__history,
  .mot-report__footer { padding-inline: 24px; }
  .mot-report__stats { margin-inline: 24px; }
  .mot-section { padding: 76px 0; }
  .mot-grid--4,
  .mot-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .mot-grid--checks { grid-template-columns: repeat(2, 1fr); }
  .mot-faillist { grid-template-columns: repeat(2, 1fr); }
  .mot-section__head { margin-bottom: 44px; }
}

@media (min-width: 992px) {
  .mot-hero { padding: 56px 0 88px; }
  .mot-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
  .mot-searchcard { margin-top: 32px; }
  .mot-hero__sub { font-size: 18px; }
  .mot-section { padding: 96px 0; }
  .mot-section__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 24px 72px;
    align-items: end;
    margin-bottom: 52px;
  }
  .mot-section__head .mot-eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
  .mot-section__title { max-width: 560px; }
  .mot-section__lede { margin: 0 0 6px; }
  .mot-grid { gap: 20px; }
  .mot-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .mot-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .mot-grid--checks { grid-template-columns: repeat(4, 1fr); }
  .mot-faillist { grid-template-columns: repeat(3, 1fr); }
  .mot-what__grid {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 64px;
    align-items: start;
  }
  .mot-what__side { position: sticky; top: 96px; }
  .mot-cta { padding: 0 0 72px; }
  .mot-ctaband {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 48px;
  }
  .mot-ctaband__action { text-align: right; }
  .faqans-inner { padding: 0 72px 22px 24px; }
}

/* Stack the plate + button on narrow/medium screens. */
@media (max-width: 991px) {
  .mot-regrow { grid-template-columns: 1fr; align-items: stretch; }
  .mot-searchbtn { width: 100%; }
}

/* Keep the example report legible on phones. */
@media (max-width: 480px) {
  .mot-hero__title { font-size: clamp(32px, 9vw, 40px); }
  .mot-report__vehicle { flex-wrap: wrap; gap: 14px; }
  .mot-report__vrm { font-size: 19px; }
  .mot-report__stats b { font-size: 16px; }
}

/* Centred FAQ heading (reference keeps the FAQ block centred + narrow). */
.mot-faq__inner .mot-section__head {
  display: block;
  margin-bottom: 36px;
  text-align: center;
}
.mot-faq__inner .mot-section__head .mot-section__title { max-width: none; margin-inline: auto; }
.mot-faq__inner .mot-eyebrow { margin-inline: auto; }
.mot-faq__inner .mot-section__lede { margin: 14px auto 0; }

/* Centred post-FAQ seller CTA (reference .cta card). */
.mot-ctaband--sell {
  display: block;
  text-align: center;
  padding: 72px 32px;
}
.mot-ctaband--sell .mot-ctaband__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
}
.mot-ctaband--sell .mot-ctaband__text {
  max-width: 600px;
  margin: 16px auto 32px;
  font-size: 17px;
}
.mot-ctaband--sell .mot-ctaband__action {
  text-align: center;
}
.mot-ctaband--sell .mot-ctabtn {
  min-height: 54px;
  padding: 16px 30px;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .mot-page *,
  .mot-page *::before,
  .mot-page *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* =================================================================
   CONTENT SECTIONS — reference-matched rebuild
   (what's included / what an MOT is / what it checks / top failures)
   Scoped .mot-* only; never global.css.
   ================================================================= */

/* ---------------------------------------------- split section head */

.mot-section__head--split { display: grid; gap: 16px; }
.mot-section__head--split .mot-section__title { margin: 0; max-width: 560px; }
.mot-section__head--split .mot-section__lede { margin: 0; }
.mot-section__aside { display: flex; flex-direction: column; }

@media (min-width: 992px) {
  .mot-section__head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 32px 72px;
    align-items: end;
    margin-bottom: 56px;
  }
  .mot-section__head--split .mot-section__aside {
    align-items: flex-end;
    padding-bottom: 6px;
  }
  .mot-section__head--split .mot-section__lede {
    text-align: left;
  }
}

/* ------------------------------------------------- 4-up feature cards */

.mot-feats .mot-card { padding: 28px; }
@media (min-width: 992px) { .mot-grid--4.mot-feats { gap: 20px; } }

/* ------------------------------- dense checklist grid (12 MOT groups) */

.mot-checkgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--mot-border);
  border-radius: var(--mot-radius);
  background: var(--mot-border);
  box-shadow: var(--mot-shadow-sm);
}
/* Dense reference layout: 40px icon tile pinned to the left, spanning the
   title + description rows, instead of a stacked icon-above-title cell. */
.mot-checkcell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  padding: 26px 24px;
  background: #fff;
  transition: background-color 160ms ease;
}
/* Reference dense grid highlights the hovered cell (mist wash, no shadow). */
.mot-checkcell:hover { background: var(--mot-mist); }
.mot-checkcell__ico {
  display: grid;
  grid-row: span 2;
  width: 40px; height: 40px;
  place-items: center;
  border-radius: 10px;
  background: var(--mot-teal-soft);
  color: var(--mot-teal-dark);
}
.mot-checkcell__ico svg { width: 20px; height: 20px; }
.mot-checkcell__title {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.mot-checkcell__text {
  margin: 0;
  color: var(--mot-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (min-width: 640px) { .mot-checkgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .mot-checkgrid { grid-template-columns: repeat(4, 1fr); } }

/* Rows/grid lines come from the 1px gap over the border-coloured grid
   backdrop, so suppress the hover wash bleeding into the seams on touch. */
@media (hover: none) { .mot-checkcell:hover { background: #fff; } }

/* ------------------------------------------- MOT test prose + sidebar */

/* Numbered teal anchors above each of the four sub-headings. */
.mot-subhead {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 12px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mot-what__copy > .mot-subhead:first-child { margin-top: 0; }
.mot-subhead__num {
  display: inline-grid;
  flex: none;
  width: 26px; height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--mot-teal-soft);
  color: var(--mot-teal-dark);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* Mint callout (pass tokens) with an accent left edge. */
.mot-callout {
  margin: 36px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--mot-pass);
  border-radius: 0 var(--mot-radius-sm) var(--mot-radius-sm) 0;
  background: var(--mot-pass-soft);
  color: var(--mot-ink-2);
  font-size: 18px;
  line-height: 1.6;
}
.mot-callout b { color: var(--mot-ink); font-weight: 600; }

/* -------------------------------- numbered failure tiles */
