@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Roboto:wght@400;500;700&display=swap');

/* JLR Rebuilds — independent green/charcoal theme */
/* Typography: Montserrat display + Roboto copy, with Helvetica fallback */
.hero-copy h1,
.hero-copy .eyebrow,
.hero-vrm-card h2,
.hero-vrm-card .hero-vrm-kicker,
.hero-vrm-card label,
.hero-vrm-card button,
.section-heading h1,
.section-heading h2 {
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.hero-copy p,
.hero-vrm-card,
.hero-vrm-card p,
.hero-vrm-card input,
.faq-layout,
.accordion {
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.hero-copy h1 {
    max-width: 790px;
    font-size: clamp(2.55rem, 3.35vw, 3.55rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero-copy .eyebrow {
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-copy p {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.72;
}

.hero-vrm-card h2 {
    font-weight: 700;
    letter-spacing: -0.03em;
}

@media (max-width: 790px) {
    .hero-copy h1 {
        font-size: clamp(2.15rem, 6.8vw, 2.75rem);
        line-height: 1.08;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: clamp(1.95rem, 9vw, 2.4rem);
    }
}

:root{
    --ink:#14201a;
    --navy:#10251c;
    --navy2:#09150f;
    --red:#1f7a4c;
    --red2:#155c39;
    --muted:#627168;
    --line:#d9e3dc;
    --soft:#f2f7f4;
    --radius:16px;
    --shadow:0 22px 55px rgba(10,37,24,.14);
}

body{background:#fbfdfb;color:#15231b}
.announcement{background:#08150f;color:#dcebe1;border-bottom:1px solid rgba(255,255,255,.08)}
.site-header{background:#fff;color:var(--ink);border-bottom:1px solid var(--line)}
.header-main{min-height:88px}
.brand strong{color:#0e3422;font-size:1.48rem;letter-spacing:-.035em}
.brand small{color:#607066}
.nav-parent,.nav-link{color:#20362a}
.nav-parent:hover,.nav-link:hover,.nav-parent:focus-visible,.nav-link:focus-visible{color:#1f7a4c}
.nav-dropdown a:hover{background:#eef6f1;color:#155c39}
.contact-strip{background:#0f3323;color:#fff;border-bottom:0}
.contact-grid span{border-right-color:rgba(255,255,255,.15)}

.btn-primary{background:linear-gradient(135deg,#258c59,#176a42);box-shadow:0 10px 24px rgba(31,122,76,.28)}
.btn-primary:hover{background:linear-gradient(135deg,#1d774b,#104e31)}

.hero-section{
    min-height:620px;
    background-image:
        radial-gradient(circle at 72% 24%,rgba(79,145,104,.22),transparent 29%),
        linear-gradient(118deg,#07140e 0%,#123525 52%,#1d4b35 100%);
    background-attachment:scroll;
}
.hero-overlay{background:linear-gradient(90deg,rgba(5,16,10,.90),rgba(10,37,24,.64) 62%,rgba(11,46,30,.22))}
.hero-grid{grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);gap:64px;padding-block:68px}
.eyebrow{color:#9bd3b0;letter-spacing:.12em}
.hero-copy h1{font-size:clamp(2.55rem,4.6vw,4.4rem);text-wrap:balance}
.hero-copy p{font-size:1.06rem;color:#e3eee7}
.hero-vrm-card{border:1px solid rgba(40,126,78,.20);box-shadow:0 30px 80px rgba(3,19,11,.38)}
.hero-vrm-card:before{background:#1f7a4c}
.hero-vrm-kicker{color:#176a42}
.hero-vrm-submit{background:linear-gradient(135deg,#258c59,#176a42)}

.trust-strip{background:#f8fbf9}
.trust-icon{background:#e0f2e7;color:#176a42}
.trust-grid article{border-right-color:#d9e5dd}
.trust-disclosure{max-width:1050px;margin:0 auto;padding:0 24px 22px;color:#617068;text-align:center;font-size:.78rem}

.section{padding:82px 0;border-bottom-color:#e6eee9}
.section:nth-of-type(even){background:#f4f8f5}
.section-heading h1,.section-heading h2{color:#102d20;text-wrap:balance}
.section-intro{max-width:920px;margin-inline:auto}
.section-intro p,.rich-copy p{font-size:1.05rem;line-height:1.8;color:#3d5145}
.callout-panel{max-width:980px;margin-inline:auto;border-color:#d3e3d9;background:linear-gradient(135deg,#fff,#f2f8f4);box-shadow:0 18px 45px rgba(22,78,48,.08)}

.cards-grid{max-width:1080px;margin-inline:auto}
.content-card{border-color:#d5e3da;box-shadow:0 9px 26px rgba(19,62,39,.07)}
.content-card:hover{border-color:#a8cdb7;box-shadow:0 18px 42px rgba(19,62,39,.13)}
.card-icon{background:#164d33}
.content-card h3{color:#173b29}

.step-card{border-color:#d5e4da;box-shadow:0 8px 22px rgba(17,61,38,.06)}
.step-number,.step-card:first-child .step-number{background:#1f7a4c}
.accordion{max-width:900px;margin-inline:auto}
.accordion details{padding:20px 22px;border:1px solid #d9e5dd;border-radius:12px;margin-bottom:12px;background:#fff}
.accordion summary:after{color:#1f7a4c}
/* FAQ: the Blade wrapper is .section-faq (not .faq-section). */
.section-faq .faq-layout:not(:has(.section-media)){
    display:grid;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%;
    gap:0;
}
.section-faq .faq-layout:not(:has(.section-media)) .accordion{
    width:100%;
    max-width:none;
    margin-inline:0;
}
/* Keep the intended split layout when an FAQ image is actually present. */
.section-faq .faq-layout:has(.section-media){
    grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
}
.final-cta-section{background:linear-gradient(125deg,#0a2116,#17452f)}
.site-footer{background:#08150f}
.footer-disclosure{border-top-color:#214332}
.footer-bottom{border-top-color:#193728}

.vrm-modal-close:hover,.vrm-choice-card:has(input:checked) .choice-check,.vrm-progress .is-active span,.vrm-progress .is-complete span{background:#1f7a4c}
.vrm-choice-card:has(input:checked){border-color:#1f7a4c;background:#f2faf5;box-shadow:0 0 0 3px rgba(31,122,76,.10)}
.vrm-contact-grid input:focus{border-color:#1f7a4c;box-shadow:0 0 0 3px rgba(31,122,76,.10)}
.vrm-step-heading .eyebrow{color:#1f7a4c}

@media(max-width:1000px){
    .hero-grid{grid-template-columns:1fr 420px;gap:36px}
}

@media(max-width:790px){
    .site-header{background:#fff}
    .menu-toggle{border-color:#81988a;color:#173b29;background:#fff}
    .menu-toggle span{background:#173b29}
    .main-nav{background:#fff;border-top:1px solid #dce7df}
    .nav-parent,.nav-link{color:#173b29}
    .nav-dropdown{background:#eef6f1;color:#173b29}
    .hero-grid{grid-template-columns:1fr;padding-block:44px}
    .hero-section{min-height:auto}
    .hero-copy h1{font-size:clamp(2.15rem,9vw,3rem)}
}

@media(max-width:520px){
    .section{padding:58px 0}
    .hero-grid{padding-block:34px}
    .hero-copy p{font-size:.96rem}
    .hero-vrm-card{padding:22px 18px}
}

/* JLR model pages — premium Engine Lookup Matrix */
.section-compatibility-table .section-heading{
    max-width:1180px;
    margin:0 auto 22px;
}
.section-compatibility-table .section-heading h2{
    margin-bottom:0;
}
.jlr-engine-matrix{
    position:relative;
    max-width:1180px;
    margin:0 auto;
    overflow:hidden;
    border:1px solid #cfddd4;
    border-radius:24px;
    background:#fff;
    box-shadow:0 24px 58px rgba(12,52,32,.12);
}
.jlr-engine-matrix::before{
    content:"";
    position:absolute;
    inset:0 0 auto;
    height:4px;
    background:linear-gradient(90deg,#123f2a,#2e9a63 48%,#9ed2b1);
}
.jlr-engine-matrix__topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    padding:28px 30px 24px;
    background:
        radial-gradient(circle at 86% 12%,rgba(83,166,113,.16),transparent 34%),
        linear-gradient(135deg,#f8fcf9,#eef6f1);
    border-bottom:1px solid #dce8e0;
}
.jlr-engine-matrix__eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:7px;
    color:#176a42;
    font-size:.74rem;
    font-weight:800;
    letter-spacing:.13em;
    text-transform:uppercase;
}
.jlr-engine-matrix__eyebrow::before{
    content:"";
    width:24px;
    height:2px;
    border-radius:99px;
    background:#2b8e59;
}
.jlr-engine-matrix__summary{
    margin:0;
    color:#455b4d;
    font-size:.98rem;
    line-height:1.6;
}
.jlr-engine-matrix__summary strong{color:#123524}
.jlr-engine-matrix__count{
    flex:0 0 auto;
    min-width:108px;
    padding:12px 16px;
    border:1px solid #c9ddcf;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 22px rgba(18,72,44,.07);
    text-align:center;
}
.jlr-engine-matrix__count strong{
    display:block;
    color:#155c39;
    font-size:1.45rem;
    line-height:1;
}
.jlr-engine-matrix__count span{
    display:block;
    margin-top:5px;
    color:#6b7a71;
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
}
.jlr-engine-matrix__intro{
    padding:18px 30px;
    color:#4a5e52;
    line-height:1.7;
    border-bottom:1px solid #e1ebe5;
}
.jlr-engine-matrix__table-wrap{
    width:100%;
    overflow-x:auto;
    scrollbar-width:thin;
    scrollbar-color:#9dbbaa #eef4f0;
}
.jlr-engine-matrix__table{
    width:100%;
    min-width:880px;
    border-collapse:separate;
    border-spacing:0;
    background:#fff;
}
.jlr-engine-matrix__table thead th{
    padding:15px 18px;
    border:0;
    border-right:1px solid rgba(255,255,255,.09);
    background:linear-gradient(180deg,#143b29,#0e2d1e);
    color:#eef8f2;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.055em;
    line-height:1.35;
    text-align:left;
    text-transform:uppercase;
    white-space:nowrap;
}
.jlr-engine-matrix__table thead th:last-child{border-right:0}
.jlr-engine-matrix__table tbody tr{
    transition:background-color .18s ease,transform .18s ease;
}
.jlr-engine-matrix__table tbody tr:nth-child(even){background:#f8fbf9}
.jlr-engine-matrix__table tbody tr:hover{background:#edf7f1}
.jlr-engine-matrix__table td{
    padding:19px 18px;
    border:0;
    border-bottom:1px solid #e2ebe5;
    color:#33483b;
    font-size:.92rem;
    line-height:1.45;
    vertical-align:middle;
}
.jlr-engine-matrix__table tbody tr:last-child td{border-bottom:0}
.jlr-model-name{
    color:#123524;
    font-size:.97rem;
    font-weight:800;
}
.jlr-engine-code{
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:5px 10px;
    border:1px solid #b9d6c4;
    border-radius:9px;
    background:#eaf6ef;
    color:#0f5a36;
    font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;
    font-size:.85rem;
    font-weight:800;
    letter-spacing:.025em;
    white-space:nowrap;
}
.jlr-fuel-badge{
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border-radius:999px;
    background:#f0f4f1;
    color:#385247;
    font-size:.78rem;
    font-weight:800;
    white-space:nowrap;
}
.jlr-engine-matrix__cell--displacement{
    color:#173f2b!important;
    font-weight:800;
    white-space:nowrap;
}
.jlr-engine-matrix__footnote{
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:17px 24px 18px;
    border-top:1px solid #dce8e0;
    background:#f7faf8;
}
.jlr-engine-matrix__footnote p{
    margin:0;
    color:#66766d;
    font-size:.78rem;
    line-height:1.55;
}
.jlr-engine-matrix__info,
.jlr-engine-matrix__empty-icon{
    display:inline-grid;
    flex:0 0 22px;
    width:22px;
    height:22px;
    place-items:center;
    border-radius:50%;
    background:#dcefe4;
    color:#176a42;
    font-size:.75rem;
    font-weight:900;
}
.jlr-engine-matrix__empty{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:28px 30px 30px;
    background:#fbfdfb;
}
.jlr-engine-matrix__empty strong{display:block;color:#183c2a;margin-bottom:5px}
.jlr-engine-matrix__empty p{margin:0;color:#65756c;line-height:1.6}
.section-compatibility-table .section-cta{
    max-width:1180px;
    margin:24px auto 0;
}

@media(max-width:760px){
    .jlr-engine-matrix{border-radius:18px}
    .jlr-engine-matrix__topbar{
        align-items:flex-start;
        padding:23px 20px 20px;
    }
    .jlr-engine-matrix__count{
        min-width:82px;
        padding:10px 9px;
    }
    .jlr-engine-matrix__summary{font-size:.9rem}
    .jlr-engine-matrix__table-wrap{
        overflow:visible;
        padding:14px;
        background:#f5f9f6;
    }
    .jlr-engine-matrix__table{
        display:block;
        min-width:0;
        background:transparent;
    }
    .jlr-engine-matrix__table thead{
        position:absolute;
        width:1px;
        height:1px;
        overflow:hidden;
        clip:rect(0 0 0 0);
        clip-path:inset(50%);
        white-space:nowrap;
    }
    .jlr-engine-matrix__table tbody{
        display:grid;
        gap:13px;
    }
    .jlr-engine-matrix__table tbody tr,
    .jlr-engine-matrix__table tbody tr:nth-child(even),
    .jlr-engine-matrix__table tbody tr:hover{
        display:block;
        overflow:hidden;
        border:1px solid #d4e2d9;
        border-radius:15px;
        background:#fff;
        box-shadow:0 8px 22px rgba(14,58,36,.06);
    }
    .jlr-engine-matrix__table td{
        display:grid;
        grid-template-columns:minmax(105px,.8fr) minmax(0,1.2fr);
        gap:12px;
        padding:12px 14px;
        border-bottom:1px solid #e7eee9;
        font-size:.86rem;
    }
    .jlr-engine-matrix__table td::before{
        content:attr(data-label);
        color:#75837a;
        font-size:.67rem;
        font-weight:800;
        letter-spacing:.045em;
        line-height:1.4;
        text-transform:uppercase;
    }
    .jlr-engine-matrix__table tbody tr td:first-child{
        padding-top:15px;
        background:linear-gradient(90deg,#f4faf6,#fff);
    }
    .jlr-engine-matrix__table tbody tr td:last-child{
        padding-bottom:15px;
        border-bottom:0;
    }
    .jlr-engine-code,.jlr-fuel-badge{justify-self:start}
    .jlr-engine-matrix__footnote{padding:15px 17px}
    .jlr-engine-matrix__empty{padding:22px 20px}
}

@media(max-width:470px){
    .jlr-engine-matrix__topbar{display:block}
    .jlr-engine-matrix__count{
        display:inline-flex;
        align-items:baseline;
        gap:7px;
        min-width:0;
        margin-top:14px;
        padding:8px 11px;
    }
    .jlr-engine-matrix__count strong{font-size:1.05rem}
    .jlr-engine-matrix__count span{margin:0}
    .jlr-engine-matrix__table td{
        grid-template-columns:1fr;
        gap:5px;
    }
}
.hero-copy h1 {
    font-family: "Montserrat", Helvetica, Arial, sans-serif !important;
    font-size: clamp(2.45rem, 3vw, 3.20rem) !important;
    font-weight: 700 !important;
    line-height: 1.055 !important;
    letter-spacing: -0.035em !important;
    max-width: 760px;
    text-wrap: balance;
}

.hero-copy p {
    font-family: "Roboto", Helvetica, Arial, sans-serif !important;
}

@media (max-width: 1000px) {
    .hero-copy h1 {
        font-size: clamp(2.30rem, 4.7vw, 2.90rem) !important;
    }
}

@media (max-width: 790px) {
    .hero-copy h1 {
        font-size: clamp(2.05rem, 7vw, 2.55rem) !important;
        line-height: 1.07 !important;
    }
}

@media (max-width: 520px) {
    .hero-copy h1 {
        font-size: clamp(1.85rem, 8.8vw, 2.25rem) !important;
        line-height: 1.08 !important;
    }
}


.vrm-modal:has(input[name="_site_code"][value="jlr"]) {
    --jlr-vrm-green:#17764c;
    --jlr-vrm-green-dark:#0b3a28;
    --jlr-vrm-green-deep:#06271b;
    --jlr-vrm-sage:#eef6f1;
    --jlr-vrm-line:#d5e4db;
    --jlr-vrm-ink:#102d21;
    --jlr-vrm-muted:#607269;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-backdrop {
    background:
        radial-gradient(circle at 76% 14%,rgba(47,132,91,.22),transparent 32%),
        rgba(3,22,15,.88) !important;
    backdrop-filter:blur(10px) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-dialog {
    width:min(980px,calc(100% - 40px)) !important;
    max-height:min(780px,calc(100dvh - 40px)) !important;
    overflow:auto !important;
    border:1px solid rgba(18,76,51,.13) !important;
    border-radius:28px !important;
    background:linear-gradient(180deg,#f9fcfa 0%,#f1f6f3 100%) !important;
    box-shadow:0 34px 100px rgba(1,20,13,.46),0 1px 0 rgba(255,255,255,.8) inset !important;
}

/* Vehicle identity header — completely different from Citroen */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header {
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    gap:18px !important;
    padding:25px 72px 25px 28px !important;
    border-bottom:0 !important;
    background:
        radial-gradient(circle at 88% 0%,rgba(85,171,126,.22),transparent 34%),
        linear-gradient(125deg,#092a1d 0%,#10462f 58%,#176342 100%) !important;
    color:#fff !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vehicle-found-badge {
    align-self:center !important;
    padding:8px 12px !important;
    border:1px solid rgba(157,230,188,.22) !important;
    border-radius:999px !important;
    background:rgba(195,242,214,.12) !important;
    color:#a9efc5 !important;
    font-size:.72rem !important;
    font-weight:800 !important;
    letter-spacing:.02em !important;
    white-space:nowrap !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header > div {
    display:grid !important;
    grid-template-columns:auto minmax(0,1fr) !important;
    align-items:center !important;
    gap:15px !important;
    min-width:0 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-vrm {
    margin:0 !important;
    padding:8px 15px !important;
    border:2px solid #151c18 !important;
    border-radius:8px !important;
    background:#ffd32c !important;
    color:#131812 !important;
    box-shadow:0 8px 20px rgba(0,0,0,.16) !important;
    font-family:"Arial Black",Impact,sans-serif !important;
    font-size:1.05rem !important;
    line-height:1.1 !important;
    letter-spacing:.11em !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header h2 {
    margin:0 !important;
    overflow:hidden !important;
    color:#f5fbf7 !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
    font-size:1rem !important;
    font-weight:700 !important;
    line-height:1.4 !important;
    text-overflow:ellipsis !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-close {
    top:17px !important;
    right:17px !important;
    width:42px !important;
    height:42px !important;
    border:1px solid rgba(255,255,255,.16) !important;
    border-radius:13px !important;
    background:rgba(255,255,255,.10) !important;
    color:#fff !important;
    backdrop-filter:blur(8px) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-close:hover {
    background:rgba(255,255,255,.20) !important;
    color:#fff !important;
}

/* Form body */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-form {
    padding:30px 34px 34px !important;
    background:transparent !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-step.is-active {
    display:block !important;
    animation:jlrVrmStepIn .24s ease-out !important;
}

@keyframes jlrVrmStepIn {
    from {opacity:0;transform:translateY(8px)}
    to {opacity:1;transform:none}
}

/* Each step gets its own small step label without adding markup */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading {
    max-width:760px !important;
    margin:0 auto 24px !important;
    text-align:left !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-step[data-step="1"] .vrm-step-heading::before {content:"STEP 1 OF 4 · ENGINE ISSUE"}
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-step[data-step="2"] .vrm-step-heading::before {content:"STEP 2 OF 4 · ENGINE CONDITION"}
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-step[data-step="3"] .vrm-step-heading::before {content:"STEP 3 OF 4 · SERVICE ROUTE"}
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-step[data-step="4"] .vrm-step-heading::before {content:"Final Step · CONTACT DETAILS"}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading::before {
    display:inline-flex !important;
    margin-bottom:10px !important;
    color:var(--jlr-vrm-green) !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
    font-size:.68rem !important;
    font-weight:800 !important;
    letter-spacing:.14em !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading h3 {
    margin:0 0 8px !important;
    color:var(--jlr-vrm-ink) !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
    font-size:clamp(1.75rem,3vw,2.5rem) !important;
    font-weight:700 !important;
    line-height:1.08 !important;
    letter-spacing:-.035em !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading > p:not(.eyebrow) {
    margin:0 !important;
    color:var(--jlr-vrm-muted) !important;
    font-family:"Roboto",Helvetica,Arial,sans-serif !important;
    font-size:.98rem !important;
    line-height:1.65 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading .eyebrow {
    display:none !important;
}

/* Problem step: a contained workspace rather than one giant empty textarea */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-problem-field {
    max-width:760px !important;
    margin:0 auto !important;
    padding:20px !important;
    border:1px solid var(--jlr-vrm-line) !important;
    border-radius:20px !important;
    background:#fff !important;
    box-shadow:0 12px 30px rgba(11,58,40,.06) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-problem-field label > span,
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid label > span {
    color:#18392c !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
    font-size:.78rem !important;
    font-weight:700 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-problem-field textarea {
    min-height:150px !important;
    max-height:220px !important;
    margin-top:9px !important;
    padding:16px 17px !important;
    border:1px solid #cfded5 !important;
    border-radius:14px !important;
    background:#f9fcfa !important;
    color:#173428 !important;
    font-family:"Roboto",Helvetica,Arial,sans-serif !important;
    font-size:.96rem !important;
    line-height:1.55 !important;
    box-shadow:0 1px 0 rgba(255,255,255,.8) inset !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-problem-field textarea:focus,
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid input:focus {
    outline:0 !important;
    border-color:#2a8d60 !important;
    box-shadow:0 0 0 4px rgba(42,141,96,.11) !important;
}

/* Choice steps: horizontal JLR tiles instead of Citroen-style centered cards */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-grid {
    max-width:800px !important;
    margin:22px auto 8px !important;
    gap:13px !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .condition-grid,
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .service-grid {
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .service-grid .vrm-choice-card:last-child {
    grid-column:1 / -1 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card {
    min-height:94px !important;
    display:grid !important;
    grid-template-columns:54px minmax(0,1fr) 28px !important;
    grid-template-rows:auto auto !important;
    align-items:center !important;
    justify-content:stretch !important;
    column-gap:14px !important;
    row-gap:3px !important;
    padding:16px 16px !important;
    border:1px solid #d5e2da !important;
    border-radius:17px !important;
    background:#fff !important;
    text-align:left !important;
    box-shadow:0 8px 22px rgba(10,54,36,.05) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card:hover {
    transform:translateY(-2px) !important;
    border-color:#afccb9 !important;
    box-shadow:0 13px 28px rgba(10,54,36,.09) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .choice-icon {
    grid-column:1 !important;
    grid-row:1 / 3 !important;
    width:50px !important;
    height:50px !important;
    margin:0 !important;
    border-radius:14px !important;
    background:#edf5f0 !important;
    color:#155f3e !important;
    font-size:1.3rem !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card strong {
    grid-column:2 !important;
    grid-row:1 !important;
    align-self:end !important;
    color:#123427 !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
    font-size:.96rem !important;
    font-weight:700 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card small {
    grid-column:2 !important;
    grid-row:2 !important;
    align-self:start !important;
    margin:0 !important;
    color:#6a7a71 !important;
    font-family:"Roboto",Helvetica,Arial,sans-serif !important;
    font-size:.78rem !important;
    line-height:1.3 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .choice-check {
    position:static !important;
    grid-column:3 !important;
    grid-row:1 / 3 !important;
    width:26px !important;
    height:26px !important;
    justify-self:end !important;
    border:1px solid #d4e1d8 !important;
    background:#edf3ef !important;
    color:transparent !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card:has(input:checked) {
    transform:none !important;
    border-color:#268557 !important;
    background:linear-gradient(135deg,#f5fbf7,#edf7f1) !important;
    box-shadow:0 0 0 3px rgba(38,133,87,.09),0 12px 26px rgba(16,83,53,.09) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card:has(input:checked) .choice-icon {
    background:#dcefe4 !important;
    color:#0f6a43 !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card:has(input:checked) .choice-check {
    border-color:#17764c !important;
    background:#17764c !important;
    color:#fff !important;
}

/* Contact fields */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid {
    max-width:800px !important;
    gap:14px !important;
    margin:20px auto 6px !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid label {
    padding:14px !important;
    border:1px solid #d9e5de !important;
    border-radius:15px !important;
    background:#fff !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid input {
    min-height:48px !important;
    margin-top:7px !important;
    border:1px solid #ceddd4 !important;
    border-radius:11px !important;
    background:#f9fcfa !important;
    color:#173428 !important;
    font-family:"Roboto",Helvetica,Arial,sans-serif !important;
}

/* Actions */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-actions {
    max-width:800px !important;
    margin:24px auto 0 !important;
    justify-content:flex-end !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-actions .btn,
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-success .btn {
    min-width:230px !important;
    min-height:54px !important;
    border:1px solid #0e623f !important;
    border-radius:13px !important;
    background:linear-gradient(180deg,#238b5d 0%,#176f49 100%) !important;
    color:#fff !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
    font-weight:700 !important;
    box-shadow:0 13px 28px rgba(23,111,73,.24) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-actions .btn:hover,
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-success .btn:hover {
    background:linear-gradient(180deg,#279866 0%,#125f3d 100%) !important;
    transform:translateY(-1px) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-privacy-note {
    color:#718078 !important;
    font-family:"Roboto",Helvetica,Arial,sans-serif !important;
}

/* Success state */
.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-success {
    padding:52px 30px 58px !important;
    background:linear-gradient(180deg,#f9fcfa,#eff7f2) !important;
}

.vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-success h3 {
    color:#103627 !important;
    font-family:"Montserrat","Helvetica Neue",Helvetica,Arial,sans-serif !important;
}

/* =========================================================
   MOBILE: top-aligned, modal itself scrolls from viewport top.
   This intentionally overrides module-6.6's vertical centering.
   ========================================================= */
@media (max-width:790px) {
    .vrm-modal:has(input[name="_site_code"][value="jlr"]) {
        align-items:flex-start !important;
        justify-content:center !important;
        overflow-y:auto !important;
        overscroll-behavior:contain !important;
        -webkit-overflow-scrolling:touch !important;
        padding:0 0 24px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-dialog {
        width:100% !important;
        max-height:none !important;
        min-height:0 !important;
        margin:0 auto !important;
        overflow:visible !important;
        border-radius:0 0 24px 24px !important;
        animation:jlrVrmMobileIn .22s ease-out !important;
    }

    @keyframes jlrVrmMobileIn {
        from {opacity:0;transform:translateY(-10px)}
        to {opacity:1;transform:none}
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header {
        grid-template-columns:1fr !important;
        gap:9px !important;
        padding:18px 54px 17px 16px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vehicle-found-badge {
        justify-self:start !important;
        padding:6px 9px !important;
        font-size:.64rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header > div {
        grid-template-columns:auto minmax(0,1fr) !important;
        gap:10px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-vrm {
        padding:6px 10px !important;
        font-size:.82rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header h2 {
        display:-webkit-box !important;
        -webkit-line-clamp:2 !important;
        -webkit-box-orient:vertical !important;
        font-size:.78rem !important;
        line-height:1.35 !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-close {
        top:12px !important;
        right:12px !important;
        width:36px !important;
        height:36px !important;
        border-radius:11px !important;
        font-size:1.45rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-form {
        padding:20px 14px calc(24px + env(safe-area-inset-bottom)) !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-popup-step.is-active {
        display:block !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading {
        margin:0 0 16px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading::before {
        margin-bottom:7px !important;
        font-size:.58rem !important;
        letter-spacing:.12em !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading h3 {
        font-size:1.5rem !important;
        line-height:1.08 !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-heading > p:not(.eyebrow) {
        font-size:.82rem !important;
        line-height:1.45 !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-problem-field {
        padding:13px !important;
        border-radius:16px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-problem-field textarea {
        min-height:122px !important;
        max-height:none !important;
        resize:vertical !important;
        padding:12px !important;
        font-size:.86rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .condition-grid,
    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .service-grid {
        grid-template-columns:1fr !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .service-grid .vrm-choice-card:last-child {
        grid-column:auto !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-grid {
        margin:14px 0 6px !important;
        gap:9px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card {
        min-height:78px !important;
        grid-template-columns:44px minmax(0,1fr) 24px !important;
        column-gap:11px !important;
        padding:11px 12px !important;
        border-radius:14px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .choice-icon {
        width:42px !important;
        height:42px !important;
        border-radius:12px !important;
        font-size:1.05rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card strong {
        font-size:.86rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-choice-card small {
        display:block !important;
        font-size:.7rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .choice-check {
        width:23px !important;
        height:23px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid {
        grid-template-columns:1fr !important;
        gap:9px !important;
        margin-top:14px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid label {
        padding:11px !important;
        border-radius:13px !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-contact-grid input {
        min-height:44px !important;
        font-size:.86rem !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-actions {
        position:static !important;
        margin-top:16px !important;
        padding:0 !important;
        background:transparent !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-step-actions .btn {
        width:100% !important;
        min-width:0 !important;
        min-height:50px !important;
        font-size:.88rem !important;
    }
}

/* Very narrow phones */
@media (max-width:380px) {
    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-header > div {
        grid-template-columns:1fr !important;
    }

    .vrm-modal:has(input[name="_site_code"][value="jlr"]) .vrm-modal-vrm {
        justify-self:start !important;
    }
}

.site-header .brand.brand-has-logo{
    width:auto;
    max-width:300px;
    min-width:0;
    display:flex;
    align-items:center;
    justify-content:flex-start;
}
.site-header .brand-logo{
    display:block;
    width:auto;
    height:72px;
    max-width:100%;
    object-fit:contain;
    object-position:left center;
}
.site-header .header-main{
    min-height:92px;
    align-items:center;
}
@media(max-width:1100px){
    .site-header .brand.brand-has-logo{max-width:250px}
    .site-header .brand-logo{height:64px}
}
@media(max-width:790px){
    .site-header .header-main{min-height:82px}
    .site-header .brand.brand-has-logo{max-width:210px}
    .site-header .brand-logo{height:56px}
}
@media(max-width:420px){
    .site-header .brand.brand-has-logo{max-width:175px}
    .site-header .brand-logo{height:48px}
}
