/* style/contact.css */
/* 
 * Màu sắc chủ đạo: #0056b3 (Dark Blue)
 * Màu phụ trợ: #ffc107 (Bright Gold/Orange)
 * Nền body là màu tối (#000000), do đó màu chữ mặc định sẽ là màu sáng.
 */

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Màu chữ mặc định cho nền tối của body */
    background-color: transparent; /* Body đã có nền #000000 */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Đảm bảo không bị che bởi header */
    overflow: hidden;
    background-color: #000000; /* Nền tối cho phần hero */
    position: relative;
}

.page-contact__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: 48px;
    color: #ffc107; /* Màu phụ trợ cho tiêu đề chính */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background: #0056b3; /* Màu chủ đạo */
    color: #ffffff;
    border-color: #0056b3;
}

.page-contact__btn-primary:hover {
    background: #004085;
    border-color: #004085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-secondary {
    background: #ffc107; /* Màu phụ trợ */
    color: #000000; /* Chữ đen trên nền vàng */
    border-color: #ffc107;
}

.page-contact__btn-secondary:hover {
    background: #e0a800;
    border-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* General Sections */
.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffc107; /* Màu phụ trợ cho tiêu đề phần */
    text-align: center;
    margin-bottom: 40px;
}

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

.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-summary-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Nền tối hơn cho các phần nội dung */
    color: #f0f0f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__info-item {
    background: rgba(255, 255, 255, 0.08); /* Nền hơi sáng hơn cho các item */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-contact__info-item:hover {
    transform: translateY(-5px);
}

.page-contact__info-heading {
    font-size: 24px;
    color: #0056b3; /* Màu chủ đạo cho tiêu đề phụ */
    margin-bottom: 15px;
}

.page-contact__info-text,
.page-contact__info-address,
.page-contact__info-note {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 10px;
}

.page-contact__info-link {
    color: #ffc107; /* Màu phụ trợ cho liên kết */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__info-link:hover {
    color: #e0a800;
    text-decoration: underline;
}

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

.page-contact__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0056b3;
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__social-link:hover {
    background: #ffc107;
    color: #000000;
    transform: translateY(-3px);
}

/* Contact Form */
.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffc107; /* Màu phụ trợ cho label */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.3);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit-btn {
    width: auto;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
    background: #0056b3;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-contact__form-submit-btn:hover {
    background: #004085;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* FAQ Section - Reusing provided styles */
.page-contact__faq-summary-section {
    background-color: #000000; /* Nền đen cho phần FAQ */
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
}

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 10px; /* Tăng độ bo tròn */
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05); /* Nền hơi trong suốt */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px; /* Tăng padding */
    background: #0056b3; /* Màu chủ đạo cho câu hỏi */
    border: 1px solid #004085; /* Viền đậm hơn */
    border-radius: 10px; /* Bo tròn theo item */
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #ffffff;
}

.page-contact__faq-question:hover {
    background: #004085;
    border-color: #003060;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Tăng kích thước chữ */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #ffffff;
}

.page-contact__faq-toggle {
    font-size: 28px; /* Tăng kích thước biểu tượng */
    font-weight: bold;
    line-height: 1;
    color: #ffc107; /* Màu phụ trợ cho biểu tượng */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px; /* Tăng khoảng cách */
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Tăng kích thước */
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #ffffff;
    transform: rotate(45deg); /* Thay đổi biểu tượng thành X */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px; /* Tăng padding */
    opacity: 0;
    background: rgba(0, 0, 0, 0.7); /* Nền tối cho câu trả lời */
    color: #cccccc;
    border-radius: 0 0 10px 10px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; 
    padding: 20px 25px !important; /* Tăng padding */
    opacity: 1;
}

.page-contact__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #cccccc;
}

.page-contact__faq-answer a {
    color: #ffc107;
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: #e0a800;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 42px;
    }
    .page-contact__description {
        font-size: 17px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__info-heading {
        font-size: 22px;
    }
    .page-contact__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__main-title {
        font-size: 32px;
    }
    .page-contact__description {
        font-size: 15px;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Giới hạn chiều rộng nút */
        margin: 0 auto;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        width: 100%;
    }

    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-contact__container {
        padding: 0 15px;
    }
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-summary-section {
        padding: 40px 0;
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__info-item {
        padding: 25px;
    }
    .page-contact__info-heading {
        font-size: 20px;
    }
    .page-contact__info-text,
    .page-contact__info-address,
    .page-contact__info-note {
        font-size: 15px;
    }
    .page-contact__social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .page-contact__contact-form {
        padding: 30px;
        margin-top: 30px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__form-submit-btn {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%; /* Nút gửi chiếm toàn bộ chiều rộng */
    }

    /* FAQ Mobile */
    .page-contact__faq-list {
        margin-top: 30px;
    }
    .page-contact__faq-item {
        margin-bottom: 10px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px !important;
    }
    .page-contact__faq-answer p {
        font-size: 15px;
    }

    /* Ensure images and videos are responsive and do not overflow */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-contact__hero-image img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
    }
    .page-contact__container,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-summary-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 28px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        font-size: 15px;
        padding: 10px 20px;
    }
    .page-contact__info-heading {
        font-size: 18px;
    }
    .page-contact__info-text,
    .page-contact__info-address,
    .page-contact__info-note {
        font-size: 14px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        font-size: 14px;
    }
    .page-contact__form-submit-btn {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-contact__faq-question h3 {
        font-size: 15px;
    }
    .page-contact__faq-toggle {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
    .page-contact__faq-answer p {
        font-size: 14px;
    }
}