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

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #ffffff; /* White text for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjust for header offset on desktop */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #017439; /* Brand color for hero background */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensure header spacing */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3; /* Subtle overlay for text readability */
    filter: none !important;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: bold;
}

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

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

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

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #ff3333;
    border-color: #ff3333;
    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;
}

/* Info Section - Contact Methods */
.page-contact__info-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff;
}

.page-contact__contact-methods {
    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); /* Light translucent background for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for cards */
}

.page-contact__method-icon {
    width: 200px; /* Must be >= 200px */
    height: 200px; /* Must be >= 200px */
    object-fit: contain;
    margin-bottom: 20px;
    filter: none !important;
}

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

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

.page-contact__method-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-contact__method-link:hover {
    color: #ffeb3b;
    text-decoration: underline;
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ffffff;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 8px;
    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: #666666;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
    z-index: 1;
    filter: none !important;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    position: relative;
    z-index: 2;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light translucent background for cards */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    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.05); /* Slightly darker for question background */
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for toggle icon */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus sign to X or just change to minus */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
}

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

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

.page-contact__faq-image-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.05;
    z-index: 1;
    filter: none !important;
}

/* Social Section */
.page-contact__social-section {
    padding: 80px 0;
    background-color: #017439; /* Brand green background */
    color: #ffffff;
}

.page-contact__social-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.page-contact__social-link:hover {
    color: #FFFF00; /* Yellow on hover */
}

.page-contact__social-icon {
    width: 200px; /* Must be >= 200px */
    height: 200px; /* Must be >= 200px */
    object-fit: contain;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    filter: none !important;
}

.page-contact__social-link:hover .page-contact__social-icon {
    transform: scale(1.1);
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background from body */
    color: #ffffff;
}

.page-contact__benefits-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
}

.page-contact__benefits-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__benefits-list li strong {
    color: #FFFF00; /* Yellow for strong text */
}

.page-contact__closing-text {
    font-size: 1.2em;
    text-align: center;
    max-width: 800px;
    margin: 40px auto;
    color: #f0f0f0;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* General image styling to prevent small icons, enforce min-size */
.page-contact img {
    min-width: 200px;
    min-height: 200px;
    filter: none !important; /* Ensure no filter is applied */
}

/* Responsive Design */
@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__method-title {
        font-size: 1.5em;
    }
    .page-contact__faq-question h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    /* Fixed header offset for mobile */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-contact__container {
        padding: 0 15px !important; /* Add padding to content containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-contact__contact-form {
        padding: 20px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-question h3 {
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-contact__social-icons {
        flex-direction: row; /* Keep row for small icons, but wrap */
        flex-wrap: wrap;
        gap: 20px;
    }
    .page-contact__social-link {
        flex: 1 1 auto; /* Allow items to grow/shrink */
        min-width: 100px; /* Ensure some base width */
    }

    /* Images responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum 200px even on mobile */
        min-height: 200px !important;
    }
    /* Ensure all image containers are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__social-section,
    .page-contact__why-contact-section,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__social-icons,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

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

/* Color contrast adjustments for general text in light background cards if any */
/* These are implicitly handled by rgba backgrounds and white text on dark body */
.page-contact__method-card {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
.page-contact__faq-item {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
.page-contact__benefits-list li {
    color: #f0f0f0;
    background-color: rgba(255, 255, 255, 0.1);
}
.page-contact__contact-form {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}
.page-contact p, .page-contact li {
    color: #f0f0f0; /* Ensure paragraphs and list items are readable on dark backgrounds */
}
.page-contact__form-input, .page-contact__form-textarea {
    color: #333333; /* Input text should be dark on light input background */
    background-color: #ffffff;
}
.page-contact__form-input::placeholder, .page-contact__form-textarea::placeholder {
    color: #666666;
}