/* style/contact.css */

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-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;
}

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

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    text-align: center;
    overflow: hidden;
}

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

.page-contact__hero-content {
    max-width: 800px;
    z-index: 1; /* Ensure content is above any potential overlays */
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* General Section Styling */
.page-contact__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--text-secondary); /* #A7D9B8 */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* Slight transparent green */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-contact__contact-methods {
    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: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border); /* #2E7A4E */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-contact__contact-detail {
    font-size: 1.1em;
    color: var(--gold); /* #F2C14E */
    font-weight: bold;
    margin-bottom: 20px;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: var(--background); /* #08160F */
}

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

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main); /* #F2FFF6 */
    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: #0A1C15; /* Slightly darker than card-bg for input */
    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-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: var(--glow); /* #57E38D */
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

.page-contact__form-textarea {
    resize: vertical;
}

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

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

.page-contact__faq-item {
    background-color: var(--card-bg); /* #11271B */
    border: 1px solid var(--border); /* #2E7A4E */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main); /* #F2FFF6 */
    font-size: 1.1em;
    background-color: #11271B; /* Same as card-bg */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom: 1px solid var(--divider); /* #1E3A2A */
}

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

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

/* Remove default details marker */
.page-contact__faq-item summary {
    list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}


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

/* Image specific styles */
.page-contact__info-image,
.page-contact__form-illustration,
.page-contact__faq-illustration {
    width: 100%;
    max-width: 800px; /* Max width for content images */
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-contact__cta-banner {
    width: 100%;
    max-width: 1200px; /* Max width for CTA banner */
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

/* Mobile Responsiveness */
@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: 10px 0 40px;
    }

    .page-contact__hero-image {
        margin-bottom: 20px;
    }

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

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

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

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

    .page-contact__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
    }

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

    .page-contact__contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-contact__card-title {
        font-size: 1.3em;
    }

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

    .page-contact__contact-form {
        padding: 20px;
    }

    .page-contact__form-label {
        font-size: 0.95em;
    }

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

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

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

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

    /* Mobile 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__hero-content,
    .page-contact__contact-form,
    .page-contact__info-image,
    .page-contact__form-illustration,
    .page-contact__faq-illustration,
    .page-contact__cta-banner {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure no horizontal scroll on video-section if it were present */
    .page-contact__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}