:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    background: #eef2f5;
    color: #17212b;
    line-height: 1.5;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #eef2f5;
}

a {
    color: #164f7a;
}

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    background: #173f5f;
    color: #ffffff;
    border-bottom: 5px solid #d4a72c;
}

.site-header__inner {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.site-header__town,
.site-header__title {
    margin: 0;
}

.site-header__town {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header__title {
    margin-top: 4px;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
}

.page-shell {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 56px;
}

.intro-card,
.form-section {
    background: #ffffff;
    border: 1px solid #d7dfe6;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(23, 63, 95, 0.07);
}

.intro-card {
    padding: clamp(24px, 5vw, 42px);
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #315d7c;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2 {
    color: #173f5f;
    line-height: 1.2;
}

h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 5vw, 2.8rem);
}

h2 {
    margin: 0;
    font-size: 1.35rem;
}

p {
    line-height: 1.65;
}

.testing-banner {
    margin-top: 22px;
    padding: 16px 18px;
    background: #fff6d8;
    border: 1px solid #e4c85c;
    border-left: 5px solid #b88900;
    border-radius: 6px;
}

.privacy-note {
    margin: 20px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e1e6eb;
    font-size: 0.94rem;
}

.alert {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 8px;
}

.alert:focus {
    outline: 3px solid #5aa0d1;
    outline-offset: 3px;
}

.alert h2 {
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 24px;
}

.alert--error {
    background: #fff0f0;
    border: 1px solid #d99a9a;
    border-left: 5px solid #a52929;
}

.alert--success {
    background: #eaf7ed;
    border: 1px solid #91c89b;
    border-left: 5px solid #287637;
}

.request-form {
    display: grid;
    gap: 24px;
}

.form-section {
    padding: clamp(22px, 4vw, 34px);
}

.form-section__heading {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 26px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e1e6eb;
}

.form-section__heading p {
    margin: 6px 0 0;
    color: #52616e;
}

.step-number {
    display: inline-grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    place-items: center;
    background: #173f5f;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid + .form-grid {
    margin-top: 20px;
}

.form-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid--address {
    grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr) minmax(150px, 1fr);
}

.field label,
.checkbox-field label {
    font-weight: 700;
}

.field label {
    display: block;
    margin-bottom: 7px;
}

.required-marker {
    color: #a52929;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    border: 1px solid #8796a3;
    border-radius: 5px;
    background: #ffffff;
    color: #17212b;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select {
    min-height: 46px;
    padding: 10px 12px;
}

textarea {
    min-height: 220px;
    padding: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 3px solid rgba(55, 137, 190, 0.35);
    outline-offset: 2px;
    border-color: #1e6e9f;
}

.field--error input,
.field--error select,
.field--error textarea,
.checkbox-field.field--error {
    border-color: #a52929;
}

.field-help,
.field-error,
.character-count {
    margin: 7px 0 0;
    font-size: 0.9rem;
}

.field-help,
.character-count {
    color: #596875;
}

.field-error {
    color: #8f2020;
    font-weight: 700;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.character-count {
    white-space: nowrap;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 0 10px;
    align-items: start;
    margin-top: 22px;
    padding: 14px;
    border: 1px solid #d7dfe6;
    border-radius: 6px;
    background: #f8fafb;
}

.checkbox-field input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
}

.checkbox-field .field-error {
    grid-column: 2;
}

.mailing-fields {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #e1e6eb;
}

.mailing-fields[hidden] {
    display: none;
}

.residency-message {
    margin-top: 18px;
}

.residency-message--indiana,
.residency-message--other {
    padding: 13px 15px;
    border-radius: 6px;
}

.residency-message--indiana {
    background: #eaf7ed;
    border: 1px solid #91c89b;
}

.residency-message--other {
    background: #edf4fa;
    border: 1px solid #a4c5dd;
}

.form-actions {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #d7dfe6;
    border-radius: 10px;
    text-align: center;
}

.form-actions p {
    margin: 12px 0 0;
    color: #596875;
    font-size: 0.9rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.button--primary {
    background: #173f5f;
    color: #ffffff;
}

.button--primary:hover {
    background: #0f314c;
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.site-footer {
    padding: 24px 16px;
    background: #122f47;
    color: #ffffff;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 720px) {
    .form-grid--two,
    .form-grid--address {
        grid-template-columns: 1fr;
    }

    .field-meta {
        display: block;
    }

    .form-section__heading {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}


.alert--warning {
    background: #fff6d8;
    border: 1px solid #e4c85c;
    border-left: 5px solid #b88900;
}

.turnstile-panel {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 18px;
    border: 1px solid #d7dfe6;
    border-radius: 8px;
    background: #f8fafb;
}

.cf-turnstile {
    width: min(100%, 520px);
}

.turnstile-status {
    margin: 0;
    color: #52616e;
    font-size: 0.94rem;
}

.turnstile-status--success {
    color: #287637;
    font-weight: 700;
}

.turnstile-status--error {
    color: #8f2020;
    font-weight: 700;
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}


.residency-message--pending,
.residency-message--review {
    padding: 13px 15px;
    border-radius: 6px;
}

.residency-message--pending {
    background: #f7f8fa;
    border: 1px solid #cbd4dc;
}

.residency-message--review {
    background: #fff6d8;
    border: 1px solid #e4c85c;
}

.verification-explanation {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 4px solid #315d7c;
    background: #f4f8fb;
}

.verification-explanation h3 {
    margin: 0 0 6px;
    color: #173f5f;
    font-size: 1rem;
}

.verification-explanation p {
    margin: 0;
    font-size: 0.94rem;
}


.testing-banner--official {
    background: #eaf7ed;
    border-color: #91c89b;
    border-left-color: #287637;
}

.submission-confirmation h2 {
    margin: 0 0 10px;
}

.request-number {
    display: inline-block;
    margin: 4px 0 14px;
    padding: 10px 14px;
    border: 1px solid #7cb587;
    border-radius: 6px;
    background: #ffffff;
    color: #173f5f;
    font-family: Consolas, Monaco, monospace;
    font-size: clamp(1.1rem, 4vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.03em;
}


.notification-result {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 6px;
}

.notification-result--sent {
    background: #eaf7ed;
    border: 1px solid #91c89b;
}

.notification-result--failed {
    background: #fff0f0;
    border: 1px solid #d99a9a;
}

.notification-result--skipped,
.notification-result--pending,
.notification-result--unknown {
    background: #fff6d8;
    border: 1px solid #e4c85c;
}


.diagnostic-list {
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.8fr);
    gap: 8px 18px;
    margin: 18px 0 26px;
}

.diagnostic-list dt {
    font-weight: 700;
}

.diagnostic-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

@media (max-width: 620px) {
    .diagnostic-list {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .diagnostic-list dd {
        margin-bottom: 10px;
    }
}
