﻿.stepper-wrapper {
    margin: 15px;
    display: flex;
    justify-content: space-between;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 17px;
    left: -50%;
    z-index: 2;
}

.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 17px;
    left: 50%;
    z-index: 2;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    border: 2px solid #ccc;
    margin-bottom: 6px;
    font-size: 14px;
    background: white;
}

.stepper-item.active {
    font-weight: bold;
}

.stepper-item.skipped {
    color:#ccc;
}

.stepper-item.skipped .step-counter{
    border: 2px solid #ccc;
}

.stepper-item.active .step-counter {
    border: 2px solid #555;
    background: #e0e0e0;
}

.stepper-item.completed .step-counter {
    border: 2px solid #555;
}

.stepper-item.completed::after, .stepper-item.skipped::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #555;
    width: 100%;
    top: 17px;
    left: 50%;
    z-index: 3;
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-item:last-child::after {
    content: none;
}