/* style/contact.css */

/* General styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D); /* Use custom text main color, fallback to dark grey */
    background: var(--page-bg, #F4F7FB); /* Use custom background color, fallback to light grey */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: var(--text-main, #1F2D3D);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    background-color: var(--page-bg, #F4F7FB);
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-height: 600px; /* Limit height for aesthetic */
    object-fit: cover; /* Use cover for desktop */
    display: block;
    margin-bottom: 20px;
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: var(--text-main, #1F2D3D);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: var(--text-main, #1F2D3D);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Buttons */
.page-contact__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom button gradient */
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: #ffffff;
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid var(--primary-color, #2F6BFF);
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
    background: var(--primary-color, #2F6BFF);
    color: #ffffff;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--background, #F4F7FB); /* Custom background color */
}

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

.page-contact__form-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.page-contact__contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: var(--card-bg, #FFFFFF); /* Custom card background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-main, #1F2D3D);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #D6E2FF); /* Custom border color */
    border-radius: 5px;
    font-size: 1em;
    color: var(--text-main, #1F2D3D);
    background-color: #f8f8f8;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888;
}

.page-contact__form-textarea {
    resize: vertical;
}

/* Alternative Contact Section */
.page-contact__alternative-contact {
    padding: 60px 0;
    background-color: var(--primary-color, #2F6BFF); /* Main brand color for dark section */
    color: #ffffff; /* White text for dark background */
}

.page-contact__alternative-contact .page-contact__section-title,
.page-contact__alternative-contact .page-contact__section-description {
    color: #ffffff; /* Ensure titles/descriptions are white */
}

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

.page-contact__channel-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for contrast */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.page-contact__channel-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-contact__channel-text {
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: var(--background, #F4F7FB); /* Custom background color */
}

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

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

.page-contact__faq-item {
    background: var(--card-bg, #FFFFFF); /* Custom card background */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color, #D6E2FF);
    overflow: hidden; /* For details tag transition */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-main, #1F2D3D);
    font-size: 1.1em;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: var(--primary-color, #2F6BFF);
}

.page-contact__faq-answer {
    padding: 0 25px 18px 25px;
    color: var(--text-main, #1F2D3D);
    line-height: 1.7;
    font-size: 0.95em;
}

.page-contact__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
}

.page-contact__faq-link {
    color: var(--primary-color, #2F6BFF);
    text-decoration: none;
    font-weight: bold;
}

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

/* Call to Action Section */
.page-contact__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--primary-color, #2F6BFF); /* Main brand color for dark section */
    color: #ffffff;
}

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

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-contact__container {
        padding: 15px;
    }

    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding, assuming body handles --header-offset */
        margin-bottom: 30px;
    }

    .page-contact__hero-image {
        object-fit: contain; /* Contain for mobile hero image */
        max-height: 400px;
        aspect-ratio: unset;
    }

    .page-contact__main-title {
        font-size: 2em; /* Adjusted for mobile */
        margin-bottom: 10px;
    }

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

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

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

    /* Form Section */
    .page-contact__form-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-contact__form-image,
    .page-contact__contact-form {
        width: 100%;
        max-width: 100%;
        min-width: unset;
    }

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

    /* Alternative Contact Section */
    .page-contact__alternative-contact {
        padding: 40px 0;
    }

    .page-contact__channels-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-top: 30px;
    }

    .page-contact__channel-icon {
        max-width: 150px;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-contact__faq-image {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9em;
    }

    /* CTA Section */
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Universal image and button responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__channels-grid,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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