/* style/contact.css */

.page-contact {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-contact__hero-section {
    background-color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

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

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

.page-contact__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__info-section {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

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

.page-contact__info-heading {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-contact__method-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 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(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.page-contact__method-icon {
    width: 200px; /* Min size 200px */
    height: 150px; /* Adjusted height for aspect ratio, but min 200px for smallest dimension */
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-contact__method-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-contact__method-button {
    display: inline-block;
    background-color: #000000; /* Main color for buttons */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #000000;
}

.page-contact__method-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-contact__form-section {
    padding: 60px 20px;
    background-color: #f0f0f0;
}

.page-contact__form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-contact__form-heading {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

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

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    background-color: #fdfdfd;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #000000;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-submit-button {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    width: auto;
    min-width: 200px;
}

.page-contact__form-submit-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

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

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

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

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

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

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-contact__cta-button--register {
    background-color: #FFFFFF; /* Custom color for Register */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-contact__cta-button--register:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.3);
}

.page-contact__cta-button--login {
    background-color: #FCBC45; /* Custom color for Login */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-contact__cta-button--login:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(252, 188, 69, 0.4);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.4em;
    }

    .page-contact__info-heading,
    .page-contact__form-heading,
    .page-contact__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile if needed */
    }

    .page-contact__hero-section {
        padding: 40px 15px;
    }

    .page-contact__hero-title {
        font-size: 2em;
    }

    .page-contact__hero-description {
        font-size: 1.1em;
    }

    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__cta-section {
        padding: 40px 15px;
    }

    .page-contact__info-heading,
    .page-contact__form-heading,
    .page-contact__cta-title {
        font-size: 1.8em;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack cards on mobile */
    }

    .page-contact__form-container {
        padding: 30px 20px;
    }

    .page-contact__form-submit-button {
        width: 100%;
        min-width: unset;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-contact__cta-button {
        width: 100%;
        padding: 12px 20px;
    }

    /* Ensure all images within .page-contact are responsive and not too small */
    .page-contact img {
        max-width: 100%;
        height: auto;
        /* Enforce minimum size for content images, not just icons */
        min-width: 200px;
        min-height: 200px;
        object-fit: contain; /* Ensure image content is visible */
    }
    .page-contact__method-icon {
        width: 200px; /* Explicitly set to min 200px */
        height: 200px; /* Explicitly set to min 200px */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__info-heading,
    .page-contact__form-heading,
    .page-contact__cta-title {
        font-size: 1.6em;
    }
}