:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main: #333333;
    --card-bg: #FFFFFF;
    --page-bg-color: #F5F7FA; /* Assuming body background is light for text contrast */
    --border-color: #E0E0E0;
}

.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for light background */
    background-color: var(--page-bg-color); /* This will be overridden by shared.css body background, but useful for context */
    padding-bottom: 40px; /* General padding */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-contact__hero-section {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
    text-align: center;
}

.page-contact__hero-image {
    width: 100%;
    height: 675px; /* Fixed height for desktop */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    display: block;
}

.page-contact__hero-content {
    padding: 40px 15px;
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background for text readability */
    margin-top: -100px; /* Overlap slightly with image for visual effect, but not cover it */
    position: relative;
    z-index: 1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__main-title {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    max-width: 700px;
    margin: 0 auto;
}

.page-contact__section-title {
    font-size: 2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    margin-top: 60px;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__info-section {
    padding: 40px 0;
}

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

.page-contact__method-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px; /* Adjusted min-height for larger icons and more content */
}

.page-contact__method-icon {
    width: 200px; /* Updated to meet 200px minimum */
    height: 200px; /* Updated to meet 200px minimum */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact__method-text {
    color: var(--text-main);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
    max-width: 100%; /* For mobile button adaption */
    box-sizing: border-box; /* For mobile button adaption */
    white-space: normal; /* For mobile button adaption */
    word-wrap: break-word; /* For mobile button adaption */
}

.page-contact__cta-button:hover {
    opacity: 0.9;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
}

.page-contact__social-icon-link {
    display: block;
}

.page-contact__social-icon {
    width: 200px; /* Updated to meet 200px minimum */
    height: 200px; /* Updated to meet 200px minimum */
    object-fit: contain;
    transition: transform 0.3s ease;
}

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

.page-contact__form-section {
    padding: 40px 0;
    background-color: var(--page-bg-color);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(var(--primary-color), 0.2);
}

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

.page-contact__submit-button {
    width: auto; /* Override max-width for submit button */
    display: block;
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-contact__faq-section {
    padding: 40px 0;
}

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

.page-contact__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    list-style: none; /* For details/summary */
    position: relative;
}

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

.page-contact__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--text-main);
    line-height: 1;
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-main);
    font-size: 1em;
    line-height: 1.6;
}

.page-contact__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

.page-contact__location-section {
    padding: 40px 0 60px;
    background-color: var(--page-bg-color);
}

.page-contact__map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-contact__map-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.page-contact__address {
    text-align: center;
    font-size: 1.1em;
    color: var(--text-main);
    font-weight: bold;
    margin-bottom: 5px;
}

.page-contact__address-detail {
    text-align: center;
    font-size: 0.95em;
    color: var(--text-main);
    margin-top: 0;
}

/* --- Responsive Styles for max-width: 768px --- */
@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Hero Section */
    .page-contact__hero-section {
        margin-bottom: 20px;
        padding-top: 10px !important; /* Small top padding, relying on body padding-top from shared.css */
    }

    .page-contact__hero-image {
        height: 300px; /* Adjust height for mobile */
        object-fit: contain; /* Ensure image is fully visible, not cropped */
        width: 100% !important;
        max-width: 100% !important;
    }

    .page-contact__hero-content {
        padding: 20px 15px;
        margin-top: -50px; /* Adjust overlap for mobile */
        max-width: calc(100% - 30px); /* Account for container padding */
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__main-title {
        font-size: 1.8em;
        line-height: 1.3;
    }

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

    /* General Section Titles & Descriptions */
    .page-contact__section-title {
        font-size: 1.6em;
        margin-top: 40px;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 25px;
        padding: 0 10px;
    }

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

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        padding: 0 15px; /* Add padding to grid container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-contact__method-card {
        padding: 25px;
        min-height: auto; /* Allow height to adjust */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-contact__method-icon {
        width: 200px; /* Must maintain >= 200px */
        height: 200px; /* Must maintain >= 200px */
    }

    .page-contact__method-title {
        font-size: 1.3em;
    }

    .page-contact__cta-button {
        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__social-links {
        justify-content: center;
        flex-wrap: wrap !important; /* Allow social icons to wrap */
    }

    .page-contact__social-icon {
        width: 200px; /* Must maintain >= 200px */
        height: 200px; /* Must maintain >= 200px */
    }

    /* Form Section */
    .page-contact__form-section {
        padding: 20px 0;
    }

    .page-contact__contact-form {
        padding: 25px;
        max-width: calc(100% - 30px); /* Account for container padding */
        margin-left: 15px;
        margin-right: 15px;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    .page-contact__submit-button {
        padding: 12px 20px;
        font-size: 1em;
        width: 100% !important; /* Ensure submit button is full width */
    }

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

    .page-contact__faq-list {
        max-width: calc(100% - 30px); /* Account for container padding */
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }

    .page-contact__faq-qtext {
        font-size: 1em;
    }

    .page-contact__faq-toggle {
        font-size: 1.2em;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    /* Location Section */
    .page-contact__location-section {
        padding: 20px 0 40px;
    }

    .page-contact__map-container {
        height: 300px; /* Adjust map height for mobile */
        max-width: calc(100% - 30px); /* Account for container padding */
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__map-image {
        height: 300px;
        max-width: 100% !important;
        width: 100% !important;
        object-fit: cover;
    }

    .page-contact__address {
        font-size: 1em;
        padding: 0 15px;
    }

    .page-contact__address-detail {
        font-size: 0.9em;
        padding: 0 15px;
    }

    /* General image and container responsiveness for mobile */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__map-container,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure no content causes horizontal scroll */
    .page-contact {
        overflow-x: hidden;
    }
}