.animated-steps .section-additional-header{
    display: none;
}

.animated-steps .steps-container{
    display: flex;
    flex-direction: column;
}

.animated-steps .item-content{
    display: flex;
    flex-direction: row;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.animated-steps .item-content.is-visible{
    opacity: 1;
    transform: none;
}

.animated-steps .item-nav{
    position: relative;
}

.animated-steps .nav-chevron{
    position: absolute;
    background-image: url('../img/inhtml/v-chevron.svg');
    background-repeat: no-repeat;
    width: 13px;
    height: 12px;
    left: 20px;
    bottom: 24px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.animated-steps .item-content.is-chevron-visible .nav-chevron{
    opacity: 1;
}

.animated-steps .last-step .nav-rail, .last-step .nav-chevron{
    visibility: hidden;
}

.animated-steps .item-number{
    width: 52px;
    height: 52px;
    padding: 5px;
    border-radius: 50%;
    border: 1px #8BE5BA solid;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    position: relative;

}

.animated-steps .item-text{
    margin-top: 12px;
    margin-bottom: 10px;
}

.animated-steps .number-border{
    width: 40px;
    height: 40px;
    border-radius: 20px;
    border: 1.25px solid #8BE5BA;
    background: #E8FFF4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00994F;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 152.778%;
}

.animated-steps .step_title{
    color:#000;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 140%;
    margin-bottom: 14px;
}

.animated-steps .step_text{
    color: #474747;
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 162.5%;
}

@media (min-width: 1024px){
    .animated-steps .section-additional-header{
        display: flex;
        align-items: center;
        justify-content: flex-end;
    } 
    .animated-steps .section-description{
        max-width: 480px;
    }   
    .animated-steps .additional-description{
        color: #704FBF;
        text-align: right;
        font-family: "Open Sans", Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-style: normal;
        font-weight: 600;
        line-height: normal;
        letter-spacing: 2.2px;
        text-transform: uppercase;
        max-width: 300px;
    }
}

@media (max-width: 1023.98px){
    .animated-steps .nav-rail{
        position: absolute;
        background-image: url('../img/inhtml/v-rail.svg');    
        background-repeat: no-repeat;
        background-size: cover;
        height: 100%;
        width: 2px;
        left: 25px;
        top: 0;
        transform: scaleY(0);
        z-index: 0;    
        transform-origin: top;
        transition: transform 0.8s ease;
    }
    .animated-steps .item-content.is-rail-drawn .nav-rail{
        transform: scaleY(1);
    }
}

@media (min-width: 1240px){    
    .animated-steps .additional-description{
        max-width: 310px;
    }

    .animated-steps .steps-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .animated-steps .item-content {
        flex-direction: column;
        gap: 20px;
    }
    .animated-steps .item-text {
        margin-top: 0;
        margin-bottom: 0;
        margin-right: 40px;
    }

    .animated-steps .last-step .item-text{
        margin-right: 0px;
    }

    .animated-steps .last-step .nav-rail{
        visibility: visible;
    }

    .animated-steps .nav-rail{
        position: absolute;
        background-image: url('../img/inhtml/h-rail.svg');    
        background-repeat: no-repeat;
        background-size: cover;
        height: 2px;
        width: 100%;
        left: 30px;
        top: 25px;
        z-index: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.8s ease;
    }

    .animated-steps .last-step .nav-rail{
        left: 0px;
    }

    .animated-steps .item-content.is-rail-drawn .nav-rail{
        transform: scaleX(1);
    }

    .animated-steps .nav-chevron{
        width: 12px;
        height: 13px;
        top: 19px;
        right: 28px;
        left: auto;
        bottom: auto;
        z-index: 1;
        opacity: 0;
        transform: rotate(-90deg);
    }    
}

@media (min-width: 1600px){
    .animated-steps .additional-description{
        max-width: 400px;
    }
}

@media (prefers-reduced-motion: reduce){
    .animated-steps .item-content{
        opacity: 1;
        transform: none;
        transition: none;
    }

    .animated-steps .nav-rail{
        transform: none;
        transition: none;
    }

    .animated-steps .nav-chevron{
        opacity: 1;
        transition: none;
    }
}

@media (min-width: 1024px) and (max-width: 1239.98px){
    .animated-steps .steps-container {
        display: grid;
        grid-template-columns: 50% 50%;
    }

    .animated-steps .item-content {
        flex-direction: column;
        gap: 20px;
    }
    .animated-steps .item-text {
        margin-top: 0;
        margin-bottom: 10px;
        margin-right: 40px;
    }

    .animated-steps .last-step .item-text{
        margin-right: 0px;
    }

    .animated-steps .nav-rail{
        position: absolute;
        background-image: url('../img/inhtml/h-rail.svg');    
        background-repeat: no-repeat;
        background-size: cover;
        height: 2px;
        width: 100%;
        left: 0;
        top: 25px;
        z-index: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.8s ease;
    }

    .animated-steps .last-step .nav-rail{
        left: 0px;
    }

    .animated-steps .item-content.is-rail-drawn .nav-rail{
        transform: scaleX(1);
    }

    .animated-steps .nav-chevron{
        width: 12px;
        height: 13px;
        top: 19px;
        right: 40px;
        left: auto;
        bottom: auto;
        z-index: 1;
        opacity: 0;
        transform: rotate(-90deg);
    }

    .animated-steps .last-step .nav-rail{
        visibility: visible;
    }
}