/* CSS styles */
:root {
    --primary-red: #db3434;
    --primary-dark: #1a1a1a;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #2d3436;
    --text-muted: #636e72;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-image: url('assets/images/onfon-back-img.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

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

/* Header & Search */
.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.img img {
    width: 180px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

h1 {
    color: #fff;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#faqSearch {
    width: 100%;
    padding: 18px 25px;
    padding-right: 55px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    font-size: 1.1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#faqSearch:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.5;
}

/* Categories */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.cat-btn {
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 600;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.cat-btn.active {
    background: var(--primary-red);
    box-shadow: 0 5px 15px rgba(219, 52, 52, 0.4);
}

/* FAQ List */
.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.faq-question {
    padding: 22px 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question::after {
    content: '\002B';
    font-size: 1.5rem;
    transition: transform 0.4s ease;
    color: var(--primary-red);
}

.faq-item.active {
    background: #fff;
}

.faq-item.active .faq-question {
    color: var(--primary-red);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
}

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

/* No Results */
.no-results {
    text-align: center;
    color: #fff;
    padding: 40px;
    font-size: 1.2rem;
}

/* Footer Support */
.support-footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
}

.support-footer p {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.support-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.support-btn {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-btn {
    background: #2d3436;
    color: #fff;
}

.wa-btn {
    background: #25D366;
    color: #fff;
}

.email-btn {
    background: #0984e3;
    color: #fff;
}

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

@media (max-width: 600px) {
    h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 20px 15px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 18px 20px;
    }

    .cat-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}