/*
 * Instant Quote 2V overrides.
 * Loaded after instant-quote-b.css on the 2V template only, so IQ B is untouched.
 */

/* ---------- Progress bar ---------- */
#progress {
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) inset;
}

#progress svg {
    display: block;
    animation: none; /* the shared css pulses opacity; keep the fill solid so it reads clearly */
}

#progress svg path {
    stroke-linecap: round;
}

/* ---------- Yes / No choice buttons ---------- */
.flex-row.col-2 {
    gap: 16px;
}

/* Default (secondary) choice: white with a strong blue outline */
.flex-row.col-2 label {
    background: #ffffff;
    color: #2E5EB1;
    border: 2px solid #2E5EB1;
    font-size: 18px;
    font-weight: 700;
    padding: 16px 15px;
    box-shadow: 0 2px 6px rgba(31, 45, 105, 0.12);
}

.flex-row.col-2 label:hover {
    background: rgba(46, 94, 177, 0.08);
    border-color: #244b8f;
    color: #244b8f;
}

.flex-row.col-2 label:focus-within {
    outline: 3px solid rgba(255, 212, 77, 0.9);
    outline-offset: 2px;
}

/* Suggested (primary) choice: "Yes" on the homeownership gate.
   Two selectors so it works with and without :has() support. */
#step-0-unique .flex-row.col-2 label:first-child,
#step-0-unique .flex-row.col-2 label:has(input[name="owns_home"][value="1"]) {
    background: #2E5EB1;
    color: #ffffff;
    border-color: #2E5EB1;
    box-shadow: 0 4px 12px rgba(46, 94, 177, 0.35);
}

#step-0-unique .flex-row.col-2 label:first-child:hover,
#step-0-unique .flex-row.col-2 label:has(input[name="owns_home"][value="1"]):hover {
    background: #244b8f;
    border-color: #244b8f;
    color: #ffffff;
}

/* Selected state (either choice): dark navy so it is clearly distinct from the
   suggested-but-unselected "Yes" */
.flex-row.col-2 input[type="radio"]:checked + label,
.flex-row.col-2 label:has(input[type="radio"]:checked),
#step-0-unique .flex-row.col-2 label:has(input[type="radio"]:checked) {
    background: #1a2744;
    color: #ffffff;
    border-color: #1a2744;
    box-shadow: 0 4px 12px rgba(26, 39, 68, 0.35);
}

/* ---------- Trust strip above the form ---------- */
.social-proof-header--top {
    margin: 10px auto 18px;
    padding: 10px 14px;
    max-width: 640px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.social-proof-header--top .trust-badges {
    gap: 8px;
    flex-wrap: nowrap;
}

.social-proof-header--top .trust-badge {
    flex-direction: row;
    gap: 6px;
    font-size: 13px;
    min-width: 0;
    padding: 0;
    line-height: 1.2;
}

.social-proof-header--top .trust-badge i {
    font-size: 18px;
    margin-bottom: 0;
}

.social-proof-header--top .bbb-badge img {
    max-width: 26px;
    max-height: 26px;
    margin: 0;
}

@media (max-width: 480px) {
    .social-proof-header--top {
        padding: 8px 10px;
        margin-bottom: 14px;
    }
    .social-proof-header--top .trust-badges {
        flex-direction: row;
        gap: 6px;
    }
    .social-proof-header--top .trust-badge {
        width: auto;
        font-size: 11px;
        flex-direction: column;
        gap: 3px;
    }
}

/* ---------- Eyebrow / hints ---------- */
.form-hint {
    color: #536189;
    font-size: 14px;
    margin-top: -6px;
    margin-bottom: 8px;
}

/* ---------- Preset chips under sliders ---------- */
.preset-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 6px 0 4px;
}

.btn-preset {
    background: #ffffff;
    border: 2px solid #c9d3ea;
    color: #1F2D69;
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 44px;
    min-width: 64px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-preset:hover {
    border-color: #2E5EB1;
    background: rgba(46, 94, 177, 0.06);
}

.btn-preset.active {
    background: #2E5EB1;
    border-color: #2E5EB1;
    color: #ffffff;
}

.btn-preset:focus-visible {
    outline: 3px solid rgba(255, 212, 77, 0.9);
    outline-offset: 2px;
}

/* Two secondary buttons side by side ("No mortgage" / "Not sure") */
.not-sure-wrapper--pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.btn-no-mortgage {
    border-style: solid;
    border-color: #2E5EB1;
    color: #2E5EB1;
}

/* ---------- Bigger, easier slider thumb on touch screens ---------- */
@media (max-width: 768px) {
    input[type="range"] {
        height: 10px;
    }
    input[type="range"]::-webkit-slider-thumb {
        width: 34px;
        height: 34px;
        border: 3px solid #ffffff;
    }
    input[type="range"]::-moz-range-thumb {
        width: 34px;
        height: 34px;
        border: 3px solid #ffffff;
    }
    .btn-preset {
        padding: 10px 12px;
        font-size: 14px;
    }
    .not-sure-wrapper--pair .btn-not-sure {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- On-screen estimate on the thank-you step ---------- */
.quote-estimate {
    background: rgba(46, 94, 177, 0.06);
    border: 1px solid rgba(46, 94, 177, 0.2);
    border-radius: 12px;
    padding: 18px 16px;
    margin: 0 auto 20px;
    max-width: 480px;
}

.quote-estimate-label {
    color: #536189;
    font-size: 15px;
    margin: 0 0 6px;
}

.quote-estimate-range {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1F2D69;
    margin: 0 0 8px;
    line-height: 1.1;
}

.quote-estimate-disclaimer {
    color: #7E8492;
    font-size: 12px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 480px) {
    .quote-estimate-range {
        font-size: 26px;
    }
}
