:root {
    --bg: #f4f2ee;
    --surface: #ffffff;
    --surface-soft: #faf9f6;
    --ink: #171717;
    --muted: #6e6a63;
    --line: #ddd8cf;
    --accent: #1b1b1b;
    --gold: #a98755;
    --danger: #b42318;
    --danger-bg: #fff2f0;
    --success: #176b48;
    --success-bg: #edf8f2;
    --radius: 18px;
    --shadow: 0 14px 45px rgba(29, 25, 19, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% -10%, rgba(169, 135, 85, .15), transparent 30rem), var(--bg);
}

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

.topbar {
    background: #111;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar__inner {
    max-width: 1120px;
    margin: 0 auto;
    min-height: 68px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #fff;
    text-decoration: none;
}
.brand__mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #fff;
    color: #111;
    font-weight: 900;
    letter-spacing: -.04em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; }
.brand small { margin-top: 1px; color: #bfbcb6; font-size: 12px; }
.user-badge {
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #d8d5d0;
    font-size: 12px;
}

.page-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 22px 70px;
}
.hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    padding: 30px;
    color: #fff;
    border-radius: 24px;
    background: #171717;
    box-shadow: var(--shadow);
}
.hero::after {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    right: -110px;
    top: -110px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 0 0 38px rgba(255,255,255,.025), 0 0 0 76px rgba(255,255,255,.018);
}
.eyebrow {
    margin-bottom: 7px;
    color: #d8c8ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0 0 7px;
    font-size: clamp(34px, 5vw, 50px);
    line-height: 1;
    letter-spacing: -.045em;
}
.hero p { margin: 0; color: #c9c6c1; }
.hero__meta {
    position: relative;
    z-index: 1;
    color: #d7d3cc;
    font-size: 12px;
    white-space: nowrap;
}

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 13px;
    border: 1px solid transparent;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    font-size: 14px;
}
.alert:empty { display: none; }
.alert--success { color: var(--success); background: var(--success-bg); border-color: #cbe8d9; }
.alert--error { color: var(--danger); background: var(--danger-bg); border-color: #ffd4ce; }
.validation-summary ul { margin: 0; padding-left: 20px; }

.form-section {
    margin-top: 18px;
    padding: 28px;
    border: 1px solid rgba(213, 207, 197, .85);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.form-section__head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 23px;
}
.section-number {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f0ebe2;
    color: #775f3e;
    font-size: 12px;
    font-weight: 900;
}
.form-section h2 { margin: 1px 0 4px; font-size: 23px; letter-spacing: -.02em; }
.form-section__head p { margin: 0; color: var(--muted); font-size: 13px; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend {
    display: block;
    margin: 0 0 7px;
    color: #2a2927;
    font-size: 13px;
    font-weight: 750;
}
fieldset.field { padding: 0; margin: 0; border: 0; }
.required { color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select,
.field > input:not([type="radio"]):not([type="checkbox"]) {
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #d7d1c8;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea { min-height: 94px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    border-color: #7d694a !important;
    box-shadow: 0 0 0 4px rgba(169, 135, 85, .13);
}
input:invalid:not(:placeholder-shown):not(:focus) { border-color: #dcaaa4; }

.field-error {
    display: block;
    min-height: 16px;
    margin-top: 5px;
    color: var(--danger);
    font-size: 12px;
}
.field-error:empty { min-height: 0; margin-top: 0; }

.choice-row, .choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.choice-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-row--wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card {
    min-height: 46px;
    display: flex !important;
    align-items: center;
    gap: 9px;
    margin: 0 !important;
    padding: 10px 12px;
    border: 1px solid #ddd7ce;
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650 !important;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.choice-card:hover { background: #fbfaf7; }
.choice-card:has(input:checked) {
    border-color: #8b7656;
    background: #f8f2e8;
    box-shadow: 0 0 0 2px rgba(169, 135, 85, .08);
}
.choice-card input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #1b1b1b;
}
.is-disabled {
    opacity: .48;
    pointer-events: none;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}
.text-button {
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #765c37;
    cursor: pointer;
    font-size: 11px;
    font-weight: 750;
}
.text-button:hover { text-decoration: underline; }

.destination-disabled {
    padding: 14px;
    border: 1px dashed #d9d0c1;
    border-radius: 11px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 13px;
}
.destination-disabled[hidden] { display: none; }
#destination-fields[hidden] { display: none; }

.submit-bar {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    margin-top: 18px;
    padding: 15px 17px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(214, 208, 199, .92);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 40px rgba(28,24,18,.12);
}
.submit-bar strong, .submit-bar span { display: block; }
.submit-bar strong { font-size: 13px; }
.submit-bar span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 17px;
    border: 0;
    border-radius: 11px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
}
.button--primary { background: var(--accent); color: #fff; }
.button--primary:hover { background: #000; }
.button:disabled { opacity: .55; cursor: wait; }

.panel {
    margin: 55px auto;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}
.panel--narrow { max-width: 620px; text-align: center; }
.status-icon {
    width: 55px; height: 55px; margin: 0 auto 15px;
    display: grid; place-items: center; border-radius: 50%;
    font-size: 25px; font-weight: 900;
}
.status-icon--error { color: var(--danger); background: var(--danger-bg); }
.muted { color: var(--muted); }

@media (max-width: 760px) {
    .page-shell { padding: 18px 12px 45px; }
    .topbar__inner { padding-inline: 14px; }
    .user-badge { display: none; }
    .hero { align-items: flex-start; flex-direction: column; padding: 24px 20px; }
    .hero__meta { white-space: normal; }
    .form-section { padding: 21px 16px; }
    .form-grid, .choice-grid, .choice-grid--3, .choice-row, .choice-row--wrap { grid-template-columns: 1fr; }
    .field--full { grid-column: auto; }
    .submit-bar { bottom: 7px; align-items: stretch; flex-direction: column; }
    .submit-bar .button { width: 100%; }
    .label-row { align-items: flex-start; flex-direction: column; gap: 0; }
}
