/* Process Steps Widget v1.2.0 — progressive enhancement fix */

.psw-wrap {
    width: 100%;
    box-sizing: border-box;
}

.psw-inner {
    max-width: 560px;
    width: 100%;
    box-sizing: border-box;
}

.psw-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #9ca3af;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.4;
}

.psw-title {
    font-size: 32px;
    font-weight: 400;
    color: #1b2f4b;
    margin: 0 0 48px;
    padding: 0;
    line-height: 1.25;
}

/* ── Track ── */
.psw-track {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Left column ── */
.psw-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 48px;
    min-width: 48px;
    position: relative;
}

/* Base line — full height of left col */
.psw-left::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background: #d8d5cd;
    z-index: 0;
}

/* Animated fill line */
.psw-left-fill {
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 0;
    background: #1b2f4b;
    z-index: 1;
    transition: height .8s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

/* ── Number box ── */
.psw-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #1b2f4b;
    background: #ffffff;
    border: 1px solid #AAC1E0;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.psw-box.psw-on {
    background: #1E3A5F;
    color: #fff;
    border-color: #1E3A5F;
}

/* Spacer between boxes — height set by JS to match content height */
.psw-box-spacer {
    flex-shrink: 0;
    width: 2px;
}

/* ── Right column ── */
.psw-right {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 40px;
}

/* ── Step content ── */
/* Default: always visible — JS animation is progressive enhancement only */
.psw-content {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: none;
    box-sizing: border-box;
}

/* Anim-ready state: wrapper gets .psw-anim-ready by JS before observer fires */
.psw-anim-ready .psw-content {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}

.psw-anim-ready .psw-content.psw-on {
    opacity: 1;
    transform: none;
}

.psw-step-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #1E3A5F;
    margin: 0 0 8px;
    padding: 0;
    /* Vertically center first line with the box */
    padding-top: 12px;
}

.psw-step-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4B4B4B;
    margin: 0;
    padding: 0;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .psw-title { font-size: 24px; margin-bottom: 28px; }
    .psw-track { flex-direction: column; gap: 0; }
    .psw-left  { display: none; }
    .psw-right { gap: 0; }

    .psw-content {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        padding: 18px 0;
        border-bottom: 1px solid #e5e1d8;
        min-height: 0;
    }

    .psw-right .psw-content:last-child { border-bottom: none; }
    .psw-step-title { padding-top: 0; }

    .psw-content::before {
        content: attr(data-step);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 16px;
        font-weight: 600;
        color: #1b2f4b;
        border: 1px solid #AAC1E0;
        box-sizing: border-box;
        margin-bottom: 12px;
        flex-shrink: 0;
    }
}
