/* Tabs header */
.collab-faq-with-tabs .ce-tabs-header {
    background: url('../img/faq-background.webp') no-repeat top center/cover;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    padding: 64px 0 96px 0;
}

.collab-faq-with-tabs .ce-tabs-wrapper {
    max-width: 900px;
    margin: auto;
    font-family: Inter, sans-serif;
}

.collab-faq-with-tabs .faq-heading {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.025em;
}

.collab-faq-with-tabs .ce-tabs-content {
    padding-top: 96px;
}

/* Tabs wrapper takes remaining space */
.collab-faq-with-tabs .tabs-wrapper {
    display: flex;
    gap: 4px;
    flex: 1;
    flex-wrap: wrap;
}

.collab-faq-with-tabs .ce-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.collab-faq-with-tabs .ce-tab.active {
    background: #111827;
    color: #fff !important;
}

/* Tab content */
.collab-faq-with-tabs .ce-tab-content {
    display: none;
}

.collab-faq-with-tabs .ce-tab-content.active {
    display: block;
}

/* Answers */
.collab-faq-with-tabs .faq-answer {
    display: none;
    padding-top: 16px;
}

/* Icons */
.collab-faq-with-tabs .faq-arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.collab-faq-with-tabs .faq-item.open .faq-arrow {
    transform: rotate(-135deg);
}

/* Question row */
.collab-faq-with-tabs .faq-item.open {
    background-color: #fff;
}

/* Show answer if item has open class */

.collab-faq-with-tabs .faq-item.open .faq-question {
    padding-bottom: 0;
}

.collab-faq-with-tabs .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.collab-faq-with-tabs .faq-question span.faq-que {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.collab-faq-with-tabs .ce-tabs-search {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    margin-left: auto;
    flex-shrink: 0;
}

.collab-faq-with-tabs .ce-tabs-search .icon {
    position: absolute;
    left: 10px;
    top: auto;
    bottom: auto;
    color: #fff;
    pointer-events: none;
    font-size: 25px;
}

.collab-faq-with-tabs .ce-tabs-search input[type="text"]:focus,
.collab-faq-with-tabs .ce-tabs-search input[type="text"]:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #E5E7EB;
}

.collab-faq-with-tabs .ce-tabs-search input {
    width: 250px;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.01em;
    padding-left: 34px;
    border: 1px solid #E5E7EB;
    border-radius: 100px;
    color: #6B7280;
}

.collab-faq-with-tabs .ce-search-results {
    margin-top: 96px;
}

.collab-faq-with-tabs .search-tab-group {
    margin-bottom: 64px;
}

.collab-faq-with-tabs .search-tab-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: -0.025em;
}

.collab-faq-with-tabs .search-faq-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.collab-faq-with-tabs .search-faq-item h4 {
    margin: 0 0 6px;
}

.collab-faq-with-tabs .no-results {
    text-align: center;
}

.collab-faq-with-tabs .collabcrm-faq-accordion {
    margin-top: 16px;
}

.collab-faq-with-tabs .tabs-wrapper.disabled-faq-tabs {
    opacity: 0.4;
    pointer-events: none;
}

@media screen and (max-width: 1366px) {

    .collab-faq-with-tabs .ce-tabs-content {
        padding-top: 64px;
    }

    .collab-faq-with-tabs .ce-search-results {
        margin-top: 64px;
    }

    .collab-faq-with-tabs .ce-tabs-header {
        padding-bottom: 64px;
    }
}

@media screen and (max-width: 1024px) {

    .collab-faq-with-tabs .ce-tab.active,
    .collab-faq-with-tabs .ce-tab {
        padding: 4px 16px;
    }

    .collab-faq-with-tabs .ce-tabs-search input {
        padding: 10px 10px 10px 42px;
    }

    .faq-tab-section {
        background-size: cover;
    }

    .collab-faq-with-tabs .ce-tabs-header {
        flex-direction: column-reverse;
        gap: 24px;
        align-items: unset;
        padding: 0;
        background: unset;
    }

    .collab-faq-with-tabs .ce-tabs-search {
        margin-left: 0;

    }

    .collab-faq-with-tabs .ce-tabs-search input {
        width: 100%;
    }

    .collab-faq-with-tabs .ce-tabs-content {
        padding-top: 32px;
    }

    .collab-faq-with-tabs .ce-search-results {
        margin: 32px 0;
    }

    .collab-faq-with-tabs .search-tab-group {
        margin-bottom: 24px;
    }
}

@media screen and (max-width: 767px) {
    .collab-faq-with-tabs .ce-tabs-header {
        gap: 16px;
    }

    .collab-faq-with-tabs .ce-tabs-content {
        padding-top: 24px;
    }

    .collab-faq-with-tabs .ce-search-results {
        margin: 24px 0;
    }
}