/* style/contact.css */

/* General styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color */
    background-color: var(--background, #08160F); /* Default background color */
    line-height: 1.6;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 40px; /* Space below content before next section */
    padding-top: 10px; /* Small top padding for the first content section */
    background-color: var(--background, #08160F);
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__main-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2em;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 60px 20px;
    background-color: var(--background, #08160F);
}

.page-contact__contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__contact-card {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.page-contact__card-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px auto; /* Center the image */
    display: block;
}

.page-contact__card-title {
    font-size: 1.5em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
}

.page-contact__card-text {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
}

.page-contact__card-link {
    color: var(--main-color, #11A84E);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__card-link:hover {
    color: var(--glow, #57E38D);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 20px;
    background-color: var(--deep-green, #0A4B2C);
}

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

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

.page-contact__form-label {
    display: block;
    font-size: 1.1em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
    color: var(--text-main, #F2FFF6);
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-textarea {
    min-height: 120px;
    resize: vertical;
}

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__submit-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 20px;
    background-color: var(--background, #08160F);
}

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

.page-contact__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    user-select: none;
    list-style: none; /* For details/summary */
}

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

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

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

/* Call to Action Download Section */
.page-contact__cta-download-section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--deep-green, #0A4B2C);
}

.page-contact__cta-button--large {
    padding: 15px 40px;
    font-size: 1.3em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-bottom: 30px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

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

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

    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-download-section {
        padding: 40px 15px;
    }

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

    .page-contact__contact-card,
    .page-contact__contact-form {
        padding: 25px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full width of container */
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness (if any, though not used in this specific content draft) */
    .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;
    }

    /* Button responsiveness */
    .page-contact__cta-button,
    .page-contact__submit-button,
    .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; /* Add padding to prevent text touching edges */
        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 {
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Ensure content containers also respect mobile width */
    .page-contact__hero-content,
    .page-contact__contact-cards,
    .page-contact__contact-form,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0; /* Handled by section padding */
        padding-right: 0; /* Handled by section padding */
    }
    
    .page-contact__card-icon {
      width: 60px;
      height: 60px;
    }
}

/* Custom Color Definitions (from palette) */
:root {
    --main-color: #11A84E;
    --auxiliary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Ensure text contrast on various backgrounds */
/* Assuming body background is dark based on palette */
.page-contact {
    color: var(--text-main, #F2FFF6); /* Main text color for body */
}

.page-contact__card,
.page-contact__contact-form {
    background-color: var(--card-bg, #11271B); /* Darker card background */
    color: var(--text-main, #F2FFF6); /* Light text on dark card */
}

.page-contact__form-input,
.page-contact__form-textarea {
    background-color: rgba(0, 0, 0, 0.3); /* Dark input background */
    color: var(--text-main, #F2FFF6); /* Light text in input */
}

.page-contact__cta-button,
.page-contact__submit-button {
    color: #FFFFFF; /* White text on gradient button */
}

/* Specific contrast for links */
.page-contact__card-link {
    color: var(--main-color, #11A84E); /* Green link on dark card */
}
.page-contact__card-link:hover {
    color: var(--glow, #57E38D); /* Lighter green on hover */
}

/* Ensure no filter is applied to images */
.page-contact img {
    filter: none;
}