/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    background-image: url('https://images.unsplash.com/photo-1485470733090-0aae1788d5af?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1517&q=80');
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: 2em;
    margin-bottom: 10px;
    animation: fadeIn 2s ease-in-out;
}

/* Navigation */
nav {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px; /* Increased margin for better spacing */
    position: relative;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em; /* Increased font size for better visibility */
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding: 5px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: #f0a500;
    border-bottom: 2px solid #f0a500;
}

/* Booking form */
.booking-form {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    margin: 30px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.booking-form h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #fff;
    animation: fadeIn 2s ease-in-out;
}

.booking-form label {
    display: block;
    font-size: 1em;
    margin-bottom: 5px;
}

.booking-form input, .booking-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: none;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.5); /* Background color for form fields */
}

.booking-form button {
    background: #f0a500;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.booking-form button:hover {
    background: #e08e00;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 1.2em; /* Adjusted for smaller screens */
    }

    .booking-form h2 {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
    }

    nav ul li a {
        font-size: 1em; /* Adjusted for smaller screens */
    }

    .booking-form h2 {
        font-size: 1.2em;
    }
}

/* Keyframes for animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Basic form styling */
form {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8); /* Background color for form */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
    color: #333;
}

input, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.8); /* Ensure transparency */
}

button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

.car-selection {
    margin: 10px 0;
    color: #333;
}

.car-option {
    display: inline-block;
    width: calc(50% - 10px);
    margin: 5px;
    text-align: center;
    vertical-align: top;
    box-sizing: border-box;
}

.car-option img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.car-option label {
    display: block;
    font-weight: normal;
    margin: 0;
    font-size: 16px;
}

.driver-option-text {
    display: block;
    margin: 10px 0;
    color: #007BFF;
}
nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding: 5px;
    border-bottom: 2px solid transparent;
}

/* Increase the font size of the nav bar items on mobile screens */
@media (max-width: 768px) {
    nav ul li a {
        font-size: 1.1em; /* Increase font size on tablets and small screens */
    }
}

@media (max-width: 480px) {
    nav ul li a {
        font-size: 1.1em; /* Further increase font size on very small screens */
    }
}