.stepper-container {
    position: relative;
    justify-content: space-between !important;
    align-items: flex-start;
    padding: 1rem;
}

.stepper-container::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 5;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 120px;
}

.stepper-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 10;
    margin-bottom: 5px;
    box-shadow: 0 0 0 5px white;
    transition: all 0.3s ease;
}

.stepper-text-checkout {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.2;
}

.stepper-number:hover {
    background-color: #032c70;
    color: white !important;
    transform: scale(1.1);
}

.stepper-number-locked {
    cursor: default;
}

.stepper-number-locked:hover,
.stepper-number-finalized:hover {
    background-color: #0d6efd;
    transform: scale(1.0);
}

.stepper-number-finalized {
    background-color: #078a4a;
}

.stepper-number-finalized:hover {
    transform: scale(1.0);
    background-color: #198754;
    color: white !important;
    transition: none;
}

.stepper-number-active {
    background-color: #032c70;
    color: white;
    cursor: default;
    transform: scale(1.0);
}

.stepper-item .stepper-number-active + .stepper-text-checkout {
    font-weight: bold;
    color: #032c70;
}

@media (max-width: 576px) {

    .stepper-container {
        padding-left: 20px !important;
        padding-right: 20px !important;
        width: 100%;
        box-sizing: border-box;
    }

    .stepper-item {
        max-width: none;
        flex-grow: 1;
        position: relative;
        z-index: 15;
        margin: .5rem 2rem;
    }

    .stepper-container::before {
        top: 28%;
        left: 20%;
        right: 0;
        padding: .1rem;
        width: 55rem !important;
        z-index: 5;
    }

    .stepper-number {
        z-index: 20;
    }
}