.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

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

/* Color Contrast Specifics */
.page-contact__dark-bg {
    background-color: #000000; /* Assuming body background is black, use black for dark sections */
    color: #ffffff;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 600px;
}

.page-contact__hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.page-contact__hero-content {
    flex: 1;
    max-width: 600px;
}

.page-contact__main-title {
    font-size: 3.2em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.page-contact__description {
    font-size: 1.15em;
    margin-bottom: 30px;
    line-height: 1.8;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.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;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

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

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

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

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

.page-contact__hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 400px;
}

.page-contact__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 0;
}

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

.page-contact__channel-card {
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.page-contact__channel-card img {
    width: 100%; /* Occupy full card width */
     /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-contact__channel-card p {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow paragraph to take available space */
}

.page-contact__channel-link {
    display: inline-block;
    background-color: #EA7C07; /* Login color for action link */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__channel-link:hover {
    background-color: #d16e06;
}

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

.page-contact__form-container {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Ensure both sides stretch to equal height */
    background-color: #000000; /* Dark background for the section */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.page-contact__form-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 300px;
}

.page-contact__form-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area without distortion */
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-contact__form-wrapper {
    flex: 1;
    padding: 40px;
    background-color: #ffffff; /* Light background for the form itself */
    color: #333333; /* Dark text for light background */
    border-radius: 0 12px 12px 0; /* Only right corners if image is on left */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-contact__form-wrapper .page-contact__section-title {
    color: #26A9E0;
    text-align: left;
    margin-bottom: 15px;
}

.page-contact__form-wrapper .page-contact__section-intro {
    text-align: left;
    margin-bottom: 30px;
    max-width: none;
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 100px;
}

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

.page-contact__faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    color: #333333; /* Dark text for light background */
}

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

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

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1.1em; /* Adjust font size for better hierarchy */
    color: #26A9E0;
}

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

.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;
    font-size: 1em;
    color: #333333;
}

.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-bottom: 0;
}

.page-contact__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: #1a7fb4;
}

.page-contact__faq-section img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Location Section */
.page-contact__location-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__location-info {
    margin-top: 40px;
    line-height: 2;
    font-size: 1.1em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__info-item strong {
    color: #26A9E0;
}

.page-contact__info-item a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-contact__info-item a:hover {
    color: #1a7fb4;
}

.page-contact__map-placeholder {
    margin-top: 50px;
    background-color: #111; /* Dark placeholder for the map image */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__map-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__hero-content {
        max-width: 100%;
    }

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

    .page-contact__hero-image {
        min-width: unset;
        width: 100%;
    }

    .page-contact__form-container {
        flex-direction: column;
    }

    .page-contact__form-image-wrapper {
        min-height: 300px; /* Give some height to the image on smaller screens */
    }

    .page-contact__form-wrapper {
        border-radius: 0 0 12px 12px;
        text-align: center;
    }
    
    .page-contact__form-wrapper .page-contact__section-title,
    .page-contact__form-wrapper .page-contact__section-intro {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding-top is applied on mobile */
    }

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

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

    .page-contact__description {
        font-size: 1em;
    }

    .page-contact__hero-section,
    .page-contact__channels-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section {
        padding: 40px 0;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    .page-contact__channel-card {
        padding: 25px;
    }

    .page-contact__channel-card img {
        min-width: 200px !important; /* Enforce min width */
        max-width: 100% !important;
        height: auto !important;
    }

    .page-contact__form-image-wrapper {
        min-height: 250px;
    }

    .page-contact__form-wrapper {
        padding: 30px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
    
    /* Ensure all images are responsive on mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All containers for images/content must prevent overflow */
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__channels-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section,
    .page-contact__channel-card,
    .page-contact__form-container,
    .page-contact__form-image-wrapper,
    .page-contact__form-wrapper,
    .page-contact__map-placeholder {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px !important; /* Add padding to prevent content touching edges */
        padding-right: 15px !important;
    }

    /* Specific override for hero-inner which has its own padding */
    .page-contact__hero-inner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Ensure .page-contact__container inside hero-inner also respects padding */
    .page-contact__hero-section .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-contact__faq-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-contact__faq-question,
    .page-contact__faq-answer {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .page-contact__faq-answer {
        padding-bottom: 20px !important;
    }
}

/* Ensure content area images are not scaled down below 200px by CSS */
.page-contact__hero-image img,
.page-contact__channel-card img,
.page-contact__form-image-wrapper img,
.page-contact__faq-section img,
.page-contact__map-placeholder img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Maintain aspect ratio and cover area */
}

/* No CSS filter on images */
.page-contact img {
    filter: none !important;
}