.cm-faq-section {
    width: 100%;
    padding: 110px 0 120px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(22,119,237,.055),
            transparent 30%
        ),
        #f7faff;

    font-family: "DM Sans", sans-serif;
}


.cm-faq-container {
    width: 100%;
    box-sizing: border-box;
    max-width: 1528px;

    margin: 0 auto;
    padding: 0 24px;
}



/*  HEADER */

.cm-faq-header {
    text-align: center;

    max-width: 800px;

    margin: 0 auto 55px;
}


.cm-faq-eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 8px;

    padding: 7px 15px;

    border-radius: 999px;

    background: #e9f3ff;

    color: #1677ed;

    font-size: 15px;
    font-weight: 800;

    letter-spacing: .4px;
}


.cm-faq-header h2 {
    margin: 18px 0 15px;

    color: #0c1b36;

    font-size: clamp(38px, 5vw, 52px);

    line-height: 1.08;

    letter-spacing: -2px;

    font-weight: 750;
}


.cm-faq-header h2 span {
    display: block;

    color: #1677ed;
}


.cm-faq-header p {
    max-width: 620px;

    margin: 0 auto;

    color: #64748b;

    font-size: 16px;

    line-height: 1.7;
}



/*  MAIN LAYOUT*/

.cm-faq-layout {

    display: grid;

    grid-template-columns:
        330px
        minmax(0, 1fr);

    gap: 28px;

    align-items: start;
}



/* LEFT SIDEBAR */

.cm-faq-sidebar {
    display: flex;

    flex-direction: column;

    gap: 10px;
}



/* CATEGORY BUTTON */

.cm-faq-category {

    position: relative;

    width: 100%;

    display: grid;

    grid-template-columns: 45px 1fr 20px;

    align-items: center;

    gap: 13px;

    min-height: 88px;

    padding: 15px 17px;

    border: 1px solid #e1e9f3;

    border-radius: 13px;

    background: #ffffff;

    font-family: inherit;

    text-align: left;

    cursor: pointer;

    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


.cm-faq-category:hover {

    border-color: #bcd9fa;

    transform: translateY(-1px);

    box-shadow:
        0 8px 25px rgba(24,76,132,.06);
}


.cm-faq-category.active {

    border-color: #1677ed;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(22,119,237,.08);
}



/* CATEGORY ICON */

.cm-faq-category-icon {

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    font-size: 17px;
}


.cm-faq-category-icon.blue {

    color: #1677ed;

    background: #eaf4ff;
}


.cm-faq-category-icon.orange {

    color: #f59e0b;

    background: #fff5df;
}


.cm-faq-category-icon.purple {

    color: #7655e8;

    background: #f1edff;
}


.cm-faq-category-icon.green {

    color: #13b981;

    background: #e6f8f1;
}



/* CATEGORY TEXT */

.cm-faq-category-text {

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.cm-faq-category-text strong {

    color: #14233e;

    font-size: 15px;

    font-weight: 700;
}


.cm-faq-category-text small {

    color: #71809a;

    font-size: 12px;

    line-height: 1.45;
}


.category-arrow {

    color: #9aa8bb;

    font-size: 15px;

    transition:
        color .2s ease,
        transform .2s ease;
}


.cm-faq-category.active .category-arrow {

    color: #1677ed;

    transform: translateX(3px);
}



/* SUPPORT BOX */

.cm-faq-help {

    margin-top: 12px;

    padding: 20px;

    border-radius: 14px;

    background: #0d1b36;

    color: white;
}


.cm-faq-help-icon {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 10px;

    background: rgba(255,255,255,.1);

    color: #5ba4ff;

    font-size: 17px;
}


.cm-faq-help strong {

    display: block;

    margin-bottom: 5px;

    font-size: 14px;
}


.cm-faq-help p {

    margin: 0 0 16px;

    color: #aebbd0;

    font-size: 11px;

    line-height: 1.5;
}


.cm-faq-help a {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;
}


.cm-faq-help a i {

    transition: transform .2s ease;
}


.cm-faq-help a:hover i {

    transform: translateX(4px);
}



/* FAQ PANEL */

.cm-faq-panel {

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e0e8f2;

    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(20,67,120,.055);
}



/* PANEL HEADER */

.cm-faq-panel-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 30px 34px 25px;

    border-bottom: 1px solid #e8edf4;
}


.cm-faq-panel-label {

    color: #1677ed;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .7px;
}


.cm-faq-panel-header h3 {

    margin: 7px 0 4px;

    color: #14233e;

    font-size: 22px;

    font-weight: 750;
}


.cm-faq-panel-header p {

    margin: 0;

    color: #7a879b;

    font-size: 12px;
}


.cm-faq-count {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--brand-soft);

    color: #1677ed;

    font-size: 12px;

    font-weight: 800;
}



/* QUESTIONS */

.cm-faq-questions {

    padding: 5px 34px 12px;
}


.cm-faq-item {

    position: relative;

    border-bottom: 1px solid #e8edf3;
}


.cm-faq-item:last-child {

    border-bottom: none;
}



/* QUESTION */

.cm-faq-question {

    width: 100%;

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 0;

    border: none;

    background: transparent;

    color: #17243b;

    font-family: inherit;

    font-size: 13px;

    font-weight: 650;

    text-align: left;

    cursor: pointer;
}


.cm-faq-question > span:first-child {

    transition: color .2s ease;
}


.cm-faq-question:hover > span:first-child {

    color: #1677ed;
}



/* PLUS */

.cm-faq-plus {

    width: 26px;
    height: 26px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #cbd7e5;

    border-radius: 50%;

    color: #14233e;

    font-size: 9px;

    transition:
        background .3s ease,
        border-color .3s ease,
        color .3s ease,
        transform .3s ease;
}


.cm-faq-item.active
.cm-faq-plus {

    background: #1677ed;

    border-color: #1677ed;

    color: #ffffff;

    transform: rotate(45deg);
}


.cm-faq-item.active
.cm-faq-question > span:first-child {

    color: #1677ed;
}



/*  ANSWER*/

.cm-faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;

    opacity: 0;

    transition:
        max-height 0.3s ease,
        opacity 0.2s ease,
        padding 0.3s ease;
}

.cm-faq-item.active .cm-faq-answer {
    max-height: 100vh;
    padding: 0 0 20px;

    opacity: 1;
}



.cm-faq-answer p {

    min-height: 0;

    overflow: hidden;

    margin: 0;

    padding: 0 0 0 0;

    color: #687890;

    font-size: 14px;

    line-height: 1.7;

    opacity: 0;

    transition:
        opacity .25s ease,
        padding .35s ease;
}


.cm-faq-item.active
.cm-faq-answer {

    grid-template-rows: 1fr;
}


.cm-faq-item.active
.cm-faq-answer p {

    padding-bottom: 20px;

    opacity: 1;
}



/* ACTIVE BLUE LINE */

.cm-faq-item.active::before {

    content: "";

    position: absolute;

    left: -34px;

    top: 13px;

    width: 3px;

    height: 42px;

    border-radius: 4px;

    background: #1677ed;
}




/*  RESPONSIVE */

@media (max-width: 950px) {

    .cm-faq-layout {

        grid-template-columns: 1fr;

    }


    .cm-faq-sidebar {

        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

    }


    .cm-faq-help {

        grid-column: 1 / -1;
    }

}


@media (max-width: 600px) {

    .cm-faq-section {

        padding: 80px 0;
    }


    .cm-faq-container {

        padding: 0 16px;
    }


    .cm-faq-header {

        margin-bottom: 35px;
    }


    .cm-faq-header h2 {

        font-size: 34px;

        letter-spacing: -1.2px;
    }


    .cm-faq-header p {

        font-size: 14px;
    }


    .cm-faq-sidebar {

        display: flex;

        overflow-x: auto;

        flex-direction: row;

        padding-bottom: 5px;
    }


    .cm-faq-category {

        flex: 0 0 240px;

        min-height: 78px;
    }


    .cm-faq-help {

        display: none;
    }


    .cm-faq-panel-header {

        padding: 24px 20px 20px;
    }


    .cm-faq-questions {

        padding: 5px 20px 10px;
    }


    .cm-faq-panel-header h3 {

        font-size: 19px;
    }


    .cm-faq-question {

        min-height: 65px;

        font-size: 12px;
    }


    .cm-faq-item.active::before {

        left: -20px;
    }

}

