/**
 * FAQ Accordion Styles
 * Path: public_html/css/faq.css
 * Version: 1.0.4
 */

/* FAQ Container */
.faq {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 2rem;
}

.faq h2 {
    padding: 1.25rem 1.25rem 0.75rem;
    margin: 0;
    font-size: 1.25rem;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

/* FAQ Item */
.faq-item {
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
    padding: 0;
}

.faq-item:last-child {
    border-bottom: none;
}

/* Question Header (clickable) */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1.25rem;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background-color 0.2s ease;
}

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

.faq-question h3 {
    margin: 0;
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    padding-right: 1rem;
    line-height: 1.4;
}

/* Chevron Icon */
.faq-chevron {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.3s ease;
}

.faq-chevron svg {
    width: 16px;
    height: 16px;
    stroke: #9ca3af;
    transition: stroke 0.2s ease;
}

/* Hover state for chevron */
.faq-question:hover .faq-chevron {
    background: #f3f4f6;
}

.faq-question:hover .faq-chevron svg {
    stroke: #6b7280;
}

/* Open State */
.faq-item.faq-open .faq-question {
    background-color: #f9fafb;
}

.faq-item.faq-open .faq-question h3 {
    color: #2563eb;
}

.faq-item.faq-open .faq-chevron {
    background: #dbeafe;
    transform: rotate(180deg);
}

.faq-item.faq-open .faq-chevron svg {
    stroke: #2563eb;
}

/* Answer Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding: 0;
}

.faq-answer-inner {
    padding: 0 1.25rem 0.75rem 1.25rem;
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.faq-answer-inner p {
    margin: 0;
    padding: 0;
}

.faq-item.faq-open .faq-answer {
    max-height: 500px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .faq h2 {
        padding: 1rem 1rem 0.625rem;
        font-size: 1.125rem;
    }

    .faq-question {
        padding: 0.5rem 1rem;
    }

    .faq-question h3 {
        font-size: 0.875rem;
    }

    .faq-chevron {
        width: 26px;
        height: 26px;
    }

    .faq-chevron svg {
        width: 14px;
        height: 14px;
    }

    .faq-answer-inner {
        padding: 0 1rem 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}