/* PriceYourMotor 3.0: design parity fixes and components for the live application.
   Loaded after style.css and live.css. Brand colours, typography and layout follow the approved master. */

/* Typeface: Inter with its optical-size axis, self-hosted. Large headings use the Display cut automatically. */
@font-face{font-family:'Inter';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin-opsz-normal.woff2') format('woff2')}
@font-face{font-family:'Inter';font-style:italic;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin-opsz-italic.woff2') format('woff2')}
@font-face{font-family:'Inter Display';font-style:normal;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin-opsz-normal.woff2') format('woff2')}
@font-face{font-family:'Inter Display';font-style:italic;font-weight:100 900;font-display:swap;src:url('../fonts/inter-latin-opsz-italic.woff2') format('woff2')}
body{font-optical-sizing:auto}
h1,h2,h3{font-variation-settings:'opsz' 32;letter-spacing:-.045em}

.skip-link{position:absolute;left:-999px;top:8px;z-index:100;background:#fff;padding:10px 14px;border-radius:8px;font-weight:700}
.skip-link:focus{left:8px}
.btn-arrow{font-weight:700;margin-left:2px}
.btn.is-loading{opacity:.75;pointer-events:none}
.label-optional{font-weight:500;color:#6b6e75}
.nav-login-mobile{display:none}

/* Hero: photograph fills the right-hand side edge to edge, as in the master. */
.hero{min-height:420px;background:#f5f4f1}
.hero::before{display:block;inset:0 0 0 41%;background-image:var(--pym-hero-image,url('../img/hero-suv.webp'));background-size:cover;background-position:58% 55%}
.hero::after{display:block;background:linear-gradient(90deg,#fff 0%,rgba(255,255,255,.98) 30%,rgba(255,255,255,.86) 40%,rgba(255,255,255,.1) 56%,rgba(255,255,255,0) 70%)}
@media(min-width:681px){.hero{background-image:none}}
.hero .container{padding-top:26px;padding-bottom:28px}
.hero h1{margin:12px 0 14px}
.hero-sub{margin-bottom:18px;font-size:1.05rem}
.plate-card{padding:18px 20px 14px;width:min(100%,430px)}
.plate-card .btn-cta{width:100%;margin-top:14px}
.plate-card .form-grid{gap:12px}
.card-micro{gap:10px;flex-wrap:wrap;font-size:.72rem}
.form-error{color:#a42c2c;font-size:.85rem;margin:8px 0 0}

/* Option cards and process steps, matching the master's proportions. */
.option-tile{min-height:0;padding:16px 18px}
.process-steps{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr);align-items:center}
.process-arrow{color:#8a8d93;font-size:1.3rem;line-height:1}
.math-copy h2{max-width:340px}

@media(max-width:990px){
  .hero::before{left:34%}
}
@media(max-width:680px){
  .hero{padding-bottom:230px}
  .hero::before{inset:auto 0 0 0;height:250px;background-position:55% 50%}
  .hero::after{background:linear-gradient(180deg,#fff 0%,#fff 60%,rgba(255,255,255,0) 76%)}
  .plate-card{width:100%}
  .process-steps{grid-template-columns:1fr}
  .process-arrow{display:none}
  .nav-login-mobile{display:block}
}

/* Status messages */
.r-status.success{background:#f0f8ee;border-color:#a8d4a0}
.warn-text{color:#a1381e}

/* Report and enquiry form */
.narrow-page{max-width:760px}
.narrow-page .plate-card{margin-top:22px}
.intent-choice{border:0;padding:0;margin:0 0 8px}
.intent-choice legend h2{font-size:26px;margin:0 0 14px}
.route-card{position:relative;display:flex;flex-direction:column;gap:4px;border:1.5px solid #dfe0e3;border-radius:11px;padding:16px;background:#fbfbfb;cursor:pointer;transition:border-color .15s,background .15s}
.route-card input{position:absolute;opacity:0;pointer-events:none}
.route-card .icon{width:28px;height:28px;color:#e2a900}
.route-card strong{font-size:1.1rem;letter-spacing:-.02em}
.route-card small{color:#5a5d64;font-size:.82rem;line-height:1.35}
.route-card:has(input:checked){border-color:#e5b000;background:#fff8dc;box-shadow:0 0 0 3px rgba(254,197,0,.22)}
.route-card:has(input:focus-visible){outline:3px solid #dfaa00;outline-offset:2px}
.form-step{font-size:22px;margin:28px 0 0}
.field-full{grid-column:1/-1}
.field-error{color:#a42c2c;font-size:.8rem;font-weight:600}
.field [aria-invalid=true]{border-color:#c4473a;background:#fffafa}
.r-form-grid .field textarea{width:100%;padding:12px;border:1px solid #bfc2c6;border-radius:7px;font:inherit;min-height:90px}
.enquiry-form .btn-cta{min-width:240px;margin-top:6px}
.cf-turnstile{margin:6px 0 14px}
.mot-list{margin-top:14px}
.mot-pass{color:#2d6b35;font-weight:700}
.mot-fail{color:#a1381e;font-weight:700}
.mot-entry small{color:#6b6e75}

/* Seller case page */
.case-steps{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;list-style:none;padding:0;margin:0 0 22px;counter-reset:s}
.case-steps li{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;font-size:.78rem;font-weight:650;color:#7b7e85;position:relative}
.case-steps li span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ececee;font-weight:800;color:#5f6268}
.case-steps li.done span{background:#2f2f33;color:#fff}
.case-steps li.current span{background:var(--yellow);color:#151618;box-shadow:0 0 0 4px rgba(254,197,0,.25)}
.case-steps li.current{color:#202124}
.offer-card{border:1px solid #e1e2e5;border-radius:12px;padding:18px;margin:12px 0;background:#fcfcfc}
.offer-card.accepted{border-color:#9fd09a;background:#f3faf2}
.offer-main{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap}
.offer-dealer{display:block;font-size:.85rem;color:#5d6067;font-weight:650}
.offer-amount{font-size:2rem;letter-spacing:-.05em;font-weight:850}
.offer-meta{font-size:.82rem;color:#5d6067}
.offer-conditions{font-size:.9rem;color:#3f4248;margin:10px 0 0}
.offer-actions{margin-top:14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.offer-actions .checkline{flex-basis:100%;display:flex;gap:9px;font-size:.88rem;align-items:flex-start}
.valuation-figure{font-size:2.2rem;font-weight:850;letter-spacing:-.05em;margin:0 0 6px}
.inline-upload{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:14px;font-size:.88rem}
.inline-upload label{font-weight:700}
.checkline{display:flex;gap:9px;align-items:flex-start;font-size:.9rem}
.checkline input{margin-top:4px;accent-color:#dbaa00}
.withdraw{margin-top:14px;font-size:.88rem}
.withdraw summary{cursor:pointer;color:#5d6067}
.withdraw form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.withdraw input{padding:9px;border:1px solid #c9ccd1;border-radius:7px}
.access-form{max-width:440px;display:grid;gap:14px;margin:18px 0}
.access-form .btn{justify-self:start}

/* Option and content pages */
.option-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:40px;align-items:center}
.option-hero-form .plate-card{width:100%}
.cms-body,.legal-body{max-width:820px}
.cms-body h2,.legal-body h2{font-size:clamp(1.6rem,2.4vw,2.2rem);margin:34px 0 12px}
.cms-body h3,.legal-body h3{font-size:1.25rem;margin:24px 0 8px}
.cms-body p,.cms-body li,.legal-body p,.legal-body li{color:#3f4248;line-height:1.65}
.cms-body ul,.cms-body ol,.legal-body ul{padding-left:1.25rem}
.cms-body li,.legal-body li{margin:6px 0}
.cms-body a,.legal-body a{text-decoration:underline;text-decoration-color:#e5ae00;text-underline-offset:3px}
.legal-body{font-size:.98rem}
.cms-body .faq-list{margin:40px 0 0;max-width:none}
.dealer-form-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:28px;margin:36px 0;box-shadow:var(--shadow)}
.dealer-form-card h2{margin-top:0}
.dealer-form-card textarea{width:100%;padding:12px;border:1px solid #bfc2c6;border-radius:7px;font:inherit}
@media(max-width:900px){.option-hero{grid-template-columns:1fr;gap:24px}}
@media(max-width:750px){
  .route-cards{grid-template-columns:repeat(2,1fr)}
  .case-steps{grid-template-columns:repeat(3,1fr);row-gap:14px}
  .enquiry-form .btn-cta{width:100%}
  .offer-actions .btn{flex:1}
}
@media(max-width:680px){.dealer-form-card{padding:20px}}

/* Proportions tuned against the approved master at 1086 and 1440 px. */
@media(min-width:991px){
  .hero-sub{max-width:430px}
  .card-micro{flex-wrap:nowrap;font-size:.68rem;justify-content:space-between}
  .micro-item{white-space:nowrap}
  .option-tile{grid-template-columns:38px 1fr 12px;padding:15px 16px}
  .option-tile h3{font-size:1.3rem}
  .option-tile p{font-size:.8rem;line-height:1.38}
  .option-tile .icon{width:32px;height:32px}
  .math-copy h2{max-width:none;font-size:clamp(1.9rem,2.55vw,2.75rem)}
  .math-copy p{font-size:.98rem}
  .process-title h2{font-size:clamp(2.1rem,2.6vw,2.65rem)}
}

/* V3.2.1: no decorative strokes, slashes or bars before section headings. */
.eyebrow::before{content:none!important;display:none!important}
.eyebrow{gap:0}
/* Shared market-price guide component used by seller account and owner-only preview. */
.market-guide-card{border:1px solid #dedfe2;border-radius:15px;background:#fff;padding:24px;margin:16px 0 20px}
.market-guide-card h2{font-size:23px;letter-spacing:-.035em;margin:0 0 12px}
.market-guide-card .source-badge{margin-left:10px;vertical-align:middle}
.market-guide-card .valuation-figure{font-size:2rem;font-weight:850;margin:0 0 10px}
.market-guide-card p{color:#45484f;line-height:1.6}
.market-guide-card .market-guide-note{font-size:.84rem;color:#5d6169;margin:8px 0 0}
@media(max-width:680px){.market-guide-card{padding:18px}.market-guide-card h2{font-size:21px}}

/* V3.3: restrained inline owner-supplied cash comparison, preserving existing typography. */
.pym-compare{scroll-margin-top:105px}
.pym-compare .r-card-head{align-items:center}
.pym-compare-form .r-form-grid{margin:17px 0}
.pym-compare-form .field input{width:100%;padding:12px;border:1px solid #bfc2c6;border-radius:7px}
.pym-compare-secondary{display:inline-block;margin-left:16px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.pym-compare-results{background:#f7f8f9;border:1px solid #dfe1e5;border-radius:12px;margin-top:20px;padding:22px}
.pym-compare-results h3{font-size:1.1rem;margin:0 0 10px}
.pym-compare-results p{margin:0 0 10px}
.pym-compare-results li{margin:7px 0}
@media(max-width:680px){.pym-compare-secondary{display:block;margin:14px 0 0}.pym-compare-results{padding:16px}}

.pym-footer-contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:28px;padding:28px 0;margin-top:18px;border-top:1px solid rgba(255,255,255,.2)}
.pym-footer-contact h2{margin:0 0 8px;font-size:1.35rem;color:#fff}
.pym-footer-contact p{margin:0 0 8px}
.pym-footer-contact a{color:#fff;text-decoration:underline}
.pym-footer-contact .field label{color:#fff}
.pym-footer-contact input,.pym-footer-contact textarea{color:#23252a;background:#fff}
.pym-contact-note{margin:.65rem 0 0;font-size:.875rem}
@media(max-width:680px){.pym-footer-contact{grid-template-columns:minmax(0,1fr);gap:16px}}

.pym-option-hero-image{display:block;width:100%;height:auto;max-height:220px;object-fit:cover;border-radius:12px;margin-bottom:12px}

.pym-blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:20px}.pym-blog-grid .r-card{margin:0}.pym-blog-grid h2{margin:.6rem 0}.pym-blog-pagination{display:flex;gap:16px;margin-top:24px;flex-wrap:wrap}
