.service-page [hidden] {
    display: none !important;
}

.service-hero {
    padding-block: clamp(2.75rem, 8vw, 7rem);
    border-bottom: 5px solid var(--site-accent);
}

.service-hero h1 {
    margin: 0;
    font-size: clamp(3.35rem, 10.1vw, 8rem);
    overflow-wrap: anywhere;
}

.service-hero p {
    max-width: 46rem;
    margin: 1.15rem 0 0;
    color: var(--site-muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.55;
}

.service-ground {
    padding: clamp(1.15rem, 5vw, 4.5rem) var(--site-gutter, 1.25rem);
    background-color: var(--site-panel);
}

.service-paper {
    width: min(100%, 56rem);
    margin-inline: auto;
    padding: clamp(1.1rem, 4vw, 3.25rem);
    color: var(--site-ink);
    background: var(--site-paper);
}

.service-paper > :first-child,
.service-copy > :first-child {
    margin-top: 0;
}

.service-paper > :last-child,
.service-copy > :last-child {
    margin-bottom: 0;
}

.service-copy {
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.service-copy h2,
.service-copy h3,
.service-form-title {
    margin: 0 0 .45rem;
    font-family: var(--site-display-font);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.service-copy h2,
.service-form-title {
    font-size: clamp(1.85rem, 4.5vw, 3rem);
}

.service-copy h3 {
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.service-copy p {
    max-width: 72ch;
    margin: 0 0 1.2rem;
}

.service-copy > section {
    padding-block: 1.4rem;
    border-top: 1px solid #c8c0cb;
}

.service-copy > section:first-child {
    padding-top: 0;
    border-top: 0;
}

.service-copy > section > :last-child {
    margin-bottom: 0;
}

.service-copy a:not(.site-button) {
    text-underline-offset: .18em;
    text-decoration: underline;
}

.service-form-title {
    margin-bottom: 1.35rem;
}

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

.service-field--wide {
    grid-column: 1 / -1;
}

.service-field label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    font-weight: 700;
}

.service-field input,
.service-field select,
.service-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 2.85rem;
    padding: .65rem .75rem;
    color: var(--site-ink);
    background: #fffdfa;
    border: 1px solid #8a7f93;
    border-radius: 0;
    font: inherit;
}

.service-field textarea {
    resize: vertical;
}

.service-field input[type='file'] {
    padding: .5rem;
}

.service-field input[type='file']::file-selector-button {
    margin-inline-end: .6rem;
    padding: .45rem;
    color: var(--site-ink);
    background: var(--site-accent);
    border: 0;
    font-weight: 700;
    cursor: pointer;
}

.service-paper :focus-visible {
    outline: 2px solid #6139a9;
    outline-offset: 3px;
}

.service-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: 1.75rem;
}

.service-secondary-button {
    padding: .65rem 1rem;
    color: var(--site-ink);
    background: transparent;
    border: 1px solid currentColor;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.service-form .site-button:disabled {
    cursor: wait;
    opacity: .7;
}

.service-status,
.service-upload-error {
    margin: 1rem 0 0;
    padding: .75rem 1rem;
    background: #e2d5fa;
}

.service-status[data-state='success'] {
    color: #16482a;
    background: #e1efdf;
}

.service-status[data-state='error'],
.service-upload-error {
    color: #782231;
    background: #f7e0e2;
}

.service-steps ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.service-steps li {
    padding: .5rem .3rem 0 0;
    border-top: 3px solid #a69ab0;
}

.service-steps li[aria-current='step'] {
    border-color: #6139a9;
}

.service-steps li[data-completion='complete'] {
    border-color: #367751;
}

.service-steps li[data-completion='incomplete'] {
    border-color: #a53d52;
}

.service-steps li :is(span, strong) {
    display: block;
}

.service-steps li span {
    font-size: .75rem;
}

.service-steps li strong {
    font-size: .9rem;
    overflow-wrap: anywhere;
}

.service-uploads {
    margin-top: 1.35rem;
}

.service-upload-preview {
    margin-top: .75rem;
}

.service-upload-preview img {
    display: block;
    max-width: 100%;
    max-height: 10rem;
    margin-bottom: .35rem;
    object-fit: contain;
}

.service-text-button {
    padding: .3rem 0;
    color: var(--site-ink);
    background: transparent;
    border: 0;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: .18em;
    cursor: pointer;
}

.service-doc-note,
.service-privacy {
    color: #51475b;
    font-size: .85rem;
}

.service-doc-note {
    margin: .4rem 0 0;
}

.service-privacy {
    margin: 1.75rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid #c8c0cb;
}

@media (max-width: 37rem) {
    .service-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: .9rem;
    }

    .service-steps ol {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
