/* style/contact.css */

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

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

.page-contact__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px; /* Adjust padding for content below image */
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green, #0A4B2C); /* Fallback background for hero */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
    margin-bottom: 30px; /* Space between image and text */
}

.page-contact__hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 0 15px;
}

.page-contact__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: bold;
}

.page-contact__hero-description {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%; /* Ensure container takes full width */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--main-color, #11A84E);
}

.page-contact__btn-secondary:hover {
    background: var(--main-color, #11A84E);
    color: #ffffff;
    transform: translateY(-2px);
}

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

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

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

.page-contact__info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__info-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__info-card-title {
    font-size: 24px;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__info-card-text {
    font-size: 16px;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
}

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

.page-contact__info-link:hover {
    color: var(--secondary-color, #22C768);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--card-bg, #11271B);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--deep-green, #0A4B2C);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, #2E7A4E);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--text-main, #F2FFF6);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--main-color, #11A84E);
    outline: none;
}

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-contact__form-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

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

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

.page-contact__faq-item[open] {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.1); /* Slightly lighter background for question */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: var(--main-color, #11A84E);
    border-bottom-color: var(--border-color, #2E7A4E);
}

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

.page-contact__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-main, #F2FFF6);
}

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

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

/* Responsive Styles */
@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px;
    }

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

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

    .page-contact__main-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    .page-contact__hero-description {
        font-size: clamp(16px, 4vw, 18px);
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section {
        padding: 50px 0;
    }

    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-contact__contact-form {
        padding: 25px 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .page-contact__form-label {
        font-size: 16px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
    }

    .page-contact__form-submit-btn {
        font-size: 18px;
        padding: 12px 15px;
    }

    .page-contact__faq-list {
        padding: 0 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

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

    .page-contact__faq-toggle {
        font-size: 20px;
    }

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

    /* Enforce image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__info-card,
    .page-contact__contact-form,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-contact__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

/* Color contrast enforcement based on provided color scheme (dark background) */
.page-contact {
    color: var(--text-main, #F2FFF6); /* Main text is light */
    background-color: var(--bg-color, #08160F); /* Main background is dark */
}

/* Elements that might have a different background */
.page-contact__info-card,
.page-contact__faq-item {
    background-color: var(--card-bg, #11271B); /* Dark card background */
    color: var(--text-main, #F2FFF6); /* Light text on dark card */
}

.page-contact__contact-form {
    background-color: var(--deep-green, #0A4B2C); /* Dark form background */
    color: var(--text-main, #F2FFF6); /* Light text on dark form */
}

.page-contact__form-label {
    color: var(--text-main, #F2FFF6);
}

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

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

.page-contact__faq-answer {
    color: var(--text-secondary, #A7D9B8);
}

/* Button colors are already defined with proper contrast */