/* 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; /* Default background for main content */
    padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    background-color: #f0f0f0; /* Light background for hero */
}

.page-contact__hero-content-wrapper {
    max-width: 800px;
    margin-bottom: 30px; /* Space between content and image */
    z-index: 1; /* Ensure text is above any potential background effects */
}

.page-contact__hero-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: #017439;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: #555555;
    max-width: 80%;
    margin: 0 auto;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: 1200px; /* Ensure image doesn't overflow */
    margin-top: 20px;
    border-radius: 8px;
}

.page-contact__section {
    padding: 60px 0;
}

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

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

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

.page-contact__section-description--light {
    color: #f0f0f0;
}

/* Contact options cards */
.page-contact__contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

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

.page-contact__card-image {
    width: 100%;
    max-width: 400px; /* Ensure card image is not too wide */
    height: auto;
    display: block;
    margin-bottom: 20px;
    border-radius: 4px;
}

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

.page-contact__card-text {
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Make text fill space */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

/* Dark section for form */
.page-contact__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Contact Form */
.page-contact__form {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.page-contact__form-submit-btn {
    width: 100%;
    background-color: #C30808; /* Use specific color for submit button */
    border-color: #C30808;
    color: #FFFF00; /* Specific font color for submit button */
    padding: 15px;
    font-size: 1.1em;
    font-weight: 700;
}

.page-contact__form-submit-btn:hover {
    background-color: #9d0606;
    border-color: #9d0606;
}


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

.page-contact__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

.page-contact__faq-answer {
    padding: 20px 25px;
    color: #555555;
    background-color: #ffffff;
    border-top: none;
}

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

/* Responsive styles */
@media (max-width: 992px) {
    .page-contact__contact-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-contact__hero-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-contact__hero-description {
        font-size: 1em;
        max-width: 95%;
    }

    .page-contact__hero-image,
    .page-contact__card-image {
        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,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important; /* Ensure no overflow */
    }

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

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

    .page-contact__card {
        padding: 20px;
    }

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

    /* Buttons responsive */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__form-submit-btn,
    .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: 12px 15px !important; /* Adjust padding for smaller screens */
    }

    .page-contact__form-submit-btn {
        font-size: 1em;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}