* {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

:root {
    --ink: #1f262e;
    --muted: #465b70;
    --line: #e1e4dd;
    --paper: #f7f7f3;
    --accent: #24445f;
    --accent-dark: #00284d;
    --white: #fff;
    --error: #9b2929;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    
    line-height: 1.55
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 22px 5vw
}

.brand {
    font-family: Georgia, serif;
    letter-spacing: .16em;
    font-size: 19px;
    font-weight: bold
}

.brand span {
    display: block;
    
    font-size: 10px;
    letter-spacing: .24em;
    margin-top: 4px;
    color: var(--muted)
}

.container {
    width: min(820px, calc(100% - 32px));
    margin: 36px auto 64px
}

.intro {
    margin-bottom: 24px
}

.eyebrow {
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: bold;
    color: var(--accent)
}

h1,
h2 {
    
    line-height: 1.2;
    font-weight: normal
}

h1 {
    font-size: clamp(30px, 5vw, 42px);
    margin: 8px 0
}

h2 {
    font-size: 25px;
    margin: 0 0 8px
}

.subtitle {
    font-size: 18px;
    color: var(--accent);
    margin-top: 0
}

.intro>p:not(.eyebrow):not(.subtitle) {
    max-width: 720px;
    color: #51584e
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: clamp(20px, 4vw, 34px);
    box-shadow: 0 5px 20px rgba(28, 35, 23, .035)
}

.section-description,
.help {
    color: var(--muted);
    font-size: 14px
}

.section-description {
    margin: 0 0 26px
}

.field {
    padding: 22px 0;
    border-top: 1px solid #eceee9
}

.field:first-of-type {
    border-top: 0
}

.question {
    display: block;
    font-weight: 600;
    margin-bottom: 10px
}

.required {
    color: #9b2929
}

.help {
    margin: -3px 0 13px
}

.options {
    display: grid;
    gap: 10px
}

.option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    background: #fff
}

.option:has(input:checked) {
    border-color: var(--accent);
    background: #f4f6f0
}

.option input {
    margin-top: 5px;
    accent-color: var(--accent);
    flex: 0 0 auto
}

input[type=text],
input[type=email],
input[type=number],
textarea {
    width: 100%;
    border: 1px solid #cfd4ca;
    border-radius: 7px;
    padding: 12px 13px;
    font: inherit;
    color: var(--ink);
    background: white
}

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

input:focus,
textarea:focus {
    outline: 3px solid #dce2d3;
    border-color: var(--accent)
}

.form-step {
    display: none
}

.form-step.active {
    display: block
}

.progress-wrap {
    height: 5px;
    background: #e4e7df;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 24px
}

.progress {
    height: 100%;
    width: 16.66%;
    background: var(--accent);
    transition: width .2s
}

.step-label {
    font-size: 12px;
    color: var(--muted);
    text-align: right;
    margin: 7px 0 0
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 18px
}

.spacer {
    flex: 1
}

.button {
    border: 0;
    border-radius: 7px;
    padding: 12px 19px;
    font: inherit;
    font-weight: 600;
    cursor: pointer
}

.button.primary {
    background: var(--accent);
    color: white
}

.button.primary:hover {
    background: var(--accent-dark)
}

.button.secondary {
    background: white;
    border: 1px solid #cfd4ca;
    color: var(--ink)
}

.button:disabled {
    opacity: .6;
    cursor: wait
}

.counter {
    display: block;
    color: var(--muted);
    margin-top: 8px
}

.review {
    max-height: 520px;
    overflow: auto
}

.review-row {
    border-top: 1px solid var(--line);
    padding: 12px 0
}

.review-row strong {
    font-size: 13px
}

.review-row p {
    margin: 5px 0 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere
}

.confirmation {
    text-align: center;
    padding: 50px 28px
}

.confirmation h1 {
    font-size: 32px
}

.confirmation p {
    max-width: 600px;
    margin: 0 auto
}

.check {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #edf2e7;
    color: var(--accent);
    font-size: 30px;
    line-height: 52px;
    margin: 0 auto 18px
}

.error-box {
    background: #fff0f0;
    border: 1px solid #e8baba;
    color: var(--error);
    border-radius: 8px;
    padding: 10px 18px;
    margin: 0 0 18px
}

.error-box p {
    margin: 5px 0
}

.early-end {
    margin-top: 18px
}

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

footer {
    text-align: center;
    padding: 22px;
    color: var(--muted);
    font-size: 12px;
    border-top: 1px solid var(--line)
}

[hidden] {
    display: none !important
}

@media(max-width:520px) {
    .container {
        margin-top: 22px
    }

    .form-actions {
        position: sticky;
        bottom: 0;
        background: var(--paper);
        padding: 12px 0
    }

    .button {
        padding: 12px 14px
    }

    .brand {
        font-size: 16px
    }
}