:root {
    --navy: #0a3f7a;
    --blue: #118bd0;
    --sky: #eaf7ff;
    --green: #4fa32f;
    --ink: #17314c;
    --muted: #617386;
    --line: #d5e7f2;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #f7fcff 0%, #ffffff 45%, #eef9ff 100%);
}

a { color: inherit; }

.shell { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
}

.topbar-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo {
    width: 220px;
    max-width: 220px;
    height: auto;
    display: block;
}

.area {
    margin-left: auto;
    padding: 8px 13px;
    border: 1px solid #b9def2;
    border-radius: 999px;
    color: var(--navy);
    background: var(--sky);
    font-size: .88rem;
    font-weight: 850;
}

.top-phone {
    color: var(--navy);
    font-weight: 950;
    text-decoration: none;
    white-space: nowrap;
}

.landing {
    padding: 22px 0;
}

.landing-grid {
    display: grid;
    grid-template-columns: minmax(420px, .82fr) minmax(560px, 1.18fr);
    gap: 28px;
    align-items: stretch;
}

.flyer-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #eaf8ff;
    box-shadow: 0 22px 52px rgba(7, 57, 105, .10);
}

.flyer-panel::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1024 / 1382;
    flex: 0 0 auto;
}

.flyer-main-image {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    flex: 0 0 auto;
    border-radius: 24px 24px 0 0;
    /* Fade only the far end, beyond the normal expanded form. */
    -webkit-mask-image: linear-gradient(to bottom, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 95%, transparent 100%);
}

.contact-card {
    height: 100%;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 52px rgba(7, 57, 105, .10);
}

.kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .13em;
}

h1 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: clamp(1.8rem, 2.6vw, 2.85rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.contact-head p {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 1rem;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 14px;
}

.trust-row span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--navy);
    background: var(--sky);
    font-size: .82rem;
    font-weight: 850;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

form label > span, legend, .message-field > span {
    display: block;
    margin-bottom: 4px;
    color: #2a4c68;
    font-size: .82rem;
    font-weight: 850;
}

input, textarea {
    width: 100%;
    border: 1px solid #c6dce9;
    border-radius: 11px;
    background: #fbfdff;
    color: var(--ink);
    outline: none;
}

input { height: 40px; padding: 0 11px; }

textarea { min-height: 72px; padding: 9px 11px; resize: vertical; }

input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(17,139,208,.13); }

label small, .privacy-error {
    display: block;
    min-height: 16px;
    margin-top: 3px;
    color: #b72c3a;
    font-size: .72rem;
}

fieldset {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
}

.choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.choices label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfdff;
    font-size: .78rem;
    font-weight: 750;
}

.choices input { width: auto; height: auto; accent-color: var(--blue); }

.message-field em { color: #7f8e9b; font-style: normal; font-weight: 500; }

.hp-field {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
}

.privacy {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    margin-top: 3px;
    color: var(--muted);
    font-size: .77rem;
}

.consent-stack {
    display: grid;
    gap: 8px;
    margin-top: 4px;
    padding-top: 2px;
}

.privacy a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy a:hover {
    color: var(--blue);
}

.privacy input { width: auto; height: auto; margin-top: 3px; accent-color: var(--blue); }

.privacy button {
    padding: 0;
    border: 0;
    color: var(--navy);
    background: none;
    text-decoration: underline;
    cursor: pointer;
}

.form-status {
    display: none;
    margin: 10px 0;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 750;
}

.form-status.visible { display: block; }
.form-status.success { color: #2e6c1f; background: #eef9e9; }
.form-status.error { color: #9b2432; background: #fff0f2; }

.submit {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    font: inherit;
    font-weight: 950;
    cursor: pointer;
}

.submit[disabled] { opacity: .7; cursor: wait; }

.button-spinner { display: none; }
.submit.loading .button-spinner { display: inline; }

.direct-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 9px;
}

.direct-contact a {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 850;
    text-decoration: none;
}

.facts {
    margin-top: 10px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.facts summary {
    color: var(--navy);
    font-size: .84rem;
    font-weight: 900;
    cursor: pointer;
}

.facts-body {
    padding-top: 10px;
    color: var(--muted);
    font-size: .78rem;
}

.facts-body p { margin: 0 0 8px; }
.source-links a { color: var(--navy); font-weight: 800; }

@media (max-width: 1020px) {
    .landing-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .flyer-panel {
        width: min(620px, 100%);
        min-height: 0;
        height: auto;
        margin: 0 auto;
    }

    .flyer-main-image {
        width: 100%;
        height: auto;
        min-height: 0;
        border-radius: 24px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .contact-card {
        height: auto;
    }
}

@media (max-width: 660px) {
    .shell { width: min(100% - 20px, 1380px); }
    .topbar-inner { min-height: 70px; gap: 10px; }
    .logo { width: 180px; max-width: 180px; }
    .area { display: none; }
    .top-phone { margin-left: auto; font-size: .85rem; }
    .landing { padding: 12px 0; }
    .contact-card { padding: 18px; border-radius: 18px; }
    .field-row, .choices { grid-template-columns: 1fr; }
}
