:root {
    --blue: #005ea8;
    --blue-dark: #003e73;
    --blue-soft: #d9eefc;
    --ink: #1b1b1b;
    --muted: #565c65;
    --line: #a9aeb1;
    --surface: #fff;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: #f7f7f7;
    font-family: Arial, Helvetica, sans-serif;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gov-banner {
    padding: 7px 24px;
    background: #f1f1f1;
    font-size: 14px;
    text-align: center;
}

.gov-banner span { margin-right: 8px; }
.gov-banner a, .notice a { color: var(--blue); }

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 12px max(24px, calc((100vw - 1400px) / 2));
    color: #fff;
    background: var(--blue);
}

.wordmark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 44px;
    line-height: 1;
    letter-spacing: -2px;
}

.help-link, .main-nav a { color: #fff; text-decoration: none; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    min-height: 52px;
    padding: 8px max(24px, calc((100vw - 1400px) / 2));
    color: #fff;
    background: var(--blue-dark);
}

.main-nav a { font-weight: 700; }
.main-nav .search { margin-left: auto; }
.main-nav input { width: 260px; padding: 8px 12px; border: 0; border-radius: 2px; }

.notice {
    padding: 13px max(24px, calc((100vw - 1400px) / 2));
    color: #3d4551;
    background: #f4f0e8;
}

.notice strong { color: var(--ink); font-size: 19px; }

main { padding: 18px 24px 24px; background: #fff; }

.form-card {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 16px 28px 20px;
    border: 1px solid #8d9297;
    border-radius: 4px;
    background: var(--surface);
    box-shadow: 0 2px 9px rgba(0, 0, 0, .08);
}

.demo-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 14px;
    color: #073763;
    background: var(--blue-soft);
    font-weight: 800;
    letter-spacing: .03em;
}

.demo-note { margin: 0 0 14px; color: var(--muted); font-size: 14px; }

.success {
    margin-bottom: 14px;
    padding: 11px 14px;
    border-left: 5px solid #00a91c;
    background: #ecf3ec;
    font-weight: 700;
}

fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }

legend {
    width: 100%;
    margin: 0 0 12px;
    padding: 7px 10px;
    color: #073763;
    background: var(--blue-soft);
    font-size: 21px;
    font-weight: 800;
}

.grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px 16px;
}

.field { grid-column: span 3; }
.field.third { grid-column: span 2; }
.field.full { grid-column: 1 / -1; }

label, .question { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 800; }

input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

input:focus {
    outline: 3px solid #ffbe2e;
    outline-offset: 1px;
    border-color: var(--ink);
}

.radio-row { display: flex; align-items: center; gap: 22px; min-height: 38px; }
.radio-row label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 400; }
.radio-row input { width: 19px; height: 19px; accent-color: var(--blue); }

.actions { margin-top: 4px; }

button {
    min-width: 150px;
    padding: 10px 22px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--blue);
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
}

button:hover { background: #004b87; }

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px max(24px, calc((100vw - 1400px) / 2));
    color: #fff;
    background: #1b1b1b;
}

footer a { color: #fff; }

@media (max-width: 760px) {
    .main-nav { gap: 16px; overflow-x: auto; }
    .main-nav .search { display: none; }
    .form-card { padding: 16px; }
    .field, .field.third { grid-column: 1 / -1; }
    footer { flex-direction: column; }
}

