/* style/contact.css */

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

/* Color Contrast System */
.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    text-align: center;
    overflow: hidden;
}

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

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

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

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

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-contact__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

/* General Section Styles */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 60px 0;
}

.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-contact__method-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-contact__method-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-detail {
    font-weight: bold;
    color: #333333;
    margin-top: 15px;
}

.page-contact__info-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px 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: bold;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f0f0f0;
    color: #333333;
    box-sizing: border-box;
}

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    margin-top: 20px;
}

.page-contact__privacy-note {
    margin-top: 30px;
    font-size: 0.9em;
    color: #ffffff;
}

.page-contact__privacy-note a {
    color: #EA7C07;
    text-decoration: none;
}

.page-contact__privacy-note a:hover {
    text-decoration: underline;
}

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

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

.page-contact__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #eaf7ff;
    border-bottom: 1px solid #d0e8f7;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

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

.page-contact__faq-answer a {
    color: #EA7C07;
    text-decoration: none;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

.page-contact__faq-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__why-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
    font-size: 1.1em;
    color: #ffffff;
}

.page-contact__why-item {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
}

.page-contact__why-item::before {
    content: '✓';
    color: #EA7C07;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2em;
}

.page-contact__why-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Social Section */
.page-contact__social-section {
    padding: 60px 0;
}

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

.page-contact__social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 0; /* Hide text, use aria-label */
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.page-contact__social-icon-link::before {
    font-family: 'Font Awesome 5 Brands'; /* Assuming Font Awesome is available via shared.css or global setup */
    font-size: 2em;
    content: '';
}

.page-contact__social-icon--facebook::before {
    content: '\f09a'; /* Facebook icon */
}
.page-contact__social-icon--telegram::before {
    content: '\f2c6'; /* Telegram icon */
}
.page-contact__social-icon--zalo::before {
    content: '\f099'; /* Placeholder for Zalo, using Twitter icon as example if Zalo not available */
}

.page-contact__social-icon-link:hover {
    background-color: #EA7C07;
    transform: translateY(-5px);
}

.page-contact__social-image {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-contact__btn-primary, .page-contact__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-contact__form-section, .page-contact__faq-section, .page-contact__why-contact-section, .page-contact__social-section {
        padding: 40px 0;
    }

    .page-contact__contact-form {
        padding: 25px;
    }

    .page-contact__form-label {
        font-size: 0.95em;
    }

    .page-contact__form-input, .page-contact__form-textarea {
        padding: 10px;
    }

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

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

    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    /* Mobile image and container responsiveness */
    .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__why-contact-section,
    .page-contact__social-section,
    .page-contact__container,
    .page-contact__contact-methods,
    .page-contact__method-card,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__faq-item,
    .page-contact__why-list,
    .page-contact__why-item,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    .page-contact__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-contact__social-links {
        flex-wrap: wrap;
        gap: 20px;
    }
}