/* style/contact.css */

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

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

/* Hero Section */
.page-contact__hero-section {
    background-color: #FFFFFF; /* White background */
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-contact__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3em;
    color: #000000; /* Main color for title */
    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: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-contact__hero-button:hover {
    background-color: #e0a73d; /* Slightly darker yellow on hover */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.1; /* Subtle background image */
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Section common styles */
.page-contact__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Contact Methods Section */
.page-contact__contact-methods {
    background-color: #f8f8f8;
    padding: 60px 0;
}

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

.page-contact__method-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact__card-text {
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__method-button {
    display: inline-block;
    background-color: #000000; /* Black button */
    color: #FFFFFF; /* White text */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
}

.page-contact__method-button:hover {
    background-color: #333333; /* Slightly lighter black on hover */
}

/* Contact Form Section */
.page-contact__form-section {
    background-color: #FFFFFF;
    padding: 60px 0;
}

.page-contact__form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.page-contact__form-content {
    padding: 0 20px;
}

.page-contact__contact-form {
    margin-top: 30px;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

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

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

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

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

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

.page-contact__form-submit-button:hover {
    background-color: #e0a73d; /* Slightly darker yellow on hover */
}

.page-contact__form-image {
    text-align: center;
    padding: 0 20px;
}

.page-contact__form-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

/* Additional Support Section */
.page-contact__additional-support {
    background-color: #f0f0f0;
    padding: 60px 0;
    text-align: center;
}

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

.page-contact__resource-card {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    padding: 25px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.page-contact__resource-title {
    font-size: 1.6em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-contact__resource-text {
    color: #666666;
    font-size: 0.95em;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-contact__form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2.2em;
    }

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

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__section-description {
        font-size: 0.95em;
    }

    .page-contact__methods-grid,
    .page-contact__resources-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__form-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__form-content,
    .page-contact__form-image {
        padding: 0 10px;
    }

    /* Ensure content area images do not overflow */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
}

/* Additional check for images in content area to prevent small sizes */
.page-contact img {
    min-width: 200px; /* Enforce minimum display width */
    min-height: 200px; /* Enforce minimum display height */
    object-fit: cover; /* Ensure images fill their space without distortion */
}