body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.floating-menu {
    position: fixed;
    top: 0; /* Position at the top */
    width: 100%;
    background-color: #333;
    z-index: 999; /* Ensure menu is above other elements */
    text-align: center;
    padding: 0.5rem 0;
}

.floating-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.floating-menu ul li {
    display: inline;
    margin: 0 1rem;
}

.floating-menu ul li a {
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    padding: 0.5rem;
}

.floating-menu ul li a:hover {
    background-color: #555;
}

main {
    padding-top: 60px; /* Adjusted padding to account for floating menu */
}

section {
    height: calc(100vh - 120px); /* Make each section fill the remaining viewport height */
    padding-top: 60px; /* Add padding to the top of each section */
    margin-top: -60px; /* Adjust margin to offset the padding */
    margin-bottom: 2rem;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 2rem;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Opaque overlay */
    border-radius: 10px;
    z-index: 0; /* Ensure overlay is below form elements */
}

section h2, section p {
    position: relative;
    z-index: 1;
}

#home {
    background-image: url('image-1.jpg');
}

#services {
    background-image: url('image-2.jpg');
}

#travel-lifestyle {
    background-image: url('image-3.jpg');
}

form {
    display: flex;
    flex-direction: column;
    position: relative; /* Ensure form is positioned correctly */
    z-index: 10; /* Ensure form is above other elements */
}

form label {
    margin-bottom: 0.5rem;
}

form input, form textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff; /* Ensure background color is set */
    color: #000; /* Ensure text color is set */
    position: relative; /* Ensure inputs are positioned correctly */
    z-index: 10; /* Ensure inputs are above other elements */
}

form input:invalid, form textarea:invalid {
    border-color: red;
}

form button {
    padding: 0.5rem 1rem;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    position: relative; /* Ensure button is positioned correctly */
    z-index: 10; /* Ensure button is above other elements */
}

form button:hover {
    background-color: #555;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 0.5rem 0; /* Reduced padding for smaller footer */
    position: fixed;
    width: 100%;
    bottom: 0;
    height: 60px; /* Set footer height */
    z-index: 1000; /* Ensure footer is on top */
    border-radius: 10px 10px 0 0;
}

#successMessage {
    color: green;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }

    main {
        padding-top: 60px; /* Adjusted padding to account for floating menu */
    }
}