/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

/* Center Main Content */
#booking-calendar {
    text-align: center;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

/* Calendar Header */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin: 20px auto;
}

.calendar-header {
    font-weight: bold;
    text-align: center;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border-radius: 5px;
}

/* Calendar Boxes */
.calendar-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f9fa;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.calendar-box.empty {
    background-color: transparent;
    border: none;
}

.calendar-box.available {
    background-color: #d4edda; /* Light green */
    color: #155724;
}

.calendar-box.full {
    background-color: #f8d7da; /* Light red */
    color: #721c24;
}

.calendar-box.partial {
    background-color: #fff3cd; /* Light yellow */
    color: #856404;
}

.calendar-box:hover {
    transform: scale(1.05);
}

/* Form Styling */
#booking-form {
    transition: background-color 0.3s ease;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal-width columns */
    gap: 20px; /* Space between fields */
    margin: 30px auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Highlight Form on Focus */
#booking-form:focus-within {
    background-color: #f9f9f9;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Form Heading */
.booking-form h2 {
    grid-column: span 3; /* Full width */
    margin-bottom: 20px;
    font-size: 20px;
}

/* Labels */
.booking-form label {
    font-weight: bold;
    font-size: 14px;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

/* Inputs and Select Fields */
.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="date"],
.booking-form select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Button Full Width */
.booking-form button {
    grid-column: span 3; /* Full width button across all columns */
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-form button:hover {
    background-color: #45a049;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }

    .booking-form {
        width: 90%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .calendar-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-form input,
    .booking-form button {
        font-size: 12px;
        padding: 8px;
    }

    .booking-form h2 {
        font-size: 18px;
    }
}
