.steps-container {
    border-radius: 1.5rem;
    padding: .5rem;
    padding-left: 0;
    position: relative;
}

.steps-container .step {
    display: flex;
    position: relative;
}

.steps-container .step:last-child {
    margin-bottom: 0px;
}

.steps-container .step-number-holder {
    width: 48px;
    filter: drop-shadow(0px 5px 5px rgba(114, 141, 254, .2));
    margin: 0 .5rem;
    align-items: center;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.steps-container .step-number {
    background-color: #fff;
    width: 40px;
    aspect-ratio: 1;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.steps-container .step-number::after {
    content: "";
    background-color: #fff;
    width: 4px;
    height: 120%;
    position: absolute;
    bottom: 0;
    z-index: -1;
}

.steps-container .step:first-child .step-number::after,
.steps-container .step:last-child .step-number-holder:not(.invisible) .step-number::after {
    height: 50%;
}

.steps-container .step:last-child .step-number::after {
    top: -20px;
}

.steps-container .step-number .number {
    background: var(--hover-gradient);
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    line-height: 1;
}

.steps-container .invisible .step-number {
    width: 0;
}

.steps-container .step-with-submit .step-text {
    justify-content: space-between;
}


.steps-container .step-with-submit .arrow {
    background: url('../../images/distributors-page/arrow_fade.webp') no-repeat right center;
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
    flex-shrink: 0;
    position: relative;
}

.steps-container .step-with-submit {
    display: flex;
    gap: .5rem;
    flex-direction: column;
 }

.steps-container .submit-app-btn {
    background: linear-gradient(180deg, #F0F3FA 0%, #FFFFFF 100%);
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #023CC2;
    box-shadow: 0px 5px 20px 0px rgba(114, 141, 254, 0.2), 0px 2px 5px 0px rgba(31, 31, 41, 0.08);
}

.steps-container .submit-app-btn .gradient-color {
    background: linear-gradient(180deg, #8697C1 0%, #536BA2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;  
}

.steps-container .step-text {
    width: 100%;
    min-height: 75px;
    padding: 1rem;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

@media (min-width: 768px) {
    .steps-container .step-text {
        padding: 1.5rem;
        gap: 1.5rem
    }

    .steps-container .step-with-submit {
       flex-direction: row;
    }

    .steps-container .step-with-submit .invisible {
        display: none;
    }
    
    .steps-container .step-with-submit .step:first-child {
        flex-grow: 1;
    }

    .steps-container .submit-app-btn {
        width: 208px;
        height: auto;
        align-self: stretch;
    }

    .steps-container .step-with-submit p {
        flex-shrink: 0;
        max-width: 85%;
    }

    .steps-container .step-with-submit .arrow {
        width: 100%;
        transform: none;
        flex-shrink: initial;
    }

    .steps-container .step-with-submit .arrow::after {
        content: "";
        position: absolute;
        width: 80%;
        height: 100%;
        z-index: 10;
        background: linear-gradient(to left, rgba(255,255,255,0), rgba(255,255,255,1));
    }
}

@media (min-width: 1024px) {
    .steps-container .step-number-holder {
        margin: 0 1.5rem;
    }

    .step-number-holder {
        width: 82px;
    }
}