* {
    box-sizing: border-box;
}

:root {
    --bg: #f6f4ef;
    --card: #ffffff;
    --text: #1f2328;
    --muted: #6d7178;
    --line: #e8e3da;
    --accent: #1f3b2f;
    --accent-soft: #eef3ef;
    --danger: #9b2c2c;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page-shell {
    width: min(920px, calc(100% - 28px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 28px;
}

.brand {
    font-size: 14px;
    letter-spacing: .18em;
    font-weight: 800;
}

.brand span {
    font-weight: 500;
}

.eyebrow {
    margin: 22px 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    color: var(--accent);
}

h1 {
    margin: 0;
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.hero-copy {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
    max-width: 640px;
    margin: 18px auto 0;
}

.form-card,
.success-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 14px 50px rgba(34, 34, 34, .06);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 34px;
}

.step {
    display: grid;
    justify-items: center;
    gap: 6px;
    color: var(--muted);
}

.step span {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
}

.step small {
    font-size: 12px;
    font-weight: 700;
}

.line {
    width: 70px;
    height: 1px;
    background: var(--line);
    margin: 0 8px 20px;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 34px;
}

legend {
    width: 100%;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.02em;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.grid.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label {
    display: block;
    margin-bottom: 16px;
}

label > span {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    border: 1px solid #d8d3c9;
    border-radius: 12px;
    padding: 14px 14px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: .15s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

textarea {
    resize: vertical;
}

.upload-box {
    border: 2px dashed #cfc8bb;
    border-radius: 18px;
    padding: 34px 20px;
    text-align: center;
    cursor: pointer;
    background: #fbfaf7;
    transition: .15s ease;
}

.upload-box:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.upload-box input {
    display: none;
}

.upload-box strong,
.upload-box span {
    display: block;
}

.upload-box strong {
    font-size: 18px;
    margin: 8px 0;
}

.upload-box span {
    color: var(--muted);
    font-weight: 500;
    margin: 4px 0;
}

.upload-icon {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    margin: 0 auto;
    font-size: 28px;
    line-height: 1;
}

.file-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.file-item {
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.choice-group {
    background: #faf9f6;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}

.choice-group p {
    margin: 0 0 12px;
    font-weight: 800;
}

.choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 9px 0;
}

.choice input {
    margin-top: 3px;
}

.choice span {
    margin: 0;
    font-weight: 500;
}

.privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #faf9f6;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 18px;
}

.privacy input {
    margin-top: 3px;
}

.privacy span {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 13px;
    padding: 17px 20px;
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
    cursor: pointer;
    text-decoration: none;
}

.submit-btn:hover {
    filter: brightness(.95);
}

.submit-btn:disabled {
    opacity: .65;
    cursor: wait;
}

.microcopy {
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin: 12px 0 0;
}

.alert {
    background: #fff3f3;
    color: var(--danger);
    border: 1px solid #efcaca;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
}

.hp {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.success-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.success-card {
    width: min(680px, 100%);
    text-align: center;
}

.success-check {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 34px;
    font-weight: 900;
}

.success-card h1 {
    font-size: clamp(30px, 6vw, 46px);
}

.success-card p {
    color: var(--muted);
    line-height: 1.6;
}

.reference {
    color: var(--text);
}

.redirect-note {
    margin-bottom: 24px;
}

.link-btn {
    max-width: 420px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 18px, 920px);
        padding: 24px 0 40px;
    }

    .form-card,
    .success-card {
        border-radius: 18px;
        padding: 22px 16px;
    }

    .grid.two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .line {
        width: 38px;
    }

    .step small {
        font-size: 10px;
    }

    .hero {
        margin-bottom: 18px;
    }

    .hero-copy {
        font-size: 15px;
    }
}
