.multi-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0;
    margin: 0 -0.5rem;
    list-style: none;
    counter-reset: stepNum;
}

.multi-steps > li {
    counter-increment: stepNum;
    flex: 1 0 auto;                  /* grow evenly, but don’t shrink below content */
    min-width: 120px;                /* ensure tappable area */
    text-align: center;
    position: relative;
    color: #027f00;
    padding: 0 0.5rem;               /* horizontal gutter */
}

.multi-steps > li:before {
    content: "-";
    display: block;
    margin: 0 auto 0.5rem;
    background-color: #027f00;
    width: 2.25rem;
    height: 2.25rem;
    line-height: 2.25rem;
    text-align: center;
    font-weight: bold;
    border: 2px solid #027f00;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
}

/* Progress bar */
.progress-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0.375rem;
    background-color: #e1e1e1;
    transform: translate(-50%, calc(50% + 1.75rem));
    z-index: -1;
}

.progress-bar--success {
    background-color: #027f00;
}

.progress-bar__bar {
    width: 100%;
    height: 100%;
    transition: width 0.5s ease-out;
}

/* Active/completed states */
.multi-steps > li.is-active:before {
    background-color: #fff;
    border-color: #027f00;
    color: #027f00;
    animation: pulse 2s infinite;
    content: "✓";
}

.multi-steps > li.is-active ~ li {
    color: #808080;
}

.multi-steps > li.is-active ~ li:before {
    background-color: #e1e1e1;
    border-color: #e1e1e1;
    color: #808080;
}

.multi-steps > li.is-complete {
    background-size: 200% 100%;
    background-position: right bottom;
    transition: background-position 0.5s ease-out;
}
.multi-steps > li.is-complete:before {
    content: "✓";
}

/* Pulse animation */
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(2,127,0,0.44); }
    100%{ box-shadow: 0 0 0 10px rgba(2,127,0,0); }
}

/* Hide scrollbar on WebKit but keep functionality */
.multi-steps::-webkit-scrollbar {
    height: 6px;
}
.multi-steps::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}

/* Smaller devices: wrap into two rows if needed */
@media (max-width: 576px) {
    .multi-steps {
        flex-wrap: wrap;
    }
    .multi-steps > li {
        flex: 0 0 50%;
        min-width: 50%;
        padding-bottom: 1.5rem;
    }
}
