:root {
    color-scheme: light;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #17212b;
    background: #f3f6f8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 40px 16px;
}

.container {
    width: min(100%, 720px);
    margin: 0 auto;
}

.intro,
form,
.notice,
footer {
    background: #fff;
    border: 1px solid #dce3e8;
    border-radius: 12px;
}

.intro {
    padding: 32px;
    margin-bottom: 20px;
}

.eyebrow {
    margin: 0 0 8px;
    color: #24634d;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 5vw, 2.25rem);
    line-height: 1.15;
}

.intro > p:last-child {
    margin: 0;
    color: #4a5965;
    line-height: 1.6;
}

form,
.notice {
    padding: 28px 32px;
}

.field {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 650;
}

label span {
    color: #a72b2b;
}

input[type="file"],
input[type="text"],
select,
textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    border: 1px solid #aebbc5;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    font: inherit;
}

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

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid #95c7b2;
    outline-offset: 2px;
}

small {
    display: block;
    margin-top: 7px;
    color: #52616d;
    line-height: 1.5;
}

.privacy {
    padding: 14px 16px;
    border-left: 4px solid #66927f;
    background: #f1f7f4;
    color: #344840;
    line-height: 1.55;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    background: #205d47;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: #174936;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button.secondary {
    background: #465762;
}

.notice {
    margin-bottom: 20px;
}

.notice h2 {
    margin-top: 0;
}

.notice.error {
    border-left: 5px solid #a72b2b;
}

.notice.success {
    border-left: 5px solid #27714f;
}

.notice li {
    margin: 7px 0;
}

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

footer {
    margin-top: 20px;
    padding: 16px 20px;
    color: #52616d;
    font-size: .88rem;
    line-height: 1.55;
}

footer p {
    margin: 0;
}

@media (max-width: 520px) {
    body {
        padding: 20px 12px;
    }

    .intro,
    form,
    .notice {
        padding: 22px 18px;
    }
}
