.mot-hero {
    text-align: center;
    padding: 40px 20px;
    background: #f5f7fa;
}

/* ============================
   REALISTIC UK NUMBER PLATE
   ============================ */

.reg-plate {
    display: flex;
    align-items: center;
    width: 360px;
    height: 80px;
    background: #F3DD4E;      /* Yellow plate */
    border-radius: 16px;
    border: 4px solid white;
    box-shadow: 0px 6px 22px rgba(0,0,0,0.35);
    overflow: hidden;
    margin: 25px auto 30px;
}

/* LEFT BLUE EU STRIP */
.reg-left {
    width: 70px;
    height: 100%;
    background: #1C2A78;     /* Perfect EU blue */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* EU 12 STAR CIRCLE */
.eu-stars {
    width: 36px;
    height: 36px;
    background: url('/assets/img/eu-stars.svg') no-repeat center;
    background-size: contain;
    margin-bottom: 4px;
}

/* UK text */
.uk-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* MOT INPUT FIELD (updated) */
#motRegInput {
    flex: 1;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 34px;
    font-weight: 800;
    color: #2A2A2A;
    text-transform: uppercase;
    padding-left: 22px;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
}

/* Placeholder same style */
#motRegInput::placeholder {
    color: #555;
    opacity: 0.55;
}

/* MOT BUTTON */
.mot-btn {
    width: 360px;
    margin: 0 auto;
    display: block;
    padding: 14px 20px;
    font-size: 20px;
    border-radius: 10px;
    background: #0057ff;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Error message */
.mot-error {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 15px;
}


.mot-results {
    padding: 20px;
}

.mot-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 8px solid green;
}

.mot-card.fail {
    border-left-color: red;
}

.defects li.dangerous {
    color: red;
    font-weight: bold;
}

.defects li.advisory {
    color: orange;
}

.hidden {
    display: none;
}
/* ============================
   MOT TEST HEADER
   ============================ */

.mot-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 8px;
}

.mot-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
}

.mot-status.pass {
    background: #16a34a;
}

.mot-status.fail {
    background: #dc2626;
}

/* ============================
   ADVISORY DROPDOWN
   ============================ */

.advisory-toggle {
    background: none;
    border: none;
    color: #0057ff;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    padding: 0;
}


/* ============================
   SEO CONTENT SECTION
   ============================ */

.mot-seo {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 16px;
}

.mot-seo h2 {
    font-size: 26px;
    margin-bottom: 12px;
}

.mot-seo p {
    line-height: 1.7;
    color: #555;
}
/* ============================
   FAQ SECTION
   ============================ */

.mot-faq {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 0 16px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
}

.faq-question {
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.faq-answer {
    display: none;
    padding-bottom: 16px;
    color: #555;
}

.faq-answer.open {
    display: block;
}
/* ============================
   MOT SEO SECTION
   ============================ */

.mot-seo {
    text-align: center;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 16px;
}

.mot-seo h2 {
    font-size: 26px;
    margin-bottom: 16px;
}

.mot-seo p {
    max-width: 720px;
    margin: 0 auto 18px;
    line-height: 1.6;
    color: #444;
}
/* ============================
   MOT DEFECT LIST STYLES
   ============================ */

.defects {
    margin-top: 10px;
    padding-left: 18px;
    list-style: disc;
}

/* Hide by default (collapse) */
.defects.collapsed {
    display: none;
}

/* Defect severity colours */
.defects li.dangerous {
    color: #b00000;
    font-weight: 700;
}

.defects li.major {
    color: #e67e00;
    font-weight: 600;
}

.defects li.advisory {
    color: #555;
}

/* ============================
   ADVISORY TOGGLE BUTTON
   ============================ */

.advisory-toggle {
    margin-top: 10px;
    background: #eef3ff;
    border: none;
    color: #0057ff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.advisory-toggle:hover {
    background: #dde7ff;
}
/* ============================
   MOT RESULT CARDS (IMPROVED)
   ============================ */

.mot-results {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 16px 0;
}

/* Individual MOT test */
.mot-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 18px 16px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-left: 8px solid #22c55e; /* pass default */
}

/* Fail override */
.mot-card.fail {
    border-left-color: #dc2626;
}

/* Header */
.mot-test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.mot-test-header div:first-child {
    font-size: 15px;
    font-weight: 600;
}

/* PASS / FAIL badge */
.mot-status {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mot-status.pass {
    background: #16a34a;
    color: #fff;
}

.mot-status.fail {
    background: #dc2626;
    color: #fff;
}

/* Mileage */
.mot-card p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
}

/* ============================
   DEFECT LIST
   ============================ */

.defect-section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.defect-section strong {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
}

.defects {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
}

/* Defect severity */
.defects li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.45;
}

/* Advisory */
.defects li.advisory {
    color: #555;
}

/* Major */
.defects li.major {
    color: #e67e00;
    font-weight: 600;
}

/* Dangerous */
.defects li.dangerous {
    color: #b00000;
    font-weight: 700;
}

/* ============================
   VEHICLE HEADER CARD
   ============================ */

.vehicle-card {
    background: #f5f7ff;
    border: 1px solid #d6ddff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

.vehicle-card h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.vehicle-card p {
    margin: 2px 0;
    font-size: 14px;
    color: #333;
}

/* ============================
   MOBILE TWEAKS
   ============================ */

@media (max-width: 520px) {
    .mot-test-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .mot-status {
        align-self: flex-start;
    }
}
/* ============================
   MOT SEO CONTENT – PREMIUM BOX
   ============================ */

.mot-seo {
    max-width: 960px;
    margin: 80px auto;
    padding: 40px 36px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    text-align: center;
}

/* Headings */
.mot-seo h2 {
    font-size: 28px;
    margin-bottom: 18px;
    color: #111827;
}

/* Sub-headings (FAQ titles) */
.mot-seo h3 {
    font-size: 20px;
    margin: 28px 0 10px;
    color: #1f2937;
}

/* Paragraph text */
.mot-seo p {
    max-width: 780px;
    margin: 0 auto 18px;
    line-height: 1.7;
    font-size: 16px;
    color: #374151;
}

/* Lists */
.mot-seo ul {
    max-width: 720px;
    margin: 16px auto 24px;
    padding-left: 22px;
    text-align: left;
}

.mot-seo li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #374151;
}

/* Horizontal separators */
.mot-seo hr {
    border: none;
    height: 1px;
    background: #e5e7eb;
    margin: 40px 0;
}

/* Mobile tweaks */
@media (max-width: 768px) {
    .mot-seo {
        padding: 28px 20px;
        margin: 60px 12px;
    }

    .mot-seo h2 {
        font-size: 24px;
    }
}
.ulez-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
  max-width: 600px;
  margin: 30px auto;
}

.ulez-pass {
  border-left: 6px solid #16a34a;
}

.ulez-fail {
  border-left: 6px solid #dc2626;
}

.ulez-vehicle {
  margin-top: 10px;
  line-height: 1.6;
}

.ulez-note {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.7;
}
/* ============================
   ULEZ REG PLATE FIX
   ============================ */

.ulez-page .reg-plate {
    width: 360px;
    height: 80px;
    display: flex;
    align-items: center;
    margin: 25px auto;
}

.ulez-page .reg-plate input {
    all: unset;
    flex: 1;
    height: 100%;
    padding: 0 16px;

    font-size: 33px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #000;
    background: transparent;
    outline: none;

    text-align: left;
}

/* Placeholder styling */
.ulez-page .reg-plate input::placeholder {
    color: #555;
    font-weight: 600;
    letter-spacing: 1.5px;
}

/* ============================
   iOS SAFARI ZOOM FIX
   ============================ */
@media (max-width: 768px) {
    .ulez-page .reg-plate {
        width: 100%;
        max-width: 340px;
        height: 72px;
    }

    .ulez-page .reg-plate input {
        font-size: 30px; /* CRITICAL: prevents iOS zoom */
    }
}
/* ============================
   ULEZ RESULT CARD (MOTORWAY STYLE)
   ============================ */

.ulez-result-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    max-width: 520px;
    margin: 30px auto;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

/* STATUS BAR */
.ulez-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
}

.ulez-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* PASS / FAIL COLORS */
.ulez-pass .ulez-icon {
    background: #16a34a;
    color: #fff;
}

.ulez-fail .ulez-icon {
    background: #dc2626;
    color: #fff;
}

.ulez-pass {
    border: 1px solid #bbf7d0;
}

.ulez-fail {
    border: 1px solid #fecaca;
}

/* MESSAGE */
.ulez-message {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* VEHICLE SUMMARY */
.ulez-vehicle-summary {
    background: #f9fafb;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* CTA BUTTON */
.ulez-cta {
    display: block;
    text-align: center;
    background: #111;
    color: #fff;
    padding: 14px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.ulez-cta:hover {
    background: #000;
    transform: translateY(-1px);
}

/* DISCLAIMER */
.ulez-disclaimer {
    font-size: 12px;
    color: #666;
    margin-top: 12px;
    line-height: 1.4;
}
/* ============================
   SEO CONTENT BOX (FIXED)
   ============================ */

section.seo-box {
    position: relative;          /* creates stacking context */
    background: #ffffff;
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    line-height: 1.7;
    z-index: 1;                  /* ensures box sits behind content */
}

.ulez-seo-box h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.ulez-seo-box h3 {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 12px;
}

.ulez-seo-box h4 {
    font-size: 17px;
    margin-top: 18px;
    margin-bottom: 6px;
}

.ulez-seo-box p {
    font-size: 16px;
    margin-bottom: 16px;
    color: #222;
}

.ulez-seo-box ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.ulez-seo-box ul li {
    margin-bottom: 10px;
}

.ulez-seo-box hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 30px 0;
}

/* Mobile spacing */
@media (max-width: 768px) {
    section.seo-box {
        padding: 24px;
        margin: 40px 16px;
    }
}
/* ============================
   ULEZ FAQ DROPDOWN
   ============================ */

.center {
    text-align: center;
}

.ulez-faq {
    max-width: 760px;
    margin: 30px auto 0;
}

.ulez-faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.ulez-faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 18px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.ulez-faq-question::after {
    content: "▾";
    position: absolute;
    right: 20px;
    font-size: 18px;
    transition: transform 0.25s ease;
}

.ulez-faq-item.active .ulez-faq-question::after {
    transform: rotate(180deg);
}

.ulez-faq-answer {
    display: none;
    padding: 0 24px 20px;
    font-size: 15px;
    text-align: center;
    line-height: 1.6;
    color: #333;
}

.ulez-faq-item.active .ulez-faq-answer {
    display: block;
}
/* ============================
   ULEZ SELL CTA SECTION
   ============================ */

.ulez-sell-wrapper {
    max-width: 520px;
    margin: 40px auto;
    padding: 22px;

    background: #f9fafb;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);

    text-align: center;
}

/* Button (enhanced) */
.ulez-sell-btn {
    display: inline-block;
    width: 100%;
    max-width: 320px;

    background: #16A34A;
    color: #fff;

    padding: 16px 20px;
    border-radius: 999px;

    font-size: 18px;
    font-weight: 700;
    text-decoration: none;

    transition: transform 0.15s ease, background 0.15s ease;
}

.ulez-sell-btn:hover {
    background: #2BFF6A;
    transform: translateY(-1px);
}

/* Mobile spacing */
@media (max-width: 768px) {
    .ulez-sell-wrapper {
        margin: 30px 16px;
        padding: 20px;
    }

    .ulez-sell-btn {
        font-size: 17px;
    }
}
/* ============================
   ULEZ HERO IMAGE
   ============================ */

.ulez-hero-image {
    max-width: 720px;
    margin: 20px auto 30px;
}

.ulez-hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile spacing */
@media (max-width: 768px) {
    .ulez-hero-image {
        margin: 16px auto 24px;
        max-width: 92%;}
    }
/* Loading state */
.mot-btn.loading {
    pointer-events: none;
    opacity: 0.85;
    position: relative;
}

.mot-btn.loading span {
    visibility: hidden;
}

/* Spinner container (centering only) */
.mot-btn.loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    inset: 0;
    margin: auto;
    animation: spin 0.8s linear infinite;
}

/* Rotation ONLY */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}