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

.faq-page {
    color: var(--text-primary);
}


/* =========================================================
   INTRO
========================================================= */

.faq-intro {
    padding: 5px 0 24px;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;
    margin-bottom: 15px;

    border-radius: 50px;

    background: var(--bg-soft);
    border: 1px solid var(--border-color);

    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.faq-badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--accent);
}

.faq-title {
    max-width: 650px;

    margin: 0 0 14px;

    color: var(--text-primary);

    font-size: 38px;
    line-height: 1.12;
    font-weight: 800;

    letter-spacing: -.03em;
}

.faq-intro p {
    max-width: 670px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 15px;
    line-height: 1.75;
}

.faq-intro strong {
    color: var(--text-primary);
}


/* =========================================================
   SEARCH
========================================================= */

.faq-search {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    height: 52px;

    margin-bottom: 22px;

    background: var(--bg-soft);

    border: 1px solid var(--border-color);
    border-radius: 12px;

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

.faq-search:focus-within {
    background: var(--bg-surface);

    border-color: var(--border-color-focus);

    box-shadow:
        0 0 0 3px
        rgba(135,93,178,.12);
}

.faq-search-icon {
    width: 46px;
    height: 100%;

    flex: 0 0 46px;

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

    color: var(--text-secondary);
}

.faq-search-icon svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.faq-search input {
    width: 100%;
    min-width: 0;
    height: 100%;

    padding: 0 42px 0 0;

    background: transparent;
    color: var(--text-primary);

    border: 0;
    outline: 0;

    font-family: inherit;
    font-size: 14px;
}

.faq-search input::placeholder {
    color: var(--text-secondary);
    opacity: .75;
}

.faq-search-clear {
    position: absolute;

    top: 50%;
    right: 10px;

    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    padding: 0;

    background: transparent;
    color: var(--text-secondary);

    border: 0;
    border-radius: 50%;

    font-size: 21px;

    cursor: pointer;
}


/* =========================================================
   CATEGORY TABS
========================================================= */

.faq-tabs-wrap {
    margin-bottom: 31px;
}

.faq-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;
}

.faq-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;

    padding: 8px 15px;

    background: var(--bg-soft);
    color: var(--text-secondary);

    border: 1px solid var(--border-color);
    border-radius: 50px;

    outline: 0;

    font-family: inherit;
    font-size: 11px;
    font-weight: 800;

    white-space: nowrap;

    cursor: pointer;

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

.faq-tab:hover {
    color: var(--text-primary);

    transform: translateY(-1px);
}

.faq-tab.active {
    background: var(--accent);
    border-color: var(--accent);

    color: #fff;
}


/* =========================================================
   GROUPS
========================================================= */

.faq-group {
    margin-bottom: 34px;
}

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

.faq-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 12px;
}

.faq-group-head h2 {
    margin: 0 0 5px;

    color: var(--text-primary);

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

    letter-spacing: -.02em;
}

.faq-group-head p {
    max-width: 570px;

    margin: 0;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.6;
}

.faq-count {
    flex: 0 0 auto;

    color: var(--text-secondary);

    font-size: 10px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   FAQ ITEMS
========================================================= */

.faq-list {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.faq-item {
    width: 100%;

    overflow: hidden;

    background: var(--bg-surface);

    border: 1px solid var(--border-color);
    border-radius: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.faq-item:hover,
.faq-item.open {
    border-color: var(--border-color-focus);
}

.faq-item.open {
    box-shadow:
        0 8px 24px
        rgba(0,0,0,.035);
}

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

.faq-question {
    width: 100%;
    min-height: 62px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding: 17px 18px;

    background: transparent;
    color: var(--text-primary);

    border: 0;
    outline: 0;

    text-align: left;

    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
    font-weight: 800;

    cursor: pointer;
}

.faq-question-text {
    min-width: 0;
}

.faq-toggle {
    position: relative;

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    border-radius: 9px;

    background: var(--bg-soft);
}

.faq-toggle span {
    position: absolute;

    top: 13px;
    left: 8px;

    width: 12px;
    height: 2px;

    background: var(--text-secondary);

    border-radius: 5px;

    transition: transform .25s ease;
}

.faq-toggle span:last-child {
    transform: rotate(90deg);
}

.faq-item.open .faq-toggle span:last-child {
    transform: rotate(0);
}


/* =========================================================
   ANSWER
========================================================= */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows .28s ease;
}

.faq-item.open .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-answer-content {
    padding: 0 64px 0 18px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.75;

    transition: padding-bottom .28s ease;
}

.faq-item.open .faq-answer-content {
    padding-bottom: 18px;
}


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

.faq-empty {
    padding: 30px 20px;

    background: var(--bg-soft);

    border: 1px dashed var(--border-color);
    border-radius: 14px;

    text-align: center;
}

.faq-empty-icon {
    width: 42px;
    height: 42px;

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

    margin: 0 auto 11px;

    background: var(--bg-surface);
    color: var(--accent);

    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.faq-empty strong {
    display: block;

    margin-bottom: 4px;

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 800;
}

.faq-empty span {
    display: block;

    max-width: 480px;

    margin: 0 auto;

    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   CONTACT CTA
========================================================= */

.faq-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin: 5px 0 0;
    padding: 18px 20px;

    background: var(--bg-soft);

    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.faq-contact-left {
    display: flex;
    align-items: center;

    gap: 14px;
}

.faq-contact-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

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

    border-radius: 12px;

    background: var(--accent);
    color: #fff;

    font-size: 18px;
}

.faq-contact strong {
    display: block;

    margin-bottom: 3px;

    color: var(--text-primary);

    font-size: 13px;
    font-weight: 800;
}

.faq-contact span {
    color: var(--text-secondary);

    font-size: 12px;
    line-height: 1.5;
}

.faq-contact-link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: var(--accent);

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

    text-decoration: none;
}

.faq-contact-link:hover {
    color: var(--accent);
    opacity: .8;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .faq-title {
        font-size: 34px;
    }

}


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

@media (max-width: 767px) {

    .faq-page {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .faq-intro {
        padding-top: 2px;
        padding-bottom: 20px;
    }

    .faq-title {
        font-size: 29px;
    }

    .faq-intro p {
        font-size: 14px;
    }

    .faq-search {
        height: 49px;
    }

    .faq-search-icon {
        width: 42px;
        flex-basis: 42px;
    }

    .faq-search input {
        font-size: 13px;
    }


    .faq-tabs-wrap {
        width: calc(100% + 30px);

        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 27px;

        overflow: hidden;
    }

    .faq-tabs {
        flex-wrap: nowrap;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 0 15px 6px;

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .faq-tabs::-webkit-scrollbar {
        display: none;
    }

    .faq-tab {
        flex: 0 0 auto;
    }


    .faq-group {
        margin-bottom: 29px;
    }

    .faq-group-head {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;

        margin-bottom: 10px;
    }

    .faq-group-head h2 {
        font-size: 19px;
    }

    .faq-count {
        font-size: 9px;
    }


    .faq-question {
        min-height: 58px;

        gap: 12px;

        padding: 15px;

        font-size: 13px;
    }

    .faq-toggle {
        width: 26px;
        height: 26px;

        flex-basis: 26px;
    }

    .faq-toggle span {
        top: 12px;
        left: 7px;
    }

    .faq-answer-content {
        padding: 0 15px;

        font-size: 12px;
        line-height: 1.72;
    }

    .faq-item.open .faq-answer-content {
        padding-bottom: 15px;
    }


    .faq-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .faq-contact-link {
        margin-left: 56px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .faq-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .faq-title {
        font-size: 26px;
    }

    .faq-tabs-wrap {
        width: calc(100% + 24px);

        margin-left: -12px;
        margin-right: -12px;
    }

    .faq-tabs {
        padding-left: 12px;
        padding-right: 12px;
    }

    .faq-question {
        padding: 14px 13px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-tab,
    .faq-answer,
    .faq-answer-content,
    .faq-toggle span,
    .faq-search {
        transition: none !important;
    }

}
