/* Lookup → gains → quote funnel (lookup.php, js/lookup-funnel.js) and the
   homepage registration entry (index.php). */

:root {
    --rf-accent: #2250fc;
    --rf-accent-dark: #1638c4;
    --rf-ink: #1a1a1a;
    --rf-muted: #555;
    --rf-line: #dfe3e8;
    --rf-soft: #f5f7fa;
    --rf-error: #b3261e;
    --rf-ok: #1e7b34;
    --rf-plate: #f9d71c;
}

/* ---------- lookup page intro ---------- */

.rf-intro {
    padding: 110px 0 28px; /* 80px fixed header + breathing room */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}
.rf-intro h1 {
    color: #fff;
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 10px;
    font-weight: 700;
}
.rf-intro .rf-lede {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    max-width: 46em;
    margin: 0 0 18px;
}
.rf-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    counter-reset: rfstep;
    font-size: 0.98rem;
}
.rf-steps li {
    counter-increment: rfstep;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}
.rf-steps li::before {
    content: counter(rfstep);
    flex: 0 0 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--rf-accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.rf-intro .rf-alt {
    margin: 16px 0 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}
.rf-intro .rf-alt a, .rf-intro .rf-lede a { color: #fff; text-decoration: underline; font-weight: 600; }

.rf-tool { padding: 28px 0 40px; scroll-margin-top: 90px; }
.rf-tool .container { max-width: 1100px; }

.rf-after-tool {
    margin-top: 24px;
    padding: 18px 20px;
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    background: var(--rf-soft);
}
.rf-after-tool h2 { font-size: 1.15rem; margin: 0 0 6px; }
.rf-after-tool p { margin: 0; }

/* ---------- widget enhancements ---------- */

.rf-figures-note {
    margin: 18px 0 4px;
    padding: 14px 16px;
    background: var(--rf-soft);
    border-left: 4px solid var(--rf-accent);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--rf-ink);
}
.rf-figures-note p { margin: 0 0 8px; }
.rf-small { font-size: 0.88rem; color: var(--rf-muted); }

.btn.rf-jump,
.btn.rf-btn-primary {
    background: var(--rf-accent);
    border: 2px solid var(--rf-accent);
    color: #fff;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    min-height: 48px;
}
.btn.rf-jump:hover, .btn.rf-jump:focus,
.btn.rf-btn-primary:hover, .btn.rf-btn-primary:focus {
    background: var(--rf-accent-dark);
    border-color: var(--rf-accent-dark);
    color: #fff;
}
.btn.rf-btn-secondary {
    background: #fff;
    border: 2px solid var(--rf-ink);
    color: var(--rf-ink);
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    min-height: 48px;
}

.rf-quote-heading {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 8px 0 6px !important;
    color: var(--rf-ink);
}
.rf-quote-intro { color: var(--rf-muted); margin: 0 0 16px; }

#quote-request-form .form-control {
    font-size: 16px; /* stops iOS zooming into the field */
    min-height: 48px;
}
#quote-request-form #postcode,
#quote-request-form #registration_number { text-transform: uppercase; }
#quote-request-form .form-control[aria-invalid="true"] {
    border-color: var(--rf-error);
    box-shadow: 0 0 0 1px var(--rf-error);
}
.rf-hint { font-size: 0.85rem; color: var(--rf-muted); margin-top: 4px; }
.rf-field-error {
    font-size: 0.9rem;
    color: var(--rf-error);
    font-weight: 600;
    margin-top: 4px;
}

#quote-submit-btn.rf-submit {
    width: 100%;
    max-width: 420px;
    min-height: 54px;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--rf-ok);
    border-color: var(--rf-ok);
    color: #fff;
}
#quote-submit-btn.rf-submit:disabled { opacity: 0.75; cursor: progress; }

.rf-reassure {
    margin: 16px auto 0;
    max-width: 520px;
    font-size: 0.92rem;
    color: var(--rf-muted);
    text-align: center;
}
.rf-reassure p { margin: 0 0 6px; }
.rf-reassure .rf-phone, .rf-vrm-help .rf-phone { font-weight: 700; white-space: nowrap; }
.rf-trust { margin-top: 10px !important; color: var(--rf-ink); }
.rf-trust .gr-stars { margin: 0 4px; }

.rf-nogains {
    margin: 16px 0 6px;
    padding: 18px;
    border: 1px solid var(--rf-line);
    border-radius: 8px;
    background: #fff;
}
.rf-nogains h3 { font-size: 1.15rem; margin: 0 0 8px; }
.rf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.rf-vrm-help { margin-top: 8px; text-align: center; font-size: 0.95rem; }
.rf-linkbtn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--rf-accent);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
}

.rf-handoff-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #fff8e1;
    border: 1px solid #f0d27a;
}

#error-message a { font-weight: 700; color: inherit; text-decoration: underline; }

.rf-success {
    margin: 20px 0;
    padding: 24px 20px;
    border-radius: 8px;
    background: #eaf6ec;
    border: 1px solid #b7dfbf;
    color: var(--rf-ink);
    text-align: center;
}
.rf-success:focus { outline: 3px solid var(--rf-ok); outline-offset: 2px; }
.rf-success h3 { color: var(--rf-ok); font-size: 1.3rem; margin: 0 0 8px; }
.rf-success p { margin: 0 0 6px; }

.rf-visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

@media (max-width: 767px) {
    /* Keep the reg box on the first screen: compact intro on phones. */
    .rf-intro { padding: 96px 0 16px; }
    .rf-intro h1 { font-size: 1.6rem; margin-bottom: 6px; }
    .rf-intro .rf-lede { font-size: 0.95rem; line-height: 1.45; margin-bottom: 10px; }
    .rf-steps { flex-direction: column; gap: 4px; font-size: 0.9rem; line-height: 1.3; }
    .rf-steps li::before { flex-basis: 22px; height: 22px; font-size: 0.75rem; }
    .rf-intro .rf-alt { margin-top: 10px; font-size: 0.9rem; }
    .rf-tool { padding-top: 16px; }
    .rf-actions .btn { width: 100%; }
    .btn.rf-jump { width: 100%; }
}

/* ---------- homepage registration entry ---------- */

.rf-hero-check {
    margin: 18px auto 0;
    max-width: 460px;
    text-align: left;
}
.rf-hero-check label {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 8px;
    text-align: center;
}
.rf-plate-row { display: flex; gap: 8px; }
.rf-plate {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #111;
    background: var(--rf-plate);
    min-width: 0;
}
.rf-plate-band {
    flex: 0 0 34px;
    background: #003399;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
}
.rf-plate input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 6px;
    min-height: 52px;
}
.rf-plate input::placeholder { color: rgba(0, 0, 0, 0.45); }
.rf-plate input:focus { outline: none; }
.rf-plate:focus-within { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--rf-accent); }
.rf-hero-check button {
    flex: 0 0 auto;
    background: var(--rf-accent);
    border: 0;
    color: #fff;
    font-weight: 700;
    border-radius: 6px;
    padding: 0 18px;
    min-height: 56px;
    font-size: 1rem;
    cursor: pointer;
}
.rf-hero-check button:hover, .rf-hero-check button:focus { background: var(--rf-accent-dark); }
.rf-hero-check .rf-hero-error { color: #ffd3cf; font-weight: 600; margin: 6px 0 0; }
.rf-hero-check .rf-hero-sub { color: rgba(255, 255, 255, 0.9); font-size: 0.92rem; margin: 8px 0 0; }
.rf-hero-check .rf-hero-sub a { color: #fff; text-decoration: underline; font-weight: 600; }

@media (max-width: 479px) {
    .rf-plate-row { flex-direction: column; }
    .rf-hero-check button { width: 100%; }
}

@media (max-width: 767px) {
    /* Homepage hero: the long service line was outsized on phones and pushed the reg box down. */
    #hero .text-medium { font-size: 1.1rem; line-height: 1.4; margin-bottom: 4px; }
}
