/* ========================================================================
   FAQ PAGE STYLES
   ======================================================================== */

/* ========================================================================
   HERO SECTION
   ======================================================================== */

.faq-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    margin-bottom: 60px;
}

.faq-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
}

.faq-hero-content p {
    font-size: 1.3rem;
    opacity: 0.95;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: white;
}

/* ========================================================================
   FAQ CONTAINER & LAYOUT
   ======================================================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================================
   SEARCH SECTION
   ======================================================================== */

.faq-search-section {
    text-align: center;
    margin-bottom: 50px;
}

.search-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto 15px;
}

.faq-search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: white;
}

.faq-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.search-hint {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ========================================================================
   CATEGORIES / TABS SECTION
   ======================================================================== */

.faq-categories-section {
    margin-bottom: 50px;
    border-bottom: 2px solid #e0e0e0;
}

.categories-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    color: #667eea;
}

.category-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* ========================================================================
   FAQ ITEMS CONTAINER
   ======================================================================== */

.faq-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 60px;
    min-height: 200px;
}

.faq-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.faq-item.active {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

/* ========================================================================
   FAQ QUESTION / ACCORDION HEADER
   ======================================================================== */

.faq-question {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: #f0f1f5;
}

.faq-item.active .faq-question {
    background: white;
}

.question-content {
    flex: 1;
    text-align: left;
}

.question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.5;
}

.question-category {
    display: inline-block;
    font-size: 0.8rem;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: 8px;
    font-weight: 500;
}

.faq-toggle-icon {
    color: #667eea;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    margin-left: 20px;
    flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* ========================================================================
   FAQ ANSWER / ACCORDION BODY
   ======================================================================== */

.faq-answer {
    padding: 0 20px;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-top: 1px solid #e0e0e0;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.answer-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

.answer-text strong {
    color: #1a1a1a;
}

.answer-text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.answer-text a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ========================================================================
   LOADING & NO RESULTS
   ======================================================================== */

.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner i {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.loading-spinner p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

.no-results-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.no-results-message i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
    display: block;
}

.no-results-message h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.no-results-message p {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.no-results-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.no-results-message a:hover {
    color: #764ba2;
}

/* ========================================================================
   HELP CTA SECTION
   ======================================================================== */

.faq-help-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 60px;
}

.help-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.help-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 30px;
    color: white;
}

.help-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* ========================================================================
   ANIMATIONS
   ======================================================================== */

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

.faq-item {
    animation: fadeInUp 0.5s ease forwards;
}

.faq-item:nth-child(2) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(4) {
    animation-delay: 0.3s;
}

.faq-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* ========================================================================
   RESPONSIVE DESIGN - TABLET (768px)
   ======================================================================== */

@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 20px;
        margin-bottom: 40px;
    }

    .faq-hero-content h1 {
        font-size: 2.5rem;
    }

    .faq-hero-content p {
        font-size: 1.1rem;
    }

    .categories-wrapper {
        gap: 8px;
    }

    .category-tab {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .faq-question {
        padding: 15px;
    }

    .question-text {
        font-size: 1rem;
    }

    .faq-toggle-icon {
        font-size: 1rem;
        margin-left: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 15px;
    }

    .help-content h2 {
        font-size: 1.8rem;
    }

    .help-content p {
        font-size: 1rem;
    }

    .help-buttons {
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* ========================================================================
   RESPONSIVE DESIGN - MOBILE (480px)
   ======================================================================== */

@media (max-width: 480px) {
    .faq-container {
        padding: 0 15px;
    }

    .faq-hero {
        padding: 40px 15px;
        margin-bottom: 30px;
    }

    .faq-hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .faq-hero-content p {
        font-size: 1rem;
    }

    .faq-search-section {
        margin-bottom: 30px;
    }

    .faq-search-input {
        padding: 12px 15px 12px 40px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .search-icon {
        left: 10px;
        font-size: 0.9rem;
    }

    .search-hint {
        font-size: 0.85rem;
    }

    .faq-categories-section {
        margin-bottom: 30px;
    }

    .categories-wrapper {
        gap: 5px;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
    }

    .category-tab {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .faq-question {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .question-content {
        width: 100%;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .question-category {
        font-size: 0.75rem;
        padding: 3px 8px;
        margin-top: 5px;
    }

    .faq-toggle-icon {
        position: absolute;
        right: 15px;
        top: 15px;
        margin-left: 0;
    }

    .faq-item.active .faq-answer {
        padding: 12px 15px;
        max-height: 1000px;
    }

    .answer-text {
        font-size: 0.9rem;
    }

    .loading-spinner {
        padding: 40px 15px;
    }

    .loading-spinner i {
        font-size: 2.5rem;
    }

    .loading-spinner p {
        font-size: 1rem;
    }

    .no-results-message {
        padding: 40px 15px;
    }

    .no-results-message i {
        font-size: 2.5rem;
    }

    .no-results-message h3 {
        font-size: 1.3rem;
    }

    .no-results-message p {
        font-size: 0.95rem;
    }

    .faq-help-section {
        padding: 40px 15px;
        margin-bottom: 40px;
    }

    .help-content h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .help-content p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .help-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}
