/* ============================================
   FAQ.CSS - Frequently Asked Questions
   F1Key Website - Phase 2 Social Proof
   ============================================ */

/* ==================== */
/* FAQ SECTION */
/* ==================== */

.faq-section {
    max-width: 1000px;
    margin: 0 auto;
}

/* ==================== */
/* FAQ TABS */
/* ==================== */

.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.faq-tab {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--color-text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-tab-icon {
    font-size: 1.3rem;
}

.faq-tab:hover {
    border-color: rgba(220, 20, 60, 0.3);
    color: var(--color-text-primary);
}

.faq-tab.active {
    background: linear-gradient(135deg, 
        var(--color-primary) 0%, 
        #ff4d4d 100%);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
}

/* ==================== */
/* FAQ CONTENT */
/* ==================== */

.faq-content {
    position: relative;
}

.faq-panel {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.faq-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== */
/* ACCORDION ITEMS */
/* ==================== */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--color-surface-1);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(220, 20, 60, 0.2);
}

.faq-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.2);
}

.faq-question {
    width: 100%;
    padding: 24px 28px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question-text {
    flex: 1;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 20, 60, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: all 0.3s;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--color-primary);
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.faq-answer-content {
    padding-top: 8px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.faq-answer-content p {
    margin-bottom: 16px;
}

.faq-answer-content ul {
    list-style: none;
    padding-left: 0;
    margin: 16px 0;
}

.faq-answer-content li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.faq-answer-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.faq-answer-content strong {
    color: var(--color-text-primary);
}

.faq-answer-content a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* ==================== */
/* FAQ CTA */
/* ==================== */

.faq-cta {
    margin-top: 48px;
    padding: 40px;
    background: linear-gradient(135deg, 
        rgba(220, 20, 60, 0.1) 0%, 
        rgba(220, 20, 60, 0.05) 100%);
    border: 2px solid rgba(220, 20, 60, 0.2);
    border-radius: 20px;
    text-align: center;
}

.faq-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.faq-cta-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

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

.faq-cta-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.faq-cta-btn.primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4d4d 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(220, 20, 60, 0.3);
}

.faq-cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(220, 20, 60, 0.4);
}

.faq-cta-btn.secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: var(--color-text-primary);
}

.faq-cta-btn.secondary:hover {
    border-color: var(--color-primary);
    background: rgba(220, 20, 60, 0.05);
}

/* ==================== */
/* SEARCH FAQ */
/* ==================== */

.faq-search {
    margin-bottom: 40px;
}

.faq-search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    background: var(--color-surface-1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--color-text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(220, 20, 60, 0.1);
}

.faq-search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    font-size: 1.3rem;
}

/* ==================== */
/* RESPONSIVE */
/* ==================== */

@media (max-width: 768px) {
    .faq-tabs {
        gap: 12px;
    }
    
    .faq-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .faq-tab-icon {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 20px;
        font-size: 1.05rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-cta {
        padding: 32px 24px;
    }
    
    .faq-cta-buttons {
        flex-direction: column;
    }
    
    .faq-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .faq-question {
        font-size: 1rem;
        padding: 16px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
    
    .faq-answer-content {
        font-size: 0.95rem;
    }
}
