@use '../../utils' as *;

/*----------------------------------------*/
/*  7.15 step css
/*----------------------------------------*/

.tp-step{
    &-title-box{
        margin: 0px 60px;
        margin-bottom: 40px;
        @media #{$xs}{
            margin: 0;
            margin-bottom: 40px;
        }
    }
    &-link {
        & a{
            font-weight: 600;
            font-size: 14px;
            letter-spacing: -0.02em;
            display: inline-block;
            padding: 6px 40px;
            border-radius: 30px;
            background-color: #a1ecea;
            color: var(--tp-common-black-3);
            border: 2px solid transparent;
            & span{
                margin-left: 10px;
            }
            &:hover{
                background-color: transparent;
                border-color: #a1ecea;
            }
        }
    }
    &-icon{
        display: inline-block;
        margin-bottom: 25px;
        & > span{
            height: 100px;
            width: 100px;
            text-align: center;
            line-height: 95px;
            border-radius: 50%;
            display: inline-block;
            color: var(--tp-common-blue);
            border: 2px solid var(--tp-common-blue);
            transition: .3s;
            position: relative;
            &::after{
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                opacity: 0;
                content: '';
                visibility: hidden;
                border-radius: 50%;
                transition: .3s;
                transform: scale(1.2);
                border: 1px dashed var(--tp-common-blue);
            }
        }
    }
    &-title-sm{
        font-size: 18px;
        font-weight: 600;
        line-height: 1.33;
        margin-bottom: 0;
        text-align: center;
        letter-spacing: -0.02em;
        color: var(--tp-common-black-3);
    }
    &-item{
        display: inline-block;
        &.active{
            & .tp-step-icon > span {
                color: var(--tp-common-white);
                border-color: var(--tp-common-blue);
                background-color: var(--tp-common-blue);
            }
            & .tp-step-icon > span::after {
                opacity: 1;
                visibility: visible;
            } 
        }
        &:hover{
            & .tp-step-icon > span {
                color: var(--tp-common-white);
                border-color: var(--tp-common-blue);
                background-color: var(--tp-common-blue);
            }
            & .tp-step-icon > span::after {
                opacity: 1;
                visibility: visible;
            }
        }
    }
    &-number{
        position: absolute;
        top: 3px;
        right: 1px;
        z-index: 3;
        height: 30px;
        width: 30px;
        line-height: 29px;
        border-radius: 50%;
        font-style: normal;
        display: inline-block;
        color: var(--tp-common-white);
        background-color: var(--tp-common-blue);
        &::after{
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            content: '';
            border-radius: 50%;
            border: 4px solid var(--tp-common-white);
            transform: scale(1.2);
        }
    }
    &-shape{
        &-1{
            position: absolute;
            top: 26%;
            left: 0;
            & img{
                animation: anim-top-bottom 1s linear infinite alternate;
            }
        }
        &-2{
            position: absolute;
            top: 42%;
            right: 0;
            animation: anim-left-right 4s linear infinite alternate;
        }
    }
    &-arrow{
        &-shape{
            &-1{
                position: absolute;
                top: 21%;
                right: 0;
            }
            &-2{
                position: absolute;
                top: 21%;
                left: 0;
            }
        }
    }
    &-2{
        &-area{
            & .row{
                [class*="col-"]{
                    &:not(:first-child){
                        & .tp-step-2-item{
                            padding-left: 45px;
                            @media #{$lg}{
                                padding-left: 20px;
                            }
                            @media #{$md,$xs}{
                                padding-left: 0;
                            }
                        }
                    }
                }
            }
        }
        &-wrap{
            padding: 33px 50px;
            border-radius: 14px;
            border: 2px solid rgba(20, 24, 32, 0.06);
            @media #{$lg}{
                padding: 30px 30px;
            }
            @media #{$md}{
                padding-bottom: 20px;
            }
            @media #{$md}{
                padding: 33px 25px;
                padding-bottom: 20px;
            }
            @media #{$xs}{
                padding: 30px 30px;
                padding-bottom: 20px;
            }
        }
        &-item{
            @media #{$md,$xs}{
                margin-bottom: 10px;
            }
            &:hover{
                & .tp-step-2-content{
                    & span{
                        color: var(--tp-common-white);
                        background-color: var(--tp-common-purple);
                    }
                }
            }
        }
        &-content{
            & span{
                height: 50px;
                width: 50px;
                font-weight: 600;
                font-size: 20px;
                text-align: center;
                line-height: 50px;
                transition: .3s;
                text-align: center;
                display: inline-block;
                border-radius: 50%;
                margin-right: 20px;
                letter-spacing: -0.02em;
                color: var(--tp-common-black);
                background-color: rgba(20, 24, 32, 0.1);
            }
            & h4{
                font-weight: 600;
                font-size: 18px;
                margin-bottom: 0;
                letter-spacing: -0.02em;
                color: var(--tp-common-black);
            }
        }
        &-arrow{
            & span{
                color: var(--tp-common-black);
            }
        }
    }
}
