/* style/contact.css */

/* Base styles for the contact page */
.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-bottom: 60px; /* Space before footer */
}

/* Ensure main content starts below header */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't spill */
}

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

.page-contact__hero-overlay {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    padding: 40px 20px;
    width: 100%;
    box-sizing: border-box;
}

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

.page-contact__hero-title {
    font-size: 3.2em;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #ffffff; /* Default for dark sections */
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Default for dark sections */
}

/* Dark background sections */
.page-contact__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body for contrast, but still dark */
    color: #ffffff;
    padding: 60px 0;
}

/* Light background sections */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-contact__text-dark {
    color: #333333; /* For text on light backgrounds */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    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;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2b;
    border-color: #005a2b;
}

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

.page-contact__channel-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-icon {
    width: 120px; /* Larger than 100px, still illustrative */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* Soften edges */
    object-fit: cover;
}

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

.page-contact__channel-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__email-text,
.page-contact__phone-text {
    font-weight: bold;
    color: #FFFF00; /* Highlight contact info */
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
}

.page-contact__faq-item {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* For text on light background */
}

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

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

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

.page-contact__faq-answer {
    padding: 0 25px 18px 25px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 2000px; /* Sufficiently large to show content */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #f0f0f0;
}

/* For details/summary, hide default marker */
.page-contact__faq-item summary {
    list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__cta-faq {
    text-align: center;
    margin-top: 30px;
}

/* Feedback Form Section */
.page-contact__feedback-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.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 15px;
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #2a2a2a; /* Darker input background */
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #b0b0b0;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

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

/* Address Section */
.page-contact__address-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.page-contact__address-details {
    flex: 1;
    min-width: 300px;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #333333;
}

.page-contact__address-line {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333333;
}

.page-contact__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
}

.page-contact__map-container {
    flex: 2;
    min-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* Global image styling for the page */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none; /* Remove default image borders */
    filter: none; /* Ensure no CSS filter is applied */
}

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

    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 400px;
    }

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

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

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

    .page-contact__section-intro {
        margin-left: 15px;
        margin-right: 15px;
    }

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

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

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

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

    .page-contact__feedback-form {
        padding: 30px 20px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__address-content {
        flex-direction: column;
        gap: 30px;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__address-details,
    .page-contact__map-container {
        min-width: unset; /* Allow full width */
        width: 100%;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that contain images, videos, buttons */
    .page-contact__section, 
    .page-contact__card, 
    .page-contact__container,
    .page-contact__hero-overlay,
    .page-contact__channels-grid,
    .page-contact__channel-card,
    .page-contact__faq-item,
    .page-contact__feedback-form,
    .page-contact__address-content,
    .page-contact__address-details,
    .page-contact__map-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content inside sections/containers if not already handled by parent */
        /* padding-left: 15px; */
        /* padding-right: 15px; */
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}