/* 🔹 Reset & Basic Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: white;
    color: black;
    overflow-x: hidden;
}

/* 🔹 FIXED: Top Bar (Now Fully Responsive & Aligned) */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #b1d0f3;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

/* 🔹 Social Media Icons */
.social-media {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.social-media a {
    text-decoration: none;
}

.social-media img {
    width: 30px;
    height: 30px;
}

/* 🔹 Logo */
.logo {
    font-size: 30px;
    font-weight: bold;
    color: black;
    font-family: 'Kaushan Script', cursive;
    text-align: center;
    flex-grow: 1;
}

/* 🔹 Navigation */
.navigation {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navigation li {
    display: inline;
}

.navigation a {
    text-decoration: none;
    color: black;
    font-weight: 600;
}

/* 🔹 FULL-SCREEN BACKGROUND IMAGE */
.contact-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Ensures it covers the full screen */
    background: url('backgroundquiz2.jpg') no-repeat center center/cover; /* Updated */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

/* 🔹 OPTIONAL: Light Overlay for Readability */
.contact-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); /* Light overlay */
    z-index: 1;
}

/* 🔹 Ensuring Text and Form Stay on Top */
.contact-section h2,
.contact-intro,
form {
    position: relative;
    z-index: 2;
}

/* 🔹 FIXED: Contact Section Title */
.contact-section h2 {
    font-family: 'Kaushan Script', cursive;
    font-size: 28px;
    color: #207972;
    margin-bottom: 20px;
    max-width: 90%;
}

/* 🔹 Contact Page Introductory Text */
.contact-intro {
    font-size: 18px;
    color: black;
    font-weight: 400;
    max-width: 600px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* 🔹 FIXED: Form Centering & Responsive */
form {
    max-width: 500px;
    width: 90%;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 🔹 Form Labels */
label {
    text-align: left;
    font-weight: 600;
    margin-top: 15px;
    font-size: 16px;
    width: 100%;
}

/* 🔹 Input Fields */
input,
textarea,
select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
}

/* 🔹 PHONE NUMBER SECTION */
.phone-input {
    display: flex;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
}

.phone-input select {
    width: 35%;
    min-width: 80px;
}

.phone-input input {
    width: 65%;
}

/* 🔹 FIXED: Submit Button */
.submit-btn {
    font-size: 18px;
    font-weight: 600;
    background-color: #207972;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
    border: none;
}

.submit-btn:hover {
    background-color: #165c4a;
}

/* 🔹 Interactive Map Section (Now Full-Width & No Gaps) */
.map-section {
    width: 100%;
    text-align: center;
    margin-top: 0; /* Removed any margin above */
    padding: 0;
}

.map-section iframe {
    width: 100%;
    height: 300px; /* Adjusted height */
    border: 0;
    display: block;
}

/* 🔹 FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background-color: #b1d0f3;
    margin-top: 0; /* Removed white gap below map */
    width: 100%;
}

/* 🔹 MOBILE & SMALL SCREEN FIXES */
@media (max-width: 768px) {
    /* Fixing Top Bar */
    .top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .social-media {
        justify-content: center;
        margin-bottom: 10px;
    }

    .logo {
        text-align: center;
        font-size: 24px;
    }

    .navigation {
        justify-content: center;
        margin-top: 10px;
    }

    .navigation ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Fixing Contact Section */
    .contact-section {
        padding: 15px;
        height: auto; /* Adjust height for mobile */
    }

    .contact-section h2 {
        font-size: 22px;
    }

    .contact-intro {
        font-size: 16px;
        padding: 10px;
        max-width: 90%;
    }

    /* Fixing Form for Mobile */
    form {
        width: 100%;
        padding: 15px;
    }

    input,
    textarea,
    select {
        font-size: 14px;
        padding: 10px;
    }

    /* Phone Input on Mobile */
    .phone-input {
        flex-direction: column;
        gap: 5px;
    }

    .phone-input select,
    .phone-input input {
        width: 100%;
    }

    /* Fixing Submit Button */
    .submit-btn {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
    }
}
