/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #FFFFFF; /* Ensures consistency with body background */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description,
.page-contact__section-note {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height for visual impact */
    background-image: url('[GALLERY:hero_contact:1920x1080:nn88,contact,support,customer_service,vietnam,green,white]');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 1;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    color: #FFFFFF;
    max-width: 900px;
    padding: 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    color: #FFFFFF;
}

.page-contact__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-register,
.page-contact__btn-login {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

/* Primary Brand Button (adjusted for contrast) */
.page-contact__btn-primary {
    background-color: #00331a; /* Darker green for contrast (original #017439 fails 4.5:1 with white text) */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #00331a;
    font-size: 1.2em;
}

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

/* Secondary Button */
.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand color text */
    border: 2px solid #017439;
    font-size: 1.1em;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* Register Button (Custom Color, adjusted for contrast) */
.page-contact__btn-register {
    background-color: #A00000; /* Darker red for contrast (original #C30808 fails 4.5:1 with white/yellow text) */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #A00000;
    font-size: 1.2em;
    margin-right: 15px;
}

.page-contact__btn-register:hover {
    background-color: #800000;
    border-color: #800000;
}

/* Login Button (Custom Color, adjusted for contrast) */
.page-contact__btn-login {
    background-color: #A00000; /* Darker red for contrast */
    color: #FFFFFF; /* White text for contrast */
    border: 2px solid #A00000;
    font-size: 1.2em;
}

.page-contact__btn-login:hover {
    background-color: #800000;
    border-color: #800000;
}

/* --- Channels Section --- */
.page-contact__channels-section {
    padding: 60px 0;
}

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

.page-contact__channel-card {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    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__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__channel-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-width: 150px; /* Max width for icons in card, but will be overridden by min-width below */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement for images */
    min-height: 200px;
}

.page-contact__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

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

.page-contact__contact-info {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 15px;
}

.page-contact__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
}

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

.page-contact__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #017439;
    color: #FFFFFF;
    font-size: 1.5em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #005f2e;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #00331a; /* Darker green for contrast */
    color: #FFFFFF; /* White text */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description,
.page-contact__form-section .page-contact__form-label,
.page-contact__form-section .page-contact__form-note {
    color: #FFFFFF;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px 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;
    font-size: 1.1em;
}

.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-color: rgba(0, 0, 0, 0.2); /* Darker input background */
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFFFFF;
    background-color: rgba(0, 0, 0, 0.3);
    outline: none;
}

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

.page-contact__contact-form .page-contact__btn-primary {
    width: 100%;
    margin-top: 20px;
    background-color: #A00000; /* Darker red for contact form submit */
    border-color: #A00000;
}

.page-contact__contact-form .page-contact__btn-primary:hover {
    background-color: #800000;
    border-color: #800000;
}

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

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

.page-contact__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #f0f0f0;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    text-align: left;
    color: #017439; /* Brand color for question text */
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    color: #017439;
    margin-left: 15px;
    width: 25px;
    text-align: center;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #e6f7ed; /* Lighter green background when open */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

/* --- Why Us Section --- */
.page-contact__why-us-section {
    padding: 60px 0;
    background-color: #00331a; /* Darker green for contrast */
    color: #FFFFFF;
}

.page-contact__why-us-section .page-contact__section-title,
.page-contact__why-us-section .page-contact__section-description,
.page-contact__why-us-section .page-contact__section-note {
    color: #FFFFFF;
}

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

.page-contact__benefit-item {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white card */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__benefit-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-contact__cta-section {
    padding: 60px 0;
    text-align: center;
}

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

/* Specific button styles for CTA section */
.page-contact__btn-register {
    background-color: #A00000; /* Darker red for contrast */
    color: #FFFFFF;
    border: 2px solid #A00000;
}

.page-contact__btn-register:hover {
    background-color: #800000;
    border-color: #800000;
}

.page-contact__btn-login {
    background-color: #A00000; /* Darker red for contrast */
    color: #FFFFFF;
    border: 2px solid #A00000;
}

.page-contact__btn-login:hover {
    background-color: #800000;
    border-color: #800000;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description,
    .page-contact__section-note {
        font-size: 0.95em;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__channels-grid,
    .page-contact__benefits-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 18px;
    }

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