/* Styles for templates/vehicle-finder.html only. Scope every rule under
   .vfinder-page — do not add global rules here. (Scoped as .vfinder-page,
   not .vehicle-finder-page: custom.css still carries stale rules for the
   old site's page under that class.) */

.vfinder-page {
    --vf-muted: rgba(var(--core-1-rgb), 0.72);
    --vf-line: rgba(var(--ui-gray-rgb), 0.7);
    /* the redesign's purple (vehicle-page.css, listing-filters.css, guarantee.css) */
    --vf-purple: #5B2FC9;
    --vf-purple-dark: #4A23AE;
    --vf-purple-soft: #F4F1FC;
    font-family: var(--ff-secondary);
    color: var(--core-1-hex);
    background: var(--canvas-base-hex);
}

.vfinder-page .vf-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.vfinder-page section { padding: 0; }
.vfinder-page h1,
.vfinder-page h2,
.vfinder-page h3 {
    font-family: var(--ff-primary);
    color: var(--core-1-hex);
    margin: 0;
}
.vfinder-page h2 { font-size: var(--fz-h3); font-weight: 600; letter-spacing: var(--track-title-primary); }
.vfinder-page h3 { font-size: 1.05rem; font-weight: 600; }
.vfinder-page p { margin: 0; }
.vfinder-page ul,
.vfinder-page ol { list-style: none; margin: 0; padding: 0; }
.vfinder-page svg { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.vfinder-page .vf-hero { padding: 32px 0 40px; }
.vfinder-page .vf-crumbs { display: flex; gap: 8px; font-size: var(--fz-caption); color: var(--vf-muted); margin-bottom: 20px; }
.vfinder-page .vf-crumbs a { color: inherit; }
.vfinder-page .vf-hero-row { display: flex; gap: 28px; align-items: flex-start; }
.vfinder-page .vf-bell {
    flex-shrink: 0; width: 88px; height: 88px; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--vf-purple); color: #FFFFFF;
}
.vfinder-page .vf-bell svg { width: 52px; height: 52px; stroke-width: 1.8; }
.vfinder-page .vf-hero h1 { font-size: var(--fz-h1); font-weight: 600; letter-spacing: var(--track-title-primary); line-height: 1.15; text-wrap: balance; }
.vfinder-page .vf-lead { margin-top: 14px; max-width: 62ch; font-size: 1.15rem; line-height: 1.6; color: rgba(var(--core-1-rgb), 0.85); }
.vfinder-page .vf-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 22px; }
.vfinder-page .vf-link { font-weight: 600; color: var(--vf-purple); }
.vfinder-page .vf-link:hover { color: var(--vf-purple-dark); }

/* The site's .btn-primary is an orange gradient (custom-elements.css) over Bootstrap's
   #7460EE states (style.css), so every state is restated here, at the same specificity
   or higher — same approach as guarantee.css. */
.vfinder-page .btn-primary,
.vfinder-page .btn-primary:focus {
    background: var(--vf-purple); border-color: var(--vf-purple); color: #FFFFFF;
}
.vfinder-page .btn-primary:hover,
.vfinder-page .btn-primary:not(:disabled):not(.disabled):active {
    background: var(--vf-purple-dark); border-color: var(--vf-purple-dark); color: #FFFFFF;
}
.vfinder-page .btn-primary:focus-visible,
.vfinder-page .btn-primary:not(:disabled):not(.disabled):active:focus {
    box-shadow: 0 0 0 0.2rem rgba(91, 47, 201, 0.35);
}

.vfinder-page .vf-facts {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
    margin-top: 32px; padding: 24px 28px; border-radius: 16px;
    background: var(--core-1-hex); color: #FFFFFF;
}
.vfinder-page .vf-facts li { display: flex; gap: 12px; align-items: flex-start; }
.vfinder-page .vf-facts span { display: flex; flex-direction: column; gap: 2px; font-size: 0.875rem; line-height: 1.4; color: rgba(255, 255, 255, 0.78); }
.vfinder-page .vf-facts b { font-family: var(--ff-primary); font-size: 1.05rem; color: #FFFFFF; }

/* ---------- Steps ---------- */
.vfinder-page .vf-steps-section { padding: 24px 0 48px; }
.vfinder-page .vf-steps { counter-reset: vf-step; margin-top: 12px; }
.vfinder-page .vf-steps li {
    counter-increment: vf-step; position: relative;
    padding: 16px 0 16px 56px; border-top: 1px solid var(--vf-line);
}
.vfinder-page .vf-steps li::before {
    content: counter(vf-step); position: absolute; left: 0; top: 14px;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--vf-purple-soft); color: var(--vf-purple);
    font-family: var(--ff-primary); font-weight: 700;
}
.vfinder-page .vf-steps p { margin-top: 4px; color: var(--vf-muted); line-height: 1.55; max-width: 72ch; }
.vfinder-page .vf-steps a { color: var(--vf-purple); font-weight: 600; }

/* ---------- Why tiles ---------- */
.vfinder-page .vf-why { padding: 24px 0 48px; }
.vfinder-page .vf-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.vfinder-page .vf-tiles li { padding: 20px; border: 1px solid var(--vf-line); border-radius: 16px; display: flex; flex-direction: column; gap: 8px; }
.vfinder-page .vf-tiles svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--vf-purple-soft); color: var(--vf-purple); }
.vfinder-page .vf-tiles p { color: var(--vf-muted); font-size: 0.925rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.vfinder-page .vf-faq { padding: 24px 0 40px; }
.vfinder-page .vf-faq-list { margin-top: 12px; border-bottom: 1px solid var(--vf-line); }
.vfinder-page .vf-faq-item { border-top: 1px solid var(--vf-line); padding: 16px 0; }
.vfinder-page .vf-faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.vfinder-page .vf-faq-item summary::-webkit-details-marker { display: none; }
.vfinder-page .vf-faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--vf-muted); }
.vfinder-page .vf-faq-item[open] summary::after { content: "−"; }
.vfinder-page .vf-faq-item summary:focus-visible { outline: 2px solid var(--core-3-hex); outline-offset: 4px; }
.vfinder-page .vf-faq-item p { margin-top: 10px; color: var(--vf-muted); line-height: 1.6; }

/* ---------- Bottom CTA ---------- */
.vfinder-page .vf-cta { padding: 8px 0 32px; }
.vfinder-page .vf-cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 32px; border-radius: 20px; background: var(--light-bg-hex);
}
.vfinder-page .vf-cta-band h2 { font-size: var(--fz-h4); }
.vfinder-page .vf-cta-band p { margin-top: 6px; color: var(--vf-muted); }

/* ---------- Phone ---------- */
@media (max-width: 767.98px) {
    .vfinder-page .vf-hero-row { flex-direction: column; gap: 16px; }
    .vfinder-page .vf-bell { width: 64px; height: 64px; border-radius: 18px; }
    .vfinder-page .vf-bell svg { width: 38px; height: 38px; }
    .vfinder-page .vf-hero h1 { font-size: 2rem; }
    .vfinder-page .vf-hero-actions .btn { width: 100%; }
    .vfinder-page .vf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 16px; }
    .vfinder-page .vf-cta-band { flex-direction: column; align-items: stretch; padding: 24px; }
    .vfinder-page .vf-cta-band .btn { width: 100%; }
}

@media (max-width: 479.98px) {
    .vfinder-page .vf-tiles { grid-template-columns: minmax(0, 1fr); }
}
