#appointment-booking-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    /* background: #fff; */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

#time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.time-slot {
    padding: 10px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
}

.time-slot.available {
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: pointer;
}

.time-slot.available:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.time-slot.selected {
    background: #0073aa;
    color: white;
    border-color: #005a87;
}

.time-slot.booked {
    background: #f8d7da;
    color: #6c757d;
    border-color: #f5c6cb;
    cursor: not-allowed;
    opacity: 0.7;
    text-decoration: line-through;
}

.time-slot.booked:hover {
    background: #f8d7da;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    background: #0073aa;
    color: white;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #005a87;
}

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

#booking-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

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

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

.btn-calendar {
    padding: 10px 20px;
    border: 1px solid #0073aa;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    background: #fff;
    color: #0073aa;
    transition: all 0.2s ease;
    width: 100%;
    text-align: center;
}

.btn-calendar:hover {
    background: #0073aa;
    color: white;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-top: 15px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}

.calendar-day {
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

.calendar-date {
    text-align: center;
    padding: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-date:hover {
    background: #f0f0f0;
}

.calendar-date.disabled {
    background: #f8f8f8;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-date.selected {
    background: #0073aa;
    color: white;
}

.calendar-date.past {
    color: #ccc;
    cursor: not-allowed;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-nav button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.calendar-nav h3 {
    margin: 0;
    text-align: center;
}

#calendar-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    #appointment-booking-container {
        margin: 10px;
        padding: 15px;
    }
    
    .time-slot {
        min-width: 70px;
        padding: 8px;
        font-size: 12px;
    }
    
    .calendar-date {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .calendar-nav button {
        padding: 3px 8px;
        font-size: 14px;
    }
}

/* Booking Confirmation Modal */
#booking-confirmation-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

#booking-confirmation-modal > div {
    background-color: #fff;
    margin: 50px auto 0 auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    text-align: center;
    position: relative;
}

#booking-confirmation-modal h2 {
    color: #0073aa;
    margin-top: 0;
}

#booking-confirmation-modal #booking-details {
    margin: 20px 0;
    text-align: left;
}

#booking-confirmation-modal #booking-details p {
    margin: 10px 0;
}

#booking-confirmation-modal button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    background: #0073aa;
    color: white;
    transition: background 0.2s ease;
}

#booking-confirmation-modal button:hover {
    background: #005a87;
}