/* style/contact.css */
.page-contact {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

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

.page-contact__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px);
    text-align: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-content {
    max-width: 600px;
    z-index: 1;
}

.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__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Custom color for register/login type buttons */
    color: #FFFF00; /* Custom font color for register/login type buttons */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

.page-contact__btn-primary:hover {
    background-color: #a00606;
}

.page-contact__hero-image-wrapper {
    position: relative;
    width: 50%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 0;
}

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

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

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

.page-contact__info-section {
    padding: 60px 0;
}

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

.page-contact__benefit-item {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__benefit-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: none; /* Ensure no filter is applied */
}

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

.page-contact__benefit-text {
    font-size: 1em;
    color: #555555;
}

.page-contact__methods-section {
    padding: 60px 0;
}

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

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

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

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

.page-contact__contact-detail a {
    color: #FFFF00;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__contact-detail a:hover {
    color: #f0f0f0;
}

.page-contact__faq-section {
    padding: 60px 0;
}

.page-contact__faq-list {
    margin-top: 40px;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    background-color: #ffffff;
    color: #333333;
    border-bottom: 1px solid #eee;
}

.page-contact__faq-item.active .page-contact__faq-question {
    border-bottom: none;
}

.page-contact__faq-title {
    margin: 0;
    color: #017439;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    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: 20px;
}

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

.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        gap: 20px;
    }

    .page-contact__hero-image-wrapper {
        width: 80%;
        order: -1; /* Image above text on smaller screens */
    }

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

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

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

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

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

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

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

    .page-contact__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-contact__container {
        padding: 15px;
    }

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

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

    .page-contact__benefits-grid,
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__benefit-item,
    .page-contact__method-card {
        padding: 20px;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-contact__faq-answer {
        padding: 0 15px;
    }

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

    /* Mobile responsive image styles */
    .page-contact img {
        max-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__method-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Mobile responsive button styles */
    .page-contact__btn-primary,
    .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;
    }
}

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