/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly setting body background as white */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-contact__section-title--light {
    color: #FFFFFF; /* White text for dark backgrounds */
}

.page-contact__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-contact__text-block--light {
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f5f5f5;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    position: relative;
    overflow: hidden;
}

.page-contact__hero-content {
    max-width: 800px;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3.2em;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-contact__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1200px;
}

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

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

/* Contact Methods Section */
.page-contact__methods-section {
    background-color: #017439; /* Brand green background */
    padding: 80px 0;
    color: #FFFFFF;
}

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

.page-contact__method-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.page-contact__method-icon {
    width: 200px; /* Min size 200px */
    height: 200px; /* Min size 200px */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__method-description {
    font-size: 1em;
    margin-bottom: 20px;
    min-height: 80px; /* Ensure consistent height */
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-contact__social-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #017439; /* Brand color */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: 1px solid #017439;
}

.page-contact__social-btn:hover {
    background-color: #005a2e; /* Darker green on hover */
}


/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-contact__contact-form {
    flex: 1;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px 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: #333333;
}

.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;
}

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

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

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

/* FAQ Section */
.page-contact__faq-section {
    background-color: #017439; /* Brand green background */
    padding: 80px 0;
    color: #FFFFFF;
}

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

.page-contact__faq-item {
    background-color: #FFFFFF;
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Brand color for questions */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #e6f7ed; /* Light hover effect */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.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;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px 25px;
}

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

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-contact__cta-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

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

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

.page-contact__cta-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 600px; /* Example max width */
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-register,
.page-contact__btn-login {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-primary {
    background-color: #017439; /* Brand green */
    color: #FFFFFF;
    border: 2px solid #017439;
}

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

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand green */
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #e6f7ed;
    color: #005a2e;
    border-color: #005a2e;
}

/* Specific colors for Register/Login buttons */
.page-contact__btn-register,
.page-contact__btn-login {
    background-color: #C30808; /* Red for register/login */
    color: #FFFF00; /* Yellow font for register/login */
    border: 2px solid #C30808;
}

.page-contact__btn-register:hover,
.page-contact__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }

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

    .page-contact__form-image-wrapper {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

    .page-contact__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-contact__text-block {
        font-size: 1em;
    }

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 50px 0;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-contact__contact-form {
        padding: 30px;
    }

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

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

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

    .page-contact__cta-section {
        flex-direction: column;
        gap: 30px;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure buttons take full width */
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-register,
    .page-contact__btn-login {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image and video responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__methods-grid,
    .page-contact__faq-list,
    .page-contact__cta-section,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure content area images are not too small */
/* This rule applies to any img within .page-contact, ensuring it's not made smaller than 200px by page-specific CSS */
.page-contact img:not(.shared-header img, .shared-footer img) {
    min-width: 200px;
    min-height: 200px;
}
.page-contact__method-icon {
    min-width: 200px; /* Explicitly set min-width for method icons */
    min-height: 200px; /* Explicitly set min-height for method icons */
}
/* No filter property allowed */
.page-contact img {
    filter: none !important; /* Ensure no filters are applied */
}