:root {
    --bg: #050505;
    --bg-deep: #0a0a0a;
    --bg-soft: #121212;
    --ink: #f4f1e8;
    --muted: #9c978c;
    --gold: #d9ad4f;
    --gold-bright: #f5d77a;
    --gold-dim: rgba(217, 173, 79, 0.18);
    --line: rgba(244, 241, 232, 0.12);
    --white: #ffffff;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
    --font-body: "Outfit", "Segoe UI", sans-serif;
    --form-max: 780px;
    --header-h: 84px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(217, 173, 79, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(217, 173, 79, 0.06), transparent 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 45%, #0d0c0a 100%);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 40;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.enroll-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-h);
    padding: 12px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(10px);
}

.enroll-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.enroll-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.enroll-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1;
}

.enroll-brand span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.enroll-back {
    color: var(--gold-bright);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.enroll-back:hover,
.enroll-back:focus-visible {
    color: var(--white);
    border-bottom-color: var(--gold);
}

.enroll-main {
    width: min(var(--form-max), calc(100% - 28px));
    margin: 0 auto;
    padding: clamp(24px, 4vw, 48px) 0 72px;
}

.enroll-hero {
    margin-bottom: 20px;
}

.enroll-eyebrow {
    margin: 0 0 10px;
    color: var(--gold-bright);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.enroll-title {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.05;
}

.enroll-lead {
    margin: 0;
    max-width: 58ch;
    color: rgba(244, 241, 232, 0.72);
    font-weight: 300;
}

.progress {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

.progress-compact {
    display: none;
    margin: 0;
    color: var(--gold-bright);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.progress-bar {
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
}

.progress-bar span {
    display: block;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    transition: width 0.35s var(--ease);
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}

.progress-step {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
    min-width: 0;
}

.progress-step .num {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.progress-step .label {
    color: rgba(244, 241, 232, 0.55);
    font-size: clamp(0.74rem, 1.4vw, 0.86rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.progress-step.is-active .num,
.progress-step.is-active .label {
    color: var(--gold-bright);
}

.progress-step.is-done .num,
.progress-step.is-done .label {
    color: rgba(244, 241, 232, 0.85);
}

.enroll-card {
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(217, 173, 79, 0.28);
    background:
        radial-gradient(ellipse 70% 45% at 0% 0%, rgba(217, 173, 79, 0.1), transparent 55%),
        linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(8, 8, 8, 0.98) 100%);
}

.step-panel[hidden] {
    display: none !important;
}

.step-heading {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.step-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.1;
}

.step-heading p {
    margin: 0;
    color: rgba(244, 241, 232, 0.72);
    font-weight: 300;
}

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

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

.field span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.55);
    outline: none;
    transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold);
}

.field textarea {
    resize: vertical;
    min-height: 110px;
}

.choice-section {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.choice-hint {
    margin: 0;
    color: rgba(244, 241, 232, 0.62);
    font-size: 0.92rem;
    font-weight: 300;
}

.choice-grid {
    display: grid;
    gap: 10px;
}

.choice-grid-plans {
    grid-template-columns: 1fr;
}

.choice-grid-goals {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .choice-grid-plans {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.choice-card {
    position: relative;
    margin: 0;
    cursor: pointer;
}

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

.choice-card-body {
    display: grid;
    gap: 6px;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid rgba(217, 173, 79, 0.28);
    background: rgba(5, 5, 5, 0.45);
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.choice-card-body strong {
    color: rgba(244, 241, 232, 0.95);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.choice-card-body span {
    color: rgba(244, 241, 232, 0.62);
    font-size: 0.86rem;
    font-weight: 300;
    line-height: 1.4;
}

.choice-card:hover .choice-card-body {
    border-color: rgba(217, 173, 79, 0.55);
    background: rgba(217, 173, 79, 0.06);
}

.choice-card:has(input:checked) .choice-card-body,
.choice-card:has(input:focus-visible) .choice-card-body {
    border-color: rgba(217, 173, 79, 0.85);
    background: rgba(217, 173, 79, 0.12);
    box-shadow: inset 0 0 0 1px rgba(245, 215, 122, 0.25);
}

.choice-card:has(input:checked) .choice-card-body strong {
    color: var(--gold-bright);
}

.health-list,
.consent-list {
    display: grid;
    gap: 12px;
}

.health-item,
.consent-item {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(217, 173, 79, 0.28);
    background: rgba(5, 5, 5, 0.45);
}

.health-item {
    display: grid;
    gap: 12px;
}

.health-q {
    margin: 0;
    color: rgba(244, 241, 232, 0.92);
    font-size: 0.98rem;
    font-weight: 300;
    line-height: 1.5;
}

.health-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.health-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: rgba(244, 241, 232, 0.88);
    font-size: 0.92rem;
}

.consent-item {
    position: relative;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.consent-item:hover {
    border-color: rgba(217, 173, 79, 0.55);
    background: rgba(217, 173, 79, 0.06);
}

.consent-item:has(input:checked) {
    border-color: rgba(217, 173, 79, 0.7);
    background: rgba(217, 173, 79, 0.1);
}

.consent-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-box {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 1.5px solid var(--gold);
    background: rgba(0, 0, 0, 0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.consent-box::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid var(--gold-bright);
    border-bottom: 2px solid var(--gold-bright);
    transform: scale(0) rotate(-45deg);
    transition: transform 0.2s var(--ease);
}

.consent-item input:checked + .consent-box::after {
    transform: scale(1) rotate(-45deg);
}

.consent-item input:focus-visible + .consent-box {
    outline: 2px solid var(--gold-bright);
    outline-offset: 2px;
}

.consent-item-text {
    color: rgba(244, 241, 232, 0.9);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.5;
}

.consent-doc-link {
    color: var(--gold-bright);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.consent-doc-link:hover,
.consent-doc-link:focus-visible {
    color: var(--white);
}

.consent-notice {
    display: grid;
    gap: 6px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-left: 2px solid var(--gold);
    background: rgba(217, 173, 79, 0.08);
}

.consent-notice strong {
    color: var(--gold-bright);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.consent-notice p {
    margin: 0;
    color: rgba(244, 241, 232, 0.78);
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
}

.group-title {
    margin: 4px 0 0;
    color: var(--gold-bright);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.date-line {
    margin: 8px 0 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    color: rgba(244, 241, 232, 0.85);
    background: rgba(5, 5, 5, 0.45);
    font-size: 0.95rem;
}

.date-line strong {
    color: var(--gold-bright);
    font-weight: 500;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.86rem;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
    background: var(--gold);
    color: #111;
    border-color: var(--gold);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--gold-bright);
    border-color: var(--gold-bright);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: rgba(217, 173, 79, 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-status {
    margin: 14px 0 0;
    min-height: 1.4em;
    color: var(--gold-bright);
    font-size: 0.92rem;
}

.form-status.is-error {
    color: #ef9a9a;
}

.form-status.is-success {
    color: var(--gold-bright);
}

.success-panel {
    display: grid;
    gap: 14px;
    text-align: center;
    padding: 18px 8px 8px;
    justify-items: center;
}

.success-panel[hidden] {
    display: none !important;
}

.progress[hidden] {
    display: none !important;
}

.enroll-hero[hidden] {
    display: none !important;
}

.step-actions[hidden] {
    display: none !important;
}

.success-eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.success-panel h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.4vw, 2.6rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 400;
    line-height: 1.05;
}

.success-next {
    margin: 0;
    color: var(--gold-bright);
    font-size: clamp(1.05rem, 2.4vw, 1.2rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    max-width: 34ch;
}

.success-panel p {
    margin: 0 auto;
    max-width: 48ch;
    color: rgba(244, 241, 232, 0.75);
    font-weight: 300;
}

.success-agenda {
    width: min(100%, 34rem);
    margin-top: 6px;
    padding: 16px 18px;
    text-align: left;
    border: 1px solid rgba(217, 173, 79, 0.28);
    background: rgba(217, 173, 79, 0.05);
}

.success-agenda-title {
    margin: 0 0 10px !important;
    color: rgba(244, 241, 232, 0.92) !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
}

.success-agenda ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.success-agenda li {
    position: relative;
    padding-left: 1.1rem;
    color: rgba(244, 241, 232, 0.82);
    font-size: 0.94rem;
    font-weight: 300;
    line-height: 1.4;
}

.success-agenda li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--gold);
}

.success-path {
    margin-top: 4px !important;
    max-width: 42ch !important;
    color: rgba(244, 241, 232, 0.88) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
}

.success-note {
    max-width: 46ch !important;
    color: var(--muted) !important;
    font-size: 0.9rem !important;
}

.success-actions {
    display: grid;
    gap: 10px;
    width: min(100%, 26rem);
    margin-top: 8px;
}

.success-actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
}

[data-lang-block][hidden] {
    display: none !important;
}

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

@media (max-width: 720px) {
    .enroll-main {
        width: min(100% - 20px, var(--form-max));
        padding-left: 0;
        padding-right: 0;
    }

    .enroll-hero {
        margin-bottom: 16px;
    }

    .progress {
        gap: 8px;
        margin-bottom: 12px;
    }

    .progress-compact {
        display: block;
    }

    .progress-steps {
        display: none;
    }

    .enroll-card {
        padding: 18px 14px;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .enroll-main {
        width: min(100% - 16px, var(--form-max));
    }

    .progress-compact {
        font-size: 0.82rem;
    }

    .enroll-card {
        padding: 16px 12px;
    }
}
