/* 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 background */
    background-color: #ffffff; /* Assuming body background is white/light */
}

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

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

.page-contact__text-block {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-btn {
    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;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Red for primary action */
    color: #ffffff;
    border: 2px solid #C30808;
}

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

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

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

.page-contact__social-btn {
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    margin: 5px;
}

.page-contact__social-btn:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    color: #ffffff; /* White text for hero section */
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
    min-width: 200px;
    min-height: 200px;
}

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

/* Intro Section */
.page-contact__intro-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

/* Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-contact__methods-section .page-contact__section-title,
.page-contact__methods-section .page-contact__text-block {
    color: #ffffff;
}

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

.page-contact__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* White text for card content */
    min-height: 450px; /* Ensure cards have some height */
}

.page-contact__card-icon {
    width: 100%;
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

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

.page-contact__card-description {
    font-size: 1.05em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-contact__card-description a {
    color: #FFFF00; /* Yellow for links in dark sections */
    text-decoration: underline;
}

.page-contact__card-description a:hover {
    color: #f0e000;
}

.page-contact__social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.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: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__text-block {
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02);
    color: #f0f0f0;
}

.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-top: 0;
    color: #f0f0f0;
}

/* Importance and Commitment Sections */
.page-contact__importance-section,
.page-contact__commitment-section {
    padding: 60px 0;
}

.page-contact__importance-section {
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-contact__commitment-section {
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-contact__commitment-section .page-contact__section-title,
.page-contact__commitment-section .page-contact__text-block {
    color: #ffffff;
}

/* General image styling for content areas */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Global min image size for content images */
    min-height: 200px; /* Global min image size for content images */
}

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

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

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

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

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

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

    .page-contact__text-block {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-contact__card {
        padding: 20px;
        min-height: auto; /* Allow height to adjust on mobile */
    }

    .page-contact__card-icon {
        max-width: 180px;
        min-width: 200px !important; /* Enforce min 200px */
        min-height: 200px !important; /* Enforce min 200px */
    }

    .page-contact__card-title {
        font-size: 1.5em;
    }

    .page-contact__card-description {
        font-size: 0.95em;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        width: 100%; /* Full width */
        padding: 10px;
    }

    .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: 15px 20px 20px 20px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 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,
    .page-contact__social-links {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-contact__social-links {
        flex-direction: column; /* Stack social buttons on mobile */
    }
}

/* Ensure content area images are not scaled down below 200px by CSS */
.page-contact__intro-section img,
.page-contact__form-section img,
.page-contact__importance-section img,
.page-contact__commitment-section img {
    min-width: 200px;
    min-height: 200px;
    width: auto;
    height: auto;
}

/* Override for images within cards to ensure min-size and proper display */
.page-contact__card img {
    width: 100%; /* Make card images take full card width */
    height: auto;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Specific text color for sections with light backgrounds */
.page-contact__light-bg {
    color: #333333;
}

/* Specific text color for sections with dark backgrounds */
.page-contact__dark-bg {
    color: #ffffff;
}

/* Ensure contrast for links in light sections */
.page-contact__light-bg a {
    color: #017439; /* Brand green for links */
    text-decoration: underline;
}

.page-contact__light-bg a:hover {
    color: #005a2e;
}