:root {
    --p3-primary: #0F8A5F;
    --p3-primary-dark: #0B6F4C;
    --p3-secondary: #1E40AF;
    --p3-accent: #F59E0B;
    --p3-background: #F8FAFC;
    --p3-card: #FFFFFF;
    --p3-text: #1F2937;
    --p3-muted: #64748B;
    --p3-border: #E5E7EB;
    --p3-danger: #DC2626;
    --p3-radius: 18px;
    --p3-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

body.p3-page {
    margin: 0;
    min-height: 100vh;
    background: #F4F6F8;
    color: var(--p3-text);
    font-family: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.p3-page input,
body.p3-page select,
body.p3-page textarea,
body.p3-page button {
    font-family: inherit;
}

.p3-brand {
    display: inline-flex;
    align-items: baseline;
    gap: .35rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -.04em;
}

.p3-brand-main {
    color: var(--p3-secondary);
    font-size: 1.75rem;
}

.p3-brand-project {
    color: var(--p3-primary);
    font-size: 1.3rem;
}

.registration-topbar {
    min-height: 92px;
    border-bottom: 1px solid #dce4ed;
    background: #fff;
}

.registration-topbar-inner {
    display: flex;
    min-height: 91px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.registration-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.registration-brand-logo {
    display: block;
    width: min(220px, 42vw);
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.registration-shell {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: 2rem;
    align-items: start;
}

.p3-public-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 20px 28px;
    color: var(--p3-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.p3-public-footer a {
    color: #354763;
    font-weight: 700;
    text-decoration: none;
}

.p3-public-footer a:hover,
.p3-public-footer a:focus-visible {
    color: var(--p3-primary-dark);
    text-decoration: underline;
}

.registration-intro {
    position: sticky;
    top: 110px;
    padding: 1rem;
}

.registration-intro h1 {
    margin: .8rem 0 1rem;
    font-size: clamp(2rem, 5vw, 3.7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.registration-free-emphasis {
    display: block;
    margin-top: .45rem;
    color: var(--p3-primary);
    font-size: .56em;
    line-height: 1.22;
    letter-spacing: -.025em;
}

.registration-intro p {
    color: var(--p3-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.p3-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(15, 138, 95, .10);
    color: var(--p3-primary);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.p3-trust-note {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid rgba(15, 138, 95, .18);
    border-radius: 16px;
    background: rgba(255, 255, 255, .75);
}

.p3-trust-note > i {
    color: var(--p3-primary);
    font-size: 1.5rem;
}

.p3-trust-note strong,
.p3-trust-note span {
    display: block;
}

.p3-trust-note span {
    margin-top: .2rem;
    color: var(--p3-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.registration-card {
    padding: clamp(1.2rem, 3vw, 2.25rem);
    border: 1px solid rgba(229, 231, 235, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--p3-shadow);
}

.registration-progress {
    margin-bottom: 2rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: .6rem;
    color: var(--p3-muted);
    font-size: .9rem;
    font-weight: 700;
}

.progress {
    height: .55rem;
    border-radius: 999px;
    background: #ECF1F5;
}

.progress-bar {
    border-radius: inherit;
    background: var(--p3-primary);
    transition: width .3s ease;
}

.step-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.step-dot {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--p3-border);
    border-radius: 50%;
    background: #fff;
    color: var(--p3-muted);
    font-size: .82rem;
    font-weight: 800;
    transition: .2s ease;
}

.step-dot.active {
    border-color: var(--p3-primary);
    background: var(--p3-primary);
    color: #fff;
    box-shadow: 0 7px 18px rgba(15, 138, 95, .22);
}

.step-dot.completed {
    border-color: rgba(15, 138, 95, .35);
    background: rgba(15, 138, 95, .10);
    color: var(--p3-primary);
}

.form-step {
    display: none;
    animation: p3FadeIn .25s ease;
}

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

@keyframes p3FadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.step-heading h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
}

.step-heading p {
    margin: .2rem 0 0;
    color: var(--p3-muted);
}

.step-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(15, 138, 95, .22);
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #e9f7f1);
    color: var(--p3-primary-dark);
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 4px rgba(15, 138, 95, .045), 0 8px 20px rgba(15, 138, 95, .08);
}

.form-label {
    color: #334155;
    font-size: .91rem;
    font-weight: 750;
}

.field-label-icon {
    width: 1.15rem;
    margin-right: .42rem;
    color: var(--p3-primary);
    font-size: .92rem;
    text-align: center;
    vertical-align: -.08em;
}

.section-question {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}

.section-question > i {
    flex: 0 0 auto;
    margin-top: .12rem;
    color: var(--p3-primary);
}

.conditional-other {
    padding: .75rem;
    border: 1px solid rgba(15, 138, 95, .2);
    border-radius: 12px;
    background: rgba(15, 138, 95, .045);
}

.conditional-other .form-label {
    margin-bottom: .45rem;
    color: #245244;
}

.optional-label {
    margin-left: .25rem;
    color: var(--p3-muted);
    font-size: .75rem;
    font-weight: 500;
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid var(--p3-border);
    border-radius: 12px;
    background-color: #fff;
    color: var(--p3-text);
}

textarea.form-control {
    min-height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(15, 138, 95, .75);
    box-shadow: 0 0 0 .22rem rgba(15, 138, 95, .12);
}

.form-actions {
    display: flex;
    gap: .8rem;
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--p3-border);
}

.btn-p3-primary,
.btn-p3-light {
    min-height: 46px;
    border-radius: 12px;
    padding: .7rem 1.2rem;
    font-weight: 750;
}

.btn-p3-primary {
    border: 1px solid var(--p3-primary);
    background: var(--p3-primary);
    color: #fff;
}

.btn-p3-primary:hover,
.btn-p3-primary:focus {
    border-color: var(--p3-primary-dark);
    background: var(--p3-primary-dark);
    color: #fff;
}

.btn-p3-light {
    border: 1px solid var(--p3-border);
    background: #fff;
    color: var(--p3-text);
}

.btn-p3-light:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.section-question {
    font-size: 1rem;
    font-weight: 800;
}

.p3-choice-card,
.declaration-box {
    padding: 1rem;
    border: 1px solid var(--p3-border);
    border-radius: 15px;
    background: #FAFCFD;
}

.form-check-input:checked {
    border-color: var(--p3-primary);
    background-color: var(--p3-primary);
}

.political-restriction,
.referral-box {
    display: flex;
    gap: .8rem;
    padding: 1rem;
    border-radius: 14px;
}

.political-restriction {
    border: 1px solid rgba(245, 158, 11, .22);
    background: rgba(245, 158, 11, .08);
    color: #7C4A03;
}

.political-restriction p {
    margin: 0;
    font-size: .9rem;
    line-height: 1.6;
}

.referral-box {
    align-items: center;
    border: 1px solid rgba(15, 138, 95, .2);
    background: rgba(15, 138, 95, .08);
}

.referral-box i {
    color: var(--p3-primary);
    font-size: 1.5rem;
}

.referral-box strong,
.referral-box span {
    display: block;
}

.referral-box span {
    color: var(--p3-muted);
    font-size: .9rem;
}

.success-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
}

.success-card {
    width: min(680px, 100%);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--p3-border);
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--p3-shadow);
    text-align: center;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 4.8rem;
    height: 4.8rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(15, 138, 95, .12);
    color: var(--p3-primary);
    font-size: 2rem;
}

.success-card h1 {
    margin: 1rem 0;
    font-weight: 850;
    letter-spacing: -.035em;
}

.success-message {
    color: var(--p3-muted);
    line-height: 1.7;
}

.membership-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.membership-summary > div {
    padding: 1rem;
    border: 1px solid var(--p3-border);
    border-radius: 14px;
    background: #FAFCFD;
}

.membership-summary span,
.membership-summary strong {
    display: block;
}

.membership-summary span {
    color: var(--p3-muted);
    font-size: .8rem;
}

.membership-summary strong {
    margin-top: .3rem;
    font-size: 1rem;
}

.referral-share-box {
    text-align: left;
}

.referral-share-box label {
    margin-bottom: .5rem;
    font-size: .9rem;
    font-weight: 750;
}

.core-target {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(30, 64, 175, .07);
}

.core-target strong,
.core-target span {
    display: block;
}

.core-target strong {
    color: var(--p3-secondary);
}

.core-target span {
    margin-top: .35rem;
    color: var(--p3-muted);
    font-size: .88rem;
    line-height: 1.55;
}

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

    .registration-intro {
        position: static;
        padding: 0;
    }

    .registration-intro h1 {
        font-size: 2.4rem;
    }

    .registration-free-emphasis {
        font-size: .62em;
    }
}

@media (max-width: 575.98px) {
    .registration-card {
        padding: 1rem;
        border-radius: 18px;
    }

    .registration-intro h1 {
        font-size: clamp(2rem, 10vw, 2.55rem);
    }

    .registration-intro p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .step-heading {
        align-items: flex-start;
        gap: .8rem;
    }

    .step-dots {
        gap: .3rem;
    }

    .step-dot {
        width: 1.9rem;
        height: 1.9rem;
    }

    .membership-summary {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-wrap: wrap;
    }

    .form-actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}
