/* General reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #e6f0fa; /* Light blue background similar to the image */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Container styling */
.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px; /* Wider container to accommodate the grid layout */
}

/* Heading styling */
h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase; /* Matches the uppercase heading in the image */
}

/* Form styling */
form {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3-column layout for the form */
    gap: 20px; /* Space between form elements */
}

/* Form group styling */
.form-group {
    display: flex;
    flex-direction: column;
}

/* Label styling */
label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase; /* Matches the uppercase labels in the image */
}

/* Input and select field styling */
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9; /* Light background for inputs */
    transition: border-color 0.3s ease;
}

input[type="number"]:focus,
select:focus {
    border-color: #00aaff; /* Light blue border on focus */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
}

/* Specific styling for certain fields to span full width */
.form-group:nth-child(1), /* Lead Time */
.form-group:nth-child(2), /* Special Requests */
.form-group:nth-child(3), /* Avg Price */
.form-group:nth-child(7), /* Week Nights */
.form-group:nth-child(8), /* Weekend Nights */
.form-group:nth-child(10) /* Room Type */
{
    grid-column: span 1; /* These fields take 1 column */
}

.form-group:nth-child(4), /* Arrival Month */
.form-group:nth-child(5), /* Arrival Date */
.form-group:nth-child(6), /* Market Segment */
.form-group:nth-child(9) /* Meal Plan */
{
    grid-column: span 1; /* These fields take 1 column */
}

/* Button styling */
button {
    grid-column: span 3; /* Button spans all 3 columns */
    padding: 12px;
    background-color: #00aaff; /* Blue button color from the image */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0088cc; /* Slightly darker blue on hover */
}

/* Result section styling */
.result {
    margin-top: 20px;
    text-align: center;
    font-size: 1.2rem;
    padding: 15px;
    border-radius: 6px;
    background-color: #e8f5e9;
    color: #388e3c;
    grid-column: span 3; /* Result spans all 3 columns */
}

.result p {
    font-weight: bold;
}

.result p.cancel {
    color: #d32f2f;
}

.result p.not-cancel {
    color: #388e3c;
}

/* Responsive design */
@media (max-width: 768px) {
    form {
        grid-template-columns: 1fr; /* Stack fields in a single column on smaller screens */
    }

    .container {
        padding: 20px;
        max-width: 90%;
    }

    h2 {
        font-size: 1.8rem;
    }

    button {
        padding: 12px;
        grid-column: span 1; /* Button spans 1 column on smaller screens */
    }

    .result {
        grid-column: span 1; /* Result spans 1 column on smaller screens */
    }
}