/* 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: var(--dark-bg-1); /* Assuming shared.css defines a dark background for body */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.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: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

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

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

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

/* General Section Styles */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand color for titles on light backgrounds */
}

.page-contact__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555; /* Darker text for intros on light backgrounds */
}

/* Info Section */
.page-contact__info-section {
    background-color: #ffffff; /* Light background for this section */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

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

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

.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: #f9f9f9;
    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;
    color: #333333;
}

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

.page-contact__info-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-contact__info-text {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-contact__info-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #017439;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-contact__info-link:hover {
    color: #005f2e;
    border-color: #005f2e;
}

.page-contact__working-hours {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 10px;
    color: #333333;
}

.page-contact__working-hours .page-contact__info-title {
    color: #017439;
    margin-bottom: 10px;
}

/* Form Section */
.page-contact__form-section {
    background-color: #017439; /* Brand primary color background */
    color: #ffffff; /* White text for contrast */
    padding: 60px 0;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-intro {
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 30px); /* Account for padding */
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* 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;
}

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

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

.page-contact__faq-item {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.page-contact__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #017439;
}

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

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

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 20px;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Changes '+' to 'x' visually, or can be '−' */
}

/* Call to Action Section */
.page-contact__cta-section {
    background-color: #017439; /* Brand primary color background */
    color: #ffffff; /* White text for contrast */
    padding: 60px 0;
    text-align: center;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-intro {
    color: #ffffff;
}

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

/* Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #a80707;
    border-color: #a80707;
    color: #fff;
}

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

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

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset is applied */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__container {
        padding: 20px 15px; /* Add padding for mobile content */
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

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

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        width: calc(100% - 30px); /* Adjust for padding in input */
        padding: 10px 15px;
    }

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

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

    /* All containing elements for images/content must be responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__info-card,
    .page-contact__contact-form,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to container, specific elements might need more or less */
    }

    /* 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; /* Ensure padding inside button */
        padding-right: 15px;
    }

    .page-contact__hero-buttons,
    .page-contact__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to the button container */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent overflow */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__info-icon {
        width: 150px; /* Adjust image size for very small screens if needed, but keep >= 200px display */
        min-width: 200px; /* Enforce minimum display size as per requirement */
        height: auto;
    }
    .page-contact__info-card {
        padding: 20px;
    }
}