/* ========================================
   ❓ FAQ SECTION - Premium Design
   ======================================== */
#faq .container{
    max-width: 1400px;
    padding: 0 24px;
    margin: 0 auto;
}
#faq .faq-section {
    padding: 120px 0;
    background: 
        linear-gradient(180deg, 
            rgba(249, 250, 251, 0) 0%,
            rgba(249, 250, 251, 1) 20%,
            rgba(249, 250, 251, 1) 80%,
            rgba(255, 255, 255, 1) 100%
        );
    position: relative;
    overflow: hidden;
}

/* پس‌زمینه انیمیشن‌دار */
#faq .faq-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
}

#faq .faq-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatBackground 25s ease-in-out infinite reverse;
    pointer-events: none;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Header */
#faq .faq-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    padding-top: 120px;
}

#faq .faq-header .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(118, 75, 162, 0.2);
    animation: badgePulse 2s ease-in-out infinite;
}

#faq .faq-header .section-title {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 20px;
}

#faq .faq-header .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#faq .faq-header .section-subtitle {
    font-size: 18px;
    color: #64748b;
    line-height: 1.6;
}

/* FAQ Grid */
#faq .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
    margin: 0 auto;
}

/* FAQ Item */
#faq .faq-item {
    background: white;
    border-radius: 20px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#faq .faq-item:hover {
    border-color: #667eea;
    box-shadow: 
        0 20px 60px rgba(102, 126, 234, 0.15),
        0 8px 24px rgba(118, 75, 162, 0.1);
    transform: translateY(-4px);
}

/* Question */
#faq .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 32px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

#faq .faq-item:hover .faq-question {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

#faq .question-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

#faq .question-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 14px;
    font-size: 20px;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.25);
    transition: all 0.3s ease;
}

#faq .faq-item:hover .question-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.35);
}

#faq .question-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

/* Toggle Button */
#faq .toggle-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#faq .toggle-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

#faq .faq-item.active .toggle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: rotate(180deg);
}

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

#faq .faq-item.active .faq-answer {
    max-height: 800px;
    opacity: 1;
    padding: 0 32px 32px;
}

#faq .faq-answer p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

/* Answer Tags */
#faq .answer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

#faq .answer-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

#faq .answer-tags .tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

#faq .answer-tags .tag i {
    font-size: 12px;
}

/* Answer Highlight */
#faq .answer-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-right: 4px solid #22c55e;
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
}

#faq .answer-highlight i {
    font-size: 20px;
    color: #22c55e;
}

#faq .answer-highlight span {
    font-size: 15px;
    color: #1e293b;
    font-weight: 600;
}

/* Answer List */
#faq .answer-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}

#faq .answer-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
}

#faq .answer-list li:last-child {
    border-bottom: none;
}

#faq .answer-list li i {
    color: #22c55e;
    font-size: 16px;
}

/* Answer CTA */
#faq .answer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#faq .answer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

#faq .answer-cta i {
    font-size: 14px;
}

/* Support Badges */
#faq .support-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

#faq .support-badges .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: #667eea;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

#faq .support-badges .badge:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    transform: translateY(-2px);
}

#faq .support-badges .badge i {
    font-size: 16px;
}

/* Pricing Preview */
#faq .pricing-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 16px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

#faq .pricing-preview span {
    font-size: 15px;
    color: #475569;
}

#faq .pricing-preview strong {
    color: #667eea;
    font-size: 18px;
    font-weight: 700;
}

#faq .pricing-preview a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

#faq .pricing-preview a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* FAQ Footer */
#faq .faq-footer {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#faq .faq-footer::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatCircle 15s ease-in-out infinite;
}

#faq .faq-footer::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: floatCircle 20s ease-in-out infinite reverse;
}

@keyframes floatCircle {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.1); }
}

#faq .faq-footer-content {
    position: relative;
    z-index: 1;
}

#faq .faq-footer-content i {
    font-size: 48px;
    color: white;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

#faq .faq-footer-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

#faq .faq-footer-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

#faq .footer-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

#faq .footer-buttons .btn-primary,
#faq .footer-buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#faq .footer-buttons .btn-primary {
    background: white;
    color: #667eea;
}

#faq .footer-buttons .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

#faq .footer-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

#faq .footer-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

/* ========================================
   📱 RESPONSIVE DESIGN
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    #faq .faq-section {
        padding: 80px 0;
    }

    #faq .faq-header {
        margin-bottom: 60px;
    }

    #faq .faq-header .section-title {
        font-size: 40px;
    }

    #faq .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #faq .faq-footer {
        padding: 50px 30px;
        margin-top: 60px;
    }

    #faq .faq-footer-content h3 {
        font-size: 28px;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    #faq .faq-section {
        padding: 60px 0;
    }

    #faq .faq-header {
        margin-bottom: 40px;
    }

    #faq .faq-header .section-title {
        font-size: 32px;
    }

    #faq .faq-header .section-subtitle {
        font-size: 16px;
    }

    #faq .faq-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #faq .faq-item {
        border-radius: 16px;
    }

    #faq .faq-question {
        padding: 20px 20px;
    }

    #faq .question-content {
        gap: 14px;
    }

    #faq .question-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
        border-radius: 12px;
    }

    #faq .question-content h3 {
        font-size: 16px;
    }

    #faq .toggle-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

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

    #faq .faq-answer p {
        font-size: 15px;
    }

    #faq .answer-tags {
        gap: 8px;
    }

    #faq .answer-tags .tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    #faq .answer-highlight {
        padding: 12px 16px;
        gap: 10px;
    }

    #faq .answer-highlight i {
        font-size: 18px;
    }

    #faq .answer-highlight span {
        font-size: 14px;
    }

    #faq .answer-list li {
        font-size: 14px;
        padding: 8px 0;
    }

    #faq .answer-cta {
        padding: 10px 20px;
        font-size: 14px;
    }

    #faq .support-badges {
        gap: 10px;
    }

    #faq .support-badges .badge {
        font-size: 13px;
        padding: 8px 14px;
    }

    #faq .pricing-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }

    #faq .pricing-preview span {
        font-size: 14px;
    }

    #faq .pricing-preview strong {
        font-size: 16px;
    }

    #faq .faq-footer {
        padding: 40px 20px;
        margin-top: 50px;
        border-radius: 20px;
    }

    #faq .faq-footer-content i {
        font-size: 40px;
        margin-bottom: 16px;
    }

    #faq .faq-footer-content h3 {
        font-size: 24px;
    }

    #faq .faq-footer-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    #faq .footer-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    #faq .footer-buttons .btn-primary,
    #faq .footer-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    #faq .faq-header .section-title {
        font-size: 28px;
    }

    #faq .faq-question {
        padding: 16px 16px;
    }

    #faq .question-content {
        gap: 12px;
    }

    #faq .question-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    #faq .question-content h3 {
        font-size: 15px;
    }

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

    #faq .faq-footer {
        padding: 30px 16px;
    }

    #faq .faq-footer-content h3 {
        font-size: 22px;
    }

    #faq .faq-footer-content p {
        font-size: 15px;
    }
}

/* Extra Small Mobile (< 360px) */
@media (max-width: 360px) {
    #faq .faq-header .section-badge {
        font-size: 13px;
        padding: 8px 18px;
    }

    #faq .faq-header .section-title {
        font-size: 24px;
    }

    #faq .faq-header .section-subtitle {
        font-size: 15px;
    }

    #faq .question-content h3 {
        font-size: 14px;
    }

    #faq .toggle-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 14px;
    }

    #faq .answer-tags .tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    #faq .footer-buttons .btn-primary,
    #faq .footer-buttons .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
}
