/**
 * FAQ Accordion Widget Styles
 * Matches the design from the provided screenshot exactly
 */

.faq-accordion-widget {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}


/* .faq-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
} */

.faq-section-description {
    margin-bottom: 2rem;
}

.faq-section-description p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item,
.faq-question-heading {
    margin: 0;
}

.faq-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
}

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

.faq-question {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
    border: 1px solid #e1e5e940;
}

.faq-question:hover {
    background: #f0f1f2;
}

.faq-question:focus-visible {
    outline: 2px solid #1B2242;
    outline-offset: 2px;
}

.faq-question[aria-expanded="true"] {
    background: #215F5F;
    color: #fff !important;
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: #e91e63;
    color: #fff !important;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    white-space: normal;
    word-break: break-word;
}

.faq-icon {
    min-width: 32px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #9BB043;
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.faq-icon i {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: #215F5F;
    color: #fff;
}

.faq-question[aria-expanded="true"] .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    background: #fff;
    border: none;
    border-radius: 24px;
    display: none;
    padding: 0;
    margin-top: 8px;
}

.faq-answer--open {
    display: block;
}

.answer-content {
    padding: 0 24px 24px 24px;
}

.answer-content p {
    line-height: 1.5rem;
    margin: 0 0 1rem 0;
}

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


/* Responsive Design */

@media (max-width: 768px) {
    .faq-section-title {
        font-size: 1.75rem;
    }
    .faq-question {
        padding: 16px 20px;
    }
    .question-text {
        font-size: 1rem;
        padding-right: 16px;
    }
    .answer-content {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .faq-section-title {
        font-size: 1.5rem;
    }
    .faq-question {
        padding: 14px 16px;
    }
    .question-text {
        font-size: 0.95rem;
        padding-right: 12px;
    }
    .answer-content {
        padding: 14px 16px;
    }
}


/* Animation improvements */

.faq-item {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Focus and accessibility improvements */


/* Print styles */

@media print {
    .faq-answer,
    .faq-answer--open {
        display: block !important;
    }
}