/* Instant Quote landing page — self-contained styles */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a1a;
    background: #f7f9fc;
    -webkit-font-smoothing: antialiased;
}

.iql-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.iql-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
}
.iql-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #222;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.iql-logo:hover { opacity: 0.7; color: #222; }
.iql-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF385C 0%, #FF1744 100%);
    border-radius: 8px;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -1px;
}
.iql-header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.iql-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #5a6574;
    text-decoration: none;
    transition: color 150ms ease;
}
.iql-back-link:hover { color: #0066cc; }
@media (max-width: 480px) {
    .iql-header-left { gap: 0.75rem; }
    .iql-back-link { font-size: 0.78rem; }
    .iql-back-link .iql-back-long { display: none; }
}
@media (min-width: 481px) {
    .iql-back-link .iql-back-short { display: none; }
}

.iql-phone {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.iql-phone i { margin-right: 0.35rem; color: #0066cc; }

/* Hero */
.iql-hero {
    padding: 3rem 0 4rem;
    background: linear-gradient(180deg, #f7f9fc 0%, #eef3fa 100%);
}
@media (max-width: 1023px) {
    .iql-hero {
        padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
    }
}
/* Breadcrumb sits between the hero subhead and the calculator form —
   well below the iOS edge-reject zone. */
.iql-breadcrumb {
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.iql-breadcrumb .iql-back-link {
    font-size: 0.88rem;
    padding: 8px 10px;
    min-height: 40px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 102, 204, 0.15);
}
.iql-breadcrumb .iql-back-link:active {
    background: rgba(0, 102, 204, 0.08);
}
.iql-breadcrumb-sep {
    color: #bac2cf;
    font-weight: 700;
    user-select: none;
    pointer-events: none;
}
@media (max-width: 600px) {
    .iql-breadcrumb { margin-bottom: 1rem; gap: 0.25rem; }
}
.iql-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.iql-h1-short { display: none; }
@media (max-width: 600px) {
    .iql-h1-full { display: none; }
    .iql-h1-short { display: inline; }
}
.iql-subhead {
    text-align: center;
    font-size: 1.15rem;
    color: #5a6574;
    margin: 0 0 1.5rem;
}

/* Split-screen layout */
.iql-split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    align-items: stretch;
}

/* Inputs column */
.iql-inputs {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
/* Mobile/desktop visibility utilities — compound selectors to outrank .iql-buttons */
.iql-mobile-only,
select.iql-mobile-only,
div.iql-mobile-only { display: none !important; }
@media (max-width: 1023px) {
    .iql-desktop-only,
    .iql-buttons.iql-desktop-only,
    div.iql-desktop-only { display: none !important; }
    .iql-mobile-only,
    select.iql-mobile-only { display: block !important; }
}

.iql-inputs-cta {
    display: block;
    margin-top: 1.25rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0066cc;
    text-decoration: none;
}
.iql-inputs-cta:hover { text-decoration: underline; }
.iql-field { margin-bottom: 1.5rem; }
.iql-field:last-child { margin-bottom: 0; }
.iql-field label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5a6574;
    margin-bottom: 0.5rem;
}
.iql-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d4dae2;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}
.iql-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.iql-btn {
    flex: 1;
    min-width: 50px;
    padding: 0.65rem 1rem;
    border: 1px solid #d4dae2;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 150ms ease;
}
.iql-btn:hover { border-color: #0066cc; }
.iql-btn-active {
    background: #0066cc;
    color: white;
    border-color: #0066cc;
}

/* Quote card */
.iql-quote-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 1.5rem;
}
.iql-quote-header {
    font-size: 1rem;
    font-weight: 600;
    color: #5a6574;
    margin-bottom: 0.5rem;
}
.iql-quote-price {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
    font-variant-numeric: tabular-nums;
}
.iql-currency {
    font-size: 2rem;
    vertical-align: super;
    margin-right: 0.25rem;
}
.iql-quote-subline {
    color: #5a6574;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.iql-breakdown {
    margin: 0 0 1.25rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.iql-breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    padding: 0.35rem 0;
}
.iql-breakdown-row dt { color: #5a6574; font-weight: 500; }
.iql-breakdown-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.iql-disclaimer {
    font-size: 0.75rem;
    color: #8a94a4;
    line-height: 1.5;
    margin: 0 0 1.25rem;
}
.iql-cta-primary {
    width: 100%;
    padding: 1rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 150ms ease;
}
.iql-cta-primary:hover { background: #0052a3; }

/* Why an agent section */
.iql-why-agent {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #e9ecef;
}
.iql-why-agent h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 2.5rem;
    line-height: 1.2;
}
.iql-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}
.iql-benefit {
    text-align: center;
    padding: 1.5rem;
}
.iql-benefit-icon {
    font-size: 2.25rem;
    line-height: 1;
    margin-bottom: 0.9rem;
    color: #0066cc;
}
.iql-benefit h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.iql-benefit p {
    font-size: 0.95rem;
    color: #5a6574;
    margin: 0;
    line-height: 1.5;
}
.iql-cta-why {
    display: block;
    max-width: 400px;
    margin: 0 auto;
}
@media (max-width: 768px) {
    .iql-benefits {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Footer — cloned from base.html so landing pages match site branding */
.iql-footer .footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 2rem;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}
.iql-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.iql-footer .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}
@media (max-width: 576px) {
    .iql-footer .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
.iql-footer .footer h5 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 1rem;
}
.iql-footer .footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.iql-footer .footer ul li { margin-bottom: 0.5rem; }
.iql-footer .footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    margin: 0;
}
.iql-footer .footer a:hover { color: #0066cc; }
.iql-footer .footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
}
.iql-footer .footer-bottom p { margin: 0 0 0.5rem; }
.iql-footer .footer-platform-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.4);
    max-width: 720px;
    margin: 1rem auto 0 !important;
    line-height: 1.55;
}
.iql-footer .footer-security {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.iql-footer .security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
.iql-footer .security-badge i {
    color: #10b981;
    font-size: 1rem;
}
.iql-footer .footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 1.5rem;
    padding: 1.25rem 0;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    text-align: left;
}
.iql-footer .footer-disclaimer strong { color: rgba(255,255,255,0.85); }
.iql-footer .disclaimer-toggle-btn { display: none; }
@media (max-width: 767px) {
    .iql-footer .footer-disclaimer {
        display: none;
        border-top: 0;
        margin-top: 0;
        padding-top: 0.75rem;
    }
    .iql-footer .footer-disclaimer.is-open { display: block; }
    .iql-footer .disclaimer-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        background: transparent;
        border: 0;
        border-top: 1px solid rgba(255,255,255,0.1);
        color: rgba(255,255,255,0.75);
        font-size: 0.8rem;
        font-weight: 500;
        padding: 1rem 0;
        margin-top: 1rem;
        cursor: pointer;
        text-align: left;
    }
    .iql-footer .disclaimer-toggle-btn > span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    .iql-footer .disclaimer-toggle-btn .bi-chevron-down {
        transition: transform 0.25s ease;
        font-size: 0.85rem;
    }
    .iql-footer .disclaimer-toggle-btn[aria-expanded="true"] .bi-chevron-down {
        transform: rotate(180deg);
    }
}

.iql-secondary-cta {
    text-align: center;
    margin-top: 0.75rem;
}
.iql-secondary-cta a {
    color: #5a6574;
    font-size: 0.9rem;
    text-decoration: underline;
}
.iql-secondary-cta a:hover { color: #0066cc; }

.iql-lead-form { margin-top: 1rem; }
.iql-form-title {
    font-weight: 700;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}
.iql-form-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.iql-form-row input,
.iql-form-row select.iql-select {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 1px solid #d4dae2;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    color: #1a1a2e;
}
.iql-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: #4a5260;
    line-height: 1.4;
    margin: 0.35rem 0 0.6rem;
}
.iql-consent input[type="checkbox"] {
    flex: 0 0 auto;
    margin-top: 0.2rem;
    width: 16px;
    height: 16px;
}
.iql-pref-group {
    margin: 0.5rem 0 0.6rem;
}
.iql-pref-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a5260;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}
.iql-pref-label em {
    font-style: normal;
    font-weight: 400;
    color: #8a94a4;
}
.iql-pill-row {
    display: flex;
    gap: 0.4rem;
    background: #f1f3f6;
    padding: 3px;
    border-radius: 10px;
}
.iql-pill {
    flex: 1;
    display: block;
    margin: 0;
    cursor: pointer;
    position: relative;
}
.iql-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.iql-pill > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #556070;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}
.iql-pill > span i {
    font-size: 0.95rem;
    opacity: 0.85;
}
.iql-pill:hover > span {
    color: #1a1a2e;
    background: rgba(255,255,255,0.6);
}
.iql-pill input[type="radio"]:checked + span {
    background: #fff;
    color: #0066cc;
    border-color: #d4dae2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.iql-pill input[type="radio"]:focus-visible + span {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
.iql-aside-why {
    margin-top: 1.25rem;
    padding: 1.1rem 1.1rem 1rem;
    background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
    border: 1px solid #d8e3f5;
    border-radius: 14px;
}
.iql-aside-why-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0b3a7a;
    margin: 0 0 0.75rem;
    text-align: center;
}
.iql-aside-why-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.iql-aside-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #324055;
}
.iql-aside-why-list li > i {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #d8e3f5;
    border-radius: 8px;
    color: #0066cc;
    font-size: 0.95rem;
    margin-top: 1px;
}
.iql-aside-why-list li strong {
    display: block;
    color: #1a1a2e;
    font-weight: 700;
    font-size: 0.86rem;
    margin-bottom: 0.15rem;
}
.iql-aside-why-list li span {
    color: #4a5260;
}
.iql-aside-why-footnote {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0b3a7a;
    margin: 0.85rem 0 0;
    font-style: italic;
}
.iql-lead-form .iql-cta-primary {
    background: #28a745;
    margin-top: 0.25rem;
}
.iql-lead-form .iql-cta-primary:hover { background: #218838; }
.iql-form-footnote {
    text-align: center;
    font-size: 0.75rem;
    color: #8a94a4;
    margin: 0.5rem 0 0;
}
.iql-success {
    text-align: center;
    padding: 1.25rem 0;
}
.iql-success i {
    font-size: 2.25rem;
    color: #28a745;
}
.iql-success p {
    margin: 0.5rem 0 0;
    font-weight: 600;
}

/* Best of Both Worlds section (V2 only) */
.iql-full-both {
    padding: 4rem 0;
    background: white;
    border-top: 1px solid #e9ecef;
}
.iql-full-both-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.iql-full-both-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #0066cc;
    margin-bottom: 0.75rem;
}
.iql-full-both-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 0.75rem;
}
.iql-full-both-text p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0 0 1.75rem;
}
.iql-full-both-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}
.iql-full-both-list li {
    font-size: 0.95rem;
    color: #1a1a1a;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.iql-full-both-list li:last-child { border-bottom: none; }
.iql-full-both-list i { color: #28a745; flex-shrink: 0; }
.iql-full-both-cta {
    display: inline-block;
    width: auto;
    padding: 0.85rem 2rem;
}
.iql-full-both-photo {
    border-radius: 6px;
    aspect-ratio: 4/3;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
@media (max-width: 991px) {
    .iql-full-both-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .iql-full-both-photo { display: none; }
    .iql-full-both-text h2 { font-size: 1.75rem; }
}

/* About Us section (V2 only) */
.iql-full-about {
    padding: 4rem 0;
    background: #f7f9fc;
    border-top: 1px solid #e9ecef;
}
.iql-full-about-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}
.iql-full-about-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #0066cc;
    margin-bottom: 0.75rem;
}
.iql-full-about h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1.5rem;
    color: #1a1a1a;
}
.iql-full-about p {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.8;
    margin: 0 0 1rem;
    text-align: left;
}
.iql-full-about p:last-of-type { margin-bottom: 1.5rem; }
.iql-full-about-link {
    color: #5a6574;
    font-size: 0.9rem;
    text-decoration: underline;
}
.iql-full-about-link:hover { color: #0066cc; }
@media (max-width: 768px) {
    .iql-full-about p { font-size: 0.98rem; line-height: 1.7; }
}

/* Mobile (<1024px) */
@media (max-width: 1023px) {
    .iql-hero { padding: 2rem 0 8rem; }
    .iql-split {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .iql-inputs {
        padding: 1.5rem;
    }

    .iql-quote-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        padding: 1.35rem 1.25rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
        max-height: 90vh;
        max-height: 90dvh;
        overflow-y: auto;
        z-index: 100;
        margin: 0;
        background: white;
    }

    .iql-quote-card:not(.iql-expanded) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    .iql-quote-card:not(.iql-expanded) .iql-breakdown,
    .iql-quote-card:not(.iql-expanded) .iql-disclaimer,
    .iql-quote-card:not(.iql-expanded) .iql-cta-primary,
    .iql-quote-card:not(.iql-expanded) #iqlLeadFormContainer,
    .iql-quote-card:not(.iql-expanded) #iqlSecondaryCta,
    .iql-quote-card:not(.iql-expanded) .iql-quote-subline,
    .iql-quote-card:not(.iql-expanded) .iql-aside-why {
        display: none !important;
    }
    .iql-quote-card:not(.iql-expanded) .iql-quote-header {
        flex: 1;
        font-size: 0.85rem;
        margin: 0;
    }
    .iql-quote-card:not(.iql-expanded) .iql-quote-price {
        font-size: 1.5rem;
        margin: 0;
    }
    .iql-quote-card:not(.iql-expanded) .iql-currency {
        font-size: 1rem;
    }
    .iql-quote-card:not(.iql-expanded)::after {
        content: '\25B2';
        color: #0066cc;
        font-size: 0.8rem;
    }

    .iql-quote-card.iql-expanded {
        display: block;
    }
    .iql-quote-card.iql-expanded::before {
        content: '\25BC';
        display: block;
        text-align: center;
        color: #5a6574;
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        cursor: pointer;
    }
}

@media (min-width: 1024px) {
    .iql-quote-card { position: sticky; }
}
