.alm-steps-indicator {
    --alm-step-blue: #4e6df2;
    --alm-step-line: #d9d9d9;
    margin: 0;
    overflow: visible;
}

.alm-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    gap: 34px;
    min-height: 72px;
    margin-bottom: 0;
}

.alm-step {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.alm-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(100% + 18px);
    width: 112px;
    height: 1px;
    background: var(--alm-step-line);
    transform: translateY(-50%);
    z-index: 0;
}

.alm-step.active:not(:last-child)::after {
    left: calc(100% + 96px);
    width: 112px;
}

.step-number {
    position: relative;
    width: 34px;
    height: 34px;
    background:
        url("../../images/circle-wave.svg") center / contain no-repeat,
        radial-gradient(circle at center, #C2DEFF 0 8.5px, transparent 9px);
    color: var(--alm-step-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0;
}

.alm-step.active .step-number,
.alm-step.completed .step-number {
    width: 58px;
    height: 58px;
    background:
        url("../../images/circle-wave-white.svg") center / 36px 35px no-repeat,
        var(--alm-step-blue);
    border-radius: 50%;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.alm-step.active::before {
    content: "Krok " attr(data-step) ".";
    position: absolute;
    left: 74px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alm-step-blue);
    font-family: "Grape Nuts", "Comic Sans MS", "Segoe Print", cursive;
    font-size: 24px;
    font-weight: 400;
    white-space: nowrap;
}

.step-name {
    display: none;
}

.alm-steps::before,
.alm-steps::after {
    display: none;
}

@media (max-width: 768px) {
    .alm-steps-indicator {
        overflow: visible;
        padding-bottom: 0;
        margin: 0;
    }

    .alm-steps {
        justify-content: space-between;
        gap: 0;
        min-width: 0;
        width: 100%;
        min-height: 48px;
    }

    .alm-step {
        flex: 1 1 0;
        min-width: 0;
    }

    .alm-step:not(:last-child)::after,
    .alm-step.active:not(:last-child)::after {
        left: calc(50% + 20px);
        right: calc(-50% + 20px);
        width: auto;
    }

    .alm-step.active:not(:last-child)::after {
        left: calc(50% + 27px);
    }

    .alm-step.active::before {
        display: none;
    }

    .alm-step.active .step-number {
        width: 42px;
        height: 42px;
        background:
            url("../../images/circle-wave-white.svg") center / 28px 27px no-repeat,
            var(--alm-step-blue);
    }

    .step-number,
    .alm-step.completed .step-number {
        width: 28px;
        height: 28px;
        color: var(--alm-step-blue);
        font-size: 10px;
        background:
            url("../../images/circle-wave.svg") center / contain no-repeat,
            radial-gradient(circle at center, #C2DEFF 0 7px, transparent 7.5px);
        border-radius: 0;
    }
}

@media (max-width: 380px) {
    .alm-step.active .step-number {
        width: 38px;
        height: 38px;
        background:
            url("../../images/circle-wave-white.svg") center / 25px 24px no-repeat,
            var(--alm-step-blue);
    }

    .step-number,
    .alm-step.completed .step-number {
        width: 26px;
        height: 26px;
        color: var(--alm-step-blue);
        background:
            url("../../images/circle-wave.svg") center / contain no-repeat,
            radial-gradient(circle at center, #C2DEFF 0 6.5px, transparent 7px);
        border-radius: 0;
    }

    .alm-step:not(:last-child)::after,
    .alm-step.active:not(:last-child)::after {
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
        width: auto;
    }

    .alm-step.active:not(:last-child)::after {
        left: calc(50% + 24px);
    }
}
