/* style/contact.css */

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

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted for larger hero image */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff; /* White text on dark overlay */
}

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

/* General Section Styling */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__commitment-section {
    padding: 60px 0;
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff; /* Default for dark sections */
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0; /* Default for dark sections */
}

/* Info Cards Section */
.page-contact__cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    transition: transform 0.3s ease;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-contact__card-image {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

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

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

.page-contact__card-contact-detail {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-contact__card-contact-detail a {
    color: #FFFFFF; /* White link for contact details */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__card-contact-detail a:hover {
    color: #017439; /* Primary brand color on hover */
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #ffffff; /* Light background for the form */
    color: #333333; /* Dark text on light background */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: #333333; /* Dark text for titles and descriptions on light background */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    color: #333333;
    background-color: #ffffff;
}

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

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

/* FAQ Section */
.page-contact__faq-section {
    background-color: #017439; /* Primary brand color as background */
    color: #ffffff;
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
    color: #ffffff; /* White text on primary brand color background */
}

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

.page-contact__faq-item {
    background: rgba(255, 255, 255, 0.15); /* Slightly lighter background for items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: #017439; /* Darker green for question background */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #005a2e; /* Slightly darker on hover */
}

.page-contact__faq-title {
    margin: 0;
    font-size: 1.3em;
    color: #ffffff;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: rgba(255, 255, 255, 0.1); /* Lighter background for answer */
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure it expands fully */
    padding: 20px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-contact__faq-answer .page-contact__faq-link {
    color: #FFFF00; /* Yellow link for readability */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-contact__faq-answer .page-contact__faq-link:hover {
    color: #ffffff; /* White on hover */
}

/* Commitment Section */
.page-contact__commitment-section {
    background-color: #1a1a2e; /* Dark background similar to body */
    color: #ffffff;
    text-align: center;
}

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

/* Buttons */
.page-contact__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Red for primary action, e.g., register/play */
    color: #FFFF00; /* Yellow text for contrast on red button */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

.page-contact__btn-primary:hover {
    background-color: #a30707; /* Darker red on hover */
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    display: inline-block;
    background-color: #FFFFFF; /* White background for secondary action */
    color: #017439; /* Primary brand color text on white */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439; /* Border with primary brand color */
    cursor: pointer;
    margin-top: 15px;
}

.page-contact__btn-secondary:hover {
    background-color: #017439; /* Primary brand color on hover */
    color: #ffffff; /* White text on hover */
    transform: translateY(-2px);
}

/* Dark/Light Background Classes for Contrast */
.page-contact__dark-bg {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

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

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description {
    color: #333333;
}


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

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

    .page-contact__cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

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

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

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

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

    .page-contact__section-description {
        font-size: 0.95em;
    }

    .page-contact__cards-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
    }

    .page-contact__card {
        padding: 20px;
    }

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

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

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

    .page-contact__faq-question {
        padding: 15px 20px;
    }

    .page-contact__faq-title {
        font-size: 1.1em;
    }

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

    /* Mobile image responsive adaptation */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
}