/* style/contact.css */

/* Base styles for the page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 500px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #1a1a1a; /* Fallback background */
}

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

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.page-contact__main-heading {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for heading */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__intro-description {
    font-size: 1.2em;
    opacity: 0.9;
}

/* Section Headings */
.page-contact__section-heading {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for headings */
    text-align: center;
    margin-bottom: 15px;
    padding-top: 40px;
}

.page-contact__section-subheading {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for contrast */
}

.page-contact__contact-form {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for card effect */
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 5px 15px 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 rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

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

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

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

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

/* Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #121212; /* Match body background */
}

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

.page-contact__info-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-contact__info-text {
    color: #f0f0f0;
    margin-bottom: 15px;
}

.page-contact__info-link,
.page-contact__info-address,
.page-contact__info-hours {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    display: block;
}

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

/* Social Section */
.page-contact__social-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

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

.page-contact__social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
    transform: translateY(-5px);
}

.page-contact__social-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: contain;
    background-color: #26A9E0; /* Background for icons */
    padding: 10px;
}

.page-contact__social-image {
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    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-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: #26A9E0;
    margin-left: 15px;
}

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

.page-contact__faq-answer {
    padding: 0 25px 20px;
    color: #f0f0f0;
    font-size: 1em;
}

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

.page-contact__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-contact__faq-answer a:hover {
    color: #1e87b8;
}

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

.page-contact__cta-content {
    max-width: 900px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__main-heading {
        font-size: 2.8em;
    }
    .page-contact__section-heading {
        font-size: 2em;
    }
    .page-contact__intro-description,
    .page-contact__section-subheading {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
    }

    .page-contact__hero-section {
        height: 400px;
    }

    .page-contact__main-heading {
        font-size: 2.2em;
    }

    .page-contact__intro-description {
        font-size: 0.95em;
    }

    .page-contact__section-heading {
        font-size: 1.8em;
        padding-top: 20px;
    }

    .page-contact__section-subheading {
        font-size: 0.9em;
        margin-bottom: 20px;
    }

    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__social-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__contact-form,
    .page-contact__info-card {
        padding: 25px;
    }

    .page-contact__info-grid {
        grid-template-columns: 1fr; /* Stack info cards on mobile */
    }

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

    .page-contact__social-icon {
        width: 50px;
        height: 50px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__hero-image {
        width: 100%; /* Specific for hero image */
        height: 100%;
    }

    /* Ensure all image containers are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__form-section,
    .page-contact__info-section,
    .page-contact__social-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__main-heading {
        font-size: 1.8em;
    }
    .page-contact__section-heading {
        font-size: 1.5em;
    }
    .page-contact__hero-section {
        height: 350px;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px;
    }
}