/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #FFFFFF; /* Light text for dark background */
    text-align: center;
    overflow: hidden;
}

.page-contact__hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

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

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle overlay */
    filter: none; /* Ensure no CSS filter is applied */
}

/* General Section Styles */
.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;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

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

.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: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

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

.page-contact__method-detail {
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    margin-bottom: 20px;
}

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

.page-contact__social-icon img {
    width: 200px; /* Adjusted to meet minimum 200x200px requirement */
    height: 200px; /* Adjusted to meet minimum 200x200px requirement */
    object-fit: contain;
    filter: none; /* No CSS filter */
}

.page-contact__operating-hours {
    text-align: center;
    margin-top: 50px;
    font-size: 1.1em;
    color: #333333;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color for dark background */
    color: #FFFFFF;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px 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: #FFFFFF;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #FFFFFF;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFFFFF;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

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

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

.page-contact__faq-item {
    background: #f9f9f9;
    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: 20px 25px;
    cursor: pointer;
    background-color: #FFFFFF;
    border-bottom: 1px solid #eeeeee;
}

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

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

.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: #fefefe;
    color: #555555;
}

.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-bottom: 0;
}

.page-contact__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

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

.page-contact__cta-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
    font-weight: bold;
}

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

/* Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

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

/* Specific button for "Login" as per color scheme */
.page-contact__btn-login {
    background-color: #EA7C07; /* Login specific color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-contact__btn-login:hover {
    background-color: #C06000;
    border-color: #C06000;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        min-height: 400px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 60px 0;
    }
    
    .page-contact__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-title {
        font-size: 1.5em;
    }
    .page-contact__method-text {
        font-size: 0.95em;
    }

    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        font-size: 0.95em;
        padding: 10px 12px;
    }

    .page-contact__faq-question {
        padding: 18px 20px;
    }
    .page-contact__faq-heading {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px 20px;
    }

    .page-contact__cta-title {
        font-size: 2em;
    }
    .page-contact__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 15px;
    }

    /* Force responsive image, video, and button behavior */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no filter is applied */
    }

    .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__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; /* Add padding to prevent text from touching edges */
        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;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.6em;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__hero-section {
        min-height: 350px;
    }
}