﻿

.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}


.step-name {
    font-size: 16px;
    z-index: 5;
    color: var(--prim-color);
    width: 100%;
    text-align: center;
}



.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    font-size: 22px;
}

    .stepper-item::before {
        position: absolute;
        content: "";
        border-bottom: 2px solid var(--foreground-color);
        width: 80%;
        top: 20px;
        left: -40%;
        z-index: 2;
        color: var(--prim-color);
    }

    .stepper-item::after {
        position: absolute;
        content: "";
        border-bottom: 2px solid var(--foreground-color);
        width: 80%;
        top: 20px;
        left: 60%;
        z-index: 2;
        color: var(--prim-color);
    }

    .stepper-item .step-counter {
        position: relative;
        z-index: 5;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--foreground-color);
        margin-bottom: 6px;
        color: var(--prim-color);
    }

    .stepper-item.active {
        font-weight: bold;
    }
        .stepper-item.active .step-counter {
            font-weight: normal;
            color: var(--white-color);
            background-color: var(--prim-color);
        }

        .stepper-item.active::before {
            color: var(--foreground-color);
        }

    .stepper-item.completed .step-counter {
        color: var(--prim-color);
        background-color: var(--foreground-color);
    }

    .stepper-item.completed::after {
        position: absolute;
        content: "";
        border-bottom: 2px solid var(--foreground-color);
        width: 80%;
        top: 20px;
        left: 60%;
        z-index: 3;
    }

    .stepper-item:first-child::before {
        content: none;
    }

    .stepper-item:last-child::after {
        content: none;
    }


@media (max-width: 991px) {
    .step-name {
        font-size: 13px;
    }

    .stepper-item::before {
        top: 17px;
        width: 65%;
        left: -35%;
    }

    .stepper-item::after {
        top: 17px;
        width: 70%;
        left: 65%;
    }

    .stepper-item.completed::after {
        top: 17px;
        content: "";
        border-bottom: 2px solid var(--prim-color);
        width: 70%;
        left: 65%;
        z-index: 3;
    }

    .stepper-item .step-counter {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 767px) {
    .step-name {
        font-size: 10px;
    }

    .stepper-item {
        font-size: 14px;
    }

        .stepper-item::before {
            top: 15px;
            width: 65%;
            left: -35%;
        }

        .stepper-item::after {
            top: 15px;
            width: 70%;
            left: 65%;
        }

        .stepper-item.completed::after {
            top: 15px;
            content: "";
            border-bottom: 2px solid var(--prim-color);
            width: 70%;
            left: 65%;
            z-index: 3;
        }

        .stepper-item .step-counter {
            width: 30px;
            height: 30px;
        }
}
