/* ================================
   FAQ PAGE
================================ */

.vc-faq-page {
    background: var(--vc-bg);
}

.vc-faq-hero {
    padding: 35px 0 30px;
    border-bottom: 1px solid var(--vc-border);
}

.vc-faq-hero .vc-container {
    max-width: 920px;
}

.vc-faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--vc-primary);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.vc-faq-hero h1 {
    margin: 0;
    color: var(--vc-text);
    font-size: 40px;
    line-height: 1.02;
    font-weight: 800;
}

.vc-faq-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--vc-text-soft);
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.vc-faq-search {
    margin-top: 28px;
    position: relative;
    max-width: 620px;
}

.vc-faq-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--vc-primary);
}

.vc-faq-search input {
    width: 100%;
    height: 54px;
    padding: 0 18px 0 48px;
    border-radius: 999px;
    border: 1px solid var(--vc-border);
    background: var(--vc-surface);
    color: var(--vc-text);
    outline: none;
    font-size: 14px;
    box-shadow: var(--vc-shadow-soft, 0 12px 34px rgba(15, 23, 42, 0.06));
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.vc-faq-search input:focus {
    border-color: color-mix(in srgb, var(--vc-primary) 48%, var(--vc-border));
    box-shadow: 0 0 0 4px var(--vc-primary-soft);
}

/* ================================
   SECTION
================================ */

.vc-faq-section {
    padding: 42px 0 0;
}

.vc-faq-layout {
    display: grid;
    grid-template-columns: 292px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

/* ================================
   SIDEBAR
================================ */

.vc-faq-sidebar {
    position: sticky;
    top: 96px;
    padding: 20px;
    border-radius: 24px;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    box-shadow: var(--vc-shadow-soft, 0 14px 36px rgba(15, 23, 42, 0.06));
}

.vc-faq-sidebar h2 {
    margin: 0 0 16px;
    color: var(--vc-text);
    font-size: 18px;
    font-weight: 700;
}

.vc-faq-sidebar ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.vc-faq-sidebar button,
.vc-cat-btn {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--vc-text-soft);
    cursor: pointer;
    font: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vc-faq-sidebar button > span,
.vc-cat-btn > span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vc-faq-sidebar button i,
.vc-cat-btn i {
    color: var(--vc-primary);
    font-size: 14px;
    flex: 0 0 auto;
}

.vc-faq-sidebar button b,
.vc-cat-btn b,
.vc-faq-sidebar button span:last-child {
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--vc-primary-soft);
    color: var(--vc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
}

.vc-faq-sidebar button:hover,
.vc-faq-sidebar button.active,
.vc-cat-btn:hover,
.vc-cat-btn.active {
    color: var(--vc-primary);
    background: var(--vc-primary-soft);
}

.vc-faq-sidebar button:hover,
.vc-cat-btn:hover {
    transform: translateX(2px);
}

/* ================================
   MOBILE TABS
================================ */

.vc-faq-tabs {
    display: none;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 12px;
    margin-bottom: 22px;
    scrollbar-width: thin;
}

.vc-faq-tabs button {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    color: var(--vc-text-soft);
    cursor: pointer;
    font-size: 13px;
    font-weight: 850;
}

.vc-faq-tabs button.active {
    color: var(--vc-primary);
    background: var(--vc-primary-soft);
    border-color: color-mix(in srgb, var(--vc-primary) 35%, var(--vc-border));
}

/* ================================
   CONTENT
================================ */

.vc-faq-content {
    min-width: 0;
}

.vc-faq-group {
    display: none;
    margin-bottom: 36px;
    animation: vcFaqFade 0.24s ease;
}

.vc-faq-group.active {
    display: block;
}

@keyframes vcFaqFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vc-faq-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding: 20px 22px;
    border-radius: 22px;
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    box-shadow: var(--vc-shadow-soft, 0 12px 32px rgba(15, 23, 42, 0.05));
}

.vc-faq-group-title > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vc-faq-group-title span {
    width: 35px;
    height: 35px;
    border-radius: 14px;
    background: var(--vc-primary-soft);
    color: var(--vc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vc-faq-group-title i {
    color: var(--vc-primary);
}

.vc-faq-group-title h2 {
    margin: 0;
    color: var(--vc-text);
    font-size: 21px;
    font-weight: 600;
}

.vc-faq-group-title p {
    margin: 0;
    color: var(--vc-text-muted);
    font-size: 13px;
    font-weight: 600;
}

/* ================================
   FAQ ITEM
================================ */

.vc-faq-item {
    background: var(--vc-surface);
    border: 1px solid var(--vc-border);
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--vc-shadow-soft, 0 10px 28px rgba(15, 23, 42, 0.045));
}

.vc-faq-item[hidden] {
    display: none !important;
}

.vc-faq-question {
    width: 100%;
    min-height: 64px;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    color: var(--vc-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
}

.vc-faq-question span {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.vc-faq-question span i {
    margin-top: 4px;
    color: var(--vc-primary);
    font-size: 14px;
    flex: 0 0 auto;
}

.vc-faq-chevron {
    color: var(--vc-text-muted);
    transition: transform 0.22s ease, color 0.22s ease;
}

.vc-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.26s ease;
}

.vc-faq-answer p {
    margin: 0;
    padding: 0 20px 20px 52px;
    color: var(--vc-text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.vc-faq-item.active {
    border-color: color-mix(in srgb, var(--vc-primary) 32%, var(--vc-border));
}

.vc-faq-item.active .vc-faq-answer {
    max-height: 300px;
}

.vc-faq-item.active .vc-faq-chevron {
    transform: rotate(180deg);
    color: var(--vc-primary);
}

/* ================================
   EMPTY
================================ */

.vc-faq-empty {
    display: none;
    padding: 46px 24px;
    text-align: center;
    border: 1px solid var(--vc-border);
    border-radius: 22px;
    background: var(--vc-surface);
    box-shadow: var(--vc-shadow-soft, 0 12px 32px rgba(15, 23, 42, 0.05));
}

.vc-faq-empty.active {
    display: block;
}

.vc-faq-empty i {
    color: var(--vc-primary);
    font-size: 30px;
}

.vc-faq-empty h2 {
    margin: 16px 0 8px;
    color: var(--vc-text);
    font-size: 24px;
    font-weight: 950;
}

.vc-faq-empty p {
    margin: 0;
    color: var(--vc-text-soft);
    font-size: 15px;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 980px) {
    .vc-faq-tabs {
        display: flex;
    }

    .vc-faq-layout {
        grid-template-columns: 1fr;
    }

    .vc-faq-sidebar {
        display: none;
    }
}

@media (max-width: 720px) {

    .vc-faq-hero {
        padding: 56px 0 32px;
    }

    .vc-faq-search input {
        height: 50px;
        font-size: 14px;
    }

    .vc-faq-section {
        padding-top: 30px;
    }

    .vc-faq-group-title {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 18px;
        padding: 18px;
    }
    .vc-faq-item {
        border-radius: 16px;
    }

    .vc-faq-question {
        min-height: 60px;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-faq-search input,
    .vc-faq-sidebar button,
    .vc-cat-btn,
    .vc-faq-chevron,
    .vc-faq-answer,
    .vc-faq-group {
        transition: none;
        animation: none;
    }
}