/* FAQ Schema Auto - Frontend Accordion Styles */

.fsa-faq-section {
    margin: 40px 0 20px;
    padding: 0;
}

.fsa-faq-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #1a1a1a;
}

.fsa-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Single FAQ Item */
.fsa-faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: #fff;
}

.fsa-faq-item:hover {
    border-color: #c0c0c0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Question Button */
.fsa-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    font-size: 1em;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    gap: 12px;
    font-family: inherit;
    transition: background-color 0.15s ease;
}

.fsa-faq-question:hover {
    background-color: #f8f8f8;
}

.fsa-faq-question:focus {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
}

.fsa-faq-question-text {
    flex: 1;
}

/* Arrow Icon */
.fsa-faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: #666;
    display: flex;
    align-items: center;
}

.fsa-faq-item.open .fsa-faq-icon {
    transform: rotate(180deg);
}

/* Answer */
.fsa-faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    max-height: 0;
    padding: 0 20px;
}

.fsa-faq-answer[hidden] {
    display: block !important;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.fsa-faq-item.open .fsa-faq-answer {
    max-height: 1000px;
    padding: 0 20px 20px;
}

.fsa-faq-answer div {
    color: #444;
    line-height: 1.7;
    font-size: 0.95em;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

.fsa-faq-answer p {
    margin: 0 0 10px;
}

.fsa-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Active/Open state */
.fsa-faq-item.open {
    border-color: #2271b1;
    box-shadow: 0 2px 12px rgba(34, 113, 177, 0.08);
}

.fsa-faq-item.open .fsa-faq-question {
    color: #2271b1;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .fsa-faq-item {
        background: #2a2a2a;
        border-color: #444;
    }

    .fsa-faq-question {
        color: #e0e0e0;
    }

    .fsa-faq-question:hover {
        background-color: #333;
    }

    .fsa-faq-answer div {
        color: #bbb;
        border-top-color: #444;
    }

    .fsa-faq-title {
        color: #e0e0e0;
        border-bottom-color: #444;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .fsa-faq-question {
        padding: 14px 16px;
        font-size: 0.95em;
    }

    .fsa-faq-answer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .fsa-faq-item.open .fsa-faq-answer {
        padding: 0 16px 16px;
    }
}
