/* style/contact.css */

/* --- General Page Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #ffffff); /* Use shared background, default to white */
}

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

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

.page-contact__section-title--light {
    color: #ffffff; /* White text for dark backgrounds */
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555; /* Slightly darker grey for descriptions */
}

.page-contact__section-description--light {
    color: #f0f0f0; /* Light grey for descriptions on dark backgrounds */
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none !important;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__hero-button,
.page-contact__method-button,
.page-contact__form-submit-button,
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button text wrapping */
    word-wrap: break-word; /* Button text wrapping */
}

.page-contact__btn-primary,
.page-contact__hero-button,
.page-contact__form-submit-button,
.page-contact__cta-button {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover,
.page-contact__hero-button:hover,
.page-contact__form-submit-button:hover,
.page-contact__cta-button:hover {
    background-color: #1e87c2; /* Slightly darker blue on hover */
    border-color: #1e87c2;
}

.page-contact__btn-secondary,
.page-contact__method-button {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover,
.page-contact__method-button:hover {
    background-color: #f0f0f0;
    color: #1e87c2;
    border-color: #1e87c2;
}

/* --- Methods Section --- */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
}

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

.page-contact__method-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 100%; /* Make it responsive */
    max-width: 250px; /* Example max width for illustrative images */
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforcing min size for images */
    min-height: 200px; /* Enforcing min size for images */
    filter: none !important;
}

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

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

/* --- Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 40px;
    align-items: center;
}

@media (min-width: 769px) {
    .page-contact__form-grid {
        grid-template-columns: 1fr 1fr; /* Two columns on larger screens */
    }
}

.page-contact__form-content {
    text-align: center;
}

.page-contact__form-image-desktop {
    display: none; /* Hidden by default */
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    min-width: 200px;
    min-height: 200px;
    filter: none !important;
}

@media (min-width: 769px) {
    .page-contact__form-image-desktop {
        display: block; /* Show on desktop */
    }
}

.page-contact__contact-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

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

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

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

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8; /* Light background */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__faq-list {
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    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-question:hover {
    background-color: #e6e6e6;
}

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

.page-contact__faq-answer {
    padding: 15px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #ffffff;
}

.page-contact__faq-answer p {
    margin: 0;
}

.page-contact__faq-image {
    width: 100%;
    max-width: 600px; /* Constrain FAQ image width */
    height: auto;
    border-radius: 10px;
    margin-top: 20px;
    min-width: 200px;
    min-height: 200px;
    filter: none !important;
}

/* --- CTA Section --- */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark background */
    text-align: center;
}

/* --- Dark/Light Background Helpers --- */
.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* --- Responsive Adjustments (Mobile First) --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__form-grid {
        grid-template-columns: 1fr; /* Stack form content and form on mobile */
    }
    .page-contact__form-content {
        order: 2; /* Move content below form on mobile */
    }
    .page-contact__contact-form {
        order: 1; /* Move form above content on mobile */
        padding: 30px;
    }
    .page-contact__form-image-desktop {
        display: none !important; /* Ensure desktop image is hidden on mobile */
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 10px 20px;
    }

    /* --- Force Responsive for Images, Videos, Buttons --- */
    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important;
    }
    .page-contact__hero-image {
        /* Hero image needs to cover the full width/height */
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .page-contact__method-icon,
    .page-contact__form-image-desktop,
    .page-contact__faq-image {
        min-width: 200px !important; /* Ensure minimum size is respected */
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Image/Video Containers (sections, divs, cards) */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section,
    .page-contact__methods-grid,
    .page-contact__method-card,
    .page-contact__form-grid,
    .page-contact__form-content,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Video (if any) */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-contact__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }


    /* Buttons */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important; /* Ensure buttons take full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
    }
}

/* Specific color rules */
.page-contact a[href^="tel:"],
.page-contact a[href^="mailto:"] {
    color: #26A9E0; /* Brand color for contact links */
    text-decoration: underline;
}
.page-contact a[href^="tel:"]:hover,
.page-contact a[href^="mailto:"]:hover {
    color: #1e87c2;
}