/* style/contact.css */

/* Base Styles & Typography */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Default text color for dark sections */
    background-color: #08160F; /* Overall dark background */
}

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

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

.page-contact__sub-title {
    font-size: 1.8em;
    color: #22C768;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-contact__section-description,
.page-contact p {
    font-size: 1.1em;
    color: #A7D9B8;
    margin-bottom: 15px;
}

.page-contact strong {
    color: #F2C14E;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 60px; /* Space below content */
    background-color: #08160F;
}

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

.page-contact__hero-content {
    position: relative; /* Ensure content is above the image but not overlapping */
    text-align: center;
    padding: 40px 20px;
    z-index: 2;
    max-width: 900px;
    margin-top: -100px; /* Pull content up over the image bottom, but not literally */
    background-color: rgba(8, 22, 15, 0.85); /* Slightly transparent dark background for readability */
    border-radius: 8px;
}

.page-contact__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    color: #F2FFF6;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

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

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px rgba(34, 199, 104, 0.6);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #22C768;
    border: 2px solid #22C768;
}

.page-contact__btn-secondary:hover {
    background-color: #22C768;
    color: #08160F;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for form */
    color: #333333; /* Dark text for light background */
}

.page-contact__form-section .page-contact__section-title {
    color: #08160F;
}

.page-contact__form-section .page-contact__section-description {
    color: #333333;
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 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: #08160F;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #2E7A4E;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    background-color: #ffffff;
}

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

.page-contact__form-submit {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #11271B; /* Card BG color */
}

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

.page-contact__contact-item {
    background-color: #0A4B2C; /* Deep Green */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-contact__contact-title {
    font-size: 1.5em;
    color: #F2FFF6;
    margin-bottom: 10px;
}

.page-contact__contact-text {
    color: #A7D9B8;
    margin-bottom: 20px;
}

.page-contact__contact-link {
    color: #2AD16F;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__contact-link:hover {
    color: #57E38D;
}

.page-contact__social-links {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-contact__social-icon {
    color: #F2FFF6;
    font-size: 1.2em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__social-icon:hover {
    color: #2AD16F;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-contact__faq-section .page-contact__section-title {
    color: #08160F;
}

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

.page-contact__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #E6FAE6;
    color: #08160F;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
    background-color: #D6FAD6;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #11A84E;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: '−'; /* Changed by JS */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    color: #333333;
    font-size: 1em;
    border-top: 1px solid #eee;
}

/* Compliance Section (Long-form content) */
.page-contact__compliance-section {
    padding: 60px 0;
    background-color: #08160F; /* Main dark background */
    color: #F2FFF6; /* Main text color */
}

.page-contact__compliance-section .page-contact__section-description {
    color: #A7D9B8;
}

.page-contact__content-grid {
    margin-top: 40px;
}

.page-contact__text-block {
    background-color: #11271B; /* Card BG color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.page-contact__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 25px 0;
    object-fit: cover;
}

/* Final CTA Section */
.page-contact__cta-final-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

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

.page-contact__cta-final-section .page-contact__section-title {
    color: #08160F;
}

.page-contact__cta-final-section .page-contact__section-description {
    color: #333333;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-content {
        margin-top: -50px;
        padding: 30px 15px;
    }
}

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

    .page-contact__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

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

    .page-contact__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
    }

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

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

    .page-contact__sub-title {
        font-size: 1.4em;
    }

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-contact__form {
        padding: 20px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        width: calc(100% - 20px) !important;
    }

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

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

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

    .page-contact__hero-section,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__compliance-section,
    .page-contact__cta-final-section,
    .page-contact__container,
    .page-contact__card,
    .page-contact__text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Adjust padding for sections on mobile to prevent content from touching edges */
    .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Video sections, if any, also need similar treatment */
    .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 !important;
      padding-right: 15px !important;
      overflow: hidden !important;
    }
}

/* Color Contrast & Accessibility */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__dark-bg {
    background-color: #08160F;
    color: #F2FFF6;
}

.page-contact__form-section, .page-contact__faq-section, .page-contact__cta-final-section {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__info-section, .page-contact__compliance-section {
    background-color: #08160F;
    color: #F2FFF6;
}

.page-contact__form-label, .page-contact__form-input, .page-contact__form-textarea {
    color: #333333; /* Ensuring dark text on light form background */
}

.page-contact__form-input,
.page-contact__form-textarea {
    border: 1px solid #2E7A4E;
}

.page-contact__faq-item summary {
    background-color: #E6FAE6; /* Light green for summary */
    color: #08160F;
}

.page-contact__faq-answer {
    background-color: #ffffff;
    color: #333333;
}

/* Images: No filter properties */
.page-contact img {
    filter: none; /* Ensure no CSS filters are applied */
}

/* Content area images minimum size enforcement */
.page-contact__content-image {
    min-width: 200px;
    min-height: 200px;
}

/* Content area images CSS dimensions should not conflict with HTML attributes */
/* Example for .page-contact__content-image (800x600 in HTML) */
.page-contact__content-image {
    width: 100%; /* Allows responsiveness */
    max-width: 800px; /* Limits max display size */
    height: auto; /* Maintains aspect ratio */
}

/* Ensure min-width/height for content images, not smaller than 200px */
.page-contact__text-block img {
    min-width: 200px; 
    min-height: 200px;
}