.step-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    margin-bottom: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.step-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    position: relative;
    padding: 15px;
    background: #ccc;
    margin-right: 20px;
    list-style-type: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    transition: all 0.3s ease;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 15px;
    border-color: transparent transparent transparent #ccc;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.step-item.active {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.step-item.active:not(:last-child)::after {
    border-color: transparent transparent transparent #007bff;
}

.step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    color: #ccc;
    margin-right: 10px;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    background-color: white;
    color: #007bff;
}

@media (max-width: 768px) {
    .step-item:not(:last-child)::after {
        right: 50%;
        bottom: -15px;
        top: auto;
        transform: translateX(50%) rotate(90deg);
        border-color: transparent transparent transparent #ccc;
    }
    
    .step-item.active:not(:last-child)::after {
        border-color: transparent transparent transparent #007bff;
    }
}