﻿/* ========================================
   FAQ Page - Modern Elegant Design
   ======================================== */

.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 4rem;
}

/* ============ Page Header ============ */
.faq-header {
    background: linear-gradient(135deg, var(--cream-100) 0%, var(--cream-200) 100%);
    border-radius: 24px;
    padding: 3.5rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .faq-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.2) 0%, transparent 70%);
        border-radius: 50%;
    }

    .faq-header::after {
        content: '';
        position: absolute;
        bottom: -40%;
        left: -10%;
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(125, 95, 62, 0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

.faq-header-content {
    position: relative;
    z-index: 1;
}

.faq-header-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--brown-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 10px 30px rgba(201, 169, 122, 0.35);
}

    .faq-header-icon i {
        font-size: 2.2rem;
        color: #fff;
    }

.faq-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--brown-600);
    margin-bottom: 0.75rem;
}

.faq-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.9;
}

/* ============ Search ============ */
.faq-search {
    max-width: 550px;
    margin: 2rem auto 0;
    position: relative;
}

    .faq-search input {
        width: 100%;
        padding: 1rem 3.5rem 1rem 1.25rem;
        border: 1.5px solid var(--cream-300);
        border-radius: 16px;
        font-size: 0.95rem;
        background: #fff;
        color: var(--text-dark);
        transition: all 0.3s ease;
        text-align: right;
    }

        .faq-search input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 4px rgba(201, 169, 122, 0.15);
            outline: none;
        }

    .faq-search .search-icon {
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--brown-400);
        font-size: 1.15rem;
        pointer-events: none;
    }

/* ============ Categories Tabs ============ */
.faq-tabs {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.faq-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: #fff;
    border: 1.5px solid var(--cream-300);
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .faq-tab i {
        color: var(--brown-400);
        font-size: 1.05rem;
        transition: all 0.25s ease;
    }

    .faq-tab:hover {
        border-color: var(--brown-200);
        background: var(--cream-50);
        transform: translateY(-2px);
    }

    .faq-tab.active {
        background: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-600) 100%);
        color: #fff;
        border-color: var(--brown-500);
        box-shadow: 0 6px 16px rgba(125, 95, 62, 0.25);
    }

        .faq-tab.active i {
            color: #fff;
        }

/* ============ FAQ Section ============ */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brown-600);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cream-200);
}

    .faq-section-title i {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--cream-100) 0%, var(--brown-100) 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brown-500);
        font-size: 1.15rem;
    }

/* ============ Accordion ============ */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: var(--brown-100);
        box-shadow: 0 4px 16px rgba(125, 95, 62, 0.06);
    }

    .faq-item.open {
        border-color: var(--brown-200);
        box-shadow: 0 6px 24px rgba(125, 95, 62, 0.1);
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

    .faq-question:hover {
        background: var(--cream-50);
    }

.faq-question-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.6;
    flex: 1;
}

    .faq-question-text .q-badge {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        background: var(--cream-100);
        color: var(--brown-500);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        font-weight: 700;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

.faq-item.open .faq-question-text .q-badge {
    background: linear-gradient(135deg, var(--accent) 0%, var(--brown-400) 100%);
    color: #fff;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brown-500);
    font-size: 0.85rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-toggle {
    background: var(--brown-500);
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 2;
    border-top: 1px solid var(--cream-100);
    padding-top: 1.25rem;
    margin-top: 0;
}

    .faq-answer-content p {
        margin-bottom: 0.75rem;
    }

        .faq-answer-content p:last-child {
            margin-bottom: 0;
        }

    .faq-answer-content ul {
        padding-right: 1.5rem;
        margin: 0.75rem 0;
    }

    .faq-answer-content li {
        margin-bottom: 0.5rem;
    }

    .faq-answer-content strong {
        color: var(--brown-600);
    }

/* ============ No Results ============ */
.faq-no-results {
    text-align: center;
    padding: 3rem 1rem;
    background: #fff;
    border: 1px solid var(--cream-200);
    border-radius: 20px;
}

    .faq-no-results i {
        font-size: 3rem;
        color: var(--cream-300);
        margin-bottom: 1rem;
        display: block;
    }

    .faq-no-results h3 {
        font-size: 1.15rem;
        color: var(--brown-600);
        margin-bottom: 0.5rem;
    }

    .faq-no-results p {
        color: var(--text-muted);
        font-size: 0.92rem;
        margin: 0;
    }

/* ============ Contact CTA ============ */
.faq-cta {
    background: linear-gradient(135deg, var(--brown-500) 0%, var(--brown-700) 100%);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
}

    .faq-cta::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(201, 169, 122, 0.25) 0%, transparent 70%);
        border-radius: 50%;
    }

    .faq-cta::after {
        content: '';
        position: absolute;
        bottom: -150px;
        left: -100px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
        border-radius: 50%;
    }

.faq-cta-content {
    position: relative;
    z-index: 1;
}

.faq-cta-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

    .faq-cta-icon i {
        font-size: 1.8rem;
        color: #fff;
    }

.faq-cta h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.faq-cta p {
    font-size: 0.95rem;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 1.75rem;
}

.faq-cta-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.faq-cta .btn-white {
    padding: 0.85rem 1.75rem;
    background: #fff;
    color: var(--brown-600);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .faq-cta .btn-white:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        color: var(--brown-600);
    }

.faq-cta .btn-outline-white {
    padding: 0.85rem 1.75rem;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

    .faq-cta .btn-outline-white:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #fff;
        color: #fff;
        transform: translateY(-3px);
    }

/* ============ Highlight for Search ============ */
.faq-item.highlight {
    background: #fef8ee;
    border-color: var(--accent);
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .faq-header {
        padding: 2.5rem 1.25rem;
        border-radius: 18px;
    }

        .faq-header h1 {
            font-size: 1.5rem;
        }

        .faq-header p {
            font-size: 0.92rem;
        }

    .faq-header-icon {
        width: 65px;
        height: 65px;
    }

        .faq-header-icon i {
            font-size: 1.75rem;
        }

    .faq-tabs {
        gap: 0.4rem;
    }

    .faq-tab {
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .faq-question {
        padding: 1rem 1.1rem;
    }

    .faq-question-text {
        font-size: 0.92rem;
    }

    .faq-answer-content {
        padding: 1rem 1.1rem 1.25rem 1.1rem;
        font-size: 0.88rem;
    }

    .faq-cta {
        padding: 2.25rem 1.25rem;
        border-radius: 18px;
    }

        .faq-cta h2 {
            font-size: 1.3rem;
        }

    .faq-cta-actions {
        flex-direction: column;
    }

    .faq-cta .btn-white,
    .faq-cta .btn-outline-white {
        justify-content: center;
        width: 100%;
    }

    .faq-section-title {
        font-size: 1.05rem;
    }
}
