:root {
    --bg: #E9EEF3;
    --surface: #FFFFFF;
    --ink: #16212E;
    --muted: #5C6B7A;
    --hairline: #D9E0E8;
    --field-bg: #FBFCFD;
    --accent: #1D5AA6;
    --accent-dk: #16457A;
    --focus: rgba(29, 90, 166, 0.30);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 20px;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(22, 33, 46, 0.04), 0 12px 32px rgba(22, 33, 46, 0.08);
}

.card__strip {
    height: 5px;
    background: var(--accent);
}

.card__body {
    padding: 32px 32px 28px;
}

.masthead {
    margin-bottom: 24px;
}

    .masthead h1 {
        margin: 0 0 6px;
        font-size: 1.75rem;
        font-weight: 700;
        letter-spacing: -0.015em;
        line-height: 1.15;
    }

    .masthead p {
        margin: 0;
        color: var(--muted);
        font-size: 0.95rem;
    }

.field {
    margin-bottom: 18px;
}

    .field label {
        display: block;
        margin-bottom: 6px;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .field input[type="text"],
    .field input[type="email"] {
        width: 100%;
        padding: 11px 13px;
        font-size: 1rem;
        font-family: inherit;
        color: var(--ink);
        background: var(--field-bg);
        border: 1px solid var(--hairline);
        border-radius: 8px;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .field input::placeholder {
        color: #9AA7B4;
    }

    .field input:focus {
        outline: none;
        border-color: var(--accent);
        box-shadow: 0 0 0 3px var(--focus);
    }

    .field input:invalid:not(:placeholder-shown) {
        border-color: #C0392B;
    }

/* Checkbox rows */
.consent {
    margin-top: 22px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

    .check input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin: 1px 0 0;
        flex: none;
        accent-color: var(--accent);
        cursor: pointer;
    }

    .check label {
        font-size: 0.9rem;
        color: var(--ink);
        cursor: pointer;
    }

    .check .req {
        color: #C0392B;
    }

    .check a {
        color: var(--accent);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

/* Honeypot — offscreen, not display:none, so scripted bots still fill it.
       Real users never see or tab to it. Reject any submission where it is
       non-empty on the server. */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit {
    margin-top: 26px;
    width: 100%;
    padding: 13px 16px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

    .submit:hover {
        background: var(--accent-dk);
    }

    .submit:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px var(--focus);
    }

.fineprint {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

/* Abbreviated legal footer */
.legal {
    width: 100%;
    max-width: 460px;
    font-size: 0.72rem;
    line-height: 1.55;
    color: var(--muted);
    text-align: center;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .card__body {
        padding: 26px 22px 24px;
    }

    .masthead h1 {
        font-size: 1.5rem;
    }
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #C0392B;
}

.validation-summary {
    margin-bottom: 16px;
    color: #C0392B;
    font-size: 0.85rem;
}

    .validation-summary:empty, .validation-summary-valid {
        display: none;
    }

input.input-validation-error {
    border-color: #C0392B;
}