/*=========================================================
HOW TO USE
5-step timeline + panel
=========================================================*/
.steps{
    background:var(--light);
}

.steps .section-header{
    margin-bottom:56px;
}

/*=========================================================
TIMELINE
=========================================================*/

.steps-navigation{
    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    max-width:860px;
    margin:0 auto 44px;
}

/* line runs between the centres of the first and last circle */
.steps-track{
    position:absolute;
    top:28px;
    left:10%;
    right:10%;
    height:3px;
    border-radius:3px;
    background:#D5DEE7;
    z-index:1;
}

.steps-progress{
    width:0;
    height:100%;
    border-radius:3px;
    background:var(--primary);
    transition:width .45s ease;
}

/*=========================================================
STEP BUTTON
=========================================================*/

.step-button{
    position:relative;
    z-index:2;
    flex:1;
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:14px;
    padding:0;
    border:none;
    background:none;
    cursor:pointer;
    transition:transform .30s ease;
}

.step-button:hover{
    transform:translateY(-3px);
}

.step-number{
    width:58px;
    height:58px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--white);
    border:2px solid #D5DEE7;
    color:var(--text);
    font-size:22px;
    font-weight:700;
    transition:.30s ease;
}

.step-button span{
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-align:center;
    color:var(--text);
    transition:color .30s ease;
}

/* ACTIVE: solid blue, soft gold ring */
.step-button.active .step-number{
    background:var(--primary);
    border-color:var(--primary);
    color:var(--white);
    box-shadow:0 0 0 5px rgba(241,196,15,.45);
}
.step-button.active span{
    color:var(--primary);
}

/* DONE: white circle with a blue tick (the logo checkmark idea) */
.step-button.done .step-number{
    border-color:var(--primary);
    color:var(--primary);
    font-size:0;
}
.step-button.done .step-number::after{
    content:"✓";
    font-size:24px;
}
.step-button.done span{
    color:var(--primary);
}

.step-button:focus-visible{
    outline:none;
}
.step-button:focus-visible .step-number{
    outline:3px solid var(--accent);
    outline-offset:3px;
}

/*=========================================================
PANEL
=========================================================*/

.step-panel{
    display:grid;
    grid-template-columns:40% 60%;
    max-width:1060px;
    margin:0 auto;
    background:var(--white);
    border:1px solid var(--border);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-md);
    overflow:hidden;
}

.step-image{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:36px;
    background:#EEF3F8;
}

.step-image img{
    width:100%;
    max-width:320px;
    height:auto;
}

.step-content{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    padding:48px;
}

.step-badge{
    margin-bottom:20px;
}

.step-content h3{
    font-size:28px;
    margin-bottom:14px;
}

.step-content p{
    margin-bottom:28px;
}

/* fade when the step changes (only after a click) */
.step-image img,
.step-content{
    transition:opacity .18s ease;
}
.step-panel.is-changing .step-image img,
.step-panel.is-changing .step-content{
    opacity:0;
}

/*=========================================================
BENEFITS
=========================================================*/

.step-benefits{
    display:flex;
    flex-direction:column;
    gap:18px;
    width:100%;
}

.step-benefits li{
    display:flex;
    align-items:flex-start;
    gap:14px;
}

.step-benefits i{
    flex-shrink:0;
    margin-top:4px;
    color:var(--primary);
}

.step-benefits span{
    line-height:1.7;
    color:var(--text);
}

.step-benefits strong{
    color:var(--dark);
}

/*=========================================================
TABLET
=========================================================*/

@media (max-width:991px){

    .step-panel{
        grid-template-columns:1fr;
    }
    .step-image{
        padding:30px;
    }
    .step-image img{
        max-width:340px;
    }
    .step-content{
        padding:36px;
    }

}

/*=========================================================
MOBILE
=========================================================*/

@media (max-width:767px){

    .steps .section-header{ margin-bottom:44px; }

    .steps-navigation{ margin-bottom:32px; }

    .steps-track{ top:23px; }

    .step-number{
        width:46px;
        height:46px;
        font-size:18px;
    }
    .step-button.done .step-number::after{ font-size:20px; }

    .step-button{ gap:10px; }
    .step-button span{
        font-size:11px;
        letter-spacing:.04em;
    }

    .step-content{ padding:26px; }
    .step-content h3{ font-size:24px; }
    .step-content p{ margin-bottom:22px; }
    .step-benefits{ gap:16px; }

}

/* very small phones: numbers only, the panel badge names the step */
@media (max-width:575px){

    .step-button span{ display:none; }

}

@media (prefers-reduced-motion:reduce){

    .step-button,
    .step-number,
    .steps-progress,
    .step-image img,
    .step-content{
        transition:none;
    }

}