/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    width: 100%;
    height: 450px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.admission-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(17, 20, 43, 0.7), rgba(17, 20, 43, 0.7)); /* Dark overlay */
    z-index: 1;
}

.admission-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the area */
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.contact-hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.contact-hero-content p {
    font-size: 1.4em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.contact-content-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allows columns to wrap on smaller screens */
    gap: 40px;
    margin-top: 40px;
    justify-content: center; /* Center items when they wrap */
}

.contact-info,
.contact-form-container {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1; /* Allows them to grow */
    min-width: 300px; /* Minimum width before wrapping */
    max-width: 550px; /* Max width to keep them from becoming too wide */
}

.contact-info h3,
.contact-form-container h3 {
    font-size: 2em;
    color: var(--primary-dark);
    margin-bottom: 25px;
    text-align: center;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--gray-text);
}

.info-item i {
    color: var(--secondary-dark);
    font-size: 1.5em;
    margin-right: 15px;
    width: 30px; /* Fixed width for icon to align text */
    text-align: center;
}

.info-item a {
    color: var(--gray-text); /* Use gray text for info links */
    transition: color 0.3s ease;
}

.info-item a:hover {
    color: var(--secondary-dark);
}

.contact-info .social-icons {
    justify-content: center;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Contact Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1em;
    font-family: 'Open Sans', sans-serif; /* Ensure font consistency */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--secondary-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 190, 228, 0.2); /* Light blue shadow */
}

.contact-form button[type="submit"] {
    align-self: flex-start; /* Align button to the left */
    margin-top: 10px; /* Space above button */
    cursor: pointer;
}

/* Map Section */
.map-container {
    margin-top: 60px;
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container h3 {
    font-size: 2em;
    color: var(--primary-dark);
    margin-bottom: 25px;
    text-align: center;
}

.map-container iframe {
    border-radius: 8px;
    width: 100%; /* Ensure map takes full width of its container */
    height: 450px; /* Added a default height for the map */
    border: 0; /* Ensures no default iframe border */
}

/* Responsive Design (Contact Page specific overrides/additions) */
@media (max-width: 992px) {
    .contact-hero-content h1 {
        font-size: 3em;
    }

    .contact-hero-content p {
        font-size: 1.2em;
    }

    .contact-content-wrapper {
        flex-direction: column; /* Stack columns on medium screens */
        align-items: center; /* Center stacked items */
    }

    .contact-info,
    .contact-form-container {
        max-width: 500px; /* Constrain width when stacked */
        width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        height: 350px;
    }

    .contact-hero-content h1 {
        font-size: 2.5em;
    }

    .contact-hero-content p {
        font-size: 1.1em;
    }

    .contact-section {
        padding: 60px 0;
    }

    .contact-info h3,
    .contact-form-container h3,
    .map-container h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .contact-hero-content h1 {
        font-size: 2em;
    }

    .contact-hero-content p {
        font-size: 1em;
    }

    .contact-info h3,
    .contact-form-container h3,
    .map-container h3 {
        font-size: 1.6em;
    }

    .info-item {
        font-size: 1em;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}
