/* FAQ Page Specific Styles */

/* FAQ Hero Section */
.faq-hero {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    padding: 0;
    padding-top: 80px; /* Account for fixed header */
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* FAQ Banner */
.faq-banner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem 0;
}

.faq-banner .banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.faq-banner .banner-image:hover {
    transform: scale(1.02);
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.faq-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.faq-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.faq-hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* FAQ Search */
.faq-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.faq-search input {
    width: 100%;
    padding: 1.2rem 3rem 1.2rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.faq-search i {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8B5CF6;
    font-size: 1.2rem;
}

/* FAQ Content */
.faq-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #8B5CF6;
    background: transparent;
    color: #8B5CF6;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-btn:hover,
.category-btn.active {
    background: #8B5CF6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* FAQ Items */
.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
}

.faq-question i {
    color: #8B5CF6;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    padding: 1.5rem 2rem;
    max-height: 1000px;
}

.faq-answer p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.6;
}

.faq-answer h4 {
    color: #8B5CF6;
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.5;
}

.faq-answer strong {
    color: #8B5CF6;
    font-weight: 600;
}

/* FAQ Contact Section */
.faq-contact {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-contact h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.faq-contact p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.contact-btn.whatsapp {
    background: #25D366;
    color: #fff;
}

.contact-btn.telegram {
    background: #0088cc;
    color: #fff;
}

.contact-btn.email {
    background: #8B5CF6;
    color: #fff;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-btn i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 0;
        padding-top: 70px; /* Slightly less padding for mobile */
    }
    
    .faq-banner {
        padding: 1rem 0.5rem 0;
    }
    
    .faq-banner .banner-image {
        height: 200px;
    }
    
    .faq-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .faq-hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .faq-search input {
        padding: 1rem 2.5rem 1rem 1.2rem;
        font-size: 1rem;
    }
    
    .faq-categories {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .faq-question {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1.2rem 1.5rem;
    }
    
    .faq-contact {
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }
    
    .faq-contact h2 {
        font-size: 2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding-top: 60px; /* Even less padding for smaller mobile */
    }
    
    .faq-banner {
        padding: 0.5rem 0.25rem 0;
    }
    
    .faq-banner .banner-image {
        height: 150px;
    }
    
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .faq-hero p {
        font-size: 0.9rem;
    }
    
    .faq-search {
        max-width: 100%;
    }
    
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
    
    .faq-contact h2 {
        font-size: 1.8rem;
    }
    
    .faq-contact p {
        font-size: 1rem;
    }
}

/* Animation for FAQ items */
.faq-item {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search highlight */
.faq-item.highlight {
    background: #fff3cd;
    border: 2px solid #ffc107;
}

.faq-item.highlight .faq-question {
    background: #fff3cd;
}

/* Loading animation for search */
.faq-search.loading::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #8B5CF6;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.faq-question:focus,
.category-btn:focus,
.contact-btn:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .faq-hero,
    .faq-categories,
    .faq-contact,
    .header,
    .footer {
        display: none;
    }
    
    .faq-content {
        padding: 0;
        background: #fff;
    }
    
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .faq-item.active .faq-answer {
        display: block;
        max-height: none;
    }
} 