/* style/contact.css */

/* Base styles for the contact page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #ffffff; /* Explicitly set body background to white if shared doesn't */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    color: #ffffff; /* White text for dark background */
    background-color: #017439; /* Brand primary color */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 450px; /* Ensure hero section has a minimum height */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
    filter: none; /* Ensure no image filters are applied */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.page-contact__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    filter: none; /* Ensure no button filters */
}

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

/* Sections */
.page-contact__channels-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__office-info-section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__section-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section */
}

.page-contact__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Channels Grid */
.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__channel-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #333333;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-icon {
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
    width: 100%; /* Make sure it scales within the card */
    height: auto;
    filter: none; /* Ensure no image filters are applied */
}

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

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

.page-contact__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439;
    border: 2px solid #017439;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    filter: none; /* Ensure no button filters */
}

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

/* Contact Form */
.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.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 #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #fefefe;
    color: #333333;
    box-sizing: border-box;
}

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

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

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    background-color: #ffffff;
    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.8em;
    font-weight: bold;
    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: #fcfcfc;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-contact__faq-answer p {
    margin-top: 0;
    margin-bottom: 15px;
    color: #555555;
}

/* Office Info Section */
.page-contact__office-info-section {
    padding-bottom: 80px;
}

.page-contact__office-details {
    margin-top: 40px;
    color: #ffffff;
    font-size: 1.1em;
}

.page-contact__detail-item {
    margin-bottom: 10px;
}

.page-contact__text-link {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-contact__text-link:hover {
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important;
        min-height: 350px;
    }

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

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

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        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;
        margin-bottom: 10px; /* Add space between stacked buttons */
    }

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

    .page-contact__channel-card {
        padding: 20px;
    }

    .page-contact__channel-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

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

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__channels-section .page-contact__container,
    .page-contact__form-section .page-contact__container,
    .page-contact__faq-section .page-contact__container,
    .page-contact__office-info-section .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-section .page-contact__container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.6em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__btn-primary {
        padding: 12px 20px;
        font-size: 1em;
    }
}

/* Content area image size enforcement */
.page-contact img:not(.page-contact__hero-image) { /* Exclude hero image as it's full width and handles its own size */
    min-width: 200px;
    min-height: 200px;
}