/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f8f8f8; /* Light background for the section */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-contact__intro-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: bold;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Light Background Section */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Dark Background Section */
.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description {
    color: #ffffff;
}

/* CTA Buttons */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

/* Channels Section */
.page-contact__channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__channel-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
}

.page-contact__channel-icon {
    width: 100%;
    max-width: 250px; /* Constrain image size within card */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

.page-contact__channel-link {
    display: inline-block;
    color: #EA7C07;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__channel-link:hover {
    color: #d16e06;
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-contact__contact-form .page-contact__cta-button {
    width: 100%;
    margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    overflow: hidden; /* For details tag */
}

.page-contact__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Remove default marker */
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-contact__faq-answer {
    padding: 15px 25px;
    font-size: 0.95em;
    color: #555555;
    background-color: #ffffff;
}

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

/* Commitment Section */
.page-contact__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.page-contact__commitment-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-contact__commitment-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__commitment-text {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset */
    }

    .page-contact__hero-content {
        padding: 0 15px;
    }

    .page-contact__main-title {
        font-size: 2em;
    }

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

    .page-contact__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-contact__section-description {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image-wrapper,
    .page-contact__channel-card,
    .page-contact__commitment-item,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsiveness */
    .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;
    }
    
    /* Button containers mobile adaptation */
    .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;
    }

    /* FAQ */
    .page-contact__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

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