.reservation-form-container {
    max-width: 600px;
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.reservation-form-container h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

.reservation-form .form-group {
    margin-bottom: 20px;
}

.reservation-form .form-row {
    display: flex;
    gap: 15px;
}

.reservation-form .form-group.half {
    flex: 1;
}

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

.reservation-form input[type="text"],
.reservation-form input[type="email"],
.reservation-form input[type="tel"],
.reservation-form input[type="date"],
.reservation-form input[type="time"],
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.reservation-form input:focus,
.reservation-form select:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.reservation-form textarea {
    resize: vertical;
    min-height: 80px;
}

.reservation-submit-btn {
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.reservation-submit-btn:hover {
    background: #005a87;
}

.reservation-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#reservation-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

#reservation-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#reservation-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Frontend Calendar Styles */
#frontend-calendar-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 20px 0;
}

#frontend-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

#frontend-calendar-controls h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

#frontend-calendar-controls button {
    background: #007cba;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

#frontend-calendar-controls button:hover {
    background: #005a87;
}

.frontend-calendar-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
}

.frontend-calendar-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: center;
    font-weight: 600;
    color: #333;
    border: 1px solid #e0e0e0;
    font-size: 14px;
}

.frontend-calendar-table td {
    width: 14.28%;
    height: 100px;
    vertical-align: top;
    border: 1px solid #e0e0e0;
    position: relative;
    background: white;
    padding: 0;
}

.calendar-day {
    height: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f5f5f5;
}

.calendar-day.available-day {
    background: #f0f8ff;
}

.calendar-day.selected {
    background: #007cba;
    color: white;
}

.calendar-day.past-day {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

.calendar-day.unavailable-day {
    background: #ffebee;
    cursor: not-allowed;
}

.calendar-day.has-bookings {
    background: #fff3e0;
}

.day-number {
    padding: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.calendar-day.selected .day-number {
    color: white;
}

.day-content {
    padding: 4px;
    font-size: 11px;
    text-align: center;
}

.reservation-count {
    background: #007cba;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    margin: 2px;
    display: block;
    text-align: center;
}

.reservation-details {
    font-size: 9px;
    line-height: 1.2;
}

.reservation-details .time-slot {
    display: block;
    margin: 1px 0;
    padding: 1px 3px;
    border-radius: 2px;
    font-size: 8px;
    text-align: center;
    border: none;
    cursor: default;
}

.reservation-details .time-slot.confirmed {
    background: #28a745;
    color: white;
}

.reservation-details .time-slot.pending {
    background: #ffc107;
    color: #333;
}

.slot-info {
    font-weight: bold;
}

.availability-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5cb85c;
}

.availability-indicator.limited {
    background: #f0ad4e;
}

.availability-indicator.full {
    background: #d9534f;
}

/* Booking Modal */
#booking-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.3s;
}

.booking-modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.booking-modal-header h3 {
    margin: 0;
    color: #333;
}

.booking-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.booking-close:hover,
.booking-close:focus {
    color: #000;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.time-slot {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.time-slot:hover {
    background: #f5f5f5;
    border-color: #007cba;
}

.time-slot.selected {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.time-slot.unavailable {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.quick-booking-form {
    margin-top: 20px;
}

.quick-booking-form .form-group {
    margin-bottom: 15px;
}

.quick-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.quick-booking-form input,
.quick-booking-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.quick-booking-form input:focus,
.quick-booking-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0,124,186,0.3);
}

.booking-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.booking-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.booking-btn.primary {
    background: #007cba;
    color: white;
}

.booking-btn.primary:hover {
    background: #005a87;
}

.booking-btn.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.booking-btn.secondary:hover {
    background: #e9ecef;
}

.booking-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

@media (max-width: 768px) {
    .reservation-form .form-row {
        flex-direction: column;
    }
    
    .reservation-form-container {
        padding: 15px;
        margin: 10px 0;
    }
    
    .frontend-calendar-table td {
        height: 70px;
    }
    
    .frontend-day-content {
        font-size: 10px;
    }
    
    .booking-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
        padding: 15px;
    }
    
    #frontend-calendar-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 8px;
    }
    
    .time-slot {
        padding: 6px 8px;
        font-size: 12px;
    }
}