/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    background-color: var(--bg-color, #08160F); /* Ensure consistency with body bg */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-contact__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #11A84E, #22C768); /* Green Gold gradient */
    border-radius: 2px;
}

.page-contact__text-block {
    font-size: 1.1em;
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green, #0A4B2C); /* Fallback/base color */
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    filter: brightness(0.6); /* Darken image for text readability, not changing color */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--text-main, #F2FFF6);
    max-width: 900px;
    padding: 40px 20px;
}

.page-contact__main-title {
    font-weight: 800;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    /* No fixed font-size, rely on weight and responsive scaling */
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
    line-height: 1.2;
}

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

.page-contact__cta-button {
    display: inline-block;
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

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

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

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

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__method-title {
    font-size: 1.6em;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
}

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

.page-contact__email-link,
.page-contact__phone-link {
    color: var(--glow, #57E38D); /* Use a brighter color for links */
    text-decoration: none;
    font-weight: 600;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

.page-contact__method-button,
.page-contact__social-button {
    display: inline-block;
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95em;
    margin: 5px; /* For social buttons */
}

.page-contact__method-button:hover,
.page-contact__social-button:hover {
    opacity: 0.9;
}

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

/* --- Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    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: 12px;
    box-shadow: 0 8px 25px 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;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: var(--text-main, #F2FFF6);
    font-weight: 600;
}

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

.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(--glow, #57E38D);
    outline: none;
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-contact__submit-button {
    display: block;
    width: 100%;
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.15em;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__submit-button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* --- 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;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow, #57E38D);
    margin-left: 15px;
    line-height: 1;
}

.page-contact__faq-answer {
    padding: 15px 25px 25px;
    color: var(--text-secondary, #A7D9B8);
    font-size: 1em;
    line-height: 1.7;
}

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

.page-contact__faq-answer a {
    color: var(--glow, #57E38D);
    text-decoration: none;
    font-weight: 600;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

.page-contact__faq-button {
    display: inline-block;
    background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    margin-top: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* --- Why Contact Section --- */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: var(--deep-green, #0A4B2C);
}

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

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

.page-contact__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__advantage-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-width: 200px; /* Max size for icon-like images */
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__advantage-description {
    color: var(--text-secondary, #A7D9B8);
    font-size: 0.95em;
}

/* --- CTA Banner --- */
.page-contact__cta-banner {
    background: linear-gradient(90deg, #11A84E 0%, #22C768 100%); /* Green Gold gradient */
    padding: 60px 20px;
    text-align: center;
    color: #ffffff;
    box-shadow: inset 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-content .page-contact__section-title {
    color: #ffffff;
}

.page-contact__cta-content .page-contact__section-title::after {
    background: #ffffff; /* White underline for contrast */
}

.page-contact__cta-content .page-contact__text-block {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* --- Responsive Design --- */
/* Variables for colors, assuming they are defined in shared.css or global scope */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bg-color: #08160F;
    --card-bg: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* Mobile responsive for images, videos, buttons, and containers */
@media (max-width: 768px) {
    .page-contact {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-contact__hero-section {
        min-height: 400px;
        padding: 40px 15px;
        padding-top: 10px !important;
    }

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

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

    .page-contact__section-title {
        font-size: 2em;
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .page-contact__section-title::after {
        width: 60px;
    }

    .page-contact__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

    .page-contact__contact-methods,
    .page-contact__advantages {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-contact__method-card,
    .page-contact__advantage-card {
        padding: 25px;
    }

    .page-contact__method-title,
    .page-contact__advantage-title {
        font-size: 1.4em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

    .page-contact__submit-button,
    .page-contact__cta-button,
    .page-contact__method-button,
    .page-contact__social-button,
    .page-contact__faq-button {
        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;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }

    .page-contact__social-links {
        flex-direction: column; /* Stack social buttons */
        gap: 10px;
    }

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

    .page-contact__faq-answer {
        padding: 10px 20px 20px;
        font-size: 0.95em;
    }

    /* All images must be responsive */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers must be responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__why-contact-section,
    .page-contact__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Remove specific padding for sections that have container padding */
    .page-contact__info-section > .page-contact__container,
    .page-contact__form-section > .page-contact__container,
    .page-contact__faq-section > .page-contact__container,
    .page-contact__why-contact-section > .page-contact__container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Custom properties for color contrast */
.page-contact__dark-bg {
    color: var(--text-main, #F2FFF6);
    background-color: var(--deep-green, #0A4B2C);
}

.page-contact__light-bg {
    color: #333333; /* Fallback for light background */
    background-color: #ffffff;
}

.page-contact__medium-bg {
    color: #000000;
    background-color: #22C768;
}

/* Ensure paragraph and list item colors are correct */
.page-contact p,
.page-contact li {
    color: var(--text-secondary, #A7D9B8);
}

/* Specific contrast fixes if needed, though current design should handle */
.page-contact__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}

/* Ensure no filter on images */
.page-contact img {
    filter: none; /* Explicitly ensure no color filters are applied */
}
.page-contact__hero-image {
    filter: brightness(0.6); /* This is allowed as it darkens, not changes color */
}