/* style/contact.css */

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

/* Container for consistent spacing */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-contact__section-title {
    font-size: 36px;
    color: #26A9E0; /* Primary brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Main title (H1) */
.page-contact__main-title {
    font-size: 48px;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: #ffffff;
    color: #333333;
}

.page-contact__hero-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #444444;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

/* Primary Button Style */
.page-contact__btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__btn-primary:hover {
    background: #1e87c0; /* Slightly darker primary on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Secondary Button Style */
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: #ffffff;
    color: #26A9E0; /* Primary brand color for text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid #26A9E0;
    cursor: pointer;
}

.page-contact__btn-secondary:hover {
    background: #f0f8ff; /* Light background on hover */
    color: #1e87c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* CTA Button Specifics */
.page-contact__cta-button {
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}

/* Contact Info Section */
.page-contact__info-section {
    background-color: #f8f9fa; /* Light grey background */
    padding: 60px 0;
    color: #333333;
}

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

.page-contact__info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__info-card-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__info-card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 10px;
}

.page-contact__info-link {
    display: inline-block;
    color: #EA7C07; /* Login color for contact links */
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-contact__info-link:hover {
    color: #c96a06;
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #26A9E0; /* Primary brand color background */
    padding: 80px 0;
    color: #ffffff; /* White text for dark background */
}

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

.page-contact__form-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-contact__form-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-contact__contact-form {
    flex: 2;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px 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;
    font-size: 16px;
    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: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    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);
}

.page-contact__submit-button {
    width: auto;
    margin-top: 10px;
    border: none;
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__benefit-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-contact__benefit-title {
    font-size: 22px;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-contact__benefit-text {
    font-size: 16px;
    color: #555555;
}

.page-contact__closing-statement {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-top: 50px;
    color: #26A9E0;
}

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

.page-contact__faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-contact__faq-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-contact__faq-list {
    flex: 2;
    min-width: 300px;
}

/* FAQ item styles - Provided by user, with BEM */
.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    font-size: 16px;
    color: #444444;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important; /* 🚨 Using !important as per instructions */
    padding: 20px 15px !important; /* 🚨 Using !important as per instructions */
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-contact__faq-item.active .page-contact__faq-question {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #26A9E0; /* Highlight active question */
}

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

.page-contact__faq-question:active {
    background: #eeeeee;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click event */
    color: #333333;
}

.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    color: #26A9E0; /* Primary color for active toggle */
    transform: rotate(45deg); /* Plus sign rotates to X, or could be a minus sign */
}

/* Social Media Section */
.page-contact__social-section {
    background-color: #26A9E0; /* Primary brand color background */
    padding: 80px 0;
    color: #ffffff; /* White text for dark background */
}

.page-contact__social-section .page-contact__section-title,
.page-contact__social-section .page-contact__section-description {
    color: #ffffff;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #ffffff;
    color: #26A9E0;
    border-radius: 50%;
    font-size: 24px;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-weight: bold; /* Make text visible */
}

.page-contact__social-icon:hover {
    background: #f0f8ff;
    color: #1e87c0;
    transform: translateY(-3px);
}

.page-contact__social-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-contact__cta-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 30px;
    }
    .page-contact__hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 20px 15px; /* Mobile padding */
    }
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
    }
    .page-contact__main-title {
        font-size: 32px;
    }
    .page-contact__section-title {
        font-size: 26px;
    }
    .page-contact__hero-description {
        font-size: 16px;
    }
    .page-contact__info-grid,
    .page-contact__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__form-content,
    .page-contact__faq-grid {
        flex-direction: column;
    }
    .page-contact__form-image-wrapper,
    .page-contact__contact-form,
    .page-contact__faq-image-wrapper,
    .page-contact__faq-list {
        min-width: unset;
        width: 100%;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__submit-button,
    .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;
        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; /* Ensure buttons stack */
        gap: 15px;
    }
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ Mobile Specifics */
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-contact__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
}

/* Color Contrast classes (as per instructions) */
.page-contact__dark-bg {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-contact__light-bg {
    background: #ffffff;
    color: #333333; /* Dark text for light background */
}
/* Ensure text in dark-bg sections remains white */
.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg .page-contact__form-label,
.page-contact__dark-bg .page-contact__form-input,
.page-contact__dark-bg .page-contact__form-textarea {
    color: #ffffff;
}
.page-contact__dark-bg .page-contact__form-input::placeholder,
.page-contact__dark-bg .page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* General image styling for content areas */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}