/* FAQ Styles - Shared across multiple pages */

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: #f8fafc;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #1e293b;
}

/* FAQ Item */
.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item.expanded,
.faq-item.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Question */
.faq-question {
    width: 100%;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.3s ease;
    background: none;
    border: none;
    text-align: left;
    font-size: 1rem;
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* FAQ Toggle Icon */
.faq-toggle {
    font-size: 1.5rem;
    color: #6b7280;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.expanded .faq-toggle,
.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* FAQ Answer */
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: #6b7280;
    line-height: 1.6;
}

.faq-answer.expanded,
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1rem 1.5rem 1.5rem;
}

/* For Help page with different animation */
.help-page .faq-answer {
    display: none;
    padding: 1rem 2rem 1.5rem;
    animation: fadeIn 0.3s ease;
}

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

.faq-answer p {
    margin-bottom: 0.75rem;
}

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

.faq-answer strong {
    color: #374151;
    font-weight: 600;
}

.faq-answer a {
    color: #0f72b2;
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Animation for Help page */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-answer.expanded,
    .faq-item.active .faq-answer {
        padding: 0.75rem 1rem 1.25rem;
    }
    
    .help-page .faq-answer {
        padding: 0.75rem 1.5rem 1.25rem;
    }
}