/* Enhanced FAQ Page Styling */

/* Loading State */
.faq-loading {
    text-align: center;
    padding: 3rem 0;
    color: #666;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #CC6B5C;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Filter Bar */
.faq-controls {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    text-align: center;
}

/* Category Filters */
.faq-categories {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #CC6B5C;
    color: #CC6B5C;
    transform: translateY(-1px);
}

.category-btn.active {
    background: #CC6B5C;
    border-color: #CC6B5C;
    color: white;
    box-shadow: 0 2px 8px rgba(221, 221, 221, 0.3);
}

/* FAQ Container */
.faq-container {
    display: grid;
    gap: 1rem;
}

/* Individual FAQ Items */
.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
    border-left-color: #CC6B5C;
}

.faq-item.popular {
    border-left-color: #CC6B5C;
    position: relative;
}

/* Custom Details/Summary Styling */
.faq-item details {
    position: relative;
}

.faq-item summary {
    padding: 1.8rem 2rem;
    cursor: pointer;
    list-style: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--graphite-navy);
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    padding-right: 4rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #CC6B5C;
    transition: all 0.3s ease;
}

.faq-item details[open] summary::after {
    content: '−';
    background: #CC6B5C;
    border-color: #CC6B5C;
    color: white;
    transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:hover {
    color: #CC6B5C;
    padding-left: 2.5rem;
}

.faq-item summary:hover::after {
    border-color: #CC6B5C;
    background: #fff5f3;
}

/* FAQ Answer Content */
.faq-answer {
    padding: 0 2rem 2rem 2rem;
    color: #555;
    line-height: 1.7;
    animation: fadeInDown 0.4s ease-out;
    border-top: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fff9f8 0%, #ffffff 100%);
}

.faq-answer p {
    margin: 0;
    font-size: 1rem;
}

.faq-answer p + p {
    margin-top: 1rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category Tags */
.faq-category-tag {
    display: inline-block;
    background: #e8f4fd;
    color: #0066cc;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.no-results h3 {
    color: var(--graphite-navy);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.no-results p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.no-results .btn {
    display: inline-block;
    margin: 0 0.5rem;
}

/* CTA Section Enhancement */
.faq-cta {
    background: linear-gradient(135deg, var(--graphite-navy) 0%, #2c3e50 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 4rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.faq-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.faq-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.faq-cta .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.faq-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0 !important;
    }
    
    .faq-controls {
        padding: 1.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    /* Enhanced Mobile Category Buttons */
    .faq-categories {
        gap: 1rem !important;
        justify-content: center !important;
    }
    
    .faq-page .category-btn {
        padding: 0.8rem 1.3rem !important;
        font-size: 0.9rem !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    .faq-page .category-btn:active {
        transform: scale(0.98) !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Enhanced Mobile FAQ Container */
    .faq-container {
        gap: 1.5rem !important;
    }
    
    /* Enhanced Mobile FAQ Items */
    .faq-page .faq-item {
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08) !important;
        transition: all 0.3s ease !important;
        margin-bottom: 1.5rem !important;
    }
    
    .faq-page .faq-item:active {
        transform: scale(0.995) !important;
    }
    
    .faq-page .faq-item summary {
        padding: 1.8rem 1.5rem !important;
        padding-right: 4rem !important;
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Enhanced Mobile Plus/Minus Icons */
    .faq-page .faq-item summary::after {
        right: 1.5rem !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.1rem !important;
        border-width: 2px !important;
    }
    
    /* Remove hover effects on mobile */
    .faq-item summary:hover {
        padding-left: 1.5rem;
        color: var(--graphite-navy);
    }
    
    /* Enhanced Mobile FAQ Answers */
    .faq-page .faq-answer {
        padding: 0 1.5rem 2rem 1.5rem !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* Enhanced Mobile Category Tags */
    .faq-page .faq-category-tag {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Enhanced Mobile "Most Asked" Badges */
    .faq-page .faq-item.popular::before {
        top: 1rem !important;
        right: 1rem !important;
        padding: 0.3rem 0.7rem !important;
        font-size: 0.7rem !important;
        font-weight: 700 !important;
    }
    
    /* Enhanced Mobile CTA Section */
    .faq-cta {
        padding: 3rem 1.5rem;
        margin-top: 4rem;
    }
    
    .faq-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .faq-cta p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
    }
    
    .faq-cta .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Mobile No Results Enhancement */
    .no-results {
        padding: 3rem 1.5rem;
    }
    
    .no-results .btn {
        min-height: 48px;
        padding: 1rem 1.5rem;
        margin: 0.5rem;
    }
}

/* Enhanced Small Mobile Screens */
@media (max-width: 480px) {
    .faq-controls {
        padding: 1.2rem;
    }
    
    /* Smaller Mobile Category Buttons */
    .faq-categories {
        gap: 0.8rem;
    }
    
    .category-btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.85rem;
        min-height: 44px;
    }
    
    /* Smaller Mobile FAQ Items */
    .faq-item summary {
        padding: 1.5rem 1.2rem;
        padding-right: 3.8rem;
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .faq-item summary::after {
        right: 1.2rem;
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.2rem 1.5rem 1.2rem;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .faq-category-tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .faq-item.popular::before {
        top: 0.8rem;
        right: 0.8rem;
        padding: 0.25rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .faq-cta {
        padding: 2.5rem 1.2rem;
    }
    
    .faq-cta h2 {
        font-size: 1.6rem;
    }
    
    .faq-cta .btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.5rem;
    }
}

/* Error State */
.faq-error {
    text-align: center;
    padding: 3rem 2rem;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    color: #c53030;
}

.faq-error h3 {
    color: #c53030;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #c53030;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.retry-btn:hover {
    background: #9c2626;
}

/* Add smooth transitions for mobile touch feedback */
@media (max-width: 768px) {
    .faq-item summary {
        transition: transform 0.15s ease, background-color 0.3s ease;
    }
    
    .category-btn {
        transition: all 0.15s ease;
    }
}