:root {
    --register-teal: #078f89;
    --register-teal-dark: #066d69;
    --register-navy: #142038;
    --register-muted: #65758a;
    --register-border: #dce8ed;
    --register-bg: #f5f9fb;
    --register-white: #ffffff;
}

.shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(28px, 5vw, 76px);
    width: min(1180px, calc(100% - 40px));
    margin: 50px auto 85px;
    align-items: start;
    color: var(--register-navy);
}

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

.shell .intro {
    position: sticky;
    top: 32px;
    padding: clamp(30px, 4vw, 55px);
    border-radius: 24px;
    background: linear-gradient(145deg, #10253b 0%, #086f72 100%);
    color: var(--register-white);
    box-shadow: 0 22px 65px rgba(20, 32, 56, 0.15);
    overflow: hidden;
}

.shell .eyebrow {
    color: var(--register-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.shell .intro .eyebrow {
    color: #a6f3e7;
}

.shell .intro h1 {
    margin: 25px 0 18px;
    font-size: clamp(38px, 4.5vw, 61px);
    line-height: 1.12;
    letter-spacing: -1.8px;
    font-weight: 750;
}

.shell .intro h1 em {
    color: #9de9dd;
    font-style: normal;
}

.shell .intro > p {
    max-width: 420px;
    color: #d9e9ed;
    font-size: 16px;
    line-height: 1.8;
}

.shell .intro-card {
    position: relative;
    margin-top: 38px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.09);
}

.shell .intro-card .sparkle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #b1f5e9;
    font-size: 22px;
}

.shell .intro-card h3 {
    margin: 16px 0 8px;
    color: white;
    font-size: 18px;
    font-weight: 700;
}

.shell .intro-card p {
    margin: 0;
    color: #d5e6ea;
    font-size: 14px;
    line-height: 1.7;
}

.shell .steps {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.shell .steps span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 9px;
    color: #c6dadd;
    font-size: 13px;
}

.shell .steps span.active {
    background: #ffffff;
    color: #086f72;
    border-color: white;
}

.shell .form-panel {
    min-width: 0;
    padding: clamp(26px, 4vw, 46px);
    background: var(--register-white);
    border: 1px solid var(--register-border);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(18, 40, 58, 0.07);
}

.shell .form-top h2 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 3vw, 37px);
    font-weight: 750;
    letter-spacing: -1px;
}

.shell .form-top p {
    margin: 0 0 30px;
    color: var(--register-muted);
    line-height: 1.7;
}

#registration .section-title {
    margin-bottom: 23px;
    color: var(--register-navy);
    font-size: 14px;
    font-weight: 800;
}

#registration .two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

#registration label {
    display: block;
    margin-bottom: 20px;
    color: var(--register-navy);
    font-size: 13px;
    font-weight: 700;
}

#registration label .optional {
    margin-left: 7px;
    color: #8996a5;
    font-size: 11px;
    font-weight: 500;
}

#registration input:not([type="checkbox"]),
#registration select {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 9px;
    padding: 12px 14px;
    border: 1px solid #d4e0e7;
    border-radius: 10px;
    background: #fbfdfe;
    color: var(--register-navy);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#registration input:focus,
#registration select:focus {
    border-color: var(--register-teal);
    box-shadow: 0 0 0 3px rgba(7, 143, 137, 0.12);
}

#registration input::placeholder {
    color: #9aa7b3;
}

#registration #referral_code,
#registration #my_referral_code {
    text-transform: uppercase;
}

#registration label small {
    display: block;
    margin-top: 7px;
    color: var(--register-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

#registration .ref-note {
    margin: -5px 0 22px;
    padding: 13px 15px;
    border: 1px solid #bde7e0;
    border-radius: 10px;
    background: #edfaf7;
    color: #086f72;
    font-size: 13px;
}

#registration .ref-note[hidden] {
    display: none;
}

#registration .check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 25px 0;
    color: var(--register-muted);
    font-weight: 400;
    line-height: 1.65;
}

#registration .check input {
    width: 17px;
    height: 17px;
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--register-teal);
}

#registration .check a,
.shell .signin a {
    color: var(--register-teal-dark);
    font-weight: 700;
    text-decoration: none;
}

#registration .check a:hover,
.shell .signin a:hover {
    text-decoration: underline;
}

#registration .primary,
#registration .back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 49px;
    padding: 13px 23px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

#registration .primary {
    border: 1px solid var(--register-teal);
    background: var(--register-teal);
    color: white;
}

#registration .primary:hover {
    background: var(--register-teal-dark);
    transform: translateY(-1px);
}

#registration .back {
    border: 1px solid var(--register-border);
    background: white;
    color: var(--register-navy);
}

#registration .actions {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

#registration .secure {
    margin-top: 19px;
    color: var(--register-muted);
    font-size: 12px;
    text-align: center;
}

.shell .signin {
    margin: 28px 0 0;
    color: var(--register-muted);
    font-size: 14px;
    text-align: center;
}

#registration .step-panel {
    display: block !important;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: 0;
    pointer-events: none;
    transition: max-height 0.8s ease, opacity 0.5s ease, visibility 0s linear 0.8s;
}

#registration .step-panel.active {
    max-height: 2400px;
    opacity: 1;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
    transition: max-height 0.8s ease, opacity 0.5s ease, visibility 0s;
}

#registration .step-panel.active + .step-panel.active {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--register-border);
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }

    .shell .intro {
        position: static;
    }
}

@media (max-width: 540px) {
    .shell {
        width: calc(100% - 24px);
        gap: 18px;
    }

    .shell .intro,
    .shell .form-panel {
        padding: 25px 20px;
        border-radius: 18px;
    }

    #registration .two {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #registration .actions {
        flex-direction: column;
    }

    #registration .actions button,
    #registration .next {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    #registration .step-panel {
        transition: none;
    }
}