/* style/contact.css */

/* Base styles for the page-contact scope */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main for overall page content on dark background */
    background-color: #08160F; /* Background color from custom palette */
}

/* Container for consistent content width */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-contact__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    border: none;
}

.page-contact__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: transparent;
    color: #2AD16F; /* Brighter green for secondary text */
    border: 2px solid #2AD16F; /* Border with brighter green */
}

.page-contact__btn-secondary:hover {
    background: #2AD16F;
    color: #08160F; /* Background color */
    transform: translateY(-2px);
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 10px 0 60px 0; /* body handles padding-top, add small decorative top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
}

.page-contact__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    margin-top: -80px; /* Pull content up slightly over image for visual flow, but not *on* the image */
    position: relative;
    z-index: 1;
    background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 10px;
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 size */
    font-weight: 700;
    color: #F2FFF6;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 1.1rem;
    color: #A7D9B8;
    margin-bottom: 30px;
}

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

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #08160F; /* Background */
}

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

.page-contact__method-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid #2E7A4E; /* Border */
}

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

.page-contact__method-icon {
    width: 200px; /* Min size 200px */
    height: 150px; /* Adjust height for aspect ratio */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__method-title {
    font-size: 1.4rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
}

.page-contact__method-link {
    color: #57E38D; /* Glow */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #2AD16F; /* Brighter green */
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #11271B; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

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

.page-contact__form-label {
    display: block;
    font-size: 1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8; /* Text Secondary */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #57E38D; /* Glow */
    outline: none;
}

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

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

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

.page-contact__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 10px;
    margin-bottom: 15px;
    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;
    font-size: 1.1rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-question:hover {
    background-color: rgba(17, 39, 27, 0.8); /* Slightly darker Card BG on hover */
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: #57E38D; /* Glow */
    margin-left: 15px;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

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

.page-contact__faq-answer a {
    color: #57E38D; /* Glow */
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: #2AD16F; /* Brighter green */
}

/* Call to Action Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__cta-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    margin-bottom: 40px;
    border-radius: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

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

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-contact__hero-image {
        max-height: 300px;
    }

    .page-contact__hero-content {
        padding: 20px 15px;
        margin-top: -50px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-contact__description {
        font-size: 1rem;
    }

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

    .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;
        padding-right: 15px;
    }

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

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

    .page-contact__method-icon {
        width: 150px; /* Adjust for mobile */
        height: 100px;
    }

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

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

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* Mobile image and video responsive styles */
    .page-contact img,
    .page-contact video,
    .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__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .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;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-contact__video-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    }
    
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Ensure no filter on images */
.page-contact img {
    filter: none !important;
}

/* Content area images minimum size check for CSS */
.page-contact img:not(.page-contact__method-icon) { /* Exclude small icons if any were allowed (but they are not) */
    min-width: 200px;
    min-height: 200px;
}

/* Specific styling for page-contact__dark-section to ensure text contrast */
.page-contact__dark-section {
    color: #F2FFF6; /* Text Main for sections with dark background */
}
.page-contact__dark-section .page-contact__section-description {
    color: #A7D9B8; /* Text Secondary */
}

/* Ensure all links have proper contrast */
.page-contact a {
    color: #57E38D; /* Glow color for links */
}
.page-contact a:hover {
    color: #2AD16F; /* Brighter green on hover */
}

/* Ensure form labels and input text have proper contrast */
.page-contact__form-label {
    color: #F2FFF6;
}
.page-contact__form-input,
.page-contact__form-textarea {
    color: #F2FFF6;
}
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8;
}