/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Assuming shared.css sets body background */
}

/* Header offset for fixed header */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

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

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

.page-contact__section-description,
.page-contact__hero-description,
.page-contact__cta-description {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for better readability on dark background */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #0d0d0d; /* Dark background for hero */
}

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

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    line-height: 1.2;
}

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

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-contact__cta-button--primary:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

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

.page-contact__cta-button--secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Contact Info Section */
.page-contact__contact-info-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker section background */
}

.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-color: rgba(255, 255, 255, 0.08); /* Light transparent background for cards */
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Ensure text is white on dark card background */
}

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

.page-contact__info-card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__info-card-link,
.page-contact__info-card-address {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-contact__info-card-link:hover {
    color: #26A9E0;
}

/* Contact Form Section */
.page-contact__form-section {
    position: relative;
    padding: 80px 0;
    background-color: #0d0d0d; /* Dark background */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__form-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1; /* Very subtle background image */
    z-index: 1;
}

.page-contact__contact-form {
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.08); /* Light transparent background */
    padding: 40px;
    border-radius: 8px;
    max-width: 700px;
    margin: 40px auto 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #2a2a2a; /* Dark input background */
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__submit-button:hover {
    background-color: #1e87b7;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffffff;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
    /* content: "−"; */ /* Actual text content updated by JS */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03);
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 20px 25px;
}

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

/* CTA Banner Section */
.page-contact__cta-banner {
    position: relative;
    padding: 80px 0;
    background-color: #0d0d0d;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-contact__cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    padding: 40px 20px;
    border-radius: 10px;
}

.page-contact__cta-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-contact__cta-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    /* General mobile adjustments */
    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section {
        min-height: 500px;
    }

    .page-contact__hero-content {
        padding: 30px 15px;
    }

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

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

    .page-contact__section-title,
    .page-contact__cta-title {
        font-size: 2em;
    }

    .page-contact__section-description,
    .page-contact__cta-description {
        font-size: 0.95em;
        margin-bottom: 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-section,
    .page-contact__cta-banner,
    .page-contact__contact-info-section,
    .page-contact__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left: 0; */ /* Adjust padding as needed, or let container handle it */
        /* padding-right: 0; */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Buttons responsiveness */
    .page-contact__cta-button,
    .page-contact__submit-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-contact__hero-content .page-contact__cta-button {
        margin-bottom: 10px;
    }

    .page-contact__hero-content .page-contact__cta-button:last-of-type {
        margin-bottom: 0;
    }

    .page-contact__hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

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

    .page-contact__contact-form {
        padding: 30px 15px;
    }

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

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

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

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__info-card-title {
        font-size: 1.4em;
    }
    .page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-title {
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 10px 15px;
    }
}