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

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

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

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

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
    padding-bottom: 60px;
    background-color: #f8f8f8;
}

.page-contact__hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 16px;
}

.page-contact__hero-content {
    flex: 1 1 45%;
    min-width: 300px;
}

.page-contact__main-title {
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-contact__cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__form-submit-btn,
.page-contact__faq-link {
    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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive by default */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background-color: #017439; /* Main brand color */
    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; /* Text in brand main color */
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

.page-contact__hero-image {
    flex: 1 1 45%;
    min-width: 300px;
    text-align: center;
}

.page-contact__hero-side-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #f0fdf5; /* Light green tint */
}

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

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

.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 #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

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

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

.page-contact__form-submit-btn {
    width: 100%;
    background-color: #C30808; /* Custom color for submit button */
    color: #FFFF00; /* Custom font color */
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
    background-color: #a30606;
}

/* Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-contact__methods-section .page-contact__section-title,
.page-contact__methods-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-contact__method-icon {
    width: 100%; /* Make image fill card width for responsive */
    max-width: 200px; /* Limit max size */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    object-fit: cover;
}

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

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

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

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

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

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #333333;
    background-color: #FFFFFF;
    position: relative;
    user-select: none;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-qtext {
    flex-grow: 1;
    padding-right: 15px;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #555555;
}

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

.page-contact__faq-link {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-contact__faq-link:hover {
    color: #005f2e;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-container {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__hero-content {
        order: 2;
    }

    .page-contact__hero-image {
        order: 1;
        margin-bottom: 30px;
    }

    .page-contact__cta-buttons {
        justify-content: center;
    }
}

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

    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-contact__hero-container {
        padding: 30px 15px;
        gap: 30px;
    }

    .page-contact__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-contact__hero-side-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    .page-contact__form-submit-btn {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Single column for methods */
        gap: 20px;
    }

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

    .page-contact__method-icon {
        max-width: 150px; /* Smaller icons on mobile */
    }

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

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

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

    /* Ensure all images are responsive and don't overflow */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__cta-buttons,
    .page-contact__methods-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}