/* style/contact.css */

/* Custom Colors */
:root {
    --page-contact-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-contact-card-bg: #11271B;
    --page-contact-bg: #08160F;
    --page-contact-text-main: #F2FFF6;
    --page-contact-text-secondary: #A7D9B8;
    --page-contact-border: #2E7A4E;
    --page-contact-glow: #57E38D;
    --page-contact-gold: #F2C14E;
    --page-contact-divider: #1E3A2A;
    --page-contact-deep-green: #0A4B2C;
    --brand-primary: #11A84E;
    --brand-secondary: #22C768;
}

.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-contact-text-main); /* Default text color for dark background */
    background-color: var(--page-contact-bg); /* Default page background */
}

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

/* Section Styles */
.page-contact__hero-section,
.page-contact__methods-section,
.page-contact__form-section,
.page-contact__office-section,
.page-contact__faq-section,
.page-contact__cta-section {
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-contact__dark-section {
    background-color: var(--page-contact-bg);
    color: var(--page-contact-text-main);
}

.page-contact__light-bg {
    background-color: #ffffff; /* Using white for contrast on light sections */
    color: #333333; /* Dark text for light background */
}

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__card-title,
.page-contact__light-bg .page-contact__detail-title {
    color: var(--brand-primary); /* Use brand color for titles on light background */
}

.page-contact__light-bg .page-contact__text-link {
    color: var(--brand-primary);
}
.page-contact__light-bg .page-contact__text-link:hover {
    color: var(--brand-secondary);
}


/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--page-contact-bg);
    color: var(--page-contact-text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 500px; /* Adjust as needed */
}

.page-contact__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.page-contact__hero-image {
    width: 100%;
    max-width: 1200px; /* Max width for the image */
    height: auto;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and text */
    border-radius: 10px;
}

.page-contact__hero-text-container {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: var(--page-contact-text-main);
    max-width: 600px; /* Limit H1 width to prevent it from being too wide */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--page-contact-text-secondary);
}

/* Section Titles & Descriptions */
.page-contact__section-title {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--page-contact-text-main);
}

.page-contact__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--page-contact-text-secondary);
}

/* Buttons */
.page-contact__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-contact__btn-primary {
    background: var(--page-contact-btn-gradient);
    color: #ffffff;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Invert gradient on hover */
    box-shadow: 0 0 15px var(--page-contact-glow);
}

.page-contact__btn-secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.page-contact__btn-secondary:hover {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.4);
}

/* Contact Methods Section */
.page-contact__methods-section {
    background-color: #ffffff; /* Light background for this section */
    color: #333333;
}

.page-contact__methods-section .page-contact__section-title,
.page-contact__methods-section .page-contact__section-description {
    color: #333333;
}

.page-contact__method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-contact__card-bg-light {
    background-color: #f9f9f9; /* Lighter card background for light section */
    color: #333333;
    border: 1px solid #e0e0e0;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__card-bg-light .page-contact__card-title {
    color: var(--brand-primary); /* Brand color for titles on light card */
}

.page-contact__card-bg-light .page-contact__card-text {
    color: #555555;
}

.page-contact__card-bg-light .page-contact__contact-info {
    color: #333333;
}

.page-contact__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--page-contact-text-main);
}

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
    color: var(--page-contact-text-secondary);
}

.page-contact__contact-info {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--page-contact-text-main);
}

.page-contact__text-link {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: bold;
}
.page-contact__text-link:hover {
    text-decoration: underline;
    color: var(--brand-secondary);
}

.page-contact__social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: center;
    margin-top: 10px;
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: var(--page-contact-bg);
    color: var(--page-contact-text-main);
}

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

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--page-contact-text-main);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--page-contact-border);
    border-radius: 8px;
    background-color: #0A2016; /* Slightly lighter than card bg */
    color: var(--page-contact-text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: var(--page-contact-text-secondary);
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto; /* Keep button width flexible */
    min-width: 150px;
    margin-top: 10px;
}

/* Office Section */
.page-contact__office-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
}

.page-contact__office-section .page-contact__section-title,
.page-contact__office-section .page-contact__section-description {
    color: #333333;
}

.page-contact__office-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
}

.page-contact__detail-block {
    flex: 1 1 45%; /* Two columns on larger screens */
    max-width: 45%;
    text-align: left;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__detail-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--brand-primary);
}

.page-contact__detail-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: var(--page-contact-bg);
    color: var(--page-contact-text-main);
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 50px auto 0;
    text-align: left;
}

.page-contact__faq-item {
    background-color: var(--page-contact-card-bg);
    border: 1px solid var(--page-contact-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden; /* For smooth transition if using max-height */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-contact-text-main);
    background-color: var(--page-contact-deep-green); /* Slightly different background for question */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #0F5C3B; /* Darken on hover */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--brand-primary);
}

.page-contact__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--page-contact-text-secondary);
}

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


/* CTA Section */
.page-contact__cta-section {
    background-color: #ffffff; /* Light background */
    color: #333333;
    padding: 80px 20px;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-description {
    color: #333333;
}

.page-contact__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Image Fluid for all content images */
.page-contact__image-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Images, Videos, Buttons */
.page-contact img,
.page-contact video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact__video-section,
.page-contact__video-container,
.page-contact__video-wrapper,
.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__detail-block,
.page-contact__contact-form,
.page-contact__faq-item,
.page-contact__btn,
.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow for containers */
}

.page-contact__btn {
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding */
    }

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* Clamp H1 font size for mobile */
        max-width: 100%;
    }

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

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

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

    .page-contact__container {
        padding: 20px 15px; /* Adjust container padding for mobile */
    }

    /* Images and Videos - Force responsive */
    .page-contact img,
    .page-contact video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image/video/button containers */
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__detail-block,
    .page-contact__contact-form,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add horizontal padding to containers */
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Buttons - Force responsive */
    .page-contact__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; /* Add horizontal padding to buttons */
        padding-right: 15px;
    }
    
    .page-contact__social-links {
        flex-direction: column; /* Stack social buttons vertically */
        gap: 10px;
    }

    .page-contact__method-cards {
        grid-template-columns: 1fr; /* Single column for cards on mobile */
    }

    .page-contact__office-details {
        flex-direction: column;
        gap: 20px;
    }

    .page-contact__detail-block {
        max-width: 100%;
    }
}

/* Ensure no CSS filters are used on images */
.page-contact img {
    filter: none !important; /* Explicitly disable any potential filters */
}