﻿/* ── RESET & VARIABLES ────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --white: #FFFFFF;
    --off: #F7F8FC;
    --off2: #EEF0F7;
    --ink: #0A0E1A;
    --body: #4A5270;
    --muted: #8892AA;
    --border: #E2E6F0;
    --border2: #CDD3E5;
    --blue: #2563EB;
    --blue2: #1D4ED8;
    --blue-lt: #EEF3FD;
    --green: #059669;
    --green-lt: #D1FAE5;
    --green2: #047857;
    --amber: #F59E0B;
    --amber-lt: #FEF3C7;
    --amber-dk: #92400E;
    --red: #DC2626;
    --red-lt: #FEE2E2;
    --shadow-sm: 0 1px 3px rgba(10,14,26,.06);
    --shadow: 0 4px 16px rgba(10,14,26,.09);
    --shadow-lg: 0 20px 60px rgba(10,14,26,.14);
    --font-h: 'Fraunces',serif;
    --font-b: 'Plus Jakarta Sans',sans-serif
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-b);
    background: var(--off);
    color: var(--ink);
    min-height: 100vh;
    display: flex;
    flex-direction: column
}

/* ── PAGE LAYOUT ──────────────────────────────────────────── */
.page {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 520px;
    min-height: calc(100vh - 64px)
}

/* ── LEFT PANEL ───────────────────────────────────────────── */
.left-panel {
    background: linear-gradient(160deg,#0A0E1A 0%,#0f2548 60%,#0A0E1A 100%);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden
}

.lp-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(37,99,235,.18),transparent 70%);
    top: -100px;
    right: -150px;
    pointer-events: none
}

.lp-glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle,rgba(5,150,105,.12),transparent 70%);
    bottom: -80px;
    left: -100px;
    pointer-events: none
}

.lp-eyebrow {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: rgba(255,255,255,.35);
    margin-bottom: .85rem
}

.lp-title {
    font-family: var(--font-h);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 1rem
}

    .lp-title em {
        font-style: italic;
        font-weight: 300;
        color: rgba(255,255,255,.55)
    }

.lp-sub {
    font-size: .97rem;
    color: rgba(255,255,255,.5);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 380px
}

/* Benefits list */
.lp-benefits {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    margin-bottom: 2.5rem
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem
}

.bi-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0
}

.bi-title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: .18rem
}

.bi-sub {
    font-size: .77rem;
    color: rgba(255,255,255,.42);
    line-height: 1.55
}

/* Stats strip */
.lp-stats {
    display: flex;
    gap: 1.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.08)
}

.ls-val {
    font-family: var(--font-h);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white)
}

    .ls-val span {
        color: #4ADE80
    }

.ls-label {
    font-size: .72rem;
    color: rgba(255,255,255,.35);
    margin-top: .1rem
}

/* ── RIGHT PANEL (form) ───────────────────────────────────── */
.right-panel {
    background: var(--white);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid var(--border)
}

.rp-inner {
    padding: 2.5rem 2.75rem;
    flex: 1;
    display: flex;
    flex-direction: column
}

/* Account type selector */
.type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem;
    margin-bottom: 2rem
}

.type-btn {
    padding: 1.1rem .85rem;
    border-radius: 14px;
    border: 2px solid var(--border2);
    background: var(--white);
    cursor: pointer;
    transition: all .22s;
    text-align: center;
    position: relative
}

    .type-btn:hover {
        border-color: var(--blue);
        background: var(--blue-lt)
    }

    .type-btn.active {
        border-color: var(--blue);
        background: var(--blue-lt)
    }

    .type-btn.active-green {
        border-color: var(--green);
        background: var(--green-lt)
    }

.tb-icon {
    font-size: 1.65rem;
    margin-bottom: .45rem;
    display: block
}

.tb-title {
    font-size: .9rem;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .18rem
}

.tb-sub {
    font-size: .72rem;
    color: var(--muted)
}

.tb-check {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .6rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity .2s
}

.type-btn.active .tb-check {
    background: var(--blue);
    color: #fff;
    opacity: 1
}

.type-btn.active-green .tb-check {
    background: var(--green);
    color: #fff;
    opacity: 1
}

/* Referral banner */
.referral-banner {
    background: var(--green-lt);
    border: 1.5px solid rgba(5,150,105,.25);
    border-radius: 12px;
    padding: .85rem 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .65rem
}

.rb-icon {
    font-size: 1.25rem;
    flex-shrink: 0
}

.rb-text {
    font-size: .84rem;
    color: var(--ink);
    line-height: 1.5
}

    .rb-text strong {
        color: var(--green)
    }

/* Form sections */
.form-section {
    display: none
}

    .form-section.active {
        display: block
    }

.section-title {
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .25rem
}

.section-sub {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.55
}

/* Form fields */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .85rem
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .9rem
}

.form-label {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: .35rem
}

.fl-opt {
    font-size: .68rem;
    font-weight: 500;
    color: var(--muted)
}

.form-input, .form-select {
    font-family: var(--font-b);
    font-size: .9rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 10px;
    padding: .65rem .9rem;
    outline: none;
    transition: all .2s;
    width: 100%;
    appearance: none
}

    .form-input:focus, .form-select:focus {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,.09);
        background: var(--white)
    }

    .form-input.error, .form-select.error {
        border-color: var(--red)
    }

    .form-input.success {
        border-color: var(--green)
    }

.field-error {
    font-size: .72rem;
    color: var(--red);
    margin-top: .18rem;
    display: none
}

    .field-error.show {
        display: block
    }

.field-hint {
    font-size: .72rem;
    color: var(--muted);
    margin-top: .18rem
}

/* Password strength */
.pwd-strength {
    margin-top: .35rem
}

.ps-bar {
    height: 4px;
    background: var(--off2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: .3rem
}

.ps-fill {
    height: 100%;
    border-radius: 2px;
    width: 0;
    transition: all .3s
}

.ps-label {
    font-size: .69rem;
    color: var(--muted)
}

/* Password toggle */
.pwd-wrap {
    position: relative
}

.pwd-toggle {
    position: absolute;
    right: .85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: .85rem;
    padding: .2rem;
    transition: color .2s
}

    .pwd-toggle:hover {
        color: var(--ink)
    }

/* Phone input */
.phone-wrap {
    display: flex;
    gap: .5rem
}

.phone-prefix {
    font-family: var(--font-b);
    font-size: .88rem;
    color: var(--body);
    background: var(--off);
    border: 1.5px solid var(--border2);
    border-radius: 10px;
    padding: .65rem .9rem;
    white-space: nowrap;
    flex-shrink: 0
}

/* Checkbox */
.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .75rem
}

.custom-cb {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid var(--border2);
    flex-shrink: 0;
    margin-top: .1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--white)
}

    .custom-cb.checked {
        background: var(--blue);
        border-color: var(--blue)
    }

        .custom-cb.checked::after {
            content: '✓';
            color: #fff;
            font-size: .65rem;
            font-weight: 800
        }

.cb-label {
    font-size: .81rem;
    color: var(--body);
    line-height: 1.55
}

    .cb-label a {
        color: var(--blue);
        text-decoration: none;
        font-weight: 600
    }

        .cb-label a:hover {
            text-decoration: underline
        }

/* Steps indicator */
.steps-indicator {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: 1.75rem
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border2);
    transition: all .3s;
    flex-shrink: 0
}

    .step-dot.done {
        background: var(--green)
    }

    .step-dot.active {
        width: 24px;
        border-radius: 4px;
        background: var(--blue)
    }

.step-label {
    font-size: .75rem;
    color: var(--muted);
    margin-left: .4rem
}

/* Category checkboxes */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .4rem;
    margin-bottom: .9rem
}

.cat-chip {
    border: 1.5px solid var(--border2);
    border-radius: 9px;
    padding: .5rem .6rem;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: var(--body);
    background: var(--white)
}

    .cat-chip:hover {
        border-color: var(--green);
        background: var(--green-lt);
        color: var(--green)
    }

    .cat-chip.selected {
        border-color: var(--green);
        background: var(--green-lt);
        color: var(--green);
        font-weight: 700
    }

.cat-icon {
    font-size: .9rem;
    flex-shrink: 0
}

/* Upload area */
.upload-area {
    border: 2px dashed var(--border2);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--off)
}

    .upload-area:hover {
        border-color: var(--blue);
        background: var(--blue-lt)
    }

    .upload-area.has-file {
        border-color: var(--green);
        background: var(--green-lt);
        border-style: solid
    }

.ua-icon {
    font-size: 1.5rem;
    margin-bottom: .4rem
}

.ua-title {
    font-size: .84rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .2rem
}

.ua-sub {
    font-size: .72rem;
    color: var(--muted)
}

/* Submit button */
.btn-submit {
    width: 100%;
    font-family: var(--font-b);
    font-size: .95rem;
    font-weight: 800;
    color: var(--white);
    background: var(--blue);
    border: none;
    border-radius: 12px;
    padding: .9rem 0;
    cursor: pointer;
    transition: all .22s;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: .5rem
}

    .btn-submit:hover {
        background: var(--blue2);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,.3)
    }

    .btn-submit:active {
        transform: translateY(0)
    }

    .btn-submit.green {
        background: var(--green)
    }

        .btn-submit.green:hover {
            background: var(--green2);
            box-shadow: 0 6px 20px rgba(5,150,105,.3)
        }

    .btn-submit:disabled {
        opacity: .6;
        cursor: not-allowed;
        transform: none
    }

/* Back button */
.btn-back {
    font-family: var(--font-b);
    font-size: .85rem;
    font-weight: 600;
    color: var(--body);
    background: var(--white);
    border: 1.5px solid var(--border2);
    border-radius: 10px;
    padding: .6rem 1.2rem;
    cursor: pointer;
    transition: all .2s
}

    .btn-back:hover {
        color: var(--ink);
        border-color: var(--ink)
    }

/* Sign in link */
.signin-link {
    text-align: center;
    margin-top: 1.25rem;
    font-size: .84rem;
    color: var(--muted)
}

    .signin-link a {
        color: var(--blue);
        font-weight: 700;
        text-decoration: none
    }

        .signin-link a:hover {
            text-decoration: underline
        }

/* Error/success message */
.form-message {
    padding: .85rem 1rem;
    border-radius: 10px;
    font-size: .84rem;
    margin-bottom: 1rem;
    display: none;
    align-items: center;
    gap: .5rem
}

    .form-message.show {
        display: flex
    }

    .form-message.error {
        background: var(--red-lt);
        color: var(--red);
        border: 1px solid rgba(220,38,38,.2)
    }

    .form-message.success {
        background: var(--green-lt);
        color: var(--green);
        border: 1px solid rgba(5,150,105,.2)
    }

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.1rem 0
}

.div-line {
    flex: 1;
    height: 1px;
    background: var(--border)
}

.div-text {
    font-size: .78rem;
    color: var(--muted)
}

/* Social buttons */
.social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-bottom: 1.1rem
}

.social-btn {
    font-family: var(--font-b);
    font-size: .82rem;
    font-weight: 700;
    padding: .6rem 0;
    border-radius: 10px;
    border: 1.5px solid var(--border2);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    color: var(--body);
    transition: all .2s
}

    .social-btn:hover {
        border-color: var(--border);
        background: var(--off);
        color: var(--ink)
    }

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media(max-width:900px) {
    .page {
        grid-template-columns: 1fr
    }

    .left-panel {
        display: none
    }

    .right-panel {
        border-left: none
    }

    .rp-inner {
        padding: 2rem 1.5rem
    }
}

@media(max-width:480px) {
    .form-row {
        grid-template-columns: 1fr
    }

    .category-grid {
        grid-template-columns: 1fr 1fr
    }

    .social-row {
        grid-template-columns: 1fr
    }
}
