/* Reset some default styles for consistency */
body, h1, h2, h3, p, ul, li, form {
    margin: 0;
    padding: 0;
}

/* Set a background color and text color */
body {
    background-color: #f0f0f0;
    color: #333;
    font-family: Arial, sans-serif;
}

/* Style the header section with the image and form */
header {
    position: relative;
}

img {
    width: 100%;
    height: auto;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0; /* Added to ensure the overlay doesn't extend beyond the header */
    bottom: 0; 
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 10px;
    z-index: 0;
}

form {
    background-color: #0302028f;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    position: relative; /* Ensure the form has its stacking context */
    z-index: 1;
    width: auto; /* Change this to auto to prevent overflow */
    max-width: 80%; /* Keep the existing max-width */
    margin: 20px; /* Allow the form to be more flexible */
    padding: 10px; /* Reduce padding on smaller screens */
}


/* Style form elements */
form h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 80%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

textarea {
    resize: vertical;
}

input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Style the navigation bar */
nav {
    position: fixed; /* Make the navigation bar fixed to the top of the page */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    background-color: #007bff;
}

ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

li {
    margin: 0;
    padding: 0;
}

a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

a:hover {
    color: #0056b3;
}

/* Media query for mobile screens */
@media screen and (max-width: 768px) {
    .overlay{
        padding-top: 200px;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

  
    nav {
        position: static; /* Remove fixed positioning */
        background-color: transparent; /* Remove background color */
    }

    ul {
        display: block;
        text-align: center;
    }

    li {
        margin-bottom: 10px;
    }

        /* Hide the contact form */
        form {
            display: none;
        }
    
        /* Display the contact button */
        button {
            display: block;
        }
    
         .apply-button {
            display: inline-block;
            background-color: #007bff;
            color: #fff;
        }
    }
