:root {
    --navy: #0f2c5c;
    --navy-dark: #0a1f43;
    --orange: #ff7a1a;
    --orange-hover: #e96a0d;
    --sky: #9fd9ff;
    --sky-light: #d4ecff;
    --text: #1a1a1a;
    --muted: #5a6675;
    --border: #e3e7ec;
    --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    line-height: 1.55;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Header ---------- */
.site-header {
    background: #fff;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--navy);
}
.brand-logo {
    height: 40px;
    width: auto;
    display: block;
}
/* legacy icon-only mark, retained for utility but no longer used in the header */
.brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
}
.brand-text {
    font-weight: 800;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    color: var(--navy);
}
.brand-text .accent { color: var(--orange); }
.header-cta {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
}
.header-cta .price {
    color: var(--orange);
    font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, #8ed2ff 0%, #c9e7ff 55%, #ffffff 100%);
    text-align: center;
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}
.hero .container { width: 100%; }
.hero h1 {
    color: var(--navy);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 2.5rem;
}

.zip-card {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 2rem 2rem 2.25rem;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 14px 36px rgba(15, 44, 92, 0.22);
    text-align: left;
}
.zip-card label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}
.zip-form {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}
.zip-form input[type="text"] {
    flex: 1;
    border: 0;
    padding: 1.15rem 1.25rem;
    font-size: 1.25rem;
    font-weight: 500;
    outline: none;
    color: var(--text);
    background: #fff;
    min-width: 0;
}
.zip-form .zip-cta {
    background: var(--orange);
    color: #fff;
    border: 0;
    padding: 0 2rem;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s ease;
}
.zip-form .zip-cta:hover { background: var(--orange-hover); color: #fff; }
.zip-form .zip-cta:focus-visible { outline: 3px solid #ffc99a; outline-offset: 2px; }

/* ---------- Providers strip ---------- */
.providers {
    padding: 4rem 0 3rem;
    background: #fff;
}
.providers-title {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}
.providers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
    align-items: center;
    justify-items: center;
}
.provider-logo {
    max-height: 72px;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 1100px) {
    .provider-logo { max-height: 60px; }
}
@media (max-width: 860px) {
    .provider-logo { max-height: 56px; }
}

/* ---------- How It Works ---------- */
.how {
    padding: 3rem 0 5rem;
    background: #fff;
}
.how h2 {
    text-align: center;
    color: var(--navy);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 2.5rem;
}
.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.how-step {
    text-align: center;
}
.how-illu {
    width: 180px;
    height: 160px;
    margin: 0 auto 1.25rem;
}
.how-step h3 {
    color: var(--navy);
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.how-step p {
    color: #2d3a52;
    font-size: 0.97rem;
    max-width: 320px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #fff;
    padding: 2.5rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid var(--border);
}
.footer-inner {
    text-align: center;
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.footer-brand .brand-logo { height: 32px; }
.footer-brand .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
.footer-links {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
}
.footer-links a {
    color: var(--text);
    text-decoration: none;
    margin: 0 0.5rem;
}
.footer-links a:hover { color: var(--orange); }
.footer-links .sep { color: var(--muted); }
.footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- Content pages (legal / contact) ---------- */
.page-hero {
    background: linear-gradient(180deg, #8ed2ff 0%, #c9e7ff 100%);
    padding: 3rem 0 3rem;
    text-align: center;
}
.page-hero h1 {
    color: var(--navy);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
}
.page-hero .subtitle {
    color: var(--navy);
    margin-top: 0.5rem;
    opacity: 0.85;
}
.content {
    padding: 3rem 0 4rem;
    background: #fff;
}
.content .container { max-width: 820px; }
.content h2 {
    color: var(--navy);
    margin: 1.75rem 0 0.75rem;
    font-size: 1.35rem;
}
.content h3 {
    color: var(--navy);
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
}
.content p, .content li {
    color: #2d3a52;
    margin-bottom: 0.85rem;
    font-size: 1rem;
}
.content ul, .content ol { padding-left: 1.4rem; margin-bottom: 1rem; }
.content a { color: var(--orange); }
.content a:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(15, 44, 92, 0.06);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
    display: block;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #cbd3df;
    border-radius: 6px;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 26, 0.15);
}
.btn-primary {
    background: var(--orange);
    color: #fff;
    border: 0;
    padding: 0.85rem 1.6rem;
    border-radius: 6px;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--orange-hover); }
.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
}

.form-section {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-section h2 {
    color: var(--navy);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}
.form-section .section-intro {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.checkbox-group, .radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.checkbox-item, .radio-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #2d3a52;
    line-height: 1.45;
}
.checkbox-item input,
.radio-item input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.checkbox-item label,
.radio-item label {
    cursor: pointer;
    color: inherit;
    font-weight: 400;
    margin: 0;
}
.checkbox-item label strong,
.radio-item label strong {
    color: var(--navy);
}
.info-box {
    background: #e9f3ff;
    border: 1px solid #c9e3ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.info-box h2 {
    color: var(--navy);
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
}
.info-box p {
    font-size: 0.92rem;
    color: #2d3a52;
    margin-bottom: 0.75rem;
}
.info-box p:last-child { margin-bottom: 0; }
.info-box a { color: var(--orange); }
.form-actions {
    text-align: center;
    margin-top: 1.5rem;
}
.agent-fields {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #cbd3df;
}
.agent-fields.visible { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .providers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
    }
    .how-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .header-inner {
        justify-content: center;
        text-align: center;
    }
    .header-cta { display: none; }
    .hero {
        padding: 2rem 0 3rem;
        min-height: calc(100vh - 80px);
    }
    .hero h1 {
        font-size: 2.6rem;
        line-height: 1.1;
        margin-bottom: 2rem;
    }
    .zip-card {
        padding: 1.5rem;
        border-radius: 12px;
    }
    .zip-card label {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }
    .zip-form {
        flex-direction: column;
        background: transparent;
        gap: 0.85rem;
    }
    .zip-form input[type="text"] {
        border-radius: 8px;
        padding: 1.1rem 1.1rem;
        font-size: 1.2rem;
    }
    .zip-form .zip-cta {
        border-radius: 8px;
        padding: 1.1rem 1.1rem;
        font-size: 1.2rem;
        justify-content: center;
    }
    .providers { padding: 3rem 0 2rem; }
    .footer-links a { display: inline-block; margin: 0.2rem 0.4rem; }
    .footer-links .sep { display: inline; }
    .form-card { padding: 1.25rem; }
}
