:root {
--navy: #002f87;
--indigo: #003aa8;
--indigo-dark: #002f87;
--indigo-tint: #eef0fb;
--input-bg: #f3f4f6;
--input-border: #e3e5ea;
--text-dark: #1f2330;
--text-label: #4b5366;
--placeholder: #9aa0ad;
}

* { box-sizing: border-box; }

h2 {
font-family: "RobotoB", sans-serif;
font-size: 1.25em;
color: #ffffff;
text-decoration: none;
font-weight: 400;
padding: 3px;
margin: 0 0 10px 0;
background-color: transparent;
border: none;
}

.card {
max-width: 1000px;
margin: 0 auto;
background: #fff;
border-radius: 20px;
box-shadow: 0 30px 60px -25px rgba(31, 35, 48, 0.28);
overflow: hidden;
}

.card-header {
background: var(--navy);
color: #fff;
padding: 36px 44px;
}

.card-header .dept-label {
margin: 0 0 8px;
font-size: 12.5px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: rgba(255,255,255,0.7);
}

.card-header h1 {
margin: 0 0 10px;
font-size: 26px;
font-weight: 800;
}

.card-header .subtitle {
margin: 0;
font-size: 14.5px;
line-height: 1.6;
color: rgba(255,255,255,0.85);
max-width: 520px;
}

form { padding: 8px 44px 40px; }

section.group {
padding: 26px 0;
border-bottom: 1px solid #eef0f4;
}

section.group:last-of-type { border-bottom: none; }

section.group h2 {
margin: 0 0 18px;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--navy);
}

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }

.field label {
display: block;
font-size: 12px;
font-weight: 700;
letter-spacing: 0.04em;
color: var(--text-label);
margin-bottom: 7px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="date"] {
width: 100%;
padding: 12px 14px;
border-radius: 8px;
border: 1px solid var(--input-border);
background: var(--input-bg);
font-family: inherit;
font-size: 14.5px;
color: var(--text-dark);
-webkit-appearance: none;
}

.field input::placeholder { color: var(--placeholder); }

.field input:focus-visible {
outline: none;
border-color: var(--indigo);
box-shadow: 0 0 0 3px rgba(0, 58, 168, 0.15);
}

.row-two {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
}

.row-city-zip {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 16px;
}

.field-note {
margin: 6px 0 0;
font-size: 12px;
color: var(--text-label);
line-height: 1.5;
}

.error-message {
margin: -4px 0 0;
padding: 10px 14px;
border-radius: 8px;
background: #fdecec;
border: 1px solid #f3c6c6;
color: #9b2c2c;
font-size: 13px;
line-height: 1.5;
}

.error-message[hidden] { display: none; }

.radio-question > label.q-label {
display: block;
font-size: 14.5px;
font-weight: 600;
color: var(--text-dark);
margin-bottom: 10px;
}

.radio-row {
display: flex;
gap: 22px;
flex-wrap: wrap;
}

.radio-row.stacked {
flex-direction: column;
gap: 10px;
}

.radio-row label {
display: flex;
align-items: center;
gap: 7px;
font-size: 14px;
font-weight: 500;
color: var(--text-dark);
cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
accent-color: var(--indigo);
width: 16px;
height: 16px;
cursor: pointer;
}

.conditional {
margin-top: 16px;
padding: 16px 18px;
border-left: 3px solid var(--indigo-tint);
background: #fafbff;
border-radius: 0 8px 8px 0;
}

.conditional[hidden] { display: none; }

.acknowledgment {
background: var(--indigo-tint);
border-radius: 12px;
padding: 18px 20px;
margin: 26px 0 24px;
}

.checkbox-row {
display: flex;
align-items: flex-start;
gap: 12px;
cursor: pointer;
}

.checkbox-row input { margin-top: 3px; flex-shrink: 0; }

.checkbox-row span {
font-size: 13px;
line-height: 1.55;
color: var(--text-label);
}

.submit-btn {
width: 100%;
padding: 15px 20px;
border: none;
border-radius: 10px;
background: var(--indigo);
color: #fff;
font-family: inherit;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: background 0.15s ease;
}

.submit-btn:hover { background: var(--indigo-dark); }
.submit-btn:disabled { background: #becdeb; cursor: default; }

.submit-btn:focus-visible {
outline: none;
box-shadow: 0 0 0 3px rgba(0, 58, 168, 0.15);
}

.note {
font-size: 13px;
color: var(--text-label);
margin: -4px 0 8px;
line-height: 1.6;
}

@media (max-width: 540px) {
.row-two, .row-city-zip { grid-template-columns: 1fr; }
.card-header, form { padding-left: 24px; padding-right: 24px; }
}