/* style/contact.css */

/* Base Styles & Typography */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color, #FFFFFF); /* Inherit from shared or default to white */
}

.page-contact a {
    color: #26A9E0; /* Brand primary color for links */
    text-decoration: none;
}

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

.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 primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-contact__btn-primary:hover {
    background-color: #1e87c0; /* Slightly darker primary */
    border-color: #1e87c0;
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color */
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f8ff; /* Light background on hover */
    color: #1e87c0; /* Slightly darker primary */
    border-color: #1e87c0;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #26A9E0; /* Dark section background */
    color: #FFFFFF; /* Light text for dark background */
}

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

.page-contact__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
}

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

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

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

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

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

.page-contact__method-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
    color: #333333;
}

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

.page-contact__card-text {
    font-size: 1.05em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows text to take available space */
}

.page-contact__email-address,
.page-contact__phone-number {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000000;
}

.page-contact__method-card .page-contact__btn-primary {
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
}

.page-contact__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
    flex-shrink: 0; /* Prevent image from shrinking */
    min-height: 200px; /* Ensure image is not too small */
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark section background */
    color: #FFFFFF; /* Light text */
    position: relative;
    overflow: hidden;
}

.page-contact__form-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%; /* Image takes half width */
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
    display: block; /* Ensure image is block level */
}

.page-contact__form-section .page-contact__container {
    position: relative;
    z-index: 2;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 50px auto 0;
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: #333333;
}

.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 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 20px;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.page-contact__faq-list {
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    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;
    cursor: pointer;
    background-color: #f0f0f0;
    color: #26A9E0;
    font-weight: bold;
    font-size: 1.15em;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question-title {
    margin: 0;
    color: #26A9E0;
    font-size: 1.15em;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

.page-contact__faq-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 50px auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Dark section background */
    color: #FFFFFF; /* Light text */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__commitment-section .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__commitment-section .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__commitment-text {
    font-size: 1.1em;
    max-width: 900px;
    margin: 30px auto;
    color: #f0f0f0;
}

.page-contact__commitment-text a {
    color: #FFFFFF;
    text-decoration: underline;
}

.page-contact__commitment-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 50px auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 200px;
}

.page-contact__commitment-section .page-contact__btn-primary {
    margin-top: 40px;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    text-align: center;
}

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

.page-contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333333;
    font-weight: bold;
    transition: color 0.3s ease;
    flex-basis: 200px; /* Give a base width for flex items */
    flex-grow: 1;
    max-width: 280px; /* Limit max width for individual items */
}

.page-contact__social-link:hover {
    color: #26A9E0;
}

.page-contact__social-image {
    width: 100%; /* Take full width of its container */
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 200px; /* Ensure minimum size */
}

.page-contact__social-link:hover .page-contact__social-image {
    transform: translateY(-5px);
}

.page-contact__social-text {
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__form-image {
        width: 40%;
        right: -10%; /* Adjust for smaller screens */
    }
    .page-contact__contact-form {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__form-image {
        display: none; /* Hide image on mobile for better form visibility */
    }
    .page-contact__contact-form {
        max-width: 100%;
        padding: 25px;
    }
    .page-contact__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-contact__faq-question-title {
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 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__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__social-media-section,
    .page-contact__hero-container,
    .page-contact__contact-methods,
    .page-contact__method-card,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__faq-item,
    .page-contact__social-links,
    .page-contact__social-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Add padding to prevent content from touching edges */
        padding-right: 15px !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific overrides for padding on sections that already have 0 padding */
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__social-media-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__hero-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Buttons */
    .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;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Add padding to buttons themselves */
        padding-right: 15px !important;
    }
    .page-contact__hero-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__method-card .page-contact__btn-primary {
        max-width: 100%; /* Ensure full width on mobile */
    }
    .page-contact__social-links {
        flex-direction: column; /* Stack social links vertically */
        gap: 20px;
    }
    .page-contact__social-link {
        width: 100%;
        align-items: center;
        max-width: 100%; /* Ensure social link container is full width */
    }
    .page-contact__social-image {
        max-width: 300px !important; /* Limit max width for image in column */
        width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
}

/* Dark/Light Backgrounds for contrast */
.page-contact__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

/* Ensure specific elements within dark sections have light text */
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__hero-description {
    color: #f0f0f0;
}

.page-contact__dark-section .page-contact__contact-form {
    color: #333333; /* Form text must be dark */
}
.page-contact__dark-section .page-contact__contact-form a {
    color: #26A9E0; /* Links in form are brand color */
}

.page-contact__dark-section .page-contact__form-label,
.page-contact__dark-section .page-contact__form-input,
.page-contact__dark-section .page-contact__form-textarea {
    color: #333333; /* Form elements should have dark text on light bg within form */
}