/* FAQ Widget Styles */
.faq-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-container {
    width: 100%;
}

.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    user-select: none;
}

.faq-question:hover {
    color: #4f46e5;
}

.question-text {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    flex-grow: 1;
    margin-right: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.faq-icon {
    color: #666666;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    color: #4f46e5;
}

.faq-answer {
    background-color: #f8fafc;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

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

.answer-content p {
    color: #666666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Style 1 - Classic */
.faq-style1 .faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

/* Style 2 - Modern */
.faq-style2 .faq-item {
    border-radius: 15px;
    border: 2px solid transparent;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

.faq-style2 .faq-item:hover {
    border-color: rgba(79, 70, 229, 0.2);
}

.faq-style2 .faq-item.active {
    border-color: #4f46e5;
    background: linear-gradient(145deg, #f8fafc 0%, #ffffff 100%);
}

.faq-style2 .faq-item.active .faq-icon i {
    transform: rotate(45deg);
}

.faq-style2 .faq-answer {
    background: rgba(79, 70, 229, 0.02);
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

/* Style 3 - Minimal */
.faq-style3 .faq-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

.faq-style3 .faq-item:hover {
    background: rgba(79, 70, 229, 0.02);
    box-shadow: none;
    transform: none;
}

.faq-style3 .faq-item.active {
    background: rgba(79, 70, 229, 0.03);
}

.faq-style3 .faq-question {
    padding: 25px 0;
    border-bottom: none;
}

.faq-style3 .faq-answer {
    background: transparent;
    border-top: none;
}

.faq-style3 .answer-content {
    padding: 0 0 25px 0;
}

.faq-style3 .faq-item.active .faq-icon i {
    transform: rotate(90deg);
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

/* Responsive Design */
@media (max-width: 767px) {
    .faq-wrapper {
        max-width: 100%;
    }
    
    .faq-question {
        padding: 18px 20px;
    }
    
    .question-text {
        font-size: 15px;
        margin-right: 10px;
    }
    
    .faq-icon {
        font-size: 16px;
    }
    
    .answer-content {
        padding: 0 20px 20px 20px;
    }
    
    .answer-content p {
        font-size: 13px;
    }
    
    .faq-style3 .faq-question {
        padding: 20px 0;
    }
    
    .faq-style3 .answer-content {
        padding: 0 0 20px 0;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 15px 18px;
    }
    
    .question-text {
        font-size: 14px;
    }
    
    .faq-icon {
        font-size: 14px;
    }
    
    .answer-content {
        padding: 0 18px 18px 18px;
    }
    
    .answer-content p {
        font-size: 12px;
    }
    
    .faq-style3 .faq-question {
        padding: 18px 0;
    }
    
    .faq-style3 .answer-content {
        padding: 0 0 18px 0;
    }
}

/* Focus States for Accessibility */
.faq-question:focus {
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

/* Smooth Transitions */
.faq-item * {
    transition: all 0.3s ease;
}

/* Modern Glassmorphism Effect for Style 2 */
.faq-style2 .faq-item {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
}

/* Hover Effects Enhancement */
.faq-item:hover .question-text {
    color: #4f46e5;
}

.faq-item:hover .faq-icon {
    color: #4f46e5;
    transform: scale(1.1);
}

/* Active State Enhancements */
.faq-item.active .question-text {
    color: #4f46e5;
    font-weight: 700;
}

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

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

/* Custom Scrollbar for Long Answers */
.answer-content {
    max-height: 300px;
    overflow-y: auto;
}

.answer-content::-webkit-scrollbar {
    width: 4px;
}

.answer-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.answer-content::-webkit-scrollbar-thumb {
    background: #4f46e5;
    border-radius: 2px;
}

.answer-content::-webkit-scrollbar-thumb:hover {
    background: #3730a3;
}