/* style/contact.css */

/* Base Styles & Typography */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--background-color);
}

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

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__description,
.page-contact__section-description,
.page-contact__card-text {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.page-contact__hero-content .page-contact__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__dark-section {
    background-color: var(--background-color);
    color: var(--text-main);
}

.page-contact__light-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.page-contact__btn-secondary:hover {
    background-color: var(--main-color);
    color: #ffffff;
}

.page-contact__btn-center {
    display: block;
    margin: 0 auto 30px auto;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* body already handles --header-offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

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

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
}

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

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

.page-contact__card {
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-contact__card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

.page-contact__faq-item {
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-contact__faq-question::-webkit-details-marker {
    display: none;
}

.page-contact__faq-question:hover {
    background-color: var(--divider-color);
}

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

.page-contact__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--text-secondary);
    background-color: var(--deep-green);
    border-top: 1px solid var(--divider-color);
}

.page-contact__faq-answer p {
    text-align: left;
    margin-bottom: 0;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 60px 20px;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1em;
    color: var(--text-main);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--background-color);
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

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

.page-contact__contact-form .page-contact__btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Office & Social Media Section */
.page-contact__office-social-section {
    padding: 60px 20px;
}

.page-contact__office-social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-contact__office-info,
.page-contact__social-media {
    background-color: var(--deep-green);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__image-small {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    margin: 20px 0;
    border-radius: 8px;
}

.page-contact__address-text,
.page-contact__working-hours,
.page-contact__note,
.page-contact__social-description {
    font-size: 1em;
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: left;
}

.page-contact__social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.page-contact__social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

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

.page-contact__social-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Commitment & CTA Section */
.page-contact__commitment-cta {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__commitment-cta .page-contact__section-description {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-contact__office-social-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-contact__description,
    .page-contact__section-description,
    .page-contact__card-text {
        font-size: 1em;
    }
    .page-contact__hero-section,
    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__contact-form-section,
    .page-contact__office-social-section,
    .page-contact__commitment-cta {
        padding: 30px 15px;
    }
    .page-contact__hero-section {
        padding-top: 10px !important; /* body đã xử lý --header-offset */
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Mobile button responsiveness */
    .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-direction: column !important;
        gap: 10px;
        overflow: hidden !important;
    }

    .page-contact__container,
    .page-contact__card,
    .page-contact__contact-form,
    .page-contact__office-info,
    .page-contact__social-media {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

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

    .page-contact__social-icons {
        justify-content: center;
    }
    .page-contact__card-image {
        max-width: 100%;
    }
    .page-contact__image-small {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__main-title {
        font-size: clamp(1.4em, 7vw, 2em);
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-contact__faq-answer {
        padding: 15px;
    }
    .page-contact__card {
        padding: 20px;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
}