:root {
    --bg: #070707;
    --panel: rgba(19, 17, 16, 0.96);
    --panel-soft: #14110f;
    --border: #302a26;
    --border-bright: #55483f;
    --text: #f8f4f0;
    --muted: #aaa098;
    --accent: #ff6b00;
    --accent-rgb: 255, 107, 0;
    --accent-dark: #d65200;
    --danger: #ff7777;
    --success: #8df2b0;
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 11px;
    --shadow: 0 28px 90px rgba(0,0,0,.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 9% 4%, rgba(var(--accent-rgb), .11), transparent 28%),
        radial-gradient(circle at 92% 35%, rgba(var(--accent-rgb), .055), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

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

.ambient {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .08;
    pointer-events: none;
    z-index: -1;
    background: var(--accent);
}
.ambient-one { left: -180px; top: 28%; }
.ambient-two { right: -200px; top: 72%; }

.site-header {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    min-width: 150px;
    text-decoration: none;
}
.brand-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
}
.brand-logo-shell img,
.brand-logo-shell svg,
.brand-logo-shell picture,
.brand-logo-shell picture img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}
.brand-logo-shell svg {
    overflow: visible;
}
.header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
}
.secure-pill {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--success);
    background: rgba(141, 242, 176, .05);
}

.page-shell {
    width: min(1000px, calc(100% - 40px));
    margin: 34px auto 80px;
}
.hero {
    max-width: 880px;
    margin: 0 0 42px;
}
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}
.hero h1 {
    margin: 0;
    max-width: 850px;
    font-family: "Syne", sans-serif;
    font-size: clamp(38px, 7vw, 76px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.055em;
}
.hero-copy {
    max-width: 750px;
    margin: 24px 0 0;
    color: #beb5ae;
    font-size: clamp(16px, 2.2vw, 19px);
}
.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.hero-notes span {
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    background: rgba(255,255,255,.015);
}

.form-card {
    position: relative;
    padding: clamp(24px, 5vw, 52px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.form-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}
.step-label {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.form-topbar h2, .success-panel h2 {
    margin: 0;
    font-family: "Syne", sans-serif;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.1;
    letter-spacing: -.035em;
}
.text-button {
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    font-size: 12px;
}
.text-button:hover { color: var(--text); }
.progress-track {
    width: 100%;
    height: 5px;
    margin-bottom: 36px;
    border-radius: 999px;
    background: #29231f;
    overflow: hidden;
}
.progress-fill {
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width .3s ease;
}

.form-step {
    display: none;
    padding: 0;
    margin: 0;
    border: 0;
    animation: fadeUp .3s ease;
}
.form-step.active { display: block; }
.form-step legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.section-intro {
    margin: 0 0 30px;
    color: var(--muted);
    font-size: 15px;
}
.field-grid {
    display: grid;
    gap: 18px;
}
.field-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-grid.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { margin-bottom: 24px; }
.field label:not(.choice-card) {
    display: block;
    margin-bottom: 9px;
    color: #eee7e1;
    font-size: 13px;
    font-weight: 700;
}
.field label span, .consent-row b { color: var(--accent); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
textarea,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #0e0c0b;
    color: var(--text);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
select { min-height: 51px; padding: 0 14px; }
textarea { min-height: 110px; padding: 14px; resize: vertical; }
input:focus, textarea:focus, select:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .10);
    background: #12100e;
}
input::placeholder, textarea::placeholder { color: #6d625b; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); }
.character-count {
    margin-top: 6px;
    color: #7d7169;
    text-align: right;
    font-size: 11px;
}

.choice-grid {
    display: grid;
    gap: 10px;
}
.choice-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card {
    position: relative;
    display: flex;
    min-height: 56px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #100e0d;
    color: #d2c8c0;
    cursor: pointer;
    transition: .2s ease;
}
.choice-card:hover {
    border-color: var(--border-bright);
    background: #15110f;
}
.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.choice-card:has(input:checked) {
    border-color: var(--accent-dark);
    background: rgba(var(--accent-rgb), .09);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), .08);
}
.choice-card:has(input:checked)::after {
    content: "✓";
    margin-left: auto;
    color: var(--accent);
    font-weight: 800;
}
.choice-grid.compact .choice-card { min-height: 50px; font-size: 12px; }
.choice-grid.group-invalid { padding: 4px; border: 1px solid var(--danger); border-radius: 14px; }
.field-error { display: none; margin: 7px 0 0; color: var(--danger); font-size: 12px; }
.choice-grid.group-invalid + .field-error { display: block; }

.file-drop {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 24px;
    border: 1px dashed #51453d;
    border-radius: 14px;
    text-align: center;
    background: #100d0b;
    transition: .2s ease;
}
.file-drop.dragover { border-color: var(--accent); background: rgba(var(--accent-rgb), .07); }
.file-drop input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-drop strong { display: block; font-family: "Syne", sans-serif; font-size: 17px; }
.file-drop span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.file-list { margin-top: 10px; color: var(--muted); font-size: 12px; }
.file-list div { padding: 6px 0; border-bottom: 1px solid #29231f; }

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #100d0b;
    color: #d2c8c0;
    font-size: 13px;
    cursor: pointer;
}
.consent-row input { margin-top: 3px; accent-color: var(--accent); }

.form-navigation {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    transition: transform .2s ease, opacity .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { background: var(--accent); color: #160b04; }
.button-secondary { border-color: var(--border); background: #120f0d; color: var(--text); }
.submit-button { display: none; }
.save-status { text-align: center; color: #776b63; font-size: 11px; }

.alert {
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 12px;
    font-size: 13px;
}
.alert-error { border: 1px solid rgba(255,119,119,.35); background: rgba(255,119,119,.07); color: #ffb1b1; }
.success-panel { max-width: 720px; padding: 34px 0; }
.success-panel p:not(.eyebrow) { color: var(--muted); font-size: 16px; margin: 18px 0 26px; }
.success-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    border-radius: 18px;
    background: var(--accent);
    color: #160b04;
    font-size: 26px;
    font-weight: 900;
}
.privacy-note {
    margin: 22px auto 0;
    color: #80736b;
    text-align: center;
    font-size: 12px;
}
.privacy-note a { color: #b4aaa2; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 780px) {
    .site-header, .page-shell { width: min(100% - 24px, 1000px); }
    .site-header { padding-top: 18px; }
    .header-meta > span:first-child { display: none; }
    .page-shell { margin-top: 22px; }
    .hero { margin-bottom: 30px; }
    .hero h1 { font-size: clamp(40px, 13vw, 62px); }
    .form-card { border-radius: 20px; padding: 24px 18px; }
    .field-grid.two-cols, .field-grid.three-cols, .choice-grid.three-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .hero h1 { font-size: 42px; }
    .hero-copy { font-size: 15px; }
    .form-topbar { align-items: flex-end; }
    .field-grid.two-cols, .field-grid.three-cols, .choice-grid.two-cols, .choice-grid.three-cols { grid-template-columns: 1fr; }
    .form-navigation { grid-template-columns: 1fr 1fr; }
    .save-status { display: none; }
    .button { width: 100%; padding-inline: 12px; }
    .choice-card { min-height: 52px; }
}
