/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Body background is white */
}

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

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

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

.page-contact__dark-bg .page-contact__section-title {
    color: #ffffff;
}

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

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px 20px; /* Small top padding, not var(--header-offset) */
    text-align: center;
}

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

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__hero-content {
    max-width: 900px;
}

.page-contact__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #017439;
    margin-bottom: 20px;
    max-width: 90%; /* Allow for natural wrapping, avoid fixed large font-size */
    margin-left: auto;
    margin-right: auto;
}

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

/* Contact Methods Section */
.page-contact__contact-methods {
    padding-top: 60px;
}

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

.page-contact__method-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-contact__email-address, .page-contact__phone-number {
    font-weight: bold;
    margin-bottom: 15px;
}

.page-contact__link {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__link:hover {
    color: #005f2e;
    text-decoration: underline;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* Buttons */
.page-contact__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
}

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

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

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

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

/* Why Contact Section */
.page-contact__why-contact .page-contact__section-title,
.page-contact__why-contact .page-contact__section-description {
    color: #ffffff;
}

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

.page-contact__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-contact__benefit-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-contact__benefit-text {
    font-size: 0.95em;
}

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.page-contact__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

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

.page-contact__faq-answer {
    padding: 15px 25px 20px;
    background-color: #ffffff;
    font-size: 1em;
    color: #333333;
}

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

/* Contact Form Section */
.page-contact__contact-form {
    text-align: center;
}

.page-contact__form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.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;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
}

.page-contact__submit-btn {
    width: 100%;
    max-width: 300px;
    padding: 15px 25px;
    font-size: 1.1em;
    border-radius: 30px;
    background-color: #017439;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.page-contact__submit-btn:hover {
    background-color: #005f2e;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Community Section */
.page-contact__community-section .page-contact__section-title,
.page-contact__community-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__community-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 40px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-contact__section {
        padding: 40px 15px;
    }

    .page-contact__hero-section {
        padding: 10px 15px 40px 15px;
    }

    .page-contact__main-title {
        font-size: 1.8em; /* Adjusted for mobile, still avoiding fixed large values */
        line-height: 1.3;
    }

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

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

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

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

    .page-contact__method-item {
        padding: 20px;
    }

    .page-contact__method-icon {
        width: 150px;
    }

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

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

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

    .page-contact__form {
        padding: 20px;
    }

    .page-contact__submit-btn {
        max-width: 100%;
    }

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

    .page-contact__btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

    /* 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,
    .page-contact__hero-image-wrapper,
    .page-contact__form-image,
    .page-contact__community-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-section .page-contact__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-contact__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 1.6em;
    }

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