/**
 * FAQ Page Styles
 * Accordion-style FAQ with categories
 * Uses CSS variables from global.css
 */

/* ============================================
   FAQ PAGE HEADER
   ============================================ */
.faq-page {
    padding: 70px 0 50px;
}

.faq-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq-header h1 {
    font-size: 40px;
    font-weight: var(--font-regular);
    line-height: var(--leading-normal);
    color: var(--text-tertiary);
    margin-bottom: var(--space-xs);
}

.faq-subheadline {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-gray-light);
    text-align: center;
    margin: 0;
}

.faq-subheadline a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.faq-subheadline a:hover {
    text-decoration: none;
}

/* ============================================
   FAQ CONTENT WRAPPER
   ============================================ */
.faq-wrapper {
    max-width: 1090px;
    width: 100%;
    margin: 80px auto 0;
}

.faq-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 30px;
}

/* ============================================
   FAQ CATEGORIES
   ============================================ */
.faq-category {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.category-title {
    font-size: var(--text-xl);
    line-height: 25px;
    color: var(--text-tertiary);
    padding: 0 0 var(--space-xs);
    text-align: left;
    font-weight: var(--font-semi);
    margin: 0;
}

/* ============================================
   FAQ CARDS (ACCORDION)
   ============================================ */
.faq-card {
    width: 100%;
    cursor: pointer;
    padding: 25px;
    border-radius: var(--radius-xl);
    background-color: var(--bg-white);
    transition: var(--transition-normal);
    border: 1px solid var(--border-light);
}

.faq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(6, 84, 230, 0.15);
}

.faq-card-head {
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.faq-question {
    font-weight: var(--font-regular);
    font-size: var(--text-normal);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    text-align: left;
    max-width: 90%;
    flex-grow: 1;
    margin: 0;
}

.faq-card-head:hover .faq-question {
    color: var(--primary-blue-light);
}

.faq-icon {
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.faq-icon svg {
    display: none;
}

.faq-icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 5V19M5 12H19' stroke='%230654E6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.faq-card.active .faq-icon::before {
    transform: rotate(45deg);
}

/* ============================================
   FAQ CARD BODY (ANSWER)
   ============================================ */
.faq-card-body {
    width: 100%;
    padding: var(--space-md) 0 0;
    position: relative;
    align-items: flex-start;
    cursor: default;
    display: none;
}

.faq-card.active .faq-card-body {
    display: block;
}

.faq-answer p {
    font-weight: var(--font-regular);
    font-size: var(--text-sm);
    line-height: 180%;
    color: var(--text-gray-light);
    text-align: left;
    padding-bottom: 5px;
    margin: 0;
}

.faq-answer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: var(--font-semi);
    transition: var(--transition-fast);
}

.faq-answer a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--text-primary);
    font-weight: var(--font-bold);
}

/* ============================================
   STILL HAVE QUESTIONS SECTION
   ============================================ */
.faq-contact-section {
    padding: 85px 0;
    background: linear-gradient(125.14deg, #DFE9FF 0%, var(--bg-white) 31.65%, #FBFCFF 70.91%, #DFE9FF 100%);
    margin-top: var(--space-2xl);
    text-align: center;
}

.faq-contact-content {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-contact-content h2 {
    color: var(--text-tertiary);
    font-weight: var(--font-regular);
    font-size: 30px;
    line-height: var(--leading-tight);
    text-align: center;
    padding-bottom: 12px;
    margin: 0;
}

.faq-contact-content > p {
    font-size: var(--text-normal);
    line-height: var(--leading-normal);
    text-align: center;
    color: var(--text-gray-light);
    max-width: 912px;
    width: 100%;
    margin: 0 auto;
}

.faq-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faq-contact-card {
    background: var(--bg-white);
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-xl);
    border: 1px solid #E5E7EB;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    text-align: center;
}

.faq-contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(6, 84, 230, 0.15);
}

.faq-contact-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-circle);
 
  
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.faq-contact-card h4 {
    font-weight: var(--font-semi);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
}

.faq-contact-card p {
    font-weight: var(--font-regular);
    font-size: var(--text-sm);
    line-height: 180%;
    color: var(--text-gray-light);
    margin: 0;
}

.faq-contact-card a {
    color: var(--text-gray-light);
    text-decoration: underline;
    font-weight: var(--font-semi);
    transition: var(--transition-fast);
}

.faq-contact-card a:hover {
    color: var(--primary-blue);
    text-decoration: none;
}

.faq-contact-footer {
    font-size: var(--text-normal);
    font-weight: var(--font-regular);
    color: var(--text-gray-light);
    margin-top: var(--space-lg);
}

.faq-contact-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: var(--font-semi);
}

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

/* ============================================
   CTA SECTION
   ============================================ */
.faq-cta-section {
    background: var(--bg-white);
    padding: var(--space-3xl) var(--space-md);
    text-align: center;
}

.faq-cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-cta-content h2 {
    font-weight: var(--font-semi);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    color: var(--text-tertiary);
    margin: 0 0 var(--space-md);
}

.faq-cta-content > p {
    font-weight: var(--font-regular);
    font-size: var(--text-base);
    line-height: 180%;
    color: var(--text-gray-light);
    margin: 0 0 var(--space-xl);
}

.faq-cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 12px 24px;
    font-size: var(--text-base);
    font-weight: var(--font-regular);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: var(--transition-normal);
}

.faq-cta-buttons .btn-primary {
    background: var(--primary-blue);
    color: var(--bg-white);
    border: 1px solid var(--primary-blue);
    box-shadow: 0 4px 15px rgba(6, 84, 230, 0.3);
}

.faq-cta-buttons .btn-primary:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 84, 230, 0.4);
}

.faq-cta-buttons .btn-secondary {
    background: var(--bg-white);
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.faq-cta-buttons .btn-secondary:hover {
    background: var(--bg-light-blue);
    transform: translateY(-2px);
}

/* ============================================
   POLICY LINKS SECTION
   ============================================ */
.faq-policies-section {
    background-color: var(--bg-white);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.faq-policies-section p {
    font-weight: var(--font-regular);
    font-size: var(--text-normal);
    line-height: 180%;
    color: var(--text-gray-light);
    margin: 0 0 var(--space-sm);
}

.faq-policy-links {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.faq-policy-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: var(--font-regular);
    font-size: var(--text-normal);
    transition: var(--transition-fast);
}

.faq-policy-links a:hover {
    color: var(--primary-blue-dark);
    text-decoration: underline;
}

.faq-policy-links span {
    color: #dee2e6;
    font-size: var(--text-normal);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991px) {
    .faq-content {
        grid-template-columns: 1fr;
        gap: 50px 30px;
    }

    .faq-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .faq-page {
        padding: 50px 0 30px;
    }

    .faq-header h1 {
        font-size: var(--text-3xl);
    }

    .faq-subheadline {
        font-size: var(--text-normal);
    }

    .category-title {
        font-size: var(--text-lg);
    }

    .faq-card {
        padding: var(--space-md);
    }

    .faq-card-head h3 {
        font-size: var(--text-sm);
    }

    .faq-contact-section {
        padding: var(--space-2xl) 0;
    }

    .faq-contact-content h2,
    .faq-cta-content h2 {
        font-size: 28px;
    }

    .faq-cta-section {
        padding: var(--space-2xl) var(--space-md);
    }

    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .faq-policy-links {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .faq-policy-links span {
        display: none;
    }
}

@media (max-width: 575px) {
    .faq-page {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .faq-header h1 {
        font-size: 25px;
        line-height: 129%;
    }

    .faq-subheadline {
        font-size: var(--text-normal);
        margin-bottom: 0;
    }

    .faq-wrapper {
        margin-top: var(--space-lg);
    }

    .category-title {
        font-size: var(--text-lg);
        padding: 0 0 5px;
    }

    .faq-question {
        font-size: var(--text-normal);
        line-height: 23px;
        max-width: 89%;
    }

    .faq-answer p {
        font-size: var(--text-sm);
        line-height: var(--text-lg);
    }

    .faq-contact-section,
    .faq-cta-section {
        padding: 50px var(--space-md);
    }

    .faq-contact-content h2,
    .faq-cta-content h2 {
        font-size: var(--text-2xl);
    }

    .faq-contact-grid {
        grid-template-columns: 1fr;
    }

    .faq-contact-card {
        padding: 25px var(--space-sm);
    }

    .faq-cta-buttons .btn {
        padding: 11px var(--space-lg);
        font-size: var(--text-normal);
    }

    .faq-policy-links a {
        font-size: var(--text-sm);
    }
}
