/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
    padding: 20px 0;
}

/* Header */
header {
    background: #2c3e50; /* Dark blue/grey */
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: #3498db 3px solid; /* Bright blue accent */
}

header h1 {
    float: left;
    margin: 0;
    padding: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

header li {
    display: inline;
    padding: 0 15px;
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header a:hover {
    color: #3498db; /* Bright blue on hover */
    font-weight: bold;
}

/* Hero Section */
.hero {
    min-height: 450px;
    background: #34495e url('https://source.unsplash.com/random/1600x900/?car-rental,road') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 50px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.rental-search {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.form-group {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    color: #fff;
    background: #3498db; /* Bright blue */
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    align-self: flex-end; /* Align button to the bottom of the form group */
}

.btn:hover {
    background: #2980b9; /* Darker blue on hover */
}

/* Sections */
section {
    padding: 40px 0;
    text-align: center;
}

section h3 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.car-listings {
    background: #ecf0f1; /* Light grey */
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.car-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-align: left;
}

.car-item:hover {
    transform: translateY(-5px);
}

.car-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.car-item h4 {
    color: #2c3e50;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.car-item p {
    font-size: 1em;
    margin-bottom: 10px;
}

.car-item .price {
    font-size: 1.4em;
    font-weight: bold;
    color: #e74c3c; /* Red for price */
    margin-bottom: 15px;
}

.car-item .btn {
    width: 100%;
    text-align: center;
    padding: 10px;
    font-size: 1em;
}

/* Contact Form */
.contact {
    background: #fff;
}

form {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

form textarea {
    resize: vertical;
    min-height: 100px;
}

form .btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1,
    header nav {
        float: none;
        text-align: center;
    }

    header nav ul {
        padding: 0;
    }

    header li {
        display: block;
        padding: 10px 0;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero p {
        font-size: 1em;
    }

    .container {
        width: 90%;
    }

    .rental-search {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        min-width: unset;
        width: 100%;
    }

    .btn {
        width: 100%;
    }
}