/*
 * Taolaixe FAQ Section - Frontend
 * No font-family is set, so this section inherits the website/theme font.
 */

.tlx-faq-section {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
}

.tlx-faq-section *,
.tlx-faq-section *::before,
.tlx-faq-section *::after {
    box-sizing: border-box;
}

.tlx-faq-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.tlx-faq-heading h2 {
    margin-bottom: 30px;
}

.tlx-faq-heading p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.tlx-faq-list {
    display: grid;
    gap: 14px;
}

.tlx-faq-item {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    transition:
        border-color 0.24s ease,
        box-shadow 0.24s ease,
        background-color 0.24s ease;
}

.tlx-faq-item.is-open {
    border-color: #ff790080;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.tlx-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px;
    margin: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.tlx-faq-question span {
    display: block;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tlx-faq-question svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: #ff7900;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.24s ease;
}

.tlx-faq-item.is-open .tlx-faq-question svg {
    transform: rotate(180deg);
}

.tlx-faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 22px;
    transition:
        height 0.32s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.24s ease;
    will-change: height, opacity;
}

.tlx-faq-answer p {
    margin: 0;
    padding: 0 0 20px;
    color: #475569;
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 767px) {
    .tlx-faq-section {
        max-width: 100%;
    }

    .tlx-faq-heading {
        margin-bottom: 22px;
    }

    .tlx-faq-heading h2 {
        font-size: 24px;
    }

    .tlx-faq-heading p {
        font-size: 15px;
    }

    .tlx-faq-list {
        gap: 12px;
    }

    .tlx-faq-question {
        min-height: 64px;
        padding: 16px 18px;
    }

    .tlx-faq-question span {
        font-size: 15px;
    }

    .tlx-faq-answer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .tlx-faq-answer p {
        padding-bottom: 18px;
        font-size: 14px;
    }
}

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

    .tlx-faq-section *,
    .tlx-faq-section *::before,
    .tlx-faq-section *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}