.page-contact {
    background-color: #FFFFFF; /* Default background for the main content area */
    color: #333333; /* Default text color for readability */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* Small padding-top for the first section, relying on body for header offset */
}

.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    padding-bottom: 20px; /* Space between image and content if they are separate */
    background-color: #017439; /* Hero background to blend with image */
    color: #FFFFFF;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Ensure image is not too small */
}

.page-contact__hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.page-contact__main-title {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 10px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* No fixed font-size, rely on natural scaling and responsive adjustments if needed */
}

.page-contact__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin-bottom: 20px;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
}

.page-contact__cta-button--primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
}

.page-contact__cta-button--primary:hover {
    background-color: #a10707;
}

.page-contact__section-title {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 30px;
    color: #017439;
    font-weight: bold;
}

/* General section styling */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__cta-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 40px;
    background-color: #f8f8f8; /* Light background for sections */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-contact__info-section {
    background-color: #FFFFFF;
}

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

.page-contact__info-card {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

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

.page-contact__info-icon {
    width: 100%; /* Ensure images fill card width */
    max-width: 250px; /* Max width for consistency */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__info-text {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 15px;
}

.page-contact__info-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #017439;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

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

.page-contact__form-description {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555;
}

.page-contact__form {
    max-width: 600px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fefefe;
    border-radius: 8px;
    box-shadow: 0 1px 5px 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: #333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px);
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #017439;
    outline: none;
}

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

.page-contact__form-submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__form-submit-button:hover {
    background-color: #005a2e;
}

.page-contact__faq-list {
    margin-top: 30px;
}

.page-contact__faq-item {
    background-color: #fefefe;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.page-contact__faq-question {
    font-size: 1.2em;
    color: #017439;
    margin-bottom: 10px;
    cursor: pointer; /* Indicate it's clickable for expand/collapse */
}

.page-contact__faq-answer {
    font-size: 1em;
    color: #555;
    /* Initially hidden, will be shown by JS */
    display: block; /* For now, display for content visibility, JS will handle collapse */
}
.page-contact__faq-answer a {
    color: #017439;
    text-decoration: underline;
}
.page-contact__faq-answer a:hover {
    color: #005a2e;
}

.page-contact__cta-section {
    text-align: center;
    background-color: #017439;
    color: #FFFFFF;
}

.page-contact__cta-section .page-contact__section-title {
    color: #FFFFFF;
}

.page-contact__cta-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__cta-button--register {
    background-color: #C30808; /* Register button color */
    color: #FFFF00; /* Register font color */
}

.page-contact__cta-button--register:hover {
    background-color: #a10707;
}

.page-contact__cta-button--login {
    background-color: #C30808; /* Login button color */
    color: #FFFF00; /* Login font color */
}

.page-contact__cta-button--login:hover {
    background-color: #a10707;
}

/* Responsive adjustments */
@media (max-width: 849px) { /* General breakpoint for tablets and smaller */
    .page-contact__hero-content {
        padding: 15px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem); /* Clamp for h1 */
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr; /* Stack cards on smaller screens */
    }
    .page-contact__info-card,
    .page-contact__form-section,
    .page-contact__faq-item {
        padding: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        width: calc(100% - 24px); /* Adjust padding for full width */
        padding: 12px;
    }
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack CTA buttons */
        align-items: center;
    }
    .page-contact__cta-button {
        width: 100%;
        max-width: 300px; /* Limit max width for stacked buttons */
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal overflow */
    }
    .page-contact__hero-image,
    .page-contact__info-icon {
        max-width: 100%;
        height: auto;
        display: block;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }
    /* Ensure content area images are responsive and not too small */
    .page-contact__info-card img { /* Specific selector for content area images */
        width: 100%;
        max-width: 100%;
        height: auto;
        min-width: 200px;
        min-height: 200px;
    }
}

@media (max-width: 549px) { /* Smaller mobile devices */
    .page-contact__main-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__hero-content {
        padding: 10px;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__cta-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}

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

/* Ensure content area images CSS dimensions meet minimum */
.page-contact__info-icon {
    width: 100%; /* Will be constrained by max-width */
    height: auto;
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px;
}
/* For any other img in content area */
.page-contact img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon) {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Default to 100% width to fill container */
    height: auto;
}