.faq-page-wrapper {
    background-color: #f6f7f8;
    padding: 50px 0 20px;
}

/* SEARCH SECTION */
.faq-search-box {
    text-align: center;
    margin-bottom: 40px;
}

.faq-search-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e51d27;
    margin-bottom: 15px;
}

.faq-search-form {
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
}

.input-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 30px;
    padding: 5px 6px 5px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.input-search-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.85rem;
    color: #333333;
    font-family: inherit;
    background: transparent;
    padding-right: 40px; /* Memberi ruang untuk icon pencarian */
}

.input-search-wrapper input::placeholder {
    color: #b0b0b0;
    font-size: 0.8rem;
}

.search-icon-inside {
    position: absolute;
    right: 20px;
    color: #888888;
    font-size: 0.85rem;
    pointer-events: none;
}

.btn-submit-search {
    background-color: #a51c1c;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.25s ease;
    flex-shrink: 0;
}

.btn-submit-search:hover {
    background-color: #801212;
}

/* FAQ CATEGORIES */
.faq-category-block {
    margin-bottom: 40px;
}

.category-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e51d27;
    margin-bottom: 18px;
    margin-top: 30px;
}

/* ACCORDION GROUP */
.faq-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #ededed;
    transition: border-color 0.25s ease;
}

/* Header Akordeon */
.faq-header {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    cursor: pointer;
    background-color: #ffffff;
    transition: background-color 0.25s ease;
    user-select: none;
}

.faq-num {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4a4a4a;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-right: 20px;
    flex-shrink: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.faq-question {
    font-size: 0.88rem;
    font-weight: 700;
    color: #333333;
    flex: 1;
    margin: 0;
    line-height: 1.4;
}

.faq-icon-btn {
    font-size: 0.85rem;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

/* Body Jawaban FAQ Accordion */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
    background-color: #f2f2f2;
    padding: 0 20px 0 72px;
}

.faq-body p {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
    margin: 0;
}

/* Status Item Aktif/Terbuka saat diklik */
.faq-item.active .faq-header {
    background-color: #f2f2f2;
}

.faq-item.active .faq-num {
    background-color: #333333;
    color: #ffffff;
}

.faq-item.active .faq-icon-btn {
    color: #e51d27;
}

.faq-item.active .faq-body {
    max-height: 500px;
    padding: 12px 20px 22px 72px;
}

/* PESAN TIDAK DITEMUKAN */
.faq-no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: transparant;
    border-radius: 6px;
    border: none;
    margin-top: 20px;
}

.faq-no-results i {
    font-size: 2.5rem;
    color: #e51d27;
    margin-bottom: 12px;
}

.faq-no-results p {
    font-size: 0.95rem;
    color: #e51d27;
    font-weight: 600;
    margin: 0;
}

/* ========================================= RESPONSIVE TABLET & MOBILE ========================================= */
@media (max-width: 768px) {
    .faq-page-wrapper {
        padding: 30px 0 10px;
    }

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

    /* Penyesuaian Input Search di HP */
    .input-search-wrapper {
        padding: 4px 4px 4px 15px;
    }

    .input-search-wrapper input {
        font-size: 0.8rem;
        padding-right: 10px;
    }

    .btn-submit-search {
        padding: 8px 14px;
        font-size: 0.75rem;
        border-radius: 18px;
    }

    /* Penyesuaian Accordion di HP */
    .category-title {
        font-size: 1rem;
        margin-top: 25px;
        margin-bottom: 12px;
    }

    .faq-header {
        padding: 12px 15px;
    }

    .faq-num {
        margin-right: 12px;
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .faq-question {
        font-size: 0.825rem;
    }

    .faq-body {
        padding-left: 15px;
        padding-right: 15px;
    }

    .faq-item.active .faq-body {
        padding: 10px 15px 18px 15px; /* Mengurangi offset kiri agar teks jawaban muat maksimal di HP */
    }

    .faq-body p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .btn-submit-search {
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}