/* FAQ Accordion Widget Styles */
.faq-accordion-container {
    width: 100%;
    background: #ffffff;
    padding: 60px 40px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.faq-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin: 0 0 20px 0;
    line-height: 1.2;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.faq-items {
    max-width: 100%;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 0 0 15px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Ensure no items start as active by default */
.faq-item .faq-answer-wrapper {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item .faq-toggle-icon .icon-minus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item .faq-toggle-icon .icon-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.faq-item {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item .faq-question-wrapper {
    background: transparent;
}

.faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.faq-item.active {
    background: #f3f4f6;
    border-color: #1e3a8a;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
}

.faq-item.active .faq-question-wrapper {
    background: #f3f4f6;
}

.faq-question-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 50px;
}

.faq-question-wrapper:hover:not(.active) {
    background: #f9fafb;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    margin: 0;
    padding-right: 20px;
    flex: 1;
    font-family: 'Arial', sans-serif;
    line-height: 1.4;
}

.faq-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.faq-toggle-icon .icon-plus,
.faq-toggle-icon .icon-minus {
    font-size: 24px;
    font-weight: 700;
    color: #2927e2;
    transition: all 0.3s ease;
    position: absolute;
    line-height: 1;
}

.faq-toggle-icon .icon-minus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.active .faq-toggle-icon .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

.faq-item.active .faq-toggle-icon .icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}


.faq-item.active .faq-answer-wrapper {
    max-height: 500px;
    padding: 0 0 20px 0;
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: #374151;
    padding: 0 20px;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

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

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

/* Ensure proper cursor and interaction */
.faq-question-wrapper {
    cursor: pointer;
    user-select: none;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .faq-accordion-container {
        padding: 60px 40px;
        max-width: 1000px;
    }
    
    .faq-heading {
        font-size: 2.5rem;
        margin-bottom: 25px;
    }
    
    .faq-items {
        max-width: 800px;
    }
    
    .faq-question-wrapper {
        padding: 25px 0;
        min-height: 50px;
    }
    
    .faq-question {
        font-size: 1.2rem;
        padding-right: 25px;
    }
    
    .faq-toggle-icon {
        width: 45px;
        height: 45px;
    }
    
    .faq-toggle-icon .icon-plus,
    .faq-toggle-icon .icon-minus {
        font-size: 24px;
    }
    
    .faq-item.active .faq-answer-wrapper {
        padding: 0 0 25px 0;
    }
    
    .faq-answer {
        padding: 0 25px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .faq-accordion-container {
        padding: 50px 30px;
        border-left-width: 1px;
        border-right-width: 1px;
    }
    
    .faq-heading {
        font-size: 2rem;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }
    
    .faq-description {
        font-size: 1.1rem;
    }
    
    .faq-items {
        max-width: 100%;
    }
    
    .faq-question-wrapper {
        padding: 22px 0;
        min-height: 45px;
    }
    
    .faq-question {
        font-size: 1.1rem;
        padding-right: 20px;
    }
    
    .faq-toggle-icon {
        width: 40px;
        height: 40px;
    }
    
    .faq-toggle-icon .icon-plus,
    .faq-toggle-icon .icon-minus {
        font-size: 22px;
    }
    
    .faq-item.active .faq-answer-wrapper {
        padding: 0 0 22px 0;
    }
    
    .faq-answer {
        padding: 0 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .faq-accordion-container {
        padding: 40px 20px;
    }
    
    .faq-heading {
        font-size: 1.6rem;
        margin-bottom: 15px;
        letter-spacing: 0.5px;
    }
    
    .faq-description {
        font-size: 1rem;
    }
    
    .faq-question-wrapper {
        padding: 20px 0;
        min-height: 40px;
    }
    
    .faq-question {
        font-size: 1rem;
        padding-right: 15px;
    }
    
    .faq-toggle-icon {
        width: 35px;
        height: 35px;
    }
    
    .faq-toggle-icon .icon-plus,
    .faq-toggle-icon .icon-minus {
        font-size: 20px;
    }
    
    .faq-item.active .faq-answer-wrapper {
        padding: 0 0 20px 0;
    }
    
    .faq-answer {
        padding: 0 15px;
        font-size: 0.9rem;
    }
}

/* Animation */
@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-accordion-container {
    animation: faqFadeIn 0.6s ease-out;
}

.faq-item {
    animation: faqFadeIn 0.6s ease-out;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }

/* Focus states for accessibility */
.faq-question-wrapper:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

.faq-question-wrapper:focus .faq-question {
    color: #1e40af;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-item {
        border-width: 2px;
    }
    
    .faq-heading {
        text-shadow: 1px 1px 0 #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .faq-accordion-container,
    .faq-item {
        animation: none;
    }
    
    .faq-answer-wrapper {
        transition: none;
    }
    
    .faq-toggle-icon .icon-plus,
    .faq-toggle-icon .icon-minus {
        transition: none;
    }
} 