/* style/contact.css */

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

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background-color: #017439; /* Brand color for hero */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3; /* Make background image subtle */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly darker overlay for text readability */
    border-radius: 10px;
}

.page-contact__hero-title {
    font-size: 3em;
    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: 40px;
    color: #f0f0f0;
}

.page-contact__contact-channels {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-contact__channel-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-submit {
    display: inline-block;
    background-color: #C30808; /* Red for action buttons */
    color: #FFFF00; /* Yellow text for action buttons */\    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
    text-align: center;
}

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

/* Form Section */
.page-contact__form-section {
    background-color: #f5f5f5; /* Light background for form */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

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

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #fefefe;
}

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

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

.page-contact__btn-submit {
    width: auto;
    padding: 15px 40px;
    font-size: 1.1em;
    margin-top: 15px;
}

/* Info Section */
.page-contact__info-section {
    background-color: #1a1a2e; /* Body background color */
    color: #ffffff;
    padding: 60px 0;
}

.page-contact__info-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-contact__info-block {
    flex: 1;
    min-width: 300px;
}

.page-contact__info-block .page-contact__section-title {
    color: #ffffff;
    text-align: left;
}

.page-contact__info-block .page-contact__section-description {
    color: #f0f0f0;
    text-align: left;
    margin-bottom: 30px;
}

.page-contact__address-details p {
    margin-bottom: 10px;
}

.page-contact__detail-label {
    font-weight: bold;
    color: #017439; /* Brand color for labels */
    display: inline-block;
    min-width: 100px;
}

.page-contact__detail-text {
    display: inline-block;
    color: #f0f0f0;
}

.page-contact__map-container {
    flex: 1;
    min-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
}

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

.page-contact__faq-list {
    max-width: 800px;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-item {
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

.page-contact__faq-item:last-child {
    border-bottom: none;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 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;
    color: #017439;
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

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

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

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

.page-contact__faq-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.page-contact__cta-section {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    text-align: center;
    padding: 60px 20px;
}

.page-contact__cta-title {
    font-size: 2.2em;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-contact__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__btn-register {
    padding: 15px 40px;
    font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__channel-item {
        min-width: 250px;
    }
    .page-contact__info-grid {
        flex-direction: column;
    }
    .page-contact__info-block {
        min-width: unset;
        width: 100%;
    }
    .page-contact__info-block .page-contact__section-title {
        text-align: center;
    }
    .page-contact__info-block .page-contact__section-description {
        text-align: center;
    }
    .page-contact__map-container {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-section {
        padding: 60px 0;
        min-height: 400px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__contact-channels {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .page-contact__channel-item {
        width: 90%;
        max-width: 400px;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px 20px;
    }

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

    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure buttons are responsive */
    .page-contact__btn-primary,
    .page-contact__btn-submit,
    .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-wrap: wrap !important;
        gap: 10px;
    }
    .page-contact__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}