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

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

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

.page-contact__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly lighter for descriptions on dark background */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-contact__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

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

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-contact__hero-title {
    font-size: 3.5em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

/* Buttons */
a.page-contact__btn-primary,
a.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

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

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

.page-contact__light-bg .page-contact__section-title {
    color: #017439;
}

.page-contact__light-bg .page-contact__section-description {
    color: #555555;
}

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

/* Dark Background sections */
.page-contact__dark-bg {
    background-color: #0a0a0a; /* Using body background for consistency */
    color: #ffffff;
    padding: 80px 0;
}

.page-contact__dark-bg .page-contact__section-title {
    color: #017439; /* Keep brand color for contrast */
}

.page-contact__dark-bg .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__dark-bg p {
    color: #f0f0f0;
}

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

.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;
    background-color: #ffffff;
    color: #333333;
}

.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-btn {
    width: auto;
    min-width: 180px;
    display: block;
    margin: 0 auto;
}

/* Alternative Contact Methods */
.page-contact__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: #1a1a1a; /* Darker background for cards in dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
}

.page-contact__method-card a.page-contact__btn-primary,
.page-contact__method-card a.page-contact__btn-secondary {
    width: 100%;
    margin-top: 20px;
}

.page-contact__method-card a.page-contact__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border-color: #017439;
}
.page-contact__method-card a.page-contact__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
    color: #ffffff;
}

.page-contact__method-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%; /* Make icons round */
    background-color: rgba(255,255,255,0.1); /* Subtle background for icons */
    padding: 10px;
}

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

.page-contact__method-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow text to take up space */
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1.1em;
    color: #017439;
}

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes cross */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #ffffff;
    color: #333333;
}

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

.page-contact__faq-answer p {
    margin-bottom: 10px;
    color: #333333;
}
.page-contact__faq-answer p:last-child {
    margin-bottom: 0;
}

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

.page-contact__advantage-item {
    background-color: #1a1a1a; /* Darker background for cards in dark section */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-contact__advantage-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.1);
    padding: 10px;
}

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

.page-contact__advantage-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* CTA Section */
.page-contact__cta-content {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9; /* Light background for CTA */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__cta-content .page-contact__section-title {
    color: #017439;
}

.page-contact__cta-content .page-contact__section-description {
    color: #555555;
    margin-bottom: 30px;
}

a.page-contact__cta-button {
    margin-top: 30px;
    background-color: #C30808; /* Register button color */
    border-color: #C30808;
    color: #FFFF00; /* Register font color */
}

a.page-contact__cta-button:hover {
    background-color: #a30606;
    border-color: #a30606;
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 80px 0;
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    a.page-contact__btn-primary,
    a.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__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }
    .page-contact__form-section,
    .page-contact__alternative-contact-section,
    .page-contact__faq-section,
    .page-contact__why-choose-us-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__contact-methods-grid,
    .page-contact__advantages-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__faq-question {
        padding: 12px 15px;
    }
    .page-contact__faq-question h3 {
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 15px;
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-methods-grid,
    .page-contact__advantages-grid,
    .page-contact__hero-cta {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-section .page-contact__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-contact__hero-image {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-contact__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    a.page-contact__btn-primary,
    a.page-contact__btn-secondary {
        padding: 12px 20px;
    }
}

/* Ensure no filter on images */
.page-contact img {
    filter: none !important;
}

/* Content area images minimum size check */
.page-contact__method-card img,
.page-contact__advantage-item img {
    min-width: 200px;
    min-height: 200px;
    width: 200px; /* Set specific width/height for display to avoid layout shift */
    height: 200px;
}
.page-contact__hero-image {
    width: 100%;
    height: 100%;
}