:root {
    --bg: #f7f2e7;
    --bg-soft: #efe5d0;
    --surface: rgba(255, 250, 242, 0.88);
    --surface-strong: rgba(255, 247, 235, 0.97);
    --ink: #1d2b23;
    --muted: #5f6f61;
    --line: rgba(42, 68, 52, 0.14);
    --accent: #234f3d;
    --accent-soft: #d6e5db;
    --accent-warm: #b98139;
    --danger: #8f3c37;
    --shadow: 0 32px 60px rgba(29, 43, 35, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(185, 129, 57, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(35, 79, 61, 0.22), transparent 36%),
        linear-gradient(160deg, #f6f0e5 0%, #efe5d2 55%, #f9f6ef 100%);
}

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

.page-shell {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    min-height: 100vh;
}

.hero-panel {
    padding: 48px 40px;
    background:
        linear-gradient(165deg, rgba(18, 43, 33, 0.96), rgba(35, 79, 61, 0.9)),
        linear-gradient(45deg, rgba(185, 129, 57, 0.26), transparent 50%);
    color: #f5eee4;
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: rgba(255, 247, 235, 0.12);
    border: 1px solid rgba(255, 247, 235, 0.18);
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: rgba(255, 245, 231, 0.72);
}

.hero-panel h1,
.wizard-head h2,
.section-head h3 {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    line-height: 0.96;
}

.hero-panel h1 {
    font-size: clamp(3rem, 5vw, 4.9rem);
}

.hero-copy,
.wizard-copy,
.section-head p,
.hero-point p {
    margin: 0;
    line-height: 1.7;
}

.hero-copy {
    color: rgba(255, 245, 231, 0.84);
    font-size: 1rem;
    max-width: 34ch;
}

.hero-points {
    display: grid;
    gap: 14px;
}

.hero-point {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: rgba(255, 247, 235, 0.08);
    border: 1px solid rgba(255, 247, 235, 0.12);
}

.hero-point span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: rgba(185, 129, 57, 0.22);
    color: #ffe0b9;
}

.wizard-shell {
    padding: 42px 40px 64px;
}

.wizard-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.wizard-head h2 {
    font-size: clamp(2.4rem, 4vw, 3.7rem);
    color: #193728;
}

.wizard-copy {
    color: var(--muted);
    max-width: 46ch;
}

.progress-card {
    min-width: 210px;
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.progress-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(35, 79, 61, 0.12);
}

.progress-bar {
    width: 16.6667%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d5b43, #b98139);
    transition: width 0.25s ease;
}

.stepper {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.step-pill {
    border: 1px solid var(--line);
    background: rgba(255, 251, 244, 0.8);
    color: var(--muted);
    padding: 12px 16px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.step-pill.active,
.step-pill:hover {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(120deg, #234f3d, #50755e);
    box-shadow: 0 14px 28px rgba(35, 79, 61, 0.18);
}

.status-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(143, 60, 55, 0.2);
    background: rgba(143, 60, 55, 0.08);
    color: var(--danger);
    font-weight: 600;
}

.status-message.success {
    border-color: rgba(35, 79, 61, 0.2);
    background: rgba(35, 79, 61, 0.08);
    color: var(--accent);
}

.step-panel {
    display: none;
    background: var(--surface-strong);
    border: 1px solid rgba(42, 68, 52, 0.1);
    border-radius: 32px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.step-panel.active {
    display: block;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.section-kicker {
    margin: 0 0 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-warm);
}

.section-head h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #163624;
}

.section-head p {
    max-width: 34ch;
    color: var(--muted);
}

.field-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.field-grid.one {
    grid-template-columns: 1fr;
}

.field-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stack {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.field,
.field-group {
    display: block;
    margin-bottom: 16px;
}

.field span,
.legend {
    display: block;
    margin-bottom: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #284236;
}

.field input,
.field select {
    width: 100%;
    padding: 15px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 68, 52, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: rgba(35, 79, 61, 0.4);
    box-shadow: 0 0 0 4px rgba(35, 79, 61, 0.1);
}

.prefix-input {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(42, 68, 52, 0.14);
    background: rgba(255, 255, 255, 0.9);
}

.prefix-input strong {
    color: var(--accent);
}

.prefix-input input {
    border: 0;
    padding-left: 0;
    box-shadow: none;
    background: transparent;
}

.prefix-input input:focus {
    box-shadow: none;
}

.choice-row,
.choice-grid,
.stack-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.choice-chip,
.choice-card {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 999px;
    border: 1px solid rgba(42, 68, 52, 0.12);
    background: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    color: #294336;
    cursor: pointer;
}

.choice-card {
    width: 100%;
    border-radius: var(--radius-md);
}

.choice-chip input,
.choice-card input {
    accent-color: var(--accent);
}

.premium-card,
.member-card,
.conditional-block,
.submit-panel,
.captcha-shell {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(42, 68, 52, 0.12);
    background: rgba(255, 255, 255, 0.66);
    padding: 20px;
    margin-bottom: 18px;
}

.premium-card {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-color: rgba(185, 129, 57, 0.26);
    background:
        linear-gradient(135deg, rgba(35, 79, 61, 0.12), rgba(255, 255, 255, 0.94)),
        rgba(255, 255, 255, 0.9);
    box-shadow: 0 22px 40px rgba(35, 79, 61, 0.12);
}

.premium-label {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--accent-warm);
}

.premium-card strong {
    display: block;
    font-size: 1.3rem;
    line-height: 1.35;
    color: #163624;
}

.premium-meta {
    white-space: nowrap;
    color: var(--muted);
    font-weight: 700;
}

.premium-note {
    display: inline-flex;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(185, 129, 57, 0.14);
    color: #83561d;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.member-card-head h4 {
    margin: 0 0 6px;
    font-size: 1.18rem;
}

.member-card-head p,
.submit-panel p,
.captcha-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.member-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.member-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(214, 229, 219, 0.36);
}

.member-item-meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 6px;
}

.member-badge {
    display: inline-flex;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(35, 79, 61, 0.1);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nav-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-top: 26px;
}

.btn {
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(120deg, #193d2e, #325f49);
    box-shadow: 0 18px 32px rgba(25, 61, 46, 0.22);
}

.btn-outline {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(35, 79, 61, 0.16);
}

.btn-ghost {
    color: var(--muted);
    background: transparent;
    border: 1px solid rgba(42, 68, 52, 0.12);
}

.btn-wide {
    width: 100%;
    margin-top: 18px;
}

.submit-panel {
    margin-top: 10px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 1120px) {
    .page-shell {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        position: relative;
        min-height: auto;
    }
}

@media (max-width: 860px) {
    .wizard-shell,
    .hero-panel {
        padding: 28px 20px 36px;
    }

    .wizard-head,
    .section-head,
    .premium-card {
        flex-direction: column;
    }

    .field-grid.two,
    .field-grid.three {
        grid-template-columns: 1fr;
    }
}
