:root {
    --theme-stepper-grey: #777777;
    --theme-color: #e51c23;
}


.bookingbar-container {
    margin: 30px auto;
    padding-bottom: 60px;
}
.bookingbar {
    counter-reset: step;
}
.bookingbar li {
    list-style-type: none;
    width: 25%;
    float: left;
    font-size: 12px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    color: #7d7d7d;
}
.bookingbar li:before {
    width: 30px;
    height: 30px;
    content: counter(step);
    counter-increment: step;
    line-height: 30px;
    border: 2px solid #7d7d7d;
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: white;
}
.bookingbar li:after {
    width: 100%;
    height: 2px;
    content: '';
    position: absolute;
    background-color: #7d7d7d;
    top: 15px;
    left: -50%;
    z-index: -1;
}
.bookingbar li:first-child:after {
    content: none;
}
.bookingbar li.active {
    color: var(--theme-color);
}
.bookingbar li.active:before {
    border-color: var(--theme-color);
}
.bookingbar li.active + li:after {
    background-color: #7d7d7d;
}



/** Stepper styling **/
.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    @media (max-width: 768px) {
        font-size: 12px;
    }
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--theme-stepper-grey);
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 2;
}

.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--theme-stepper-grey);
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 2;
}

.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: white;
    border: 2px solid var(--theme-stepper-grey);
    margin-bottom: 6px;
    font-size: 18px;
    color: var(--theme-stepper-grey);
}

.stepper-item .step-name {
    text-transform: uppercase;
}

.stepper-item.active {
    /*font-weight: bold;*/
    color: var(--theme-color);
}

.stepper-item.active .step-counter {
    border: 2px solid var(--theme-color);
    color: var(--theme-color);
}

.stepper-item.completed {
    color: var(--theme-color);
}

.stepper-item.completed .step-counter {
    background-color: white;
    border: 2px var(--theme-color) solid;
    color: var(--theme-color);
}

.stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--theme-color);
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 3;
}

.stepper-item:first-child::before {
    content: none;
}
.stepper-item:last-child::after {
    content: none;
}