/* style/contact.css */

/* Custom color variables from prompt */
:root {
    --main-color: #11A84E;
    --aux-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background: #08160F; /* This should align with shared.css body background */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border: #2E7A4E;
    --glow: #57E38D;
    --gold: #F2C14E;
    --divider: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

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

.page-contact__section-title {
    font-size: 2.5rem;
    color: var(--gold); /* #F2C14E */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-contact__section-description {
    font-size: 1.1rem;
    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; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--deep-green); /* Fallback */
}

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

.page-contact__hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for responsive H1 */
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-contact__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__btn-secondary:hover {
    background: var(--main-color); /* #11A84E */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-tertiary {
    background: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
    border: 1px solid var(--divider); /* #1E3A2A */
    padding: 10px 20px;
    font-size: 1rem;
}

.page-contact__btn-tertiary:hover {
    background: var(--main-color); /* #11A84E */
    border-color: var(--main-color);
}

.page-contact__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 0;
    background-color: var(--background); /* #08160F */
}

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

.page-contact__method-card {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border); /* #2E7A4E */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main); /* #F2FFF6 */
}

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

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Make icons round if desired */
    background-color: var(--deep-green); /* #0A4B2C */
    padding: 15px;
}

.page-contact__card-title {
    font-size: 1.5rem;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact__faq-list {
    margin-top: 40px;
}

.page-contact__faq-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border: 1px solid var(--divider); /* #1E3A2A */
    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.2rem;
    font-weight: bold;
    color: var(--gold); /* #F2C14E */
    cursor: pointer;
    background-color: var(--deep-green); /* #0A4B2C */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: var(--deep-green); /* #0A4B2C */
}

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

.page-contact__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Adjust as needed for content */
    padding-top: 10px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-contact__faq-link {
    color: var(--main-color); /* #11A84E */
    text-decoration: none;
    font-weight: bold;
}

.page-contact__faq-link:hover {
    text-decoration: underline;
    color: var(--gold); /* #F2C14E */
}

/* Why Contact Us Section */
.page-contact__why-contact {
    padding: 80px 0;
    background-color: var(--background); /* #08160F */
}

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

.page-contact__feature-item {
    background-color: var(--card-bg); /* #11271B */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border); /* #2E7A4E */
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%;
    background-color: var(--deep-green); /* #0A4B2C */
    padding: 10px;
}

.page-contact__feature-title {
    font-size: 1.4rem;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__feature-text {
    font-size: 1rem;
    color: var(--text-secondary); /* #A7D9B8 */
}

/* Final CTA Section */
.page-contact__final-cta {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--aux-color) 100%); /* #11A84E to #22C768 */
    text-align: center;
    color: #ffffff; /* White text on gradient background */
}

.page-contact__final-cta .page-contact__section-title {
    color: #ffffff;
}

.page-contact__final-cta .page-contact__section-description {
    color: rgba(255, 255, 255, 0.9);
}

/* Image optimization for content areas */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-contact__section-title {
        font-size: 2rem;
    }
    .page-contact__hero-description {
        font-size: 1.1rem;
    }
}

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

    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container, not buttons directly */
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-tertiary,
    .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: 20px !important;
        padding-right: 20px !important;
    }

    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__why-contact,
    .page-contact__final-cta {
        padding: 50px 0;
    }

    .page-contact__method-grid,
    .page-contact__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

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

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

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

    /* Image responsive overrides */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-contact__hero-image {
        margin-bottom: 20px;
    }

    .page-contact__method-icon,
    .page-contact__feature-icon {
        width: 60px;
        height: 60px;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__contact-methods,
    .page-contact__faq-section,
    .page-contact__why-contact,
    .page-contact__final-cta,
    .page-contact__method-card,
    .page-contact__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-contact__container or specific elements */
    }
}