/* 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;
}

.page-contact__dark-section {
    background-color: #1a1a2e; /* Inherited from body, but explicitly set for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

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

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

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    gap: 40px;
    min-height: 500px;
}

.page-contact__hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
    padding-left: 20px;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    color: #ffffff; /* White text for dark background */
    line-height: 1.2;
}

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

.page-contact__hero-cta {
    font-size: 1.1em;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
}

.page-contact__hero-image-wrapper {
    flex: 1;
    min-width: 400px;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 20px;
}

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

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

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

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

.page-contact__method-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 50%;
    object-fit: cover;
}

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

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 15px;
}

.page-contact__method-detail {
    font-size: 0.95em;
    color: #555;
}

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

.page-contact__social-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__social-link:hover {
    color: #005a2e;
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #ffffff;
}

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

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

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

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

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

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

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

.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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fefefe;
    color: #555555;
}

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

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

.page-contact__btn-link {
    display: inline-block;
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.page-contact__btn-link:hover {
    color: #005a2e;
}

/* CTA Section */
.page-contact__cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

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

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

.page-contact__cta-button {
    font-size: 1.3em;
    padding: 18px 40px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register button text color */
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__cta-button:hover {
    background-color: #a00606;
    transform: translateY(-3px);
}

/* General Button Styles */
.page-contact__btn-primary {
    background: #017439;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    font-weight: bold;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.page-contact__btn-secondary {
    background: #ffffff;
    color: #017439;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    border: 2px solid #017439;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Link styles */
.page-contact__link-phone, .page-contact__link-email {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__link-phone:hover, .page-contact__link-email:hover {
    color: #005a2e;
}

/* Media Queries */
@media (max-width: 1024px) {
    .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__cta-title {
        font-size: 2.4em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        flex-direction: column;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }
    .page-contact__hero-content {
        padding-left: 15px;
        padding-right: 15px;
        order: 2;
    }
    .page-contact__hero-image-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        order: 1;
        margin-bottom: 30px;
    }
    .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__cta-title {
        font-size: 2em;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-contact__faq-list {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-contact__cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile specific image, video, button adaptations */
    .page-contact img {
        max-width: 100% !important;
        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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !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-buttons {
        display: flex;
        flex-direction: column;
    }
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}