/* 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 backgrounds */
    background-color: #f8f9fa; /* Light background for the whole page content */
}

/* Section styling */
.page-contact__section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
}

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

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

.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.5); /* Darken image for better text readability */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

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

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

.page-contact__btn-link {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-contact__btn-link:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    background-color: #f8f9fa; /* Light background */
    color: #333333;
}

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

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-icon {
    width: 250px; /* Min size 200x200 */
    height: 180px; /* Aspect ratio maintained, example size for visual */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take up available space */
}

/* Contact Form Section */
.page-contact__contact-form-section {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #005a2e; /* Darker green border */
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #666666;
}

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: none;
    cursor: pointer;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
}

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

.page-contact__form-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    object-fit: cover;
}

/* Video Section */
.page-contact__video-section {
    background-color: #017439;
    color: #ffffff;
}

.page-contact__video-wrapper {
    margin: 40px auto;
    max-width: 900px; /* Example max-width for video container */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-contact__video-cta-text {
    font-size: 1.1em;
    margin-top: 20px;
    font-weight: bold;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #f8f9fa; /* Light background */
    color: #333333;
}

.page-contact__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f0fdf5; /* Very light green for question background */
    transition: background-color 0.3s ease;
}

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

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Adjust padding for visual consistency */
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-contact__faq-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-top: 40px;
    border-radius: 10px;
    object-fit: cover;
}

/* Map Section */
.page-contact__map-section {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
}

.page-contact__map-wrapper {
    margin: 40px auto;
    max-width: 100%;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-contact__address-note {
    font-style: italic;
    opacity: 0.8;
}

/* Importance Section */
.page-contact__importance-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
    text-align: left;
}

.page-contact__importance-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-contact__importance-item {
    background-color: #f0fdf5; /* Light green background for list items */
    border-left: 5px solid #017439;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #333333;
}

.page-contact__importance-item strong {
    color: #017439;
}

/* Tips Section */
.page-contact__tips-section {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    text-align: left;
}

.page-contact__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-contact__tips-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white */
    border-left: 5px solid #ffffff;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-contact__tips-item strong {
    color: #FFFF00; /* Highlight important tips */
}

/* Final CTA Section */
.page-contact__cta-final-section {
    background-color: #f8f9fa; /* Light background */
    color: #333333;
    padding-bottom: 80px;
}

.page-contact__cta-final-content {
    padding-top: 40px;
}

/* Images Responsive */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for most images */
    filter: none; /* Ensure no filter by default */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__video-wrapper {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__section {
        padding: 40px 15px;
    }

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

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

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

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

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

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

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

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

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

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

    /* Mobile image, video, container 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__map-wrapper,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}