/* style/contact.css */

/* General styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Explicitly set for contrast calculations */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

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

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 0 20px;
}

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

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

/* Section General Styles */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333;
}

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

.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: #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;
    justify-content: space-between;
    align-items: center;
    color: #333333;
}

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

.page-contact__method-icon {
    width: 250px; /* Ensure minimum size */
    height: 180px; /* Ensure minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-contact__method-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-address {
    font-weight: bold;
    color: #26A9E0;
    font-size: 1.1em;
    margin-bottom: 20px;
}

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

.page-contact__social-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #1a7bb5; /* Darker shade of primary */
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #26A9E0; /* Dark background for this section */
    color: #ffffff; /* White text for contrast */
    padding: 60px 0;
}

.page-contact__section-title--white {
    color: #ffffff;
}

.page-contact__section-intro--white {
    color: #f0f0f0;
}

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

.page-contact__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #333333; /* Dark text for FAQ content */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.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); /* Change + to X or - */
}

.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;
}

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

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

.page-contact__faq-image {
    display: block;
    margin: 40px auto 0 auto;
    width: 800px; /* Display width */
    height: 600px; /* Display height */
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Call to Action Section */
.page-contact__cta-section {
    background-color: #f8f8f8;
    padding: 80px 0;
    text-align: center;
}

.page-contact__cta-container {
    max-width: 900px;
    padding: 40px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    background-color: #ffffff;
}

.page-contact__cta-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555555;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

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

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

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

/* Specific Login Button Color (if used) */
.page-contact__btn-login {
    background-color: #EA7C07; /* Login specific color */
    border-color: #EA7C07;
    color: #ffffff;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-contact__faq-image {
        width: 600px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-contact__hero-content {
        padding: 0 15px;
    }
    .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-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-contact__container {
        padding: 30px 15px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__method-icon {
        width: 100% !important; /* Fill card width */
        height: auto !important;
        max-height: 250px; /* Prevent excessively tall images */
        object-fit: contain;
    }
    .page-contact__faq-image {
        width: 100% !important;
        height: auto !important;
        max-height: 300px;
    }

    /* Video responsiveness (if any, though none currently) */
    .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;
    }

    /* Button responsiveness */
    .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;
        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-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px;
    }
    .page-contact__faq-heading {
        font-size: 1.1em;
    }
    .page-contact__cta-container {
        padding: 30px 20px;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }
}

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