/* FORZIMA FAQ Page Styles */

/* ===== FAQ HERO ===== */
.faq-hero {
    background: var(--light-gray);
    padding: 6rem 0 3rem 0;
    margin-top: 70px;
    text-align: center;
}

.faq-hero h1 {
    font-size: 3rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--charcoal);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== FAQ SEARCH ===== */
.faq-search {
    padding: 2rem 0;
    background: white;
}

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

.search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--light-gray);
    border-radius: 0.8rem;
    background: var(--light-gray);
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: white;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gold-gradient);
    border: none;
    border-radius: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.search-button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* ===== FAQ CATEGORIES ===== */
.faq-categories {
    padding: 3rem 0;
    background: var(--light-gray);
}

.faq-categories h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 2rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-gold);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.category-card p {
    color: var(--medium-gray);
    margin: 0;
    font-size: 0.95rem;
}

/* ===== FAQ CONTENT ===== */
.faq-content {
    padding: 4rem 0;
    background: white;
}

.faq-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--light-gray);
}

.faq-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-section h2 {
    color: var(--navy);
    margin-bottom: 2rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
    background: var(--light-gray);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    box-shadow: var(--shadow-light);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: rgba(201, 169, 97, 0.1);
}

.faq-question[aria-expanded="true"] {
    background: var(--primary-gold);
    color: white;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: var(--transition-fast);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--charcoal);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    color: var(--charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-answer strong {
    color: var(--navy);
}

/* ===== FAQ CONTACT ===== */
.faq-contact {
    padding: 4rem 0;
    background: var(--light-gray);
    text-align: center;
}

.faq-contact h2 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.faq-contact > p {
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-option {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition-smooth);
}

.contact-option:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.contact-option .contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-option h3 {
    color: var(--navy);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.contact-option p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.faq-cta {
    padding-top: 2rem;
    border-top: 1px solid var(--primary-silver);
}

.faq-cta p {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

/* ===== SEARCH FUNCTIONALITY ===== */
.faq-item.hidden {
    display: none;
}

.faq-section.no-results {
    opacity: 0.5;
}

.search-results-info {
    background: var(--primary-gold);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.search-highlight {
    background: rgba(201, 169, 97, 0.3);
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-weight: 600;
}

/* ===== SCROLL TO SECTION ===== */
.faq-section.highlight {
    animation: highlightSection 2s ease-in-out;
}

@keyframes highlightSection {
    0% { background: transparent; }
    50% { background: rgba(201, 169, 97, 0.1); }
    100% { background: transparent; }
}

/* ===== NO RESULTS MESSAGE ===== */
.no-results-message {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--light-gray);
    border-radius: 1rem;
    margin: 2rem 0;
    display: none;
}

.no-results-message.show {
    display: block;
}

.no-results-message h3 {
    color: var(--navy);
    margin-bottom: 1rem;
}

.no-results-message p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

/* ===== LOADING STATE ===== */
.faq-item.loading {
    position: relative;
}

.faq-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-gray);
    border-top: 2px solid var(--primary-gold);
    border-radius: 50%;
    animation: faqSpin 1s linear infinite;
}

@keyframes faqSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .faq-hero h1 {
        font-size: 2.5rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-question[aria-expanded="true"] + .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
    
    .search-input {
        padding: 0.875rem 3rem 0.875rem 1rem;
        font-size: 1rem;
    }
    
    .contact-option {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 4rem 0 2rem 0;
    }
    
    .faq-hero h1 {
        font-size: 2rem;
    }
    
    .faq-section h2 {
        font-size: 1.5rem;
    }
    
    .category-card,
    .contact-option {
        padding: 1.5rem;
    }
    
    .faq-question {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .faq-icon {
        align-self: flex-end;
        margin-top: -1.5rem;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .faq-search,
    .faq-categories,
    .faq-contact {
        display: none;
    }
    
    .faq-question {
        background: none !important;
        color: var(--navy) !important;
    }
    
    .faq-answer {
        max-height: none !important;
        padding: 0 0 1rem 0 !important;
        overflow: visible !important;
    }
    
    .faq-item {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }
}