/* SECTION */

.faq-section{
    max-width:900px;
    margin:auto;
    padding: 40px;
}

/* TITLE */

.faq-title{
    text-align:center;
    margin-bottom:70px;
}

.faq-title h1{
    color:white;
    font-size:4rem;
    margin-bottom:20px;

    animation:fadeDown 1s ease;
}

.faq-title p{
    color:#d9e2ff;
    font-size:1.1rem;
    line-height:1.8;

    animation:fadeUp 1s ease;
}

/* FAQ CONTAINER */

.faq-container{
    display:flex;
    flex-direction:column;
    gap:25px;
}

/* FAQ CARD */

.faq{
    position:relative;

    background:rgba(255,255,255,0.08);

    border:1px solid rgba(255,255,255,0.08);

    backdrop-filter:blur(15px);

    border-radius:24px;

    overflow:hidden;

    transition:0.4s ease;

    animation:cardAppear 1s ease;
}

.faq:hover{
    transform:translateY(-5px);

    border:1px solid rgba(0,212,255,0.35);

    box-shadow:
    0 15px 35px rgba(0,0,0,0.25);
}

/* HIDDEN CHECKBOX */

.faq input{
    display:none;
}

/* QUESTION */

.faq-label{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:28px 35px;

    cursor:pointer;
}

.faq-label h3{
    color:white;
    font-size:1.25rem;
    width:90%;
}

/* PLUS ICON */

.plus{
    position:relative;

    width:32px;
    height:32px;

    flex-shrink:0;
}

.plus::before,
.plus::after{
    content:"";
    position:absolute;

    background:#00d4ff;

    border-radius:10px;

    transition:0.4s ease;
}

.plus::before{
    width:100%;
    height:4px;
    top:50%;
    left:0;
    transform:translateY(-50%);
}

.plus::after{
    width:4px;
    height:100%;
    top:0;
    left:50%;
    transform:translateX(-50%);
}

/* ANSWER */

.answer{
    max-height:0;
    overflow:hidden;

    transition:
    max-height 0.6s ease,
    padding 0.4s ease;
}

.answer p{
    color:#d7dfff;

    line-height:1.9;

    padding:0 35px 0 35px;
}

/* ACTIVE */

.faq input:checked ~ .answer{
    max-height:300px;
    padding-bottom:30px;
}

.faq input:checked + .faq-label .plus::after{
    transform:
    translateX(-50%)
    rotate(90deg);

    opacity:0;
}

/* GLOW LINE */

.faq::before{
    content:"";

    position:absolute;
    top:0;
    left:-100%;

    width:100%;
    height:4px;

    background:linear-gradient(
        90deg,
        #00d4ff,
        #7b61ff
    );

    transition:0.6s ease;
}

.faq:hover::before{
    left:0;
}

/* CONTACT BOX */

.contact-box{
    margin-top:60px;

    background:linear-gradient(
        135deg,
        #00d4ff,
        #6c63ff
    );

    border-radius:28px;

    padding:45px;
    text-align:center;

    animation:fadeUp 1.2s ease;
}

.contact-box h2{
    color:white;
    font-size:2rem;
    margin-bottom:18px;
}

.contact-box p{
    color:white;
    line-height:1.8;
    margin-bottom:30px;
}

.contact-btn{
    display:inline-block;

    padding:15px 35px;

    background:white;
    color:#090979;

    text-decoration:none;
    font-weight:700;

    border-radius:50px;

    transition:0.4s ease;
}

.contact-btn:hover{
    transform:translateY(-5px);
}

/* ANIMATIONS */

@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(40px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes cardAppear{
    from{
        opacity:0;
        transform:translateY(50px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* RESPONSIVE */

@media(max-width:768px){

    body{
        padding:80px 6%;
    }

    .faq-title h1{
        font-size:2.8rem;
    }

    .faq-label{
        padding:24px;
    }

    .faq-label h3{
        font-size:1.05rem;
    }

    .answer p{
        padding:0 24px;
    }

    .contact-box{
        padding:35px 25px;
    }

}
