/* style/contact.css */

/* Base Styles for the Contact Page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from shared, but explicitly setting for clarity */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Highlighted title color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #017439; /* Brand primary color */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-contact__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Highlighted title color */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-contact__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Brand primary color for text */
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #017439;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Important for mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Contact Info Section */
.page-contact__contact-info {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-contact__contact-info .page-contact__section-title {
    color: #017439; /* Brand primary for title on light background */
}

.page-contact__contact-info .page-contact__section-intro {
    color: #555555;
}

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

.page-contact__info-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__info-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__card-text,
.page-contact__card-email,
.page-contact__card-phone {
    font-size: 1em;
    color: #555555;
    margin-bottom: 10px;
}

.page-contact__card-email a,
.page-contact__card-phone a {
    color: #017439;
    text-decoration: none;
}

.page-contact__card-email a:hover,
.page-contact__card-phone a:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 60px 0;
}

.page-contact__contact-form-section .page-contact__section-title {
    color: #FFFF00; /* Highlighted title color */
}

.page-contact__contact-form-section .page-contact__section-intro {
    color: #f0f0f0;
}

.page-contact__form-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.page-contact__form {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.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 #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFFF00;
    box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

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

.page-contact__form-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-contact__faq-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

.page-contact__faq-section .page-contact__section-title {
    color: #017439; /* Brand primary for title on light background */
}

.page-contact__faq-section .page-contact__section-intro {
    color: #555555;
}

.page-contact__faq-list {
    margin-top: 50px;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #e8e8e8;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #e0e0e0;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 25px;
}

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

/* Why Us Section */
.page-contact__why-us-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 60px 0;
}

.page-contact__why-us-section .page-contact__section-title {
    color: #FFFF00;
}

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

.page-contact__why-us-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-contact__why-us-heading {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-contact__why-us-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Social Media Section */
.page-contact__social-media-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
    text-align: center;
}

.page-contact__social-media-section .page-contact__section-title {
    color: #017439;
}

.page-contact__social-media-section .page-contact__section-intro {
    color: #555555;
}

.page-contact__social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-link img {
    width: 200px; /* Minimum size requirement */
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 8px;
    object-fit: cover;
}

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

.page-contact__social-cta {
    font-size: 1.1em;
    color: #555555;
}

/* Operating Hours Section */
.page-contact__operating-hours {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    padding: 60px 0;
}

.page-contact__operating-hours .page-contact__section-title {
    color: #FFFF00;
}

.page-contact__operating-hours .page-contact__section-intro {
    color: #f0f0f0;
}

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

.page-contact__hours-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-contact__hours-heading {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 10px;
}

.page-contact__hours-text {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 5px;
}

.page-contact__hours-note {
    font-size: 0.9em;
    color: #a0a0a0;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-contact__form-image {
        order: -1; /* Image above form on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section,
    .page-contact__contact-info,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__why-us-section,
    .page-contact__social-media-section,
    .page-contact__operating-hours {
        padding: 40px 0;
    }

    /* Fixed header offset for mobile */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-contact__container {
        padding: 0 15px;
    }

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

    .page-contact__hero-description {
        font-size: 1.1em;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__info-grid,
    .page-contact__why-us-grid,
    .page-contact__hours-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__info-icon,
    .page-contact__social-link img {
        width: 100% !important; /* Force full width on mobile */
        max-width: 250px !important; /* Allow some control but ensure it's not too big */
        height: auto !important;
    }
    
    /* Global image responsiveness for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure it takes full available width */
        height: auto !important;
        display: block !important;
    }
    
    /* Containers holding images/content for mobile */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-image,
    .page-contact__social-icons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness for mobile */
    .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; /* Force full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Button containers for mobile */
    .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-wrap: wrap !important; /* Allow buttons to wrap */
        gap: 10px; /* Space between wrapped buttons */
        overflow: hidden !important;
    }

    .page-contact__social-icons {
        flex-direction: column; /* Stack social icons vertically on mobile */
        align-items: center;
    }
    .page-contact__social-link {
        width: 100%; /* Make each social link take full width */
        max-width: 200px; /* Limit individual icon width */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-contact__info-card,
    .page-contact__why-us-item,
    .page-contact__hours-item {
        padding: 20px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }
}