﻿/* =========================================
   CSS RIÊNG CHO TRANG HỖ TRỢ (SUPPORT)
   ========================================= */

/* --- 1. Hero Section (Thanh tìm kiếm to) --- */
.support-hero {
    padding: 60px 0;
    background: linear-gradient(90deg, rgba(6, 6, 23, 0.8), rgba(18, 18, 18, 0.8)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&q=80&w=1920');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
}

    .support-hero h1 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }

.support-search-bar {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

    .support-search-bar input {
        flex: 1;
        padding: 15px 20px;
        border-radius: 50px;
        border: 1px solid #444;
        background: rgba(15, 17, 19, 0.9);
        color: white;
        font-size: 1rem;
        outline: none;
        transition: 0.3s;
    }

        .support-search-bar input:focus {
            border-color: #6c5ce7; /* Primary color */
            box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
        }

    .support-search-bar button {
        padding: 0 25px;
        border-radius: 50px;
        background: #6c5ce7;
        border: none;
        color: white;
        cursor: pointer;
        font-size: 1.2rem;
        transition: 0.3s;
    }

        .support-search-bar button:hover {
            background: white;
            color: #6c5ce7;
        }

/* --- 2. Layout Chính --- */
.support-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 50px; /* margin-bottom để không dính footer */
    padding: 0 20px;
    align-items: flex-start;
}

.support-main {
    flex: 2; /* Chiếm 2 phần */
}

.support-sidebar {
    flex: 1; /* Chiếm 1 phần */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- 3. FAQ List (Câu hỏi thường gặp) --- */
.support-main h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
    border-left: 4px solid #00cec9; /* Secondary color */
    padding-left: 15px;
}

.faq-item {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #333;
    transition: 0.3s;
}

    .faq-item:hover {
        border-color: #6c5ce7;
    }

    .faq-item summary {
        font-weight: bold;
        cursor: pointer;
        color: #00cec9;
        list-style: none; /* Ẩn mũi tên mặc định */
        font-size: 1.1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        /* Tạo mũi tên custom cho đẹp */
        .faq-item summary::after {
            content: '+';
            font-weight: bold;
            color: #fff;
            font-size: 1.5rem;
        }

    .faq-item[open] summary::after {
        content: '-';
    }

    .faq-item p, .faq-item ul {
        margin-top: 15px;
        color: #b3b3b3;
        line-height: 1.6;
        padding-top: 15px;
        border-top: 1px solid #333;
    }

    .faq-item ul {
        padding-left: 20px;
        list-style: disc;
    }

/* --- 4. Sidebar: Contact Box & Form --- */
.contact-box,
.contact-form-box {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
}

    .contact-box h3, .contact-form-box h3 {
        margin-bottom: 20px;
        color: #fff;
        border-bottom: 1px solid #333;
        padding-bottom: 10px;
    }

.contact-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e0e0e0;
}

.contact-list i {
    color: #6c5ce7;
    width: 25px;
    font-size: 1.2rem;
    text-align: center;
}

/* Form Styles */
.support-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .support-form label {
        color: #b3b3b3;
        font-size: 0.9rem;
        font-weight: 600;
    }

    .support-form input,
    .support-form textarea {
        padding: 12px;
        border-radius: 6px;
        border: 1px solid #333;
        background: #121212;
        color: white;
        font-family: inherit;
        width: 100%;
        resize: vertical;
    }

        .support-form input:focus,
        .support-form textarea:focus {
            border-color: #00cec9;
            outline: none;
        }

.btn-main {
    width: 100%;
    padding: 12px;
    background: #6c5ce7;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    margin-top: 10px;
}

    .btn-main:hover {
        background: white;
        color: #6c5ce7;
    }

/* --- Responsive --- */
@media (max-width: 900px) {
    .support-container {
        flex-direction: column;
    }

    .support-sidebar {
        width: 100%;
        order: -1; /* Đưa thông tin liên hệ lên trên mobile cho dễ thấy */
    }
}
