:root {
    --bg: #f7f4ef;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #d1d5db;
    --border-focus: #111827;
    --accent: #111827;
    --accent-text: #ffffff;
    --success-bg: #ecfdf5;
    --success-text: #065f46;
    --error-bg: #fef2f2;
    --error-text: #991b1b;
    --shadow: 0 12px 40px rgba(17, 24, 39, 0.08);
    --radius: 20px;
    --radius-sm: 14px;
    --max-width: 560px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

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

.page {
    min-height: 100dvh;
    padding: 24px 16px 40px;
    display: grid;
    place-items: center;
}

.card {
    width: 100%;
    max-width: var(--max-width);
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    font-size: 0.9rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.intro {
    margin: 12px 0 24px;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
}

label,
.label {
    font-size: 0.95rem;
    font-weight: 600;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    padding: 14px 16px;
    color: var(--text);
    min-height: 52px;
}

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

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    text-align: center;
    font-weight: 600;
    background: #fff;
}

.radio-card input:checked+span {
    border-color: var(--accent);
    background: #f3f4f6;
}

.conditional-section {
    display: grid;
    gap: 18px;
    padding-top: 4px;
}

.hidden {
    display: none;
}

.button {
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    background: var(--accent);
    color: var(--accent-text);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.08s ease, opacity 0.2s ease;
}

.button:active {
    transform: translateY(1px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.form-status {
    margin: 0;
    min-height: 24px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-status.success {
    color: var(--success-text);
    background: var(--success-bg);
    border-radius: 12px;
    padding: 12px 14px;
}

.form-status.error {
    color: var(--error-text);
    background: var(--error-bg);
    border-radius: 12px;
    padding: 12px 14px;
}

.field-error {
    margin: 0;
    min-height: 18px;
    color: var(--error-text);
    font-size: 0.88rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

@media (max-width: 480px) {
    .page {
        padding: 12px;
    }

    .card {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .title {
        font-size: 1.75rem;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }
}