/* style/contact.css */

/* Custom Colors from prompt */
:root {
    --page-contact-primary: #2F6BFF;
    --page-contact-secondary: #6FA3FF;
    --page-contact-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-contact-card-bg: #FFFFFF;
    --page-contact-background: #F4F7FB;
    --page-contact-text-main: #1F2D3D;
    --page-contact-text-custom-black: #000000;
    --page-contact-border: #D6E2FF;
    --page-contact-glow: #A5C4FF;
}

/* Base styles for the contact page, assuming shared.css sets body background */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-contact-text-main); /* Default text color for the page */
    background-color: var(--page-contact-background); /* Sections will override this */
}

/* Fixed header spacing: body padding-top is handled by shared.css */
/* First section (hero) should have small top padding */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-contact-primary); /* Use primary color for hero background */
    color: #ffffff; /* White text for dark background */
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

.page-contact__hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
}

.page-contact__main-title {
    font-size: clamp(2em, 5vw, 3em); /* H1 font-size clamp */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-contact__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-contact__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    font-weight: 700;
    color: var(--page-contact-text-custom-black);
    margin-bottom: 30px;
    text-align: center;
}

.page-contact__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--page-contact-text-main);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Common container for content sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for wrapping */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-contact__btn-primary {
    background: var(--page-contact-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

.page-contact__btn-secondary {
    background: var(--page-contact-card-bg); /* White background */
    color: var(--page-contact-primary); /* Primary blue text */
    border: 2px solid var(--page-contact-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--page-contact-primary);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--page-contact-card-bg); /* White background for light section */
    color: var(--page-contact-text-main);
}

.page-contact__form-section .page-contact__container {
    flex-direction: row;
    justify-content: space-between;
}

.page-contact__form-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.page-contact__form-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__form-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--page-contact-text-main);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--page-contact-border);
    border-radius: 8px;
    font-size: 1em;
    color: var(--page-contact-text-main);
    background-color: #f8f8f8;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--page-contact-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: var(--page-contact-primary); /* Dark background */
    color: #ffffff; /* White text */
}

.page-contact__info-section .page-contact__section-title,
.page-contact__info-section .page-contact__text-block,
.page-contact__info-section .page-contact__info-title,
.page-contact__info-section .page-contact__social-title {
    color: #ffffff;
}

.page-contact__info-section .page-contact__container {
    flex-direction: row-reverse; /* Image on left, text on right */
    justify-content: space-between;
}

.page-contact__info-block {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.page-contact__info-title {
    font-size: clamp(1.5em, 3vw, 2em);
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__info-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__info-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-contact__contact-item {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    font-size: 1.05em;
}

.page-contact__contact-label {
    font-weight: 700;
    margin-bottom: 5px;
    color: #ffffff;
}

.page-contact__contact-text,
.page-contact__contact-link {
    color: #e0e0e0;
    text-decoration: none;
}

.page-contact__contact-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.page-contact__social-media {
    margin-top: 30px;
}

.page-contact__social-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

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

.page-contact__social-icon {
    display: block;
    width: 48px; /* Display size */
    height: 48px; /* Display size */
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent shrinking on mobile */
}

.page-contact__social-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-contact__social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--page-contact-background); /* Light background */
    color: var(--page-contact-text-main);
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-contact__faq-item {
    background: var(--page-contact-card-bg);
    border: 1px solid var(--page-contact-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.page-contact__faq-item[open] {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--page-contact-primary);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--page-contact-text-custom-black);
    cursor: pointer;
    background-color: #f9f9f9;
    user-select: none;
    position: relative;
}

.page-contact__faq-question::marker,
.page-contact__faq-question::-webkit-details-marker {
    display: none;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: 400;
    color: var(--page-contact-primary);
    margin-left: 15px;
    line-height: 1;
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--page-contact-text-main);
}

.page-contact__faq-answer p {
    margin: 0;
}

/* CTA Banner Section */
.page-contact__cta-banner {
    padding: 80px 0;
    background-color: var(--page-contact-primary); /* Dark background */
    color: #ffffff; /* White text */
    text-align: center;
}

.page-contact__cta-banner .page-contact__container {
    flex-direction: row; /* Image on right, text on left */
    justify-content: space-between;
}

.page-contact__cta-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.page-contact__cta-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-contact__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
    color: #ffffff;
}

.page-contact__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__cta-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive styles */
@media (max-width: 992px) {
    .page-contact__container {
        flex-direction: column; /* Stack elements vertically */
        text-align: center;
    }

    .page-contact__form-content,
    .page-contact__info-block,
    .page-contact__cta-content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .page-contact__form-image-wrapper,
    .page-contact__info-image-wrapper,
    .page-contact__cta-image-wrapper {
        max-width: 100%;
    }

    .page-contact__info-section .page-contact__container {
        flex-direction: column; /* Reset to column for dark section */
    }

    .page-contact__cta-banner .page-contact__container {
        flex-direction: column; /* Reset to column for CTA banner */
    }

    .page-contact__hero-content,
    .page-contact__form-content,
    .page-contact__info-block,
    .page-contact__cta-content {
        text-align: center;
    }

    .page-contact__contact-form {
        align-items: center;
    }
    .page-contact__form-group {
        width: 100%;
        max-width: 500px; /* Constrain form width on medium screens */
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-contact__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
    }

    .page-contact__description {
        font-size: 1em;
    }

    .page-contact__section-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }

    .page-contact__container {
        padding: 15px;
        gap: 30px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__hero-image-wrapper,
    .page-contact__form-image-wrapper,
    .page-contact__info-image-wrapper,
    .page-contact__cta-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-contact__social-icon {
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0;
    }
    .page-contact__social-links {
        justify-content: center;
    }

    /* Buttons responsiveness */
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        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;
    }

    /* Form inputs responsiveness */
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }

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

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

    /* Ensure all content containers are responsive */
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__cta-banner {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}