/* style/contact.css */

/* --- General Page Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

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

.page-contact__section {
    padding: 60px 0;
}

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

.page-contact__section-title--white {
    color: #ffffff;
}

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

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

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

.page-contact__btn-primary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-primary:hover {
    background-color: #005f2f;
    border-color: #005f2f;
}

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

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2f;
    border-color: #005f2f;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    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;
    color: #ffffff;
    max-width: 900px;
    padding: 20px;
}

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

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

.page-contact__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- Channels Section --- */
.page-contact__channels-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
}

.page-contact__channel-icon {
    width: 100%; /* Make sure image fills card width */
    height: auto;
    max-width: 200px; /* Limit icon size */
    margin-bottom: 20px;
    border-radius: 8px; /* Soften corners */
    object-fit: cover;
}

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

.page-contact__channel-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-contact__email-link {
    color: #017439;
    text-decoration: underline;
}

.page-contact__email-link:hover {
    color: #005f2f;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.page-contact__social-icon {
    color: #017439;
    font-size: 1.1em;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #017439;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #017439;
    color: #ffffff;
}

/* --- Form Section --- */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    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;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333333;
    box-sizing: border-box;
}

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

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

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

.page-contact__form-submit {
    width: auto; /* Override max-width for form button */
    padding: 15px 30px;
    font-size: 1.1em;
    background-color: #C30808; /* Custom color for register/login type actions */
    border-color: #C30808;
    color: #FFFF00; /* Custom font color for register/login type actions */
}

.page-contact__form-submit:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

.page-contact__faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Image on left, FAQ list on right */
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.page-contact__faq-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-list {
    display: flex;
    flex-direction: column;
}

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

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

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

.page-contact__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1.1em; /* Ensure h3 font size matches question */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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: #333333;
}

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

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

/* --- Commitment Section --- */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-contact__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__feature-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* --- CTA Section --- */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.page-contact__cta-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.page-contact__cta-image {
    width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-contact__cta-content {
    flex-grow: 1;
    text-align: left;
}

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

.page-contact__cta-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }

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

    .page-contact__faq-grid {
        grid-template-columns: 1fr; /* Stack image and FAQ list */
    }

    .page-contact__cta-container {
        flex-direction: column;
        text-align: center;
    }

    .page-contact__cta-image {
        width: 100%;
        max-width: 600px;
        margin-bottom: 30px;
    }

    .page-contact__cta-content {
        text-align: center;
    }

    .page-contact__cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

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

    .page-contact__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

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

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

    .page-contact__channel-title {
        font-size: 1.5em;
    }

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

    .page-contact__form-submit {
        width: 100%;
    }

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

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

    .page-contact__feature-title {
        font-size: 1.5em;
    }

    .page-contact__cta-container {
        padding: 25px;
    }

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

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

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* --- Mobile Image/Video/Button Responsive Adapters --- */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact video,
    .page-contact__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__cta-button,
    .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; /* Adjust padding for full width buttons */
        padding-right: 15px; /* Adjust padding for full width buttons */
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }

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

    .page-contact__hero-cta-buttons,
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}