:root {
    color-scheme: light;
    --ink: #142c3c;
    --muted: #465b67;
    --heading: #102f43;
    --accent: #087269;
    --accent-dark: #055952;
    --edge: #d3dfe2;
    --paper: #fff;
    --canvas: #f2f6f5;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--accent-dark); text-underline-offset: .18em; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid #16887c; outline-offset: 4px; }

.skip-link {
    position: absolute;
    z-index: 1;
    inset: .6rem auto auto .6rem;
    padding: .6rem .85rem;
    background: var(--paper);
    border-radius: .4rem;
    transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.site-header { background: var(--paper); }
.site-header-inner, .hero-inner, .main-wrap, .site-footer-inner {
    max-width: 70rem;
    width: min(100% - 2 * clamp(1rem, 4vw, 3rem), 70rem);
    margin-inline: auto;
}
.site-header-inner {
    display: flex;
    min-height: 4.5rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1.2rem;
    padding-block: .65rem;
}
.wordmark { display: block; width: clamp(9rem, 42vw, 13rem); max-width: 100%; height: auto; }
.contact-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; white-space: nowrap; }

.hero {
    background: linear-gradient(116deg, #102f43 5%, #144a53 65%, #08635a);
    border-bottom: 4px solid #52b4a6;
    color: #fff;
}
.hero-inner { padding-block: clamp(2.1rem, 6vw, 4.4rem); }
.hero h1 {
    font-size: clamp(2rem, 5vw, 4.25rem);
    line-height: 1.07;
    letter-spacing: -.045em;
    margin-bottom: .7rem;
}
.hero p { max-width: 36rem; color: #e2f4f1; margin-bottom: 0; font-size: clamp(.98rem, 2.4vw, 1.18rem); }

.main-wrap { padding-block: clamp(1rem, 4vw, 2.6rem) clamp(2rem, 6vw, 4rem); }
.form-guide { margin: 0 0 1.15rem; color: var(--muted); }
.panel, .notice {
    min-width: 0;
    padding: clamp(1.1rem, 3.7vw, 2.05rem);
    border: 1px solid var(--edge);
    border-radius: .9rem;
    background: var(--paper);
    box-shadow: 0 2px 4px #254c5110;
}
.panel + .panel, .notice { margin-top: 1rem; }
.panel h2, .notice h2 { margin-bottom: 1rem; color: var(--heading); font-size: clamp(1.25rem, 2.7vw, 1.55rem); line-height: 1.17; letter-spacing: -.027em; }
.panel h3 { margin: 1.4rem 0 .35rem; font-size: 1.05rem; color: var(--heading); }
.panel p { color: var(--muted); }
.notice { margin-bottom: 1rem; border-left: 4px solid var(--accent); }
.notice[data-kind="error"] { border-left-color: #ad342e; }
.notice ul { padding-inline-start: 1.35rem; }
.notice p, .notice ul { margin-bottom: 0; }
.notice button { margin-top: .8rem; }
.panel .field-error { color: #9c312c; font-weight: 650; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1.2rem; align-items: start; }
.field { display: grid; min-width: 0; gap: .34rem; color: var(--ink); font-size: .95rem; font-weight: 650; }
.field :is(input, select) {
    width: 100%;
    min-width: 0;
    min-height: 2.85rem;
    padding: .58rem .75rem;
    border: 1px solid #8da6ae;
    border-radius: .45rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 1rem;
    font-weight: 400;
}
.field small { color: var(--muted); font-size: .82rem; font-weight: 400; }
.required { color: #9c312c; font-weight: 750; }

fieldset { min-width: 0; margin: 0; }
.check-group { border: 0; padding: 0; margin-bottom: .85rem; }
.check-group legend, .location legend { padding: 0; color: var(--heading); font-weight: 700; }
.checks {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 1.05rem;
}
.checks label, .consent > label {
    display: grid;
    grid-template-columns: 1.2rem minmax(0, 1fr);
    align-items: start;
    column-gap: .58rem;
    min-width: 0;
    min-height: 2.5rem;
    padding-block: .52rem;
    font-size: .94rem;
    line-height: 1.4;
    cursor: pointer;
}
.checks label span, .consent label span { overflow-wrap: anywhere; }
input[type="checkbox"] {
    width: 1.08rem;
    height: 1.08rem;
    margin: .08em 0 0;
    accent-color: var(--accent);
    cursor: pointer;
}
.counties {
    margin-bottom: .65rem;
    padding-inline: .9rem;
    border: 1px solid var(--edge);
    border-radius: .55rem;
    background: #f8fbfa;
}
.counties summary {
    padding: .7rem 0;
    color: var(--heading);
    font-weight: 700;
    cursor: pointer;
}
.counties summary span { margin-inline-start: .25rem; color: var(--muted); font-size: .82rem; font-weight: 500; }
.counties[open] > .grid { padding: .25rem 0 .85rem; }
.counties .check-group { margin-bottom: .65rem; }
.location { border: 1px solid var(--edge); border-radius: .55rem; margin-bottom: .8rem; padding: .68rem .85rem .9rem; }
.location legend { padding-inline: .3rem; }

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border: 1px solid var(--accent);
    border-radius: .5rem;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: .6rem 1rem;
}
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: .76; }
button.secondary { color: var(--accent-dark); background: transparent; }
button.secondary:hover { background: #e8f7f4; }
button.link-button { border-color: transparent; color: var(--accent-dark); background: transparent; padding-inline: 0; text-decoration: underline; }
.consent > label { margin-bottom: .5rem; }
.consent p { margin: .45rem 0 .75rem; font-size: .9rem; }
.consent [type="submit"] { margin-top: .65rem; min-width: 10rem; }
#icms-turnstile { min-height: 4.1rem; max-width: 100%; }
.site-footer { border-top: 1px solid var(--edge); background: #e8f0ef; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; padding-block: 1.4rem 1.75rem; }
.site-footer-inner > div { flex: 1 1 24rem; }
.site-footer h2 { margin: 0 0 .3rem; font-size: 1rem; color: var(--heading); }
.site-footer p { max-width: 44rem; margin: 0; color: var(--muted); font-size: .9rem; }
.site-footer .footer-policy:not([hidden]) { display: inline-block; margin-top: .65rem; }
.site-footer address { display: grid; gap: .45rem; font-style: normal; font-weight: 600; }
.site-footer address a { width: fit-content; overflow-wrap: anywhere; }

@media (max-width: 62rem) {
    .checks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 49rem) {
    .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 37rem) {
    .grid { grid-template-columns: minmax(0, 1fr); }
    .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .75rem; }
    .checks label, .consent > label { min-height: 2.75rem; }
}
@media (max-width: 23rem) {
    .checks { grid-template-columns: minmax(0, 1fr); }
    .counties .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .consent [type="submit"] { width: 100%; }
}
