/* FAQ Section - Clean & Consistent with ViveLead Brand */

.faq-modern-section {
    background: var(--vl-light-bg, #f9fafb);
    padding: 80px 0;
    position: relative;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* FAQ Header */
.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vl-text-dark, #1e2a44);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.faq-header p {
    font-size: 1.125rem;
    color: var(--vl-text-light, #5f6f81);
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Items Container */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Individual FAQ Item */
.faq-item {
    background: var(--vl-white, #ffffff);
    border-radius: var(--vl-radius-lg, 0.75rem);
    box-shadow: var(--vl-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
    overflow: hidden;
    transition: var(--vl-transition, all 0.3s ease-in-out);
    border: 1px solid var(--vl-gray-200, #e9ecef);
}

.faq-item:hover {
    box-shadow: var(--vl-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
    border-color: var(--vl-gray-300, #dee2e6);
}

.faq-item.active {
    border-color: var(--vl-primary, #4051B5);
}

/* FAQ Question Button */
.faq-question {
    width: 100%;
    padding: 1.5rem 4rem 1.5rem 1.75rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: var(--vl-transition, all 0.3s ease-in-out);
    font-family: inherit;
}

.faq-question:hover {
    background: var(--vl-gray-100, #f8f9fa);
}

.faq-question:focus {
    outline: 2px solid var(--vl-primary, #4051B5);
    outline-offset: -2px;
}

/* Question Number */
.faq-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--vl-primary, #4051B5);
    color: var(--vl-white, #ffffff);
    border-radius: var(--vl-radius, 0.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Question Text */
.faq-question-text {
    flex: 1;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--vl-text-dark, #1e2a44);
    line-height: 1.5;
}

/* Toggle Icon */
.faq-toggle {
    position: absolute;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--vl-gray-200, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vl-transition, all 0.3s ease-in-out);
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--vl-text-dark, #1e2a44);
    transition: var(--vl-transition, all 0.3s ease-in-out);
}

.faq-toggle::before {
    width: 12px;
    height: 2px;
}

.faq-toggle::after {
    width: 2px;
    height: 12px;
}

.faq-item.active .faq-toggle {
    background: var(--vl-primary, #4051B5);
}

.faq-item.active .faq-toggle::before,
.faq-item.active .faq-toggle::after {
    background: var(--vl-white, #ffffff);
}

.faq-item.active .faq-toggle::after {
    opacity: 0;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 800px;
}

.faq-answer-content {
    padding: 0 1.75rem 1.5rem 4.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--vl-text-light, #5f6f81);
}

.faq-answer-content p {
    margin: 0 0 1rem 0;
}

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

.faq-answer-content strong {
    color: var(--vl-text-dark, #1e2a44);
    font-weight: 600;
}

.faq-answer-content a {
    color: var(--vl-primary, #4051B5);
    text-decoration: none;
    font-weight: 500;
}

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

.faq-answer-content ul {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.faq-answer-content ul li {
    margin-bottom: 0.5rem;
}

/* FAQ CTA Section */
.faq-cta {
    margin-top: 3rem;
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--vl-white, #ffffff);
    border-radius: var(--vl-radius-lg, 0.75rem);
    border: 2px dashed var(--vl-gray-300, #dee2e6);
}

.faq-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--vl-text-dark, #1e2a44);
    margin-bottom: 0.75rem;
}

.faq-cta p {
    font-size: 1rem;
    color: var(--vl-text-light, #5f6f81);
    margin-bottom: 1.5rem;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--vl-primary, #4051B5);
    color: var(--vl-white, #ffffff);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--vl-radius, 0.5rem);
    text-decoration: none;
    transition: var(--vl-transition, all 0.3s ease-in-out);
}

.faq-cta-button:hover {
    background: var(--vl-primary-dark, #2c3e9f);
    transform: translateY(-2px);
    box-shadow: var(--vl-shadow, 0 0.5rem 1rem rgba(0, 0, 0, 0.15));
}

.faq-cta-button i {
    transition: var(--vl-transition, all 0.3s ease-in-out);
}

.faq-cta-button:hover i {
    transform: translateX(4px);
}

/* Search Box - Removed for cleaner design */

/* Responsive Design */
@media (max-width: 768px) {
    .faq-modern-section {
        padding: 60px 0;
    }

    .faq-header h2 {
        font-size: 2rem;
    }

    .faq-header {
        margin-bottom: 2.5rem;
    }

    .faq-question {
        padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    }

    .faq-number {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }

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

    .faq-toggle {
        right: 1.5rem;
        width: 22px;
        height: 22px;
    }

    .faq-toggle::before {
        width: 10px;
    }

    .faq-toggle::after {
        height: 10px;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.25rem 4rem;
        font-size: 0.9375rem;
    }

    .faq-cta {
        padding: 2rem 1.5rem;
        margin-top: 2.5rem;
    }

    .faq-cta h3 {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .faq-modern-section {
        padding: 40px 0;
    }

    .faq-header h2 {
        font-size: 1.75rem;
    }

    .faq-question {
        padding: 1rem 3rem 1rem 1.25rem;
        gap: 0.75rem;
    }

    .faq-number {
        width: 26px;
        height: 26px;
        font-size: 0.8125rem;
    }

    .faq-question-text {
        font-size: 0.9375rem;
    }

    .faq-toggle {
        right: 1.25rem;
    }

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

    .faq-cta {
        padding: 1.75rem 1.25rem;
    }

    .faq-cta h3 {
        font-size: 1.25rem;
    }

    .faq-cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.9375rem;
    }
}

/* Accessibility */
.faq-question:focus-visible {
    outline: 2px solid var(--vl-primary, #4051B5);
    outline-offset: -2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .faq-item {
        border: 2px solid #000000;
    }

    .faq-number {
        background: #000000;
    }

    .faq-toggle {
        border: 2px solid #000000;
    }
}

/* Print Styles */
@media print {
    .faq-modern-section {
        background: #ffffff;
    }

    .faq-item {
        border: 1px solid #000000;
        page-break-inside: avoid;
    }

    .faq-answer {
        max-height: none !important;
    }

    .faq-toggle {
        display: none;
    }

    .faq-cta {
        display: none;
    }
}
