/* style/contact.css */

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

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

/* Fixed header offset */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first content section */
}

/* Hero Section */
.page-contact__hero-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color for emphasis */
}

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

.page-contact__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

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

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

/* Contact Info Section */
.page-contact__contact-info-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
}

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

.page-contact__info-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-contact__card-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFFF00; /* Use for labels to match hero title emphasis */
}

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

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

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

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

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

.page-contact__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* Details element specific styling */
.page-contact__faq-item[open] > .page-contact__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

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

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or '−' */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #f8f8f8;
    border-top: 1px solid #e0e0e0;
}
.page-contact__faq-item:not([open]) .page-contact__faq-answer {
    /* This rule is for non-details fallback, but details handles visibility natively */
    /* For details, the browser handles display. */
}

/* Location Section */
.page-contact__location-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-contact__location-section .page-contact__section-title,
.page-contact__location-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__address-block {
    margin-top: 40px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-contact__address-line {
    margin-bottom: 10px;
}

.page-contact__map-container {
    margin-top: 50px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Call to Action Section */
.page-contact__cta-section {
    background-color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-contact__cta-content {
    background-color: #f8f8f8;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.page-contact__cta-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 20px;
}

.page-contact__cta-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #E01010;
    border-color: #E01010;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(195, 8, 8, 0.4);
}

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

.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(1, 116, 57, 0.4);
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 20px;
        padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title,
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__section-description,
    .page-contact__cta-description {
        font-size: 1em;
    }

    .page-contact__hero-cta,
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

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

    /* Mobile image and video responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .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;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-contact__map-container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Color Contrast Safeguards */
.page-contact__dark-bg {
    color: #ffffff; /* Deep background, light text */
}

.page-contact__light-bg {
    color: #333333; /* Light background, dark text */
}

/* Ensure form labels are visible on dark background */
.page-contact__form-label {
    color: #FFFF00; /* Yellow for labels on dark background */
}

/* Text elements */
.page-contact p,
.page-contact li {
    color: #333333; /* Default for general text on light backgrounds */
}

/* Specific text color for dark sections */
.page-contact__dark-section p,
.page-contact__dark-section li {
    color: #ffffff;
}

/* Card titles in light sections */
.page-contact__info-card .page-contact__card-title {
    color: #017439; /* Brand color on light background */
}
/* Card text in light sections */
.page-contact__info-card .page-contact__card-text {
    color: #666666; /* Darker grey for body text */
}