/* FAQ Page Styles */

/* Base */
.faq-page {
    background: #ffffff;
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 0 !important;
}

/* Hero Section */
.faq-hero {
    background: linear-gradient(180deg, #ECFDF5 0%, #ffffff 100%);
    padding: 120px 32px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(56, 159, 88, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.faq-hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
    line-height: 1.2;
}

.faq-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: 400;
}

/* FAQ Section */
.faq-section {
    padding: 80px 32px;
    background: #ffffff;
}

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

/* Category */
.faq-category {
    margin-bottom: 60px;
}

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

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
    display: inline-block;
}

/* FAQ Item */
.faq-item {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-base);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.faq-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(56, 159, 88, 0.08);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(56, 159, 88, 0.12);
}

/* FAQ Question */
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 24px 28px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
}

.faq-question:hover {
    background: rgba(56, 159, 88, 0.02);
}

.faq-question span:first-child {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.5;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-primary);
    transition: transform var(--transition-medium);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 159, 88, 0.1);
    border-radius: 50%;
}

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

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 0 28px 24px;
    opacity: 1;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0 0 12px 0;
}

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

.faq-answer ul {
    list-style: disc;
    margin: 12px 0 0 0;
    padding-left: 24px;
}

.faq-answer ul li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

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

.faq-answer code {
    background: rgba(56, 159, 88, 0.08);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

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

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

/* CTA Section */
.faq-cta {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    padding: 80px 32px;
    text-align: center;
}

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

.faq-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 16px;
}

.faq-cta p {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin: 0 0 32px;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.button {
    padding: 14px 32px;
    border-radius: var(--radius-base);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    display: inline-block;
    font-family: 'Inter', sans-serif;
}

.button.primary {
    background: var(--color-primary);
    color: white;
    border: 2px solid var(--color-primary);
}

.button.primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 159, 88, 0.3);
}

.button.secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.button.secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 159, 88, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 100px 24px 50px;
    }

    .faq-section {
        padding: 60px 24px;
    }

    .category-title {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    .faq-question {
        padding: 18px 20px;
        gap: 16px;
    }

    .faq-question span:first-child {
        font-size: 1rem;
        line-height: 1.4;
    }

    .faq-item {
        margin-bottom: 12px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }

    .faq-answer p {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .faq-answer ul {
        padding-left: 20px;
    }

    .faq-answer ul li {
        font-size: 0.9375rem;
        line-height: 1.65;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 1.25rem;
    }

    .faq-cta {
        padding: 60px 24px;
    }

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

    .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 80px 16px 40px;
    }

    .faq-section {
        padding: 40px 16px;
    }

    .category-title {
        font-size: 1.375rem;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 16px;
        gap: 12px;
    }

    .faq-question span:first-child {
        font-size: 0.9375rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 16px 16px;
    }

    .faq-answer p {
        font-size: 0.875rem;
    }

    .faq-answer ul {
        padding-left: 18px;
    }

    .faq-answer ul li {
        font-size: 0.875rem;
    }

    .faq-cta {
        padding: 40px 16px;
    }
}

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

.faq-item {
    animation: fadeInUp 0.5s ease backwards;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }
