:root {
    color-scheme: light;
    --navy: #162e51;
    --blue: #005ea8;
    --blue-dark: #1a4480;
    --blue-light: #d9e8f6;
    --ink: #1b1b1b;
    --muted: #565c65;
    --line: #a9aeb1;
    --line-light: #dfe1e2;
    --surface: #ffffff;
    --canvas: #f0f0f0;
    --info: #e7f6f8;
    --warning: #faf3d1;
    --danger: #b50909;
    --danger-soft: #f4e3db;
    --focus: #ffbe2e;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--canvas);
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font: 16px/1.55 Arial, Helvetica, sans-serif;
}

.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 10;
    padding: .75rem 1rem;
    background: var(--surface);
    color: var(--blue-dark);
    font-weight: 700;
}

.skip-link:focus {
    top: 1rem;
}

.utility-bar {
    border-bottom: 1px solid #53677f;
    background: var(--navy);
    color: var(--surface);
    font-size: .78rem;
}

.utility-bar__inner,
.masthead__inner,
.page-shell {
    width: min(100% - 2rem, 1080px);
    margin-inline: auto;
}

.utility-bar__inner {
    display: flex;
    align-items: center;
    min-height: 34px;
}

.masthead {
    border-bottom: 5px solid var(--blue);
    background: var(--surface);
}

.masthead__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 92px;
}

.wordmark {
    display: grid;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 2px solid var(--navy);
    background: var(--navy);
    color: var(--surface);
    font: 700 1rem/1 Georgia, "Times New Roman", serif;
}

.wordmark-copy {
    margin: 0;
}

.wordmark-copy strong,
.wordmark-copy span {
    display: block;
}

.wordmark-copy strong {
    color: var(--navy);
    font: 700 1.22rem/1.2 Georgia, "Times New Roman", serif;
}

.wordmark-copy span {
    margin-top: .15rem;
    color: var(--muted);
    font-size: .82rem;
}

.page-shell {
    padding-block: 2rem 4rem;
}

.document-header {
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-top: 6px solid var(--navy);
    background: var(--surface);
}

.document-header__body {
    padding: 1.65rem 2rem 1.35rem;
}

.eyebrow {
    margin: 0 0 .35rem;
    color: var(--blue-dark);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
legend {
    text-wrap: balance;
}

h1 {
    max-width: 760px;
    margin: 0;
    color: var(--navy);
    font: 700 clamp(2rem, 5vw, 3rem)/1.08 Georgia, "Times New Roman", serif;
}

.lede {
    max-width: 760px;
    margin: .75rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    text-wrap: pretty;
}

.document-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 1.35rem 0 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.document-meta div {
    padding: .65rem .75rem;
    border-right: 1px solid var(--line-light);
}

.document-meta div:last-child {
    border-right: 0;
}

.document-meta dt,
.document-meta dd {
    margin: 0;
}

.document-meta dt {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.document-meta dd {
    margin-top: .1rem;
    color: var(--navy);
    font-size: .9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.progress {
    padding: 0 2rem 1.4rem;
}

.progress ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.progress li {
    position: relative;
    padding: .55rem .75rem .55rem 2.65rem;
    border-top: 4px solid var(--line);
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.progress li::before {
    position: absolute;
    top: .35rem;
    left: .35rem;
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    content: attr(data-step);
    font-size: .76rem;
}

.progress li[aria-current="step"] {
    border-color: var(--blue);
    color: var(--navy);
}

.progress li[aria-current="step"]::before,
.progress li.is-complete::before {
    border-color: var(--blue);
    background: var(--blue);
    color: var(--surface);
}

.progress li.is-complete {
    border-color: var(--blue);
}

.status-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line-light);
    background: #f7f9fa;
    list-style: none;
}

.status-list li {
    position: relative;
    padding: .75rem 1rem .75rem 2.25rem;
    border-right: 1px solid var(--line-light);
    color: #454a4d;
    font-size: .82rem;
    font-weight: 700;
}

.status-list li:last-child {
    border-right: 0;
}

.status-list li::before {
    position: absolute;
    left: 1rem;
    color: var(--blue);
    content: "\2713";
    font-weight: 700;
}

.notice {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-left: 7px solid var(--blue);
    background: var(--info);
    color: #2e2e2e;
    text-wrap: pretty;
}

.notice strong {
    color: var(--navy);
}

.notice--security {
    border-left-color: var(--navy);
    background: #eef3f8;
}

.notice--action {
    border-left-color: #947100;
    background: var(--warning);
}

.notice--warning {
    border-left-color: var(--danger);
    background: var(--danger-soft);
}

.errors {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--danger);
    border-left-width: 8px;
    background: var(--surface);
    color: var(--danger);
}

.errors ul {
    margin-bottom: 0;
}

.packet-form {
    display: grid;
    gap: 1.25rem;
}

.form-section,
.review-section,
.confirmation-panel {
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-top: 5px solid var(--navy);
    border-radius: 0;
    background: var(--surface);
}

.form-section > legend,
.confirmation-panel > legend {
    width: 100%;
    padding: .85rem 1.25rem;
    background: var(--surface);
    color: var(--navy);
    font: 700 1.2rem/1.3 Georgia, "Times New Roman", serif;
}

.form-section > .grid,
.form-section > .section-note,
.confirmation-panel__body {
    margin: 0 1.25rem 1.4rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.5rem;
}

label,
.question > legend {
    color: #272727;
    font-size: .93rem;
    font-weight: 700;
}

label span {
    display: block;
    margin-top: .12rem;
    color: var(--muted);
    font-size: .8rem;
    font-weight: 400;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    margin-top: .35rem;
    padding: .62rem .7rem;
    border: 1px solid #71767a;
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--ink);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 4px solid var(--focus);
    outline-offset: 2px;
}

textarea {
    min-height: 104px;
    resize: vertical;
}

.question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.question > legend {
    float: left;
    width: 100%;
    margin: 0 0 .45rem;
    padding: 0;
    line-height: 1.42;
}

.question > legend + * {
    clear: both;
}

.choice {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem 1.5rem;
}

.choice label,
.confirmation-option {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-weight: 400;
}

.choice input,
.confirmation-option input {
    flex: 0 0 auto;
    width: 1.15rem;
    min-height: 0;
    height: 1.15rem;
    margin: .15rem 0 0;
    accent-color: var(--blue);
}

.service-period {
    margin-top: .2rem;
    padding: .55rem .7rem;
    border-left: 4px solid var(--blue-light);
    background: #f7f9fa;
    color: var(--navy);
}

.full {
    grid-column: 1 / -1;
}

.section-note {
    border-left-width: 5px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
    padding-top: .25rem;
}

button {
    min-height: 46px;
    padding: .72rem 1.25rem;
    border: 2px solid var(--blue);
    border-radius: 0;
    background: var(--blue);
    color: var(--surface);
    cursor: pointer;
    font: 700 1rem/1.25 Arial, Helvetica, sans-serif;
}

button:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
}

.button-secondary {
    border-color: var(--blue);
    background: var(--surface);
    color: var(--blue);
}

.button-secondary:hover {
    color: var(--surface);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.review-section {
    padding-bottom: 1rem;
}

.review-section h2 {
    margin: 0;
    padding: .8rem 1rem;
    border-bottom: 1px solid var(--line-light);
    color: var(--navy);
    font: 700 1.1rem/1.3 Georgia, "Times New Roman", serif;
}

.review-section > p,
.review-section > ul,
.review-section > dl {
    margin: 1rem;
}

.review-section--full {
    grid-column: 1 / -1;
}

.review-section dl {
    display: grid;
    grid-template-columns: minmax(9rem, .7fr) 1.3fr;
    gap: 0;
}

.review-section dt,
.review-section dd {
    margin: 0;
    padding: .55rem .65rem;
    border-bottom: 1px solid var(--line-light);
}

.review-section dt {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 700;
}

.review-section dd {
    overflow-wrap: anywhere;
    font-size: .9rem;
    font-variant-numeric: tabular-nums;
}

.confirmation-panel {
    margin-top: 1.25rem;
}

.confirmation-panel__body {
    display: grid;
    gap: .9rem;
}

.confirmation-option {
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--line-light);
}

.confirmation-option:last-of-type {
    border-bottom: 0;
}

.confirmation-option span {
    margin: 0;
    color: var(--ink);
    font-size: .93rem;
    line-height: 1.45;
}

.site-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .8rem;
    text-align: left;
}

@media (max-width: 760px) {
    .utility-bar__inner,
    .masthead__inner,
    .page-shell {
        width: min(100% - 1.25rem, 1080px);
    }

    .utility-bar__inner {
        padding-block: .4rem;
    }

    .masthead__inner {
        min-height: 78px;
    }

    .wordmark {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }

    .page-shell {
        padding-block: 1rem 2.5rem;
    }

    .document-header__body {
        padding: 1.25rem 1rem 1rem;
    }

    .progress {
        padding: 0 1rem 1rem;
    }

    .document-meta,
    .status-list,
    .grid,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .document-meta div,
    .status-list li {
        border-right: 0;
        border-bottom: 1px solid var(--line-light);
    }

    .document-meta div:last-child,
    .status-list li:last-child {
        border-bottom: 0;
    }

    .full,
    .review-section--full {
        grid-column: auto;
    }

    .form-section > legend,
    .confirmation-panel > legend {
        padding-inline: 1rem;
    }

    .form-section > .grid,
    .form-section > .section-note,
    .confirmation-panel__body {
        margin-inline: 1rem;
    }

    .form-actions {
        display: grid;
    }

    button {
        width: 100%;
    }

    .review-section dl {
        grid-template-columns: 1fr;
    }

    .review-section dt {
        padding-bottom: .15rem;
        border-bottom: 0;
    }

    .review-section dd {
        padding-top: .15rem;
    }
}

@media print {
    .utility-bar,
    .masthead,
    .progress,
    .form-actions,
    .site-footer {
        display: none;
    }

    body,
    html {
        background: var(--surface);
    }

    .page-shell {
        width: 100%;
        padding: 0;
    }
}
