/* style/contact.css */

/* Base Styles for page-contact */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: #ffffff; /* Default body background */
}

/* Header offset for fixed header */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

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

/* Section Styling */
.page-contact__hero-section {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text on primary background */
    text-align: center;
    padding-bottom: 60px;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for title on dark background for prominence */
}

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

.page-contact__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__submit-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

.page-contact__btn-primary:hover,
.page-contact__submit-btn:hover {
    background-color: #e02020;
    border-color: #e02020;
}

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

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
    border-color: #005f2c;
}

.page-contact__info-section,
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-contact__form-section,
.page-contact__location-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* White text */
}

.page-contact__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    color: inherit; /* Inherit color from section for contrast */
}

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

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

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333; /* Dark text on white card */
}

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

.page-contact__method-icon {
    width: 200px; /* Min size 200x200 */
    height: 150px; /* Maintain aspect ratio or set specific height */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__method-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #017439; /* Primary brand color for title */
}

.page-contact__method-text {
    margin-bottom: 20px;
    font-size: 1em;
}

.page-contact__email-link,
.page-contact__phone-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

/* Contact Form */
.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff; /* White label text on dark background */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #005f2c; /* Darker green border */
    border-radius: 8px;
    background-color: #ffffff;
    color: #333333;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

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

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #333333; /* Dark text on white FAQ item */
}

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

.page-contact__faq-question:hover {
    background-color: #e0f2e0; /* Lighter green on hover */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #017439; /* Primary brand color when open */
    color: #ffffff; /* White text when open */
}

.page-contact__faq-item[open] .page-contact__faq-question .page-contact__faq-toggle {
    color: #ffffff; /* White toggle when open */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #017439; /* Primary brand color for toggle */
}

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

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    border-top: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #333333; /* Dark text for answer */
}

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

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

/* Location Section */
.page-contact__location-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__address-block {
    flex: 1;
    min-width: 300px;
    color: #ffffff; /* White text on dark background */
}

.page-contact__address-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00; /* Yellow for address titles */
}

.page-contact__address-text {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #FFFF00; /* Yellow background for social icons */
    color: #017439; /* Primary brand color for icon text */
    border-radius: 50%;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-contact__map-container {
    flex: 2;
    min-width: 400px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px; /* Ensure image also has border-radius */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-contact__map-container {
        min-width: 100%;
    }
    .page-contact__location-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.6em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__submit-btn {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
    }

    /* Mobile image/video/button 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__contact-methods,
    .page-contact__location-content,
    .page-contact__contact-form,
    .page-contact__faq-list {
        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__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }
    .page-contact__map-container {
        min-width: unset; /* Remove min-width constraint */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.5em;
    }
    .page-contact__section-title {
        font-size: 1.4em;
    }
    .page-contact__method-icon {
        width: 150px;
        height: 112px; /* Adjusted height for ratio */
    }
    .page-contact__method-title {
        font-size: 1.4em;
    }
    .page-contact__social-icon {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
}