/* style/contact.css */
.page-contact {
    background-color: #FFFFFF; /* Custom background color */
    color: #333333; /* Default text color for contrast */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-contact__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #017439; /* Primary color as fallback/background for hero */
    display: flex;
    flex-direction: column; /* Enforce image-above-text */
    align-items: center;
    justify-content: center;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Matches 1920x600, 1200x375 */
}

.page-contact__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    color: #FFFFFF; /* White text for hero content */
}

.page-contact__main-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-contact__hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 0;
}

.page-contact__info-section,
.page-contact__form-section,
.page-contact__location-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: #017439; /* Primary color for section titles */
}

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

.page-contact__info-card {
    background-color: #f8f8f8; /* Light background for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-contact__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439; /* Primary color for card titles */
}

.page-contact__card-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555555;
}

.page-contact__email,
.page-contact__phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: #017439; /* Primary color for contact details */
    margin-bottom: 20px;
}

.page-contact__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.page-contact__button--consult {
    background-color: #C30808; /* Custom Login/Register color */
    color: #FFFF00; /* Custom Login/Register font color */
}

.page-contact__button--consult:hover {
    background-color: #a00606; /* Darker red on hover */
}

.page-contact__form-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555555;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    color: #333333;
    background-color: #FFFFFF;
}

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

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

.page-contact__button--submit {
    background-color: #017439; /* Primary color for submit button */
    color: #FFFFFF;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.page-contact__button--submit:hover {
    background-color: #005a2e; /* Darker green on hover */
}

.page-contact__location-text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #555555;
}

.page-contact__map-placeholder {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background-color: #e0e0e0; /* Placeholder background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-contact__hero-content {
        padding: 30px 15px;
    }
    .page-contact__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    .page-contact__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__location-section {
        padding: 40px 15px;
    }
    .page-contact__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__map-placeholder {
        max-width: 100%;
    }
}

@media (max-width: 549px) {
    .page-contact__hero-content {
        padding: 20px 10px;
    }
    .page-contact__main-title {
        font-size: clamp(1.3rem, 7vw, 2rem);
    }
    .page-contact__hero-description {
        font-size: clamp(0.85rem, 3vw, 1rem);
    }
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__location-section {
        padding: 30px 10px;
    }
    .page-contact__section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: 25px;
    }
    .page-contact__button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .page-contact__button--submit {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Ensure all content area images are at least 200px wide on mobile */
@media (max-width: 768px) {
    .page-contact img:not(.page-contact__hero-image) { /* Exclude hero image as it has its own rules */
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce minimum width for content images */
        min-height: 200px; /* Enforce minimum height for content images */
    }
    /* Specific override for map image */
    .page-contact__map-image {
        min-width: 100%; /* Map should fill width, min 200px is implicitly covered */
        height: auto;
    }
}

/* Ensure content area images are never smaller than 200px */
.page-contact img {
    /* General rule for all images in the content area */
    /* This applies to desktop and larger mobile screens */
    min-width: 200px;
    min-height: 200px;
}
/* Override for the hero image if its natural size is smaller, but it's already large */
.page-contact__hero-image {
    min-width: unset; /* Hero image has its own width: 100% and aspect-ratio */
    min-height: unset;
}