﻿/* ============================================
   FAQ PAGE — LIGHT THEME
   ============================================ */

/* ============================================
   HERO
   ============================================ */

.faq-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #edf4ff 0%, #dfedfb 30%, #d2e8fc 60%, #c5e0fa 100%);
    overflow: hidden;
    margin-top: -76px;
    padding-top: 76px;
}

.faq-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 25% 40%, rgba(0, 160, 232, 0.07) 0%, transparent 60%), radial-gradient(ellipse at 75% 60%, rgba(0, 100, 170, 0.05) 0%, transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.faq-hero-shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.fq-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.fq-shape-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 160, 232, 0.07) 0%, transparent 70%);
    top: -60px;
    right: -40px;
    animation: fqFloat 9s ease-in-out infinite;
}

.fq-shape-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 130, 200, 0.05) 0%, transparent 70%);
    bottom: -40px;
    left: -30px;
    animation: fqFloat 11s ease-in-out infinite reverse;
}

.fq-shape-3 {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 160, 232, 0.04) 0%, transparent 70%);
    top: 50%;
    left: 60%;
    animation: fqFloat 13s ease-in-out infinite;
}

@keyframes fqFloat {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -15px);
    }
}

.faq-hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

.faq-hero-badge {
    display: inline-block;
    background: rgba(0, 160, 232, 0.1);
    border: 1px solid rgba(0, 160, 232, 0.22);
    color: rgb(0, 120, 190);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: fqFadeInDown 0.7s ease;
}

.faq-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a2b42;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
    animation: fqFadeInUp 0.7s ease 0.15s both;
}

.faq-hero-description {
    font-size: 1.1rem;
    color: #4a5e78;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fqFadeInUp 0.7s ease 0.3s both;
}

@keyframes fqFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fqFadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECTION STYLES
   ============================================ */

.faq-content-section {
    background: #ffffff;
    padding: 6rem 0;
}

.faq-badge {
    display: inline-block;
    background: rgba(0, 160, 232, 0.08);
    border: 1px solid rgba(0, 160, 232, 0.18);
    color: rgb(0, 120, 190);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.38rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-section-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1a2b42;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.faq-section-subtitle {
    font-size: 1.02rem;
    color: #5a6e84;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   SEARCH BAR
   ============================================ */

.faq-search-wrapper {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.faq-search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s ease;
}

.faq-search-input {
    width: 100%;
    padding: 0.95rem 3rem 0.95rem 3.25rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.98rem;
    color: #1a2b42;
    background: #f9fbfd;
    transition: all 0.25s ease;
    outline: none;
}

    .faq-search-input:focus {
        border-color: rgb(0, 160, 232);
        box-shadow: 0 0 0 4px rgba(0, 160, 232, 0.1);
        background: #ffffff;
    }

        .faq-search-input:focus ~ .faq-search-icon,
        .faq-search-input:not(:placeholder-shown) ~ .faq-search-icon {
            color: rgb(0, 160, 232);
        }

    .faq-search-input::placeholder {
        color: #a8b5c5;
    }

.faq-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .faq-search-clear:hover {
        color: #e53e3e;
        background: rgba(229, 62, 62, 0.08);
    }

/* ============================================
   CATEGORY FILTERS
   ============================================ */

.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.faq-category-btn {
    background: #f5f8fc;
    border: 1px solid #e2e8f0;
    color: #4a5e78;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.15rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

    .faq-category-btn:hover {
        background: rgba(0, 160, 232, 0.06);
        border-color: rgba(0, 160, 232, 0.25);
        color: rgb(0, 120, 190);
    }

    .faq-category-btn.active {
        background: linear-gradient(135deg, rgb(0, 160, 232), rgb(0, 130, 200));
        border-color: transparent;
        color: #ffffff;
        box-shadow: 0 3px 12px rgba(0, 160, 232, 0.25);
    }

/* ============================================
   FAQ ITEMS
   ============================================ */

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #f9fbfd;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: #dce4ec;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    }

    .faq-item.active {
        border-color: rgba(0, 160, 232, 0.25);
        box-shadow: 0 4px 20px rgba(0, 160, 232, 0.08);
    }

    .faq-item.hidden {
        display: none;
    }

/* Question Button */
.faq-question {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    padding: 1.15rem 1.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

    .faq-question:hover {
        background: rgba(0, 160, 232, 0.02);
    }

    .faq-question h5 {
        font-size: 0.98rem;
        font-weight: 600;
        color: #1a2b42;
        margin: 0;
        flex: 1;
        line-height: 1.5;
    }

.faq-item.active .faq-question h5 {
    color: rgb(0, 120, 190);
}

/* Question Icon */
.faq-q-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-q-icon {
    transform: scale(1.05);
}

.faq-q-icon-blue {
    background: rgba(0, 160, 232, 0.1);
    color: rgb(0, 160, 232);
}

.faq-q-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.faq-q-icon-orange {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.faq-q-icon-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
}

/* Chevron */
.faq-chevron {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    background: rgba(0, 160, 232, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.faq-item.active .faq-chevron {
    background: rgba(0, 160, 232, 0.12);
    color: rgb(0, 160, 232);
    transform: rotate(180deg);
}

/* Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.25rem 1.25rem;
}

.faq-answer p {
    font-size: 0.93rem;
    color: #5a6e84;
    line-height: 1.75;
    margin: 0;
    padding-left: calc(38px + 0.85rem);
}

/* No Results */
.faq-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
}

    .faq-no-results i {
        font-size: 2.5rem;
        color: #cbd5e0;
        margin-bottom: 1rem;
        display: block;
    }

    .faq-no-results h5 {
        font-weight: 700;
        color: #4a5e78;
        margin-bottom: 0.4rem;
    }

    .faq-no-results p {
        color: #8896a7;
        font-size: 0.92rem;
    }

/* ============================================
   CONTACT CTA
   ============================================ */

.faq-contact-cta {
    background: linear-gradient(160deg, #f0f7ff 0%, #e5f0fc 50%, #daeafa 100%);
    border: 1px solid rgba(0, 160, 232, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

    .faq-contact-cta::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -15%;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(0, 160, 232, 0.05) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.faq-contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0, 160, 232, 0.1);
    color: rgb(0, 160, 232);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.25rem;
}

.faq-contact-cta h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a2b42;
    margin-bottom: 0.6rem;
}

.faq-contact-cta p {
    font-size: 0.98rem;
    color: #5a6e84;
    max-width: 420px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.btn-faq-contact {
    background: linear-gradient(135deg, rgb(0, 160, 232), rgb(0, 130, 200));
    color: #ffffff;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 160, 232, 0.28);
}

    .btn-faq-contact:hover {
        background: linear-gradient(135deg, rgb(0, 130, 200), rgb(0, 100, 170));
        color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 8px 26px rgba(0, 160, 232, 0.38);
    }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991.98px) {
    .faq-hero {
        margin-top: -62px;
        padding-top: 62px;
        min-height: 45vh;
    }

    .faq-hero-title {
        font-size: 2.3rem;
    }

    .faq-content-section {
        padding: 4rem 0;
    }

    .faq-section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767.98px) {
    .faq-hero-title {
        font-size: 1.85rem;
    }

    .faq-hero-description {
        font-size: 0.98rem;
        padding: 0 0.5rem;
    }

    .faq-hero-content {
        padding: 2rem 0;
    }

    .faq-section-title {
        font-size: 1.55rem;
    }

    .faq-categories {
        gap: 0.4rem;
    }

    .faq-category-btn {
        font-size: 0.8rem;
        padding: 0.42rem 0.9rem;
    }

    .faq-question {
        padding: 1rem;
        gap: 0.7rem;
    }

        .faq-question h5 {
            font-size: 0.9rem;
        }

    .faq-answer p {
        padding-left: 0;
        font-size: 0.88rem;
    }

    .faq-q-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 0.9rem;
    }

    .faq-contact-cta {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .faq-hero-title {
        font-size: 1.55rem;
    }

    .faq-hero-badge {
        font-size: 0.75rem;
        padding: 0.35rem 1rem;
    }

    .faq-category-btn i {
        display: none;
    }

    .faq-chevron {
        width: 26px;
        height: 26px;
        min-width: 26px;
        font-size: 0.7rem;
    }
}
