/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
    background-color: #02944b;
    border-color: #02944b;
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
    overflow: hidden;
    padding: 60px 20px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
    z-index: 1;
}

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

.page-contact__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-contact__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #111; /* Dark background from shared.css */
    color: #ffffff;
}

.page-contact__dark-section {
    background-color: #0d0d0d; /* Slightly darker than body for distinction */
    color: #ffffff;
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.08); /* Light bg on dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #e0e0e0;
    margin-bottom: 25px;
}

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

.page-contact__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #017439;
    color: #ffffff;
    font-size: 1.5em;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #02944b;
}

.page-contact__social-icon img {
    
    
    object-fit: contain;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-contact__form-image-wrapper {
    text-align: center;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.page-contact__contact-form {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #e0e0e0;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #aaaaaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #02944b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-contact__contact-form .page-contact__btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    color: #ffffff;
}

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-contact__faq-item details > summary {
    list-style: none; /* Hide default marker for details */
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #017439; /* Brand color for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #02944b;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
    color: #e0e0e0;
    font-size: 1em;
    line-height: 1.8;
}

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

.page-contact__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

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


/* Call to Action Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
    color: #ffffff;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-contact__form-image-wrapper {
        order: 2; /* Move image below form on smaller screens */
    }

    .page-contact__contact-form {
        order: 1;
    }
}

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

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

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

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

    .page-contact__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        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;
    }

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

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

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

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

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

    /* 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__form-grid,
    .page-contact__contact-methods,
    .page-contact__hero-section,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
}