/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}

html {
    overflow-x: hidden;  /* NEW: Global horizontal scroll prevention */
}

/* Consolidated body styling - Responsive background with fallback */
body {
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;  /* Ensures it scales on all devices */
  /* MOVED: Fallback under image only on body */
    line-height: 1.6;  /* Improves readability */
    padding-top: 120px;  /* Matches navbar height */
    overflow-x: hidden;  /* NEW: Prevent body-level horizontal scroll */
}

/* Navbar - Fixed and responsive */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 120px; /* Fixed height for consistency */
    color: black;
    padding: 15px 20px;
    position: fixed; /* Keeps it in place */
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
    max-width: 100%;  /* NEW: Constrain to viewport */
}

.logo {
    padding-right: 20px;
}

.logo img {
    height: 100px;
    width: auto;
    max-width: 100%;  /* NEW: Prevent logo overflow */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;    /* Keep all in one line */
    /* REMOVED: overflow-x: auto; - Not needed, as it can cause unwanted scroll */
}

.nav-links li {
    margin: 2px;
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-size: 18px;
    font-weight: 550;
    white-space: nowrap;  /* NEW: Prevent link text wrapping */
}


.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}


/* Dropdown menu (hidden by default) */
.dropdown-menu {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    z-index: 9;
    padding-top: 150px; /* Space for the menu toggle */
    margin-top: 20px; /* Add space between navbar and dropdown */
}

.dropdown-menu.show {
    display: flex;
}

.dropdown-menu li {
    list-style: none;
    padding: 15px 0;
    border-bottom: 1px solid #555;
    
}

.dropdown-menu a {
    text-decoration: none;
    color: black;
    font-size: 1.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

}

/* Main container to hold sections */
.container {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 80px; /* Push content below navbar */
}

/* Left Section */
.left-section {
    flex: 1;
    padding: 50px;
    color: white;
    background: url('/Images/pexels-chetanvlad-2453603.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    font-size: 25px;
}

.right-section {
    flex: 1;
    padding: 50px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row; /* Keep items in a row */
        justify-content: space-between; /* Space between items */
    }

    .nav-links {
        display: none; /* Hide links on mobile */
    }

    .menu-toggle {
        display: block; /* Show menu toggle on mobile */
    }

    .container {
        flex-direction: column; /* Stack sections vertically */
    }

    .left-section, .right-section {
        padding: 20px; /* Reduce padding on mobile */
    }

    .left-section {
        min-height: 200vh; /* Adjust height for mobile */
    }

    .input-group {
        display: flex;
        flex-direction: column; /* Stack inputs vertically on mobile */
    }
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid grey;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    box-sizing: border-box;
}

button {
    width: 100%;
    max-width: 500px; 
    padding: 15px;
    font-size: 18px;
    background-color: white;
    color: black;
    border: 2px solid grey;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 auto; /* Centers the button horizontally */
}

button:hover {
    background-color: red;
    color: white;
}

.H3 {
    font-size: 30px;
    text-align: center;
}

#map-container {
    width: 100%;
    height: 500px;
}