/* style/contact.css */
.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;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    min-height: 500px;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2f);
    color: #ffffff;
    box-sizing: border-box;
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    z-index: 1;
}

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

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

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

.page-contact__hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.page-contact__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Light Background Sections */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

/* Dark Background Sections */
.page-contact__dark-bg {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

/* Contact Info Section */
.page-contact__info-section .page-contact__section-title {
    color: #017439;
}

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

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

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

.page-contact__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-contact__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.page-contact__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__contact-detail {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333333;
}

.page-contact__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-contact__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    color: #ffffff;
}

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

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

.page-contact__card-button {
    width: 100%;
    padding: 12px 15px;
}

/* Contact Form Section */
.page-contact__form-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__form-section .page-contact__section-description {
    color: #f0f0f0;
}

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

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

.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: 8px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box;
}

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

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

.page-contact__form-submit-button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    background-color: #017439;
    color: #ffffff;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-contact__form-submit-button:hover {
    background-color: #005f2f;
}

/* Social Media Section */
.page-contact__social-section .page-contact__section-title {
    color: #017439;
}

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

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

.page-contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333333;
    padding: 25px;
    width: 180px;
    box-sizing: border-box;
}

.page-contact__social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.page-contact__social-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
    border-radius: 50%;
}

.page-contact__social-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
}

/* FAQ Section */
.page-contact__faq-section .page-contact__section-title {
    color: #017439;
}

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

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

.page-contact__faq-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    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: #ffffff;
}

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

/* CTA Banner */
.page-contact__cta-banner {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #017439, #005f2f);
    color: #ffffff;
}

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

.page-contact__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-contact__cta-banner .page-contact__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__cta-title {
        font-size: 2.2em;
    }
    .page-contact__hero-section .page-contact__container {
        flex-direction: column;
        text-align: center;
    }
    .page-contact__hero-content {
        text-align: center;
    }
    .page-contact__hero-cta-group {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__hero-section {
        padding: 60px 0;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__cta-description {
        font-size: 1em;
    }
    .page-contact__contact-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__social-grid {
        flex-direction: column;
        align-items: center;
    }
    .page-contact__social-link {
        width: 100%;
        max-width: 300px;
    }
    .page-contact__form-section .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__hero-cta-group {
        flex-direction: column;
    }

    /* Mobile specific overrides with !important */
    .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,
    .page-contact__hero-image-wrapper,
    .page-contact__contact-form,
    .page-contact__social-grid,
    .page-contact__faq-list,
    .page-contact__cta-banner .page-contact__cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .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;
        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-banner .page-contact__cta-group {
        flex-direction: column !important;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__cta-title {
        font-size: 1.6em;
    }
    .page-contact__hero-cta-group {
        flex-direction: column;
    }
    .page-contact__social-link {
        width: 100%;
    }
}