/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

/* General styles for page-contact */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body will handle the main background */
}

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

/* Section styles */
.page-contact__hero-section {
    width: 100%;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: transparent; /* Rely on body background */
    color: #ffffff; /* Text color for this section */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Cap max height to prevent overly large images */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and text content */
    filter: none; /* No image filters */
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px 20px; /* Padding for the content block */
}

.page-contact__dark-section {
    background-color: #26A9E0; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section (dark or light) */
}

.page-contact__section-description {
    font-size: 1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Buttons */
.page-contact__cta-button {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    border: 2px solid #EA7C07;
    margin: 0 10px 10px 10px;
}

.page-contact__btn-primary:hover {
    background-color: #d16b06;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Brand primary color for secondary CTA text */
    border: 2px solid #26A9E0;
    margin: 0 10px 10px 10px;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 20px;
}

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

.page-contact__method-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    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;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #333333; /* Dark text for light card background */
}

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

.page-contact__method-icon {
    max-width: 200px; /* Ensure it doesn't get too big, but respects 200px min */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-contact__method-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

.page-contact__method-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #1e87bb;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.2);
    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.6);
}

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

.page-contact__contact-form .page-contact__cta-button {
    width: auto;
    margin-top: 20px;
    display: block;
}
@media (min-width: 769px) {
    .page-contact__contact-form .page-contact__cta-button {
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

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

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

.page-contact__faq-item {
    background-color: #f8f8f8;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for light card background */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    background-color: #e0f2f7; /* Lighter brand color for question background */
    border-bottom: 1px solid #d0e8ee;
    color: #26A9E0; /* Brand color for question text */
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details/summary */
}

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

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

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    font-weight: normal;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 0.95em;
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    color: #333333; /* Dark text for light answer background */
}

.page-contact__faq-answer p {
    margin: 0;
    color: #333333; /* Ensure paragraph color is dark */
}

.page-contact__cta-block {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #333333;
}

.page-contact__inline-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
}

.page-contact__inline-link:hover {
    text-decoration: underline;
}

/* Register CTA Section */
.page-contact__register-cta {
    padding: 60px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.page-contact__register-cta .page-contact__section-title,
.page-contact__register-cta .page-contact__section-description {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding: 40px 20px;
    }
    .page-contact__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-contact__section-title {
        font-size: clamp(1.6em, 4vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-contact__description {
        font-size: 1em;
    }
    .page-contact__cta-button {
        width: 100% !important;
        margin: 5px 0 !important;
        padding: 12px 20px;
    }
    .page-contact__hero-content .page-contact__cta-button {
        display: block;
    }
    .page-contact__register-cta .page-contact__cta-button {
        width: 100% !important;
    }
    .page-contact__register-cta .page-contact__cta-button:not(:last-child) {
        margin-bottom: 10px;
    }
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__register-cta {
        padding: 40px 15px;
    }
    .page-contact__container {
        padding: 0 15px !important; /* Ensure padding for content containers */
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }

    /* Mobile image responsive override */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filters on mobile either */
    }
    
    /* Mobile video responsive override - no video in this page, but for completeness */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-contact__video-section {
        padding-top: 10px !important;
    }

    /* Mobile button responsive override */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        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;
    }
    .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;
    }
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Ensure images don't have filters */
.page-contact img {
    filter: none; /* Override any potential global filters if they exist */
}