/* ==============================================
   PAGE F.A.Q - PARACHEZVOUS
   ============================================== */

/* --- Hero Banner --- */
.faq_hero {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.faq_hero_overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(173, 255, 47, 0.08) 0%, transparent 50%);
}

.faq_hero_content {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 0 20px;
}

.faq_hero_content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.faq_hero_content p {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 520px;
    margin: 0 auto;
}

/* --- Main Container --- */
.faq_main {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq_container {
    padding: 40px 0 60px;
}

/* --- Intro --- */
.faq_intro {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 36px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.faq_intro a {
    color: #4caf50;
    font-weight: 600;
    text-decoration: none;
}

.faq_intro a:hover {
    text-decoration: underline;
}

/* --- Search --- */
.faq_search_wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 0 18px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq_search_wrap:focus-within {
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.faq_search_wrap .fa-search {
    color: #999;
    font-size: 18px;
    flex-shrink: 0;
}

.faq_search_input {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 12px;
    font-size: 15px;
    color: #333;
    background: transparent;
    font-family: inherit;
}

.faq_search_input::placeholder {
    color: #aaa;
}

.faq_search_clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #e0e0e0;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    line-height: 1;
    transition: background 0.2s;
}

.faq_search_clear:hover {
    background: #ccc;
    color: #333;
}

/* --- Category Tabs --- */
.faq_categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 36px;
}

.faq_cat_btn {
    padding: 10px 22px;
    border-radius: 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.faq_cat_btn:hover {
    border-color: #4caf50;
    color: #4caf50;
    background: #f6fdf6;
}

.faq_cat_btn.active {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

/* --- FAQ Items --- */
.faq_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq_item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.25s ease;
}

.faq_item.faq_revealed {
    opacity: 1;
    transform: translateY(0);
}

.faq_item:hover {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.faq_item.faq_open {
    border-color: #c8e6c9;
    box-shadow: 0 2px 20px rgba(76, 175, 80, 0.1);
}

/* --- Question Button --- */
.faq_question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: #1a1a2e;
    font-size: 16px;
    font-weight: 600;
    gap: 16px;
    transition: color 0.2s;
}

.faq_question:hover {
    color: #4caf50;
}

.faq_item.faq_open .faq_question {
    color: #4caf50;
    border-bottom: 1px solid #f0f0f0;
}

.faq_icon {
    flex-shrink: 0;
    font-size: 14px;
    color: #999;
    transition: transform 0.35s ease, color 0.25s;
}

.faq_item.faq_open .faq_icon {
    transform: rotate(180deg);
    color: #4caf50;
}

/* --- Answer --- */
.faq_answer_wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq_item.faq_open .faq_answer_wrap {
    grid-template-rows: 1fr;
}

.faq_answer {
    overflow: hidden;
    padding: 0 24px;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.faq_item.faq_open .faq_answer {
    padding: 20px 24px 24px;
}

.faq_answer p {
    margin-bottom: 12px;
}

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

.faq_answer ul {
    margin: 8px 0 12px 22px;
    line-height: 2;
}

.faq_answer a {
    color: #4caf50;
    font-weight: 500;
    text-decoration: none;
}

.faq_answer a:hover {
    text-decoration: underline;
}

/* --- Delivery Cards --- */
.faq_delivery_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.faq_delivery_card {
    background: #f9fafb;
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq_delivery_card strong {
    font-size: 17px;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.faq_delivery_card span {
    font-size: 14px;
    color: #666;
}

.faq_free {
    color: #4caf50 !important;
    font-weight: 600;
}

/* --- No Results --- */
.faq_no_results {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.faq_no_results .fa-search {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.faq_no_results p {
    font-size: 15px;
    margin: 4px 0;
}

.faq_no_results span {
    font-weight: 600;
    color: #666;
}

/* --- Back to Top --- */
.faq_back_to_top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #4caf50;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 14px rgba(76, 175, 80, 0.35);
}

.faq_back_to_top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.faq_back_to_top:hover {
    background: #388e3c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.45);
}

/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 768px) {
    .faq_hero {
        height: 190px;
    }

    .faq_hero_content h1 {
        font-size: 30px;
    }

    .faq_hero_content p {
        font-size: 14px;
    }

    .faq_intro {
        font-size: 14px;
    }

    .faq_question {
        font-size: 15px;
        padding: 16px 18px;
    }

    .faq_answer {
        font-size: 14px;
        padding: 0 18px;
    }

    .faq_item.faq_open .faq_answer {
        padding: 16px 18px 20px;
    }

    .faq_categories {
        gap: 6px;
    }

    .faq_cat_btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .faq_delivery_cards {
        grid-template-columns: 1fr;
    }

    .faq_back_to_top {
        bottom: 20px;
        right: 16px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .faq_search_wrap {
        margin-bottom: 24px;
    }

    .faq_search_input {
        padding: 13px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .faq_hero {
        height: 150px;
    }

    .faq_hero_content h1 {
        font-size: 24px;
    }

    .faq_hero_content p {
        font-size: 13px;
    }

    .faq_main {
        padding: 0 12px;
    }

    .faq_container {
        padding: 24px 0 40px;
    }

    .faq_question {
        font-size: 14px;
        padding: 14px 14px;
    }

    .faq_item.faq_open .faq_answer {
        padding: 14px 14px 18px;
    }

    .faq_item {
        border-radius: 8px;
    }

    .faq_categories {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 4px;
    }

    .faq_cat_btn {
        flex-shrink: 0;
        font-size: 12px;
        padding: 7px 14px;
    }
}
