/* style/contact.css */

/* Variables and Base Styles */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f9fa; /* A very light grey for contrast with dark text */
    --login-color: #EA7C07; /* Orange for login */
    --black-color: #000000; /* Assuming this is the body background from shared.css */
}

.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Main content background should be transparent to show body background */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
    background-color: var(--primary-color); /* Fallback/overlay for hero section */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Ensure hero section has a minimum height */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit image height in hero */
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-contact__hero-content {
    position: relative; /* Position content above the image wrapper */
    z-index: 1;
    max-width: 800px;
    color: var(--text-light);
    text-shadow: 0 0 5px rgba(0,0,0,0.5); /* Add text shadow for better contrast */
    padding: 20px;
    box-sizing: border-box;
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Use clamp for H1 */
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-link {
    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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text wraps */
    text-align: center;
}

.page-contact__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-contact__btn-primary:hover {
    background-color: #1a8cc4; /* Darker primary color */
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-contact__btn-link {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    font-size: 0.9rem;
}

.page-contact__btn-link:hover {
    background-color: #1a8cc4; /* Darker primary color */
}

/* General Section Styles */
.page-contact__section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: 2.5rem;
    color: var(--text-light); /* Default light text for sections on dark backgrounds */
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

.page-contact__text-block {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--text-light); /* Default light text */
}

/* Why Contact Section */
.page-contact__why-contact {
    background-color: var(--black-color); /* Dark section background */
    color: var(--text-light);
}

.page-contact__why-contact .page-contact__section-title,
.page-contact__why-contact .page-contact__text-block {
    color: var(--text-light);
}

.page-contact__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 50px;
}

.page-contact__feature-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly visible card on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
}

.page-contact__feature-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-contact__feature-item p {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact Methods Section */
.page-contact__contact-methods {
    background-color: var(--background-light); /* Light section background */
    color: var(--text-dark);
}

.page-contact__contact-methods .page-contact__section-title,
.page-contact__contact-methods .page-contact__text-block {
    color: var(--text-dark);
}

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

.page-contact__method-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: var(--text-dark);
}

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no CSS filter */
}

.page-contact__method-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-contact__method-description {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-contact__email-link, .page-contact__phone-link {
    color: var(--primary-color);
    text-decoration: none;
}

.page-contact__email-link:hover, .page-contact__phone-link:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form {
    background-color: var(--black-color); /* Dark section background */
    color: var(--text-light);
    display: flex; /* Use flex to arrange form and image side-by-side on larger screens */
    align-items: center;
    justify-content: center;
}

.page-contact__contact-form .page-contact__container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-contact__contact-form .page-contact__section-title,
.page-contact__contact-form .page-contact__text-block {
    color: var(--text-light);
    width: 100%; /* Title and text block should take full width */
}

.page-contact__form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-light);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 1rem;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.5);
}

.page-contact__form-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: var(--primary-color); /* Dark section background */
    color: var(--text-light);
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__text-block {
    color: var(--text-light);
}

.page-contact__faq-list {
    max-width: 800px;
    margin: 50px auto 30px auto;
    text-align: left;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-contact__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    color: var(--text-light);
}

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

.page-contact__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-light);
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-contact__faq-answer {
    padding: 15px 25px 20px 25px;
    background-color: rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__faq-answer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.page-contact__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: var(--background-light);
}

.page-contact__faq-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
}

/* Final CTA Section */
.page-contact__final-cta {
    background-color: var(--background-light); /* Light section background */
    color: var(--text-dark);
}

.page-contact__final-cta .page-contact__section-title,
.page-contact__final-cta .page-contact__text-block {
    color: var(--text-dark);
}

.page-contact__support-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 10px;
    object-fit: cover;
    filter: none; /* Ensure no CSS filter */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-content {
        max-width: 90%;
    }
    .page-contact__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-contact__description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 40px 0;
        min-height: 400px;
    }
    .page-contact__hero-content {
        padding: 0 15px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-contact__description {
        font-size: 1rem;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__section {
        padding: 60px 0;
    }
    .page-contact__section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .page-contact__text-block {
        font-size: 1rem;
    }

    .page-contact__feature-list,
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__contact-form .page-contact__container {
        flex-direction: column;
        gap: 30px;
    }
    .page-contact__form,
    .page-contact__form-image {
        max-width: 100%;
        width: 100%;
    }

    .page-contact__faq-list {
        margin-top: 30px;
    }
    .page-contact__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-contact__faq-answer {
        padding: 10px 20px 15px 20px;
    }

    /* Mobile image and video responsive rules */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important; /* Explicitly set width to 100% for full responsiveness */
        height: auto !important;
        display: block !important;
    }
    .page-contact video,
    .page-contact__video {
        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, /* Added hero section to container rules */
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__form, /* Added form to container rules */
    .page-contact__faq-list, /* Added faq list to container rules */
    .page-contact__final-cta { /* Added final cta to container rules */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Video section top padding, body already handles header offset */
    .page-contact__video-section {
        padding-top: 10px !important;
    }
}