/* =========================================================
   CFS GROUP
   FAQ SECTION
   File: css/cfs-faq.css
   ========================================================= */


/* =========================================================
   01. SECTION
   ========================================================= */

.cfs-faq-section {

    position: relative;

    width: 100%;

    padding: 105px 0;

    background: #f7f9fc;

    overflow: hidden;
}


.cfs-faq-section::before {

    content: "";

    position: absolute;

    width: 500px;

    height: 500px;

    top: -270px;

    left: -250px;

    border: 1px solid rgba(6,21,47,0.04);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   02. CONTAINER
   ========================================================= */

.cfs-faq-container {

    position: relative;

    z-index: 2;

    width:
        min(
            1400px,
            calc(100% - 50px)
        );

    margin: 0 auto;
}


/* =========================================================
   03. HEADING
   ========================================================= */

.cfs-faq-heading {

    max-width: 820px;

    margin:
        0 auto 58px;

    text-align: center;
}


.cfs-faq-label {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 15px;

    color: var(--cfs-gold-dark);

    font-size: 12px;

    line-height: 1.4;

    font-weight: 700;

    letter-spacing: 1.4px;
}


.cfs-faq-label i {

    font-size: 12px;
}


.cfs-faq-heading h2 {

    margin:
        0 0 18px;

    color:
        var(--cfs-navy);

    font-size:
        clamp(
            36px,
            3.6vw,
            48px
        );

    line-height:
        1.18;

    font-weight:
        700;

    letter-spacing:
        -0.8px;
}


.cfs-faq-heading h2 span {

    display: block;

    color:
        var(--cfs-gold-dark);
}


.cfs-faq-heading p {

    max-width: 750px;

    margin: 0 auto;

    color: #687386;

    font-size: 16px;

    line-height: 1.85;

    font-weight: 400;
}


/* =========================================================
   04. LAYOUT
   ========================================================= */

.cfs-faq-layout {

    display: grid;

    grid-template-columns:
        330px
        minmax(0, 1fr);

    gap: 45px;

    align-items: start;
}


/* =========================================================
   05. LEFT INTRO
   ========================================================= */

.cfs-faq-intro {

    position: relative;

    padding: 30px;

    background:
        linear-gradient(
            145deg,
            var(--cfs-navy),
            var(--cfs-navy-light)
        );

    border-radius: 8px;

    box-shadow:
        0 18px 40px
        rgba(6,21,47,0.13);

    overflow: hidden;
}


.cfs-faq-intro::after {

    content: "";

    position: absolute;

    width: 180px;

    height: 180px;

    right: -90px;

    bottom: -90px;

    border:
        1px solid
        rgba(245,160,0,0.14);

    border-radius: 50%;
}


.cfs-faq-intro-icon {

    width: 55px;

    height: 55px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 22px;

    border:
        1px solid
        rgba(245,160,0,0.30);

    border-radius: 6px;

    background:
        rgba(245,160,0,0.10);

    color:
        var(--cfs-gold-light);

    font-size: 20px;
}


.cfs-faq-intro h3 {

    position: relative;

    z-index: 1;

    margin:
        0 0 11px;

    color: #ffffff;

    font-size: 22px;

    line-height: 1.4;

    font-weight: 600;
}


.cfs-faq-intro > p {

    position: relative;

    z-index: 1;

    margin:
        0 0 24px;

    color:
        rgba(255,255,255,0.66);

    font-size: 13px;

    line-height: 1.75;
}


/* =========================================================
   06. CONTACT BUTTON
   ========================================================= */

.cfs-faq-contact-btn {

    position: relative;

    z-index: 2;

    width: 100%;

    min-height: 49px;

    padding: 0 17px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    border-radius: 4px;

    background:
        var(--cfs-gold);

    color:
        var(--cfs-navy);

    font-size: 14px;

    line-height: 1;

    font-weight: 700;

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}


.cfs-faq-contact-btn i {

    font-size: 10px;

    transition:
        transform 0.25s ease;
}


.cfs-faq-contact-btn:hover {

    transform:
        translateY(-2px);

    background:
        var(--cfs-gold-light);
}


.cfs-faq-contact-btn:hover i {

    transform:
        translateX(4px);
}


/* =========================================================
   07. PHONE
   ========================================================= */

.cfs-faq-phone {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: 17px;

    color: #ffffff;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 600;
}


.cfs-faq-phone i {

    color:
        var(--cfs-gold-light);

    font-size: 12px;
}


.cfs-faq-phone:hover {

    color:
        var(--cfs-gold-light);
}


/* =========================================================
   08. FAQ LIST
   ========================================================= */

.cfs-faq-list {

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;
}


/* =========================================================
   09. FAQ ITEM
   ========================================================= */

.cfs-faq-item {

    background:
        #ffffff;

    border:
        1px solid
        #e2e7ed;

    border-radius:
        6px;

    overflow:
        hidden;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


.cfs-faq-item.cfs-faq-active {

    border-color:
        rgba(245,160,0,0.38);

    box-shadow:
        0 8px 25px
        rgba(6,21,47,0.055);
}


/* =========================================================
   10. QUESTION
   ========================================================= */

.cfs-faq-question {

    width:
        100%;

    min-height:
        66px;

    padding:
        17px 20px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    border:
        0;

    background:
        transparent;

    color:
        var(--cfs-navy);

    font-family:
        inherit;

    font-size:
        15px;

    line-height:
        1.5;

    font-weight:
        600;

    text-align:
        left;

    cursor:
        pointer;
}


.cfs-faq-question i {

    width:
        29px;

    height:
        29px;

    flex:
        0 0 29px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        #f2f5f8;

    color:
        var(--cfs-navy);

    font-size:
        10px;

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}


.cfs-faq-active
.cfs-faq-question i {

    transform:
        rotate(45deg);

    background:
        var(--cfs-gold);

    color:
        var(--cfs-navy);
}


/* =========================================================
   11. ANSWER
   ========================================================= */

.cfs-faq-answer {

    display:
        grid;

    grid-template-rows:
        0fr;

    transition:
        grid-template-rows 0.3s ease;
}


.cfs-faq-answer p {

    min-height:
        0;

    overflow:
        hidden;

    margin:
        0;

    padding:
        0 20px;

    color:
        #6c7889;

    font-size:
        14px;

    line-height:
        1.8;

    font-weight:
        400;

    opacity:
        0;

    transition:
        opacity 0.25s ease,
        padding 0.3s ease;
}


.cfs-faq-active
.cfs-faq-answer {

    grid-template-rows:
        1fr;
}


.cfs-faq-active
.cfs-faq-answer p {

    padding:
        0 20px 20px;

    opacity:
        1;
}


/* =========================================================
   12. LARGE LAPTOP
   ========================================================= */

@media (max-width: 1250px) {

    .cfs-faq-container {

        width:
            calc(100% - 40px);
    }

    .cfs-faq-layout {

        gap:
            35px;
    }

}


/* =========================================================
   13. TABLET
   ========================================================= */

@media (max-width: 850px) {

    .cfs-faq-section {

        padding:
            80px 0;
    }

    .cfs-faq-layout {

        grid-template-columns:
            1fr;

        gap:
            30px;
    }

    .cfs-faq-intro {

        max-width:
            650px;

        width:
            100%;

        margin:
            0 auto;
    }

}


/* =========================================================
   14. MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .cfs-faq-section {

        padding:
            65px 0;
    }

    .cfs-faq-container {

        width:
            calc(100% - 28px);
    }

    .cfs-faq-heading {

        margin-bottom:
            35px;
    }

    .cfs-faq-label {

        font-size:
            10px;

        letter-spacing:
            1.1px;
    }

    .cfs-faq-heading h2 {

        margin-bottom:
            15px;

        font-size:
            31px;

        line-height:
            1.22;
    }

    .cfs-faq-heading p {

        font-size:
            14px;

        line-height:
            1.8;
    }

    .cfs-faq-layout {

        gap:
            18px;
    }

    .cfs-faq-intro {

        padding:
            23px;
    }

    .cfs-faq-intro-icon {

        width:
            48px;

        height:
            48px;

        margin-bottom:
            18px;

        font-size:
            17px;
    }

    .cfs-faq-intro h3 {

        font-size:
            20px;
    }

    .cfs-faq-intro > p {

        font-size:
            13px;

        line-height:
            1.7;
    }

    .cfs-faq-contact-btn {

        min-height:
            50px;

        font-size:
            14px;
    }

    .cfs-faq-phone {

        font-size:
            14px;
    }

    .cfs-faq-question {

        min-height:
            64px;

        padding:
            15px;

        font-size:
            14px;

        line-height:
            1.5;
    }

    .cfs-faq-question i {

        width:
            27px;

        height:
            27px;

        flex-basis:
            27px;
    }

    .cfs-faq-answer p {

        padding:
            0 15px;

        font-size:
            13px;

        line-height:
            1.75;
    }

    .cfs-faq-active
    .cfs-faq-answer p {

        padding:
            0 15px 17px;
    }

}


/* =========================================================
   15. SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .cfs-faq-container {

        width:
            calc(100% - 22px);
    }

    .cfs-faq-section {

        padding:
            55px 0;
    }

    .cfs-faq-heading h2 {

        font-size:
            29px;
    }

    .cfs-faq-heading p {

        font-size:
            13.5px;
    }

    .cfs-faq-intro {

        padding:
            20px;
    }

    .cfs-faq-intro h3 {

        font-size:
            19px;
    }

    .cfs-faq-question {

        padding:
            14px;

        font-size:
            13px;
    }

}


/* =========================================================
   16. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 340px) {

    .cfs-faq-heading h2 {

        font-size:
            27px;
    }

    .cfs-faq-heading p {

        font-size:
            13px;
    }

    .cfs-faq-question {

        font-size:
            12.5px;
    }

    .cfs-faq-answer p {

        font-size:
            12.5px;
    }

}


/* =========================================================
   17. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cfs-faq-contact-btn,
    .cfs-faq-question i,
    .cfs-faq-answer,
    .cfs-faq-answer p {

        transition:
            none !important;
    }

}