.formation-page{
    background:var(--brand-white);
    min-height:100vh;
    padding:60px 0 100px;
}

.formation-container{
    width:92%;
    max-width:1480px;
    margin:0 auto;
}

.formation-steps{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:0;
    margin-bottom:50px;
    position:relative;
}

.formation-step{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    color:var(--brand-muted);
    font-weight:700;
}

.formation-step::after{
    content:"";
    position:absolute;
    top:17px;
    left:58%;
    width:84%;
    height:3px;
    background:repeating-linear-gradient(to right,#ccc 0,#ccc 18px,transparent 18px,transparent 32px);
    z-index:1;
}

.formation-step:last-child::after{
    display:none;
}

.formation-step span{
    width:34px;
    height:34px;
    border-radius:50%;
    border:3px solid #ccc;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    color:transparent;
    position:relative;
    z-index:2;
}

.formation-step.active span,
.formation-step.completed span{
    background:var(--brand-purple);
    border-color:var(--brand-purple);
    color:white;
}

.formation-step.completed span::before{
    content:"✓";
    color:white;
    font-size:15px;
}

.formation-step.active p{
    color:var(--brand-dark);
    font-weight:900;
}

.formation-step.completed::after{
    background:var(--brand-purple);
}

.formation-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) 560px;
    gap:26px;
    align-items:start;
}

.formation-card,
.summary-card{
    background:white;
    border:1px solid var(--border);
    border-radius:12px;
    box-shadow:0 8px 28px rgba(32,35,49,.06);
    padding:42px;
}

.formation-panel{
    display:none;
}

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

.formation-card h1,
.summary-card h2{
    color:var(--brand-dark);
    font-size:30px;
    margin-bottom:22px;
}

.formation-card h2{
    font-size:26px;
    color:var(--brand-dark);
    margin:34px 0 16px;
}

.section-line{
    height:2px;
    background:rgba(128,82,226,.20);
    margin-bottom:26px;
}

label{
    display:block;
    color:var(--brand-dark);
    font-size:17px;
    font-weight:900;
    margin-bottom:10px;
}

input,
select{
    width:100%;
    height:56px;
    border:1px solid #d8d1ca;
    border-radius:7px;
    padding:0 18px;
    font-size:18px;
    color:var(--brand-dark);
    background:white;
    margin-bottom:22px;
}

input:focus,
select:focus{
    outline:none;
    border-color:var(--brand-purple);
    box-shadow:0 0 0 4px rgba(128,82,226,.12);
}

.form-grid{
    display:grid;
    gap:20px;
}

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

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

.filing-box{
    background:rgba(152,172,187,.14);
    border:1px solid rgba(152,172,187,.22);
    border-radius:8px;
    padding:36px;
    margin:10px 0 30px;
}

.filing-box h3{
    font-size:22px;
    margin-bottom:24px;
    color:var(--brand-dark);
}

.filing-box div{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.filing-box p{
    color:var(--brand-dark);
    font-weight:700;
    line-height:1.6;
}

.filing-box strong{
    background:white;
    color:var(--brand-purple);
    font-size:22px;
    padding:12px 26px;
}

.addon-card{
    border:1px solid rgba(128,82,226,.20);
    border-radius:14px;
    padding:28px;
    display:none;
    align-items:center;
    gap:18px;
    margin-bottom:36px;
}

.addon-card.show{
    display:flex;
}

.addon-card h3{
    color:var(--brand-purple);
    font-size:21px;
    margin-bottom:10px;
}

.addon-card p{
    color:var(--brand-muted);
    font-size:17px;
}

.addon-price{
    margin-left:auto;
    color:var(--brand-purple);
    font-weight:900;
    font-size:20px;
}

.switch{
    margin:0;
}

.switch input{
    display:none;
}

.switch span{
    width:62px;
    height:34px;
    background:#d6d0ca;
    border-radius:999px;
    display:block;
    position:relative;
    cursor:pointer;
}

.switch span::after{
    content:"";
    width:28px;
    height:28px;
    background:white;
    border-radius:50%;
    position:absolute;
    top:3px;
    left:4px;
    transition:.2s ease;
}

.switch input:checked + span{
    background:var(--brand-purple);
}

.switch input:checked + span::after{
    left:30px;
}

.free-services h2{
    margin-bottom:16px;
}

.free-services p{
    color:var(--brand-muted);
    font-size:17px;
    margin-bottom:24px;
}

.free-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:18px 34px;
}

.free-grid div{
    color:var(--brand-dark);
    font-size:18px;
}

.compliance-note{
    margin-top:34px;
    border:1px solid rgba(41,145,101,.18);
    border-radius:18px;
    padding:22px 28px;
    background:white;
}

.compliance-note strong{
    color:var(--brand-dark);
    font-size:19px;
}

.compliance-note p{
    color:var(--brand-muted);
    margin-top:4px;
}

.name-preview{
    background:rgba(152,172,187,.18);
    padding:28px;
    border-radius:6px;
    margin:18px 0 28px;
    color:var(--brand-dark);
}

.name-preview strong{
    display:block;
    margin-top:10px;
    font-size:20px;
}

.radio-stack{
    display:grid;
    gap:18px;
    margin-bottom:28px;
}

.radio-stack label{
    display:flex;
    align-items:center;
    gap:14px;
    font-size:18px;
}

.radio-stack input{
    width:30px;
    height:30px;
    margin:0;
    accent-color:var(--brand-purple);
}

.radio-stack span{
    color:var(--brand-purple);
    font-size:13px;
    text-transform:uppercase;
}

.member-card{
    background:#f7f7f7;
    border:1px solid var(--border);
    border-radius:8px;
    padding:34px;
    position:relative;
    margin-bottom:20px;
}

.remove-member{
    position:absolute;
    right:24px;
    top:24px;
    border:0;
    background:transparent;
    color:var(--brand-dark);
    font-size:28px;
    cursor:pointer;
}

.checkbox-line{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:15px;
}

.checkbox-line input{
    width:26px;
    height:26px;
    margin:0;
}

.recommended-list{
    display:grid;
    gap:0;
}

.recommended-item,
.nested-options label{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
    gap:18px;
    padding:20px 0;
    border-bottom:1px solid #ccc;
    margin:0;
}

.recommended-item input,
.nested-options input{
    width:58px;
    height:34px;
    margin:0;
    accent-color:var(--brand-purple);
}

.recommended-item span,
.nested-options label{
    color:var(--brand-dark);
    font-size:18px;
    font-weight:900;
}

.recommended-item strong,
.nested-options strong{
    color:var(--brand-purple);
    font-size:17px;
}

.nested-options{
    display:none;
    padding:10px 0 16px 50px;
}

.nested-options.show{
    display:grid;
}

.nested-options label{
    grid-template-columns:auto 1fr auto;
    border-bottom:0;
    padding:10px 0;
}

.dba-box{
    display:none;
    margin-top:18px;
}

.dba-box.show{
    display:block;
}

.password-rules{
    margin-top:26px;
}

.password-rules strong{
    display:block;
    margin-bottom:18px;
    color:var(--brand-dark);
}

.password-rules div{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:12px;
    color:var(--brand-muted);
}

.payment-options{
    display:grid;
    gap:18px;
}

.payment-option{
    border:1px solid var(--border);
    border-radius:18px;
    padding:24px;
    display:flex;
    align-items:center;
    gap:18px;
    cursor:pointer;
    transition:.2s ease;
}

.payment-option.active{
    border-color:var(--brand-purple);
    background:rgba(128,82,226,.08);
}

.payment-option input{
    display:none;
}

.payment-option span{
    width:60px;
    height:60px;
    border-radius:18px;
    background:white;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
}

.payment-option h3{
    color:var(--brand-dark);
    margin-bottom:6px;
}

.payment-option p{
    color:var(--brand-muted);
}

.order-summary{
    position:sticky;
    top:110px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:var(--brand-dark);
    font-size:17px;
    margin-bottom:22px;
}

.summary-row small{
    display:block;
    color:var(--brand-muted);
    margin-top:8px;
}

.summary-total{
    background:#f1f1f1;
    border-radius:8px;
    padding:22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:28px 0 24px;
}

.summary-total span,
.summary-total strong{
    color:var(--brand-purple);
    font-size:24px;
    font-weight:900;
}

.primary-action,
.secondary-action{
    width:100%;
    min-height:64px;
    border-radius:6px;
    font-size:19px;
    font-weight:900;
    cursor:pointer;
    transition:.2s ease;
    font-family:"Google Sans", Georgia,serif;
}

.primary-action{
    background:var(--brand-purple);
    color:white;
    border:0;
}

.secondary-action{
    background:white;
    color:var(--brand-purple);
    border:1px solid var(--brand-purple);
    margin-top:20px;
}

.secondary-action.full{
    background:var(--brand-purple);
    color:white;
    margin-top:10px;
}

.primary-action:hover,
.secondary-action:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 30px rgba(32,35,49,.12);
}

#backBtn{
    display:none;
}

@media(max-width:1100px){
    .formation-layout{
        grid-template-columns:1fr;
    }

    .order-summary{
        position:static;
    }

    .formation-steps{
        overflow-x:auto;
        display:flex;
        gap:80px;
        padding-bottom:20px;
    }

    .formation-step{
        min-width:120px;
    }
}

@media(max-width:700px){
    .formation-page{
        padding-top:30px;
    }

    .formation-card,
    .summary-card{
        padding:26px;
    }

    .form-grid.two,
    .form-grid.three,
    .free-grid,
    .password-rules div{
        grid-template-columns:1fr;
    }

    .filing-box div,
    .addon-card{
        flex-direction:column;
        align-items:flex-start;
    }

    .formation-card h1{
        font-size:25px;
    }
}


textarea{
    width:100%;
    min-height:150px;
    border:1px solid #d8d1ca;
    border-radius:7px;
    padding:18px;
    font-size:18px;
    color:var(--brand-dark);
    background:white;
    margin-bottom:8px;
    resize:vertical;
    font-family:"Google Sans", Georgia,serif;
}

.character-count{
    text-align:right;
    color:var(--brand-muted);
    font-weight:700;
    margin-bottom:22px;
}

.character-count .invalid{
    color:#dc2626;
}

.save-later-action{
    width:100%;
    min-height:58px;
    margin-top:16px;
    border-radius:6px;
    border:1px solid var(--brand-green);
    background:white;
    color:var(--brand-green);
    font-weight:900;
    font-size:17px;
    cursor:pointer;
    font-family:"Google Sans", Georgia,serif;
}

.addon-extra-field{
    display:none;
    margin:18px 0 28px;
}

.addon-extra-field.show{
    display:block;
}

.save-later-modal{
    position:fixed;
    inset:0;
    z-index:9999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:24px;
}

.save-later-modal.show{
    display:flex;
}

.save-later-backdrop{
    position:absolute;
    inset:0;
    background:rgba(32,35,49,.55);
}

.save-later-card{
    position:relative;
    width:100%;
    max-width:520px;
    background:white;
    border-radius:28px;
    padding:36px;
    box-shadow:0 30px 90px rgba(32,35,49,.25);
}

.save-later-card h2{
    font-size:34px;
    margin-bottom:10px;
    color:var(--brand-dark);
}

.save-later-card p{
    color:var(--brand-muted);
    line-height:1.6;
    margin-bottom:24px;
}

.save-later-close{
    position:absolute;
    top:18px;
    right:20px;
    border:0;
    background:transparent;
    font-size:30px;
    cursor:pointer;
    color:var(--brand-dark);
}


.tooltip-trigger{
    width:22px;
    height:22px;
    border-radius:50%;
    border:1px solid var(--brand-purple);
    background:white;
    color:var(--brand-purple);
    font-weight:900;
    cursor:pointer;
}

.formation-tooltip-modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.45);
    z-index:9999;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.formation-tooltip-modal.show{
    display:flex;
}

.formation-tooltip-box{
    width:100%;
    max-width:520px;
    background:white;
    border-radius:24px;
    padding:32px;
    position:relative;
}

.formation-tooltip-close{
    position:absolute;
    top:18px;
    right:18px;
    border:0;
    background:var(--brand-bg);
    width:36px;
    height:36px;
    border-radius:50%;
    cursor:pointer;
    font-size:22px;
}


@media(max-width:1100px){
    .formation-page{
        padding:24px 0 70px;
        overflow-x:hidden;
    }

    .formation-container{
        width:100%;
        max-width:100%;
        padding:0 16px;
    }

    .formation-layout{
        display:flex;
        flex-direction:column;
        gap:18px;
    }

    .formation-main,
    .order-summary{
        width:100%;
        min-width:0;
    }

    .formation-steps{
        display:flex;
        width:100%;
        gap:28px;
        overflow-x:auto;
        padding:0 6px 18px;
        margin-bottom:22px;
        scrollbar-width:none;
    }

    .formation-steps::-webkit-scrollbar{
        display:none;
    }

    .formation-step{
        min-width:86px;
        flex:0 0 auto;
        gap:8px;
        font-size:12px;
    }

    .formation-step::after{
        left:58%;
        width:54px;
        top:16px;
    }

    .formation-card,
    .summary-card{
        width:100%;
        padding:24px 18px;
        border-radius:12px;
    }

    .order-summary{
        position:static;
    }
}

@media(max-width:700px){
    .formation-page{
        padding-top:18px;
    }

    .formation-container{
        padding:0 12px;
    }

    .formation-card,
    .summary-card{
        padding:22px 16px;
        box-shadow:0 8px 24px rgba(32,35,49,.05);
    }

    .formation-card h1,
    .summary-card h2{
        font-size:24px;
        line-height:1.2;
        margin-bottom:16px;
    }

    .formation-card h2{
        font-size:21px;
    }

    label{
        font-size:14px;
        margin-bottom:8px;
    }

    input,
    select,
    textarea{
        font-size:16px;
        width:100%;
        max-width:100%;
    }

    .form-grid.two,
    .form-grid.three,
    .free-grid,
    .password-rules div{
        grid-template-columns:1fr;
        gap:0;
    }

    .recommended-item,
    .nested-options label{
        grid-template-columns:auto 1fr;
        gap:12px;
    }

    .recommended-item strong,
    .nested-options strong{
        grid-column:2;
        justify-self:start;
        margin-top:-8px;
    }

    .summary-row,
    .summary-total{
        gap:14px;
    }

    .summary-row{
        font-size:14px;
    }

    .summary-total span,
    .summary-total strong{
        font-size:20px;
    }

    .primary-action,
    .secondary-action,
    .save-later-action{
        min-height:54px;
        font-size:16px;
    }
}

@media(max-width:420px){
    .formation-container{
        padding:0 10px;
    }

    .formation-card,
    .summary-card{
        padding:20px 14px;
    }

    .formation-step{
        min-width:76px;
        font-size:11px;
    }

    .formation-step span{
        width:30px;
        height:30px;
    }

    .formation-step::after{
        top:15px;
        width:42px;
    }
}
