/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Assuming body background from shared.css is dark */
    padding-top: var(--header-offset, 120px); /* Space for fixed header */
}

.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: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Fallback background */
}

.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;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-contact__hero-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Slightly lighter dark background */
}

.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: rgba(255, 255, 255, 0.08); /* Semi-transparent light card */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-contact__method-detail {
    font-size: 1.1em;
    color: #FFFFFF;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-contact__method-detail a {
    color: #FFFF00; /* Highlight contact info links */
    text-decoration: none;
}

.page-contact__method-detail a:hover {
    text-decoration: underline;
}

.page-contact__method-button {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.page-contact__info-note {
    text-align: center;
    margin-top: 50px;
    font-size: 0.95em;
    color: #aaaaaa;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #000000; /* Dark background */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__contact-form {
    max-width: 700px;
    width: 100%;
    margin-top: 40px;
    background: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2; /* Above the image */
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #333;
    border-radius: 6px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
}

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__form-image {
    width: 100%;
    max-width: 600px; /* Adjust size as needed */
    height: auto;
    margin-top: 40px;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__form-guidance {
    text-align: center;
    margin-top: 30px;
    font-size: 0.9em;
    color: #aaaaaa;
}

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

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

.page-contact__faq-item {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    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: #FFFFFF;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    user-select: none;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    color: #FFFF00;
}

.page-contact__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #cccccc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-contact__faq-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-contact__faq-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    margin: 50px auto 0;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #017439; /* Brand primary color background */
}

.page-contact__cta-section .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__cta-section .page-contact__section-intro {
    color: #f0f0f0;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 18px 35px;
    font-size: 1.3em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button:hover {
    transform: translateY(-3px);
}

.page-contact__cta-subtext {
    margin-top: 30px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-contact__cta-login-link {
    color: #FFFF00; /* Highlight login link */
    text-decoration: none;
    font-weight: bold;
}

.page-contact__cta-login-link:hover {
    text-decoration: underline;
}

/* Button styles */
.page-contact__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

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

.page-contact__btn-register,
.page-contact__btn-login { /* Custom colors for register/login buttons */
    background-color: #C30808; /* Red for register/login */
    color: #FFFF00; /* Yellow text for register/login */
    border: 2px solid #C30808;
}

.page-contact__btn-register:hover,
.page-contact__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Copyright */
.page-contact__copyright {
    text-align: center;
    padding: 30px 15px;
    background-color: #1a1a1a;
    color: #aaaaaa;
    font-size: 0.9em;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive Styles */
/* Images, videos, buttons responsive rules */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

    .page-contact__hero-section {
        height: 450px;
    }

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

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

    .page-contact__hero-button {
        padding: 12px 25px;
        font-size: 1em;
    }

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

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

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

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

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

    .page-contact__form-section {
        padding: 60px 0;
    }

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

    .page-contact__form-submit-btn {
        padding: 12px;
        font-size: 1em;
    }

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

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

    .page-contact__cta-button {
        padding: 15px 30px;
        font-size: 1.1em;
    }

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

    /* Mobile video responsiveness (if any video) */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure padding on mobile buttons */
        padding-right: 15px;
    }

    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Ensure details summary marker is hidden */
.page-contact__faq-item summary {
    list-style: none;
}

.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}