/* style/contact.css */

/* Base styles for the contact page, ensuring light text on dark body background */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Section styling */
.page-contact__hero-section,
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__cta-banner {
    padding: 60px 20px;
    position: relative;
    overflow: hidden; /* Ensure no content overflow */
}

/* Specific background and text colors based on brightness */
.page-contact__dark-bg {
    background-color: #1a1a2e; /* Inherit from body or a slightly different dark shade */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #242440; /* A slightly lighter dark shade for contrast */
    color: #ffffff;
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add internal padding for content */
    box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #1a1a2e;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    margin-bottom: 30px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-contact__hero-content {
    z-index: 1;
    position: relative; /* Ensure content is above any potential background elements */
}

.page-contact__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    margin-top: 30px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__form-submit-btn,
.page-contact__method-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-contact__btn-primary,
.page-contact__form-submit-btn {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border-color: #26A9E0;
}

.page-contact__btn-primary:hover,
.page-contact__form-submit-btn:hover {
    background-color: #1e87b8; /* Darker shade on hover */
    border-color: #1e87b8;
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color for text */
    border-color: #ffffff;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #1e87b8;
    border-color: #f0f0f0;
}

.page-contact__btn-text-link {
    color: #26A9E0;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-contact__btn-text-link:hover {
    color: #1e87b8;
}

/* Section titles and descriptions */
.page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: #f0f0f0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white 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;
    min-height: 220px;
}

.page-contact__method-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-link {
    background-color: #26A9E0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push link to bottom */
}

.page-contact__method-link:hover {
    background-color: #1e87b8;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #1e87b8;
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 8px;
    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: 600;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #ffffff;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

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

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* FAQ Section */
.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.15rem;
    color: #ffffff;
    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-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '−' effect */
}

/* For details tag, hide default marker */
.page-contact__faq-item summary {
    list-style: none;
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-contact__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1rem;
    color: #f0f0f0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* CTA Banner Section */
.page-contact__cta-banner {
    background-color: #1a1a2e;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.page-contact__cta-banner .page-contact__container {
    position: relative;
    z-index: 1;
}

.page-contact__cta-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__cta-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General image styling for content areas */
.page-contact__content-image {
    display: block;
    width: 100%;
    max-width: 800px; /* Example max-width for content images */
    height: auto;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-banner {
        padding: 40px 15px;
    }

    .page-contact__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Mobile container padding and overflow */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding for hero on mobile */
    }

    /* Mobile button responsiveness */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__form-submit-btn,
    .page-contact__method-link,
    .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;
        overflow: hidden !important;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack contact cards */
    }

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

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

    .page-contact__social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}