/* CSS cho trang Liên hệ (contact.css) */

/* Các biến màu sắc */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-button-color: #C30808;
    --login-button-color: #C30808;
    --text-on-dark-bg: #FFFFFF;
    --text-on-light-bg: #333333;
    --form-input-border: #e0e0e0;
    --button-text-yellow: #FFFF00;
}

.page-contact {
    font-family: 'Arial', sans-serif;
    color: var(--text-on-light-bg); /* Mặc định cho nền sáng của body */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-contact__dark-section {
    background-color: var(--primary-color);
    color: var(--text-on-dark-bg);
    padding: 60px 0;
}

.page-contact__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light-bg);
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Kế thừa màu từ section cha */
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: inherit;
}

/* HERO Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Chỉ 10px để tránh trùng với body padding-top */
    padding-bottom: 60px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2; /* Làm mờ ảnh nền để chữ dễ đọc */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Nền tối nhẹ để chữ trắng nổi bật */
    border-radius: 10px;
}

.page-contact__main-title {
    font-weight: bold;
    color: var(--text-on-dark-bg);
    line-height: 1.2;
    margin-bottom: 20px;
    max-width: 100%;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: var(--text-on-dark-bg);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: normal; /* Cho phép chữ xuống dòng */
    word-wrap: break-word; /* Ngắt từ */
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.page-contact__btn-primary {
    background-color: var(--register-button-color); /* Màu đỏ cho Đăng Ký */
    color: var(--button-text-yellow); /* Màu vàng cho chữ */
    border: 2px solid var(--register-button-color);
}

.page-contact__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-contact__btn-secondary {
    background-color: var(--login-button-color); /* Màu đỏ cho Đăng Nhập */
    color: var(--button-text-yellow); /* Màu vàng cho chữ */
    border: 2px solid var(--login-button-color);
}

.page-contact__btn-secondary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.page-contact__form-image {
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-contact__contact-form {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    box-sizing: border-box;
}

.page-contact__form-group {
    margin-bottom: 20px;
}

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-on-light-bg);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--form-input-border);
    border-radius: 6px;
    font-size: 1em;
    color: var(--text-on-light-bg);
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    cursor: pointer;
    border: none;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto 40px auto;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: var(--text-on-light-bg);
}

.page-contact__faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.page-contact__faq-item:last-child {
    border-bottom: none;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Ẩn marker mặc định của summary */
    color: var(--primary-color);
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Ẩn marker trên Webkit */
}

.page-contact__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    color: var(--text-on-light-bg);
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

.page-contact__faq-image {
    display: block;
    margin: 0 auto;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
}

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
}

.page-contact__contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__channel-item {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-on-light-bg);
}

.page-contact__channel-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-contact__channel-item p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-contact__social-icon img {
    
    
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.page-contact__social-icon img:hover {
    transform: scale(1.1);
}

/* About Section */
.page-contact__about-section {
    padding: 80px 0;
}

.page-contact__about-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-contact__about-image {
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-contact__about-text {
    flex: 1;
    text-align: left;
}

.page-contact__about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-on-dark-bg);
}

/* Footer CTA */
.page-contact__footer-cta {
    padding: 60px 0;
    text-align: center;
}

/* Global image settings for content area */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 20px 30px;
    }

    .page-contact__main-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1.1em;
    }

    .page-contact__form-image {
        max-width: 40%;
    }

    .page-contact__contact-form {
        max-width: 450px;
    }

    .page-contact__about-image {
        max-width: 45%;
    }

    .page-contact__channel-item {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-contact__hero-content {
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: 1.8em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-contact__section-title {
        font-size: 2em;
    }

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-contact__form-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        padding: 20px;
    }

    .page-contact__faq-list {
        margin-bottom: 30px;
    }

    .page-contact__faq-question {
        padding: 15px;
        font-size: 1em;
    }

    .page-contact__faq-answer {
        padding: 0 15px 15px 15px;
    }

    .page-contact__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 30px;
    }

    .page-contact__contact-channels {
        grid-template-columns: 1fr;
    }

    .page-contact__social-icon img {
        
        
    }

    .page-contact__about-content {
        flex-direction: column;
    }

    .page-contact__about-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__about-text {
        text-align: center;
    }

    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Placeholder for home-content, games, banners, blog as per checklist */
    .page-contact__home-content { /* Not applicable to contact page, but included for checklist */ }
    .page-contact__row-games { /* Not applicable to contact page, but included for checklist */ }
    .page-contact__slider-track { /* Not applicable to contact page, but included for checklist */ }
    .page-contact__banners-top-wrapper { /* Not applicable to contact page, but included for checklist */ }
    .page-contact__blog-masonry { /* Not applicable to contact page, but included for checklist */ }
    .page-contact__blog-slider-track { /* Not applicable to contact page, but included for checklist */ }
}