body {
    background-color: #FFFFFF;
    color: #333333;
}

.page-contact__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding */
    background-color: #017439; /* Brand green background for hero section */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-contact__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 900px;
    color: #FFFFFF;
    z-index: 2;
    padding: 20px;
    box-sizing: border-box;
}

.page-contact__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for prominence */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
    color: #FFFFFF;
}

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

.page-contact__section-title {
    font-size: 2.5rem;
    color: #017439;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.page-contact__section-intro {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-contact__info-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

.page-contact__method-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px 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__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 250px; /* Enforce min 200px */
    height: 250px; /* Enforce min 200px */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-contact__method-title {
    font-size: 1.6rem;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__method-description {
    font-size: 1rem;
    color: #666666;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-button,
.page-contact__submit-button {
    display: inline-block;
    background-color: #C30808;
    color: #FFFF00;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    width: auto;
    min-height: 44px; /* Ensure touch target size */
}

.page-contact__method-button:hover,
.page-contact__submit-button:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-contact__form-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.page-contact__form-label {
    display: block;
    font-size: 1.1rem;
    color: #333333;
    margin-bottom: 8px;
    font-weight: 500;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333333;
    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__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__submit-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.page-contact__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

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

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

.page-contact__faq-question {
    font-size: 1.2rem;
    color: #017439;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-weight: 600;
    background-color: #f0f0f0;
}

.page-contact__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.is-open .page-contact__faq-question::after {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-contact__faq-item.is-open .page-contact__faq-answer {
    max-height: 200px; /* Adjust as needed for content */
    padding: 20px;
}

.page-contact__faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555555;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-contact__hero-image {
        max-height: 400px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-contact__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

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

    .page-contact__contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-contact__method-icon {
        width: 200px; /* Min size */
        height: 200px; /* Min size */
    }

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

    .page-contact__method-title {
        font-size: 1.4rem;
    }

    .page-contact__form-section {
        padding: 40px 0;
    }

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

@media (max-width: 549px) {
    .page-contact__hero-section {
        padding-top: 0;
    }

    .page-contact__hero-content {
        position: static;
        transform: none;
        padding: 20px;
        background-color: rgba(1, 116, 57, 0.9); /* Darker background for text on small screens */
        width: 100%;
        max-width: none;
        box-sizing: border-box;
    }

    .page-contact__hero-image {
        filter: brightness(1); /* Remove darkening if text is not overlaid */
        order: 1; /* Image first */
        max-height: 300px;
    }

    .page-contact__hero-content {
        order: 2; /* Content second */
        padding-top: 10px; /* Small gap */
    }

    .page-contact__hero-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background-color: #017439;
    }

    .page-contact__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 10px;
    }

    .page-contact__hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }

    .page-contact__container {
        padding: 15px;
    }

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

    .page-contact__section-intro {
        font-size: 1rem;
        margin-bottom: 30px;
    }

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

    .page-contact__method-icon {
        width: 200px;
        height: 200px;
    }

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

    .page-contact__form-label {
        font-size: 1rem;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
        font-size: 0.95rem;
    }

    .page-contact__submit-button {
        font-size: 0.95rem;
        padding: 10px 20px;
        width: 100%;
        max-width: none;
    }

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

    .page-contact__faq-item.is-open .page-contact__faq-answer {
        padding: 15px;
    }

    /* Ensure all content area images are responsive and not too small */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
    .page-contact__method-icon {
        max-width: 100%; /* Overrides fixed width for responsive behavior */
        width: auto;
        min-width: 200px; /* Enforce minimum size even with max-width */
        min-height: 200px;
    }
}

/* Global image size constraint for content areas */
.page-contact img:not(.page-contact__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific rule for mobile images in content areas to prevent overflow */
@media (max-width: 768px) {
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
    .page-contact__method-icon {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
}