/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc hero section. */

.page-contact {
    font-family: Arial, sans-serif;
    background-color: #08160F; /* Nền tối theo yêu cầu */
    color: #F2FFF6; /* Text Main cho toàn bộ trang */
    line-height: 1.6;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Đảm bảo hình ảnh ở trên, nội dung ở dưới */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Chỉ một khoảng cách nhỏ từ header */
    box-sizing: border-box;
    overflow: hidden; /* Đảm bảo không tràn */
}

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

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

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* CTA Button */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button--small {
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 20px;
}

.page-contact__cta-button--large {
    padding: 18px 35px;
    font-size: 1.2em;
    margin-top: 40px;
}


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

.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    padding: 80px 0;
    text-align: center;
    box-sizing: border-box;
}

.page-contact__info-section {
    background-color: #0A4B2C; /* Deep Green for contrast */
}

.page-contact__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Methods */
.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    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.4);
}

.page-contact__method-icon {
    width: 250px; /* Larger images */
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 0.95em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-contact__email-link,
.page-contact__phone-link {
    color: #57E38D; /* Glow color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

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

.page-contact__social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon-link:hover {
    background-color: #1E3A2A; /* Divider color for hover */
}

/* Contact Form */
.page-contact__form-section {
    background-color: #08160F; /* Background */
}

.page-contact__form-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__form-illustration {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__form-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 8px;
}

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

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #2E7A4E; /* Border */
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #57E38D; /* Glow */
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #0A4B2C; /* Deep Green for contrast */
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

.page-contact__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-item[open] {
    background-color: #0A4B2C; /* Deeper green when open */
    border-color: #57E38D; /* Glow border */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: #F2FFF6; /* Text Main */
    transition: color 0.3s ease;
    user-select: none;
    list-style: none; /* Remove default marker for details summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    color: #57E38D; /* Glow color when open */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

.page-contact__faq-answer p {
    margin: 0;
}


/* Commitment Section */
.page-contact__commitment-section {
    background-color: #08160F; /* Background */
    padding-bottom: 100px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }

    .page-contact__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        padding: 60px 0;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        padding: 30px;
        gap: 30px;
        max-width: 800px;
    }

    .page-contact__form-illustration {
        order: -1; /* Image on top for smaller screens */
    }

    .page-contact__form-image {
        max-width: 400px;
    }

    .page-contact__contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__container,
    .page-contact__contact-methods,
    .page-contact__method-card,
    .page-contact__form-wrapper,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    .page-contact__hero-section {
        padding-top: 10px !important; /* body đã xử lý header offset */
        padding-bottom: 40px !important;
    }

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

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

    .page-contact__hero-description,
    .page-contact__section-description,
    .page-contact__method-text,
    .page-contact__faq-answer {
        font-size: 15px;
    }

    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"],
    .page-contact__submit-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Single column for methods */
        gap: 20px;
    }
    
    .page-contact__form-wrapper {
        padding: 20px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        width: 100%; /* Adjust for padding in parent */
    }

    .page-contact__social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}