@use '../../utils' as *;

/*----------------------------------------*/
/*  4.1 faq css
/*----------------------------------------*/

.al-faq{
    &-wrapper{
        & .accordion-items{
            position: relative;
            padding: 0;
            &:not(:last-child){
                box-shadow: 0 1px 0 0 rgba(1, 17, 22, 0.14);
            }
        }
        & .accordion-header{
            position: relative;
            & .accordion-buttons{
                width: 100%;
                padding: 25px 0;
                font-weight: 700;
                font-size: 20px;
                line-height: 1.3;
                text-align: left;
                position: relative;
                padding-right: 30px;
                color: var(--tp-common-black-1);
                font-family: var(--tp-ff-inter);
                @media #{$lg}{
                    font-size: 18px;
                }
                &:not(.collapsed){
                    color: var(--tp-common-blue);
                    & .accordion-icon::before {
                        transform: translate(-50%, -50%) rotate(90deg);
                    }  
                    & .accordion-icon::after {
                        background-color: var(--tp-common-blue);
                    }  
                } 
                & .accordion-icon{
                    position: absolute;
                    top: 35px;
                    right: 10px;
                    &::before {
                        position: absolute;
                        content: "";
                        width: 2px;
                        height: 16px;
                        left: 50%;
                        top: 50%;
                        transition: 0.4s;
                        border-radius: 30px;
                        transform: translate(-50%, -50%);
                        background-color: var(--tp-common-black-3);
                    }
                    &::after {
                        position: absolute;
                        content: "";
                        width: 16px;
                        height: 2px;
                        left: 50%;
                        top: 50%;
                        border-radius: 30px;
                        transform: translate(-50%, -50%);
                        background-color: var(--tp-common-black-3);
                    }
                }
            }
        }
        & .accordion-body{
            padding: 0;
            padding-right: 110px;
            padding-bottom: 35px;
            @media #{$lg}{
                padding-right: 65px;
            }
            & p{
                font-weight: 500;
                font-size: 14px;
                line-height: 1.57;
                color: #4d5051;
                margin-bottom: 0;
                font-family: var(--tp-ff-inter);
                @media #{$lg,$md,$sm,$xs}{
                    & br{
                        display: none;
                    }
                }
            }
        }
    }
}

.al-faq{
    &-form{
        &-box{
            padding: 80px;
            margin-left: 75px;
            border-radius: 20px;
            background-color: #eff1f2;
            @media #{$xl}{
                margin-left: 30px;
            }
            @media #{$lg,$md}{
                padding: 40px;
                margin-left: 0px;
            }
            @media #{$sm,$xs}{
                padding: 20px;
                margin-left: 0px;
            }
        }
        &-wrap{
            padding: 40px 50px;
            border-radius: 10px;
            background-color: var(--tp-common-white);
            @media #{$sm,$xs}{
                padding: 30px 20px;
            }
        }
        &-content{
            & p{
                font-weight: 400;
                font-size: 17px;
                letter-spacing: -0.02em;
                margin-bottom: 0;
                color: var(--tp-common-black-1);
                font-family: var(--tp-ff-inter);
                @media #{$sm,$xs}{
                    font-size: 14px;
                }
            }
        }
        &-title{
            font-weight: 600;
            font-size: 26px;
            line-height: 1.23;
            letter-spacing: -0.02em;
            color: var(--tp-common-black-1);
            font-family: var(--tp-ff-inter);
            @media #{$md}{
                font-size: 23px;
            }
            @media #{$sm,$xs}{
                font-size: 20px;
            }
        }
    }
    &-input{
        & input{
            height: 46px;
            border-radius: 30px;
            color: var(--tp-common-black-1);
            border: 1px solid rgba(1, 17, 22, 0.16);
            font-family: var(--tp-ff-inter);
            @include placeholder{
                font-weight: 500;
                font-size: 14px;
                color: #848788;
                letter-spacing: -0.02em;
            }
            &:focus{
                border-color: var(--tp-common-blue);
                box-shadow: 0 0 0 3px rgba(39, 125, 255, 0.1);
            }
        }
    }
    &-remeber{
        & input{
            display: none;
            &:checked{
                & ~ label{
                    &::after{
                        background-color: var(--tp-common-blue);
                        border-color: var(--tp-common-blue);
                    }
                    &::before{
                        visibility: visible;
                        opacity: 1;
                    }
                }
            }
        }
        & label{
            position: relative;
            padding-left: 26px;
            font-weight: 400;
            font-size: 14px;
            line-height: 1;
            z-index: 1;
            color: #4d5051;
            letter-spacing: -0.02em;
            font-family: var(--tp-ff-inter);
            &::after{
                position: absolute;
                content: '';
                top: 0;
                left: 0;
                width: 16px;
                height: 16px;
                z-index: -1;
                transition: .3s;
                line-height: 16px;
                border-radius: 4px;
                text-align: center;
                border: 1px solid #a1a5a7;
            }
            &::before{
                position: absolute;
                content: url(../img/login/check.svg);
                top: -1px;
                left: 0;
                width: 16px;
                height: 16px;
                line-height: 16px;
                text-align: center;
                visibility: hidden;
                opacity: 0;
                color: var(--tp-common-black-1);
                transition: all .3s ease; 
            }
            &:hover{
                cursor: pointer;
            }
        }
    }
    &-title-box{
        @media #{$md,$sm,$xs}{
            margin-bottom: 40px;
        }
    }
    &-wrapper{
        @media #{$md,$sm,$xs}{
            margin-bottom: 40px;
        }
    }
}