/* style/contact.css */

/* Base styles for the page-contact scope */
.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 is handled by shared.css */
}

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

/* Section styling */
.page-contact__hero-section,
.page-contact__methods-section,
.page-contact__commitment-section,
.page-contact__faq-section,
.page-contact__cta-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* Background colors based on body background (dark) */
.page-contact__dark-bg {
    background-color: rgba(38, 169, 224, 0.1); /* Slightly transparent brand color for contrast */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for contrast */
    color: #f0f0f0;
}

.page-contact__section-title {
    font-size: 2.8em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__main-title {
    font-size: 3.5em;
    color: #26A9E0; /* Brand color for main title */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

/* Hero Section */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.1; /* Subtly blend with background */
}

.page-contact__hero-cta {
    margin-top: 30px;
}

/* Buttons */
.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: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-contact__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

.page-contact__btn-primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

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

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

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Contact Methods Section */
.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: rgba(255, 255, 255, 0.1); /* Card background for contrast */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%; /* Ensure cards have equal height */
    color: #ffffff;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
    color: #f0f0f0;
}

.page-contact__card-info {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    color: #f0f0f0;
}

.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-icon {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-icon:hover {
    color: #ffffff;
    text-decoration: underline;
}

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

.page-contact__section-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Commitment Section */
.page-contact__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.1); /* Card background for contrast */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.page-contact__commitment-heading {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__commitment-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 40px;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #f0f0f0;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #26A9E0;
    font-weight: bold;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 20px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 20px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X (or similar) */
}

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

    .page-contact__main-title {
        font-size: 2.5em;
    }

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

    .page-contact__section-description,
    .page-contact__hero-description {
        font-size: 1em;
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__commitment-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 50px 0;
    }

    /* Images responsiveness */
    .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,
    .page-contact__section-image {
        opacity: 0.05 !important; /* Make background images even more subtle on mobile */
    }

    /* Containers for images */
    .page-contact__hero-section,
    .page-contact__methods-section,
    .page-contact__commitment-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        margin-right: 0 !important; /* Remove margin for stacked buttons */
        margin-bottom: 15px; /* Add vertical spacing */
        font-size: 1em !important;
    }

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

    .page-contact__method-grid,
    .page-contact__commitment-grid {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 0 15px;
    }

    .page-contact__method-card,
    .page-contact__commitment-item {
        padding: 20px;
    }

    .page-contact__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-contact__faq-question {
        padding: 15px;
    }

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

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

    /* Ensure video container padding-top is correct on mobile */
    /* Assuming hero section is the first content container and needs header offset */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Ensure no filter on images */
.page-contact img {
    filter: none;
}