@import url('../variables.css');

/* FAQ Page Styles - Mobile First Approach */

/* Global Styles */
body {
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: #f8f9fa;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

*::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
    margin: 0;
}

/* Apply box-sizing globally */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Main content wrapper */
main {
    flex: 1 0 auto; /* Allow this to grow and push footer down */
}

/* Container */
.container-fluid {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 30px;
}

/* Hero Section */
.faq-hero {
    background: linear-gradient(to right, rgba(45, 46, 46, 0.9), rgba(45, 46, 46, 0.8)), url('https://source.unsplash.com/random/1200x800/?help,support') no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

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

.faq-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.faq-hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Search Box */
.faq-search {
    max-width: 600px;
    margin: 0 auto 30px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border-radius: 30px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* FAQ Categories */
.faq-categories {
    padding: 50px 0;
    background-color: #fff;
}

.category-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.category-card {
    background-color: var(--light-bg);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.category-card p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FAQ Accordion Section */
.faq-accordion {
    padding: 50px 0;
    background-color: var(--light-bg);
}

.accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.accordion-header {
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 500;
}

.accordion-toggle {
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 0 20px 20px;
    max-height: 500px;
}

.accordion-content p,
.faq-answer-body p {
    margin: 0 0 0.85rem;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-content p:last-child,
.faq-answer-body p:last-child {
    margin-bottom: 0;
}

.faq-answer-body p.doc-body-gap {
    margin: 0 0 0.85rem;
    padding: 0;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.filter-tab {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background-color: #f0f0f0;
}

.filter-tab.active {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* Still Have Questions Section */
.contact-section {
    padding: 60px 0;
    background-color: #fff;
    text-align: center;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-card h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-option {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.option-icon {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2rem;
}

.option-text {
    text-align: left;
}

.option-text h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.option-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: #b38a4b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Media Queries */
@media (min-width: 576px) {
    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-options {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .contact-option {
        flex: 1 0 calc(50% - 10px);
    }
}

@media (min-width: 768px) {
    .faq-hero h1 {
        font-size: 2.5rem;
    }
    
    .faq-hero p {
        font-size: 1.2rem;
    }
    
    .accordion-header h3 {
        font-size: 1.2rem;
    }
    
    .contact-card h2 {
        font-size: 2rem;
    }
}

@media (min-width: 992px) {
    .category-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .faq-hero {
        padding: 80px 0;
    }
    
    .faq-hero h1 {
        font-size: 3rem;
    }
    
    .mobile-nav-container {
        display: none;
    }
}

@media (min-width: 1200px) {
    .accordion-header {
        padding: 22px 25px;
    }
    
    .accordion-item.active .accordion-content {
        padding: 0 25px 25px;
    }
}

/* Mobile navigation fixes */
@media (max-width: 991px) {
    body {
        padding-bottom: 62px;
    }
}

.mobile-nav-container {
    height: 62px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}