/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color, #333333); /* Default text color, ensuring contrast with body background */
    background-color: var(--background-color, #FFFFFF); /* Body background from shared.css */
}

/* Header offset for fixed header */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    position: relative;
    overflow: hidden;
}

/* Section common styles */
.page-contact__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: var(--heading-color, #26A9E0); /* Using brand color for titles */
    font-weight: bold;
}

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

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative; /* For image positioning */
    z-index: 1;
}

/* Hero Section */
.page-contact__hero-section {
    background: linear-gradient(135deg, #26A9E0, #1a7bb5); /* Brand color gradient */
    color: #FFFFFF;
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}

.page-contact__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
    z-index: 0;
}

.page-contact__hero-section .page-contact__container {
    z-index: 1;
}

.page-contact__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure words break */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
    text-align: center;
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

.page-contact__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7bb5;
    border-color: #1a7bb5;
}

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

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.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 #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
}

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

.page-contact__form-section .page-contact__btn-primary {
    width: auto;
    margin: 0 auto;
    display: block;
}

.page-contact__form-image {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 400px;
    height: 300px;
    object-fit: contain;
    opacity: 0.1;
    z-index: 0;
}

/* Alternative Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

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

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

.page-contact__method-card .page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
    margin-top: 15px;
}

.page-contact__method-card .page-contact__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a7bb5;
    border-color: #e0f2f7;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #26A9E0;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.page-contact__social-icon:hover {
    background-color: #e0f2f7;
    color: #1a7bb5;
}

.page-contact__card-image {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    object-fit: contain;
    opacity: 0.1;
    z-index: 0;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #f2f7fb; /* Light background */
    color: #333333;
    position: relative;
    overflow: hidden;
}

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

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

.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 #eee;
    transition: background-color 0.3s ease;
}

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

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

.page-contact__faq-toggle {
    font-size: 1.8em;
    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;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

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

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

.page-contact__faq-image {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 400px;
    height: 300px;
    object-fit: contain;
    opacity: 0.1;
    z-index: 0;
}

/* Video Section */
.page-contact__video-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for video */
    color: #FFFFFF;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.page-contact__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate clickability */
}

.page-contact__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Make it clickable over the video */
    cursor: pointer;
    background: transparent; /* No visual overlay */
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light background */
    color: #333333;
    text-align: center;
}

/* Dark/Light Background helpers for contrast */
.page-contact__dark-bg {
    color: #FFFFFF;
}
.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__card-title,
.page-contact__dark-bg .page-contact__card-text {
    color: #FFFFFF;
}

.page-contact__light-bg {
    color: #333333;
}
.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__form-label {
    color: #26A9E0; /* Use brand color for titles on light background */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 3em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__intro-text,
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__form-image,
    .page-contact__faq-image,
    .page-contact__card-image {
        display: none; /* Hide decorative images on smaller screens */
    }
}

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

    .page-contact__hero-section,
    .page-contact__form-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__video-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

    .page-contact__intro-text,
    .page-contact__section-description {
        font-size: 0.95em;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__methods-grid,
    .page-contact__faq-list,
    .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; /* Prevent horizontal scroll */
    }

    .page-contact__contact-form {
        padding: 20px;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

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

    .page-contact__faq-title {
        font-size: 1.1em;
    }

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

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

    /* Image responsive rules */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Video responsive rules */
    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .page-contact__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }
}