/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

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

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

.page-contact__section-intro a {
    color: #ffff00; /* Yellow for links */
    text-decoration: underline;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    padding: 60px 0;
    box-sizing: border-box;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
    border-radius: 10px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffff00; /* Highlighted title */
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

/* CTA Buttons */
.page-contact__cta-button {
    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, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-contact__cta-button--primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-contact__cta-button--secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__cta-button--secondary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background from shared.css */
    color: #f0f0f0;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-intro {
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__method-description {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

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

.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 #017439;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.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__contact-form .page-contact__cta-button {
    width: auto;
    margin-top: 15px;
}

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

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-intro {
    color: #ffffff;
}

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

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

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

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

.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(0deg); /* Already '-' */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 15px 25px;
}

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

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

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-contact__commitment-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__commitment-item strong {
    color: #ffff00;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.page-contact__commitment-item a {
    color: #ffff00;
    text-decoration: underline;
}

.page-contact__commitment-text {
    text-align: center;
    margin-top: 50px;
    font-size: 1.2em;
    color: #ffffff;
}

.page-contact__commitment-text a {
    color: #FFFF00;
    font-weight: bold;
    text-decoration: underline;
}

/* Map Section */
.page-contact__map-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #f0f0f0;
}

.page-contact__map-wrapper {
    margin-top: 40px;
    text-align: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__map-note {
    text-align: center;
    margin-top: 20px;
    font-style: italic;
    color: #cccccc;
}

/* Responsive Design */

/* All images responsive */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__hero-section {
        min-height: 400px;
        padding: 40px 0;
    }

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

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

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

    .page-contact__section-intro {
        font-size: 0.9em;
    }

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

    /* Ensure button containers are responsive */
    .page-contact__contact-methods, .page-contact__commitment-list {
        grid-template-columns: 1fr;
    }

    .page-contact__contact-form,
    .page-contact__faq-list {
        padding: 20px;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__map-section {
        padding: 50px 0;
    }

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

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

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

    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure correct header offset on mobile */
    }

    /* General container padding for mobile */
    .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__map-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    /* Image specific rules for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}