.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background, so light text */
    background-color: #000000; /* Ensure main content area matches body background */
    padding-bottom: 60px; /* Space above footer */
}

.page-contact a {
    color: #FFFF00; /* Yellow for links to stand out on dark background, matches custom font color for register/login */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

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

.page-contact__section {
    padding: 60px 0;
}

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

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

.page-contact__highlight {
    color: #FFFF00; /* Highlight important keywords */
    font-weight: bold;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px; /* Ensure hero has a decent height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    overflow: hidden; /* Prevent image overflow */
    background-color: #000000;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-decoration: none; /* Remove underline for buttons */
}

.page-contact__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login, used for primary action */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
    margin-right: 15px; /* Spacing between buttons */
}

.page-contact__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
    color: #ffffff;
}

.page-contact__btn-secondary {
    background-color: #017439; /* Brand color for secondary actions */
    color: #ffffff;
    border: 2px solid #017439;
}

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

/* Why Contact Section */
.page-contact__why-contact .page-contact__section-description {
    margin-bottom: 60px;
}

.page-contact__feature-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); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__feature-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlight titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__feature-item p {
    color: #f0f0f0;
    font-size: 1em;
}

/* Contact Channels Section */
.page-contact__dark-section {
    background-color: #017439;
    color: #ffffff;
}

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

.page-contact__channel-card {
    background-color: #ffffff; /* Light background for cards in this section */
    color: #333333; /* Dark text for light background */
    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__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__channel-card a {
    color: #017439; /* Brand color for links on light background */
    text-decoration: underline;
}

.page-contact__channel-card a:hover {
    color: #005a2d;
}

.page-contact__channel-icon {
    width: 200px; /* Enforce minimum size for images */
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    filter: none; /* No filter on icons */
    display: block;
}

.page-contact__channel-title {
    font-size: 1.4em;
    color: #017439; /* Brand color for titles on light background */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__channel-card p {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-contact__email-link {
    font-weight: bold;
}

/* Contact Form Section */
.page-contact__contact-form .page-contact__container {
    max-width: 800px;
}

.page-contact__form {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark body */
    padding: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    background-color: rgba(0, 0, 0, 0.6);
    outline: none;
}

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

.page-contact__form-note {
    text-align: center;
    font-size: 0.9em;
    color: #ccc;
    margin-top: 30px;
}

/* FAQ Section */
.page-contact__faq .page-contact__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-contact__faq-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    filter: none; /* No filter */
    min-height: 200px; /* Enforce minimum size for images */
    min-width: 200px;
}

.page-contact__faq-list {
    flex: 1;
    min-width: 400px;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark body */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: #ffffff;
    font-weight: bold;
}

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

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

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
    color: #C30808;
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 0.95em;
}

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

/* Social Media Section */
.page-contact__social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.page-contact__social-btn {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439; /* Dark text for light background */
    background-color: #ffffff;
    border: 1px solid #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.page-contact__social-btn:hover {
    background-color: #f0f0f0;
    color: #005a2d;
    border-color: #005a2d;
    text-decoration: none;
}

.page-contact__social-icon {
    width: 200px; /* Enforce minimum size for images */
    height: 200px;
    margin-right: 10px;
    object-fit: contain;
    filter: none; /* No filter */
    display: block;
}

/* Commitment Section */
.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__commitment-list li {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark body */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #017439;
    color: #f0f0f0;
    font-size: 1.05em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__commitment-list li strong {
    color: #FFFF00; /* Highlight key points */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__faq-image {
        max-width: 100%;
    }
    .page-contact__faq-list {
        min-width: unset;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section {
        min-height: 400px;
        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,
    .page-contact__btn-secondary {
        width: 100% !important;
        margin-right: 0;
        margin-bottom: 15px;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-contact__hero-content .page-contact__btn-primary {
        margin-right: 0;
    }

    .page-contact__feature-grid,
    .page-contact__channels-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__faq .page-contact__container {
        flex-direction: column;
        gap: 20px;
    }

    .page-contact__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
}