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

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

/* Header offset for main content */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    background-color: #017439; /* Brand color as hero background */
}

.page-contact__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay for text readability */
    z-index: 1;
}

.page-contact__hero-section > .page-contact__container {
    position: relative;
    z-index: 2;
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-contact__hero-title {
    font-size: 3.5em;
    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;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

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

/* Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-contact__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

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

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

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

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

/* Contact Info Section */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-contact__contact-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__contact-heading {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

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

.page-contact__contact-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #cccccc;
    flex-grow: 1;
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #017439;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #005f2e;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-contact__form-section > .page-contact__container {
    position: relative;
    z-index: 2;
}

.page-contact__form-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 0;
    min-width: 200px;
    min-height: 200px;
}

.page-contact__text-dark {
    color: #333333;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
    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 #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    color: #333333;
    background-color: #ffffff;
}

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

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

.page-contact__btn-submit {
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__btn-submit:hover {
    background-color: #005f2e;
}

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

.page-contact__faq-content-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
    align-items: flex-start;
}

.page-contact__faq-illustration {
    flex: 0 0 400px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-contact__faq-list {
    flex-grow: 1;
    max-width: 700px;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    color: #FFFFFF;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-contact__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #FFFFFF;
}

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

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important;
    padding: 20px 25px;
}

.page-contact__faq-answer p {
    margin: 0;
    color: #cccccc;
}

/* Why Choose Section */
.page-contact__why-choose-section {
    padding: 80px 0;
    background-color: #017439;
}

.page-contact__why-choose-section .page-contact__section-title,
.page-contact__why-choose-section .page-contact__section-subtitle {
    color: #FFFFFF;
}

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

.page-contact__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    color: #FFFFFF;
    text-align: left;
}

.page-contact__feature-heading {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-contact__feature-item p {
    font-size: 0.95em;
    color: #cccccc;
}

/* Final CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-subtitle {
    color: #333333;
}

.page-contact__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

.page-contact__btn-login {
    background-color: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__faq-illustration {
        flex: 0 0 300px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-subtitle {
        font-size: 1em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn {
        width: 100% !important;
        max-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__container {
        padding: 0 15px;
    }
    .page-contact__contact-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-heading {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__form-section,
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__faq-section,
    .page-contact__cta-section,
    .page-contact__contact-item,
    .page-contact__contact-form,
    .page-contact__faq-item,
    .page-contact__why-choose-section,
    .page-contact__features-grid,
    .page-contact__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__hero-section > .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__form-section {
        overflow: hidden !important;
    }
    .page-contact__faq-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .page-contact__faq-illustration {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    .page-contact__faq-list {
        width: 100%;
        max-width: 100%;
    }
    .page-contact__why-choose-section .page-contact__container {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.6em;
    }
    .page-contact__hero-section {
        min-height: 350px;
    }
}