/* style/contact.css */

.page-contact {
    color: #333333; /* Dark text for light background */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #FFFFFF; /* Page background */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-container {
    z-index: 1;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-contact__hero-title {
    font-size: 3em;
    color: #000000;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: #333333;
    margin-bottom: 30px;
}

.page-contact__cta-button {
    display: inline-block;
    background-color: #FCBC45; /* Login button color for CTA */
    color: #000000; /* Dark text for FCBC45 background */
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-contact__hero-image {
    width: 100%; /* Ensure image fills its container */
    max-width: 1200px; /* Max width for larger screens */
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 20px;
    background-color: #f8f8f8;
    text-align: center;
}

.page-contact__info-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__info-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 20px;
}

.page-contact__info-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 200px; /* Min 200px */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-contact__method-heading {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__method-button {
    display: inline-block;
    background-color: #000000; /* Dark button for method cards */
    color: #FFFFFF; /* White text */
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__method-button:hover {
    background-color: #333333;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__form-container {
    flex: 1 1 500px;
    min-width: 300px;
}

.page-contact__form-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 20px;
}

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

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-size: 1em;
    color: #000000;
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    font-size: 1em;
    color: #333333;
    background-color: #fefefe;
    transition: border-color 0.3s ease;
}

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

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

.page-contact__submit-button {
    background-color: #FCBC45;
    color: #000000;
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__submit-button:hover {
    background-color: #e0a53b;
}

.page-contact__form-illustration {
    flex: 1 1 400px;
    max-width: 500px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Final CTA Section */
.page-contact__cta-section {
    padding: 80px 20px;
    background-color: #000000; /* Dark background for strong CTA */
    text-align: center;
}

.page-contact__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__cta-title {
    font-size: 2.8em;
    color: #FFFFFF;
    margin-bottom: 20px;
}

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

.page-contact__cta-button--secondary {
    background-color: #FFFFFF; /* Register button color for CTA */
    color: #000000;
    margin-right: 20px;
}

.page-contact__cta-button--secondary:hover {
    background-color: #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__info-title,
    .page-contact__form-title,
    .page-contact__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 15px;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__cta-section {
        padding: 40px 15px;
    }
    .page-contact__info-title,
    .page-contact__form-title,
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__info-description,
    .page-contact__form-description,
    .page-contact__cta-description {
        font-size: 0.95em;
    }
    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }
    .page-contact__form-section {
        flex-direction: column;
    }
    .page-contact__form-illustration {
        max-width: 100%;
        margin-top: 30px;
    }
    .page-contact__cta-button--secondary {
        margin-right: 0;
        margin-bottom: 15px;
    }
    .page-contact__cta-button {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
    .page-contact__cta-button + .page-contact__cta-button {
        margin-top: 15px;
    }

    /* Important: Ensure images don't overflow on mobile */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure content images are not small */
.page-contact img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Image filter rule */
.page-contact img {
    filter: none; /* Absolutely no CSS filters to change image color */
}

/* Specific override for image sizes that might conflict with the min-width/height for general images */
/* This ensures that icons or smaller decorative images from shared components are not affected if they were to accidentally inherit these rules */
.page-contact__method-icon {
    min-width: 200px;
    min-height: 200px;
    width: 200px; /* Explicitly set to ensure it's not too large but meets min requirement */
    height: 200px;
}