/* style/contact.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Màu chữ mặc định cho nền sáng */
    line-height: 1.6;
}

.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Chỉ một khoảng cách nhỏ, body đã có padding-top */
    background-color: #f0f8ff; /* Nền sáng cho phần hero */
    text-align: center;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Căn giữa ảnh */
    margin-bottom: 30px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* Sử dụng clamp cho h1 */
    color: #26A9E0; /* Màu chính của thương hiệu */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__subtitle {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
    gap: 20px;
    justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__faq-btn,
.page-contact__method-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Cho phép chữ xuống dòng */
    word-wrap: break-word; /* Đảm bảo từ dài xuống dòng */
    text-align: center;
}

.page-contact__btn-primary {
    background-color: #26A9E0; /* Màu chính của thương hiệu */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f8ff;
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-contact__btn-large {
    min-width: 220px;
    font-size: 1.1rem;
}

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

.page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-contact__section-description {
    font-size: 1rem;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Phần Phương Thức Liên Hệ */
.page-contact__contact-methods {
    padding: 80px 0;
    background-color: #ffffff; /* Nền sáng */
}

.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-contact__method-card {
    background-color: #f0f8ff; /* Nền xanh nhạt cho thẻ */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-contact__method-icon {
    width: 200px; /* Yêu cầu tối thiểu 200px */
    height: 200px; /* Yêu cầu tối thiểu 200px */
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-contact__method-title {
    font-size: 1.5rem;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

.page-contact__method-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid #26A9E0;
    padding-bottom: 2px;
}

.page-contact__method-link:hover {
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.page-contact__social-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #26A9E0;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Phần Câu hỏi thường gặp */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Nền tối để tạo độ tương phản */
    color: #ffffff; /* Chữ trắng cho nền tối */
}

.page-contact__faq-section .page-contact__section-title {
    color: #ffffff; /* Tiêu đề trắng trên nền tối */
}

.page-contact__faq-section .page-contact__section-description {
    color: #f0f0f0; /* Chữ trắng nhạt hơn */
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Nền trắng bán trong suốt cho phần tối */
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    list-style: none; /* Cho thẻ <summary> */
    -webkit-tap-highlight-color: transparent; /* Loại bỏ hiệu ứng highlight khi chạm trên mobile */
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Ẩn dấu mặc định cho <summary> */
}

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

.page-contact__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Xoay + thành X */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #f0f0f0;
}

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

.page-contact__faq-btn {
    background-color: #EA7C07; /* Màu đăng nhập cho nút FAQ */
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 10px 20px;
    font-size: 0.95rem;
    margin-top: 10px;
}

.page-contact__faq-btn:hover {
    background-color: #c96806;
    border-color: #c96806;
}

/* Banner CTA */
.page-contact__cta-banner {
    padding: 80px 0;
    background-color: #26A9E0; /* Màu chính của thương hiệu */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-banner-content {
    max-width: 900px;
}

.page-contact__cta-banner .page-contact__section-title,
.page-contact__cta-banner .page-contact__section-description {
    color: #ffffff;
}

/* Điều chỉnh responsive */
@media (max-width: 1024px) {
    .page-contact__hero-section,
    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__cta-banner {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

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

    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-contact__subtitle {
        font-size: 1rem;
    }

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__faq-btn,
    .page-contact__method-link,
    .page-contact__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .page-contact__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-contact__section-description {
        font-size: 0.95rem;
    }

    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__cta-banner {
        padding: 50px 0;
    }

    .page-contact__container {
        padding: 0 15px;
    }

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

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-icon {
        /* Đảm bảo kích thước tối thiểu được tuân thủ ngay cả trên thiết bị di động */
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important; /* Điều này sẽ làm nó mở rộng đến 100% của phần tử cha, nhưng min-width vẫn áp dụng */
        height: auto !important;
    }

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

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

    /* Tất cả ảnh responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-image-wrapper,
    .page-contact__methods-grid,
    .page-contact__faq-list,
    .page-contact__cta-banner-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__video-section { /* Ngay cả khi không có video, giữ để nhất quán */
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-contact__section-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }
    .page-contact__faq-question {
        font-size: 0.95rem;
    }
}