#acuity-custom-calendar {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Class Selector Section */
#class-selector-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
}

#class-selector-section label {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

.class-dropdown-select {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.class-dropdown-select:focus {
    outline: none;
    border-color: #4A90E2;
}

/* Class Details Box */
.class-details-box {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #4A90E2;
}

.class-info-inline {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.class-price-tag,
.class-duration-tag {
    display: inline-block;
    padding: 6px 14px;
    background: #4A90E2;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.class-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Calendar Section */
#calendar-section {
    margin-top: 30px;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.calendar-header button {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.calendar-header button:hover {
    background: #357ABD;
}

/* Calendar Grid */
.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.day-name {
    text-align: center;
    font-weight: 600;
    color: #666;
    padding: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    background: white;
}

.calendar-day:not(.empty):not(.past):hover {
    background: #f0f7ff;
    border-color: #4A90E2;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

.calendar-day.past {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.unavailable {
    background: #fafafa;
    color: #ddd;
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

/* Time Slots Section */
#time-slots {
    margin-top: 40px;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 12px;
}

#time-slots h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.time-slot-btn {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
}

.time-slot-btn:hover {
    background: #f0f7ff;
    border-color: #4A90E2;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
}

.time-slot-btn.selected {
    background: #4A90E2;
    color: white;
    border-color: #4A90E2;
}

/* Booking Form */
#booking-form {
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

#booking-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 22px;
}

/* Booking Summary */
.booking-summary-box {
    background: #f0f7ff;
    border: 2px solid #4A90E2;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.booking-summary-box p {
    margin: 8px 0;
    color: #333;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

#booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

#booking-form input[type="text"],
#booking-form input[type="email"],
#booking-form input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#booking-form input:focus {
    outline: none;
    border-color: #4A90E2;
}

.book-now-btn {
    width: 100%;
    padding: 16px;
    background: #4A90E2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.book-now-btn:hover {
    background: #357ABD;
}

/* Responsive Form */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-field {
        margin-bottom: 20px;
    }
}

/* Booking Result Messages */

#booking-form button[type="submit"]:hover {
    background: #357ABD;
}

/* Booking Result Messages */
#booking-result {
    margin-top: 20px;
}

#booking-result p {
    padding: 15px;
    border-radius: 6px;
    margin: 0;
    font-weight: 500;
}

#booking-result .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#booking-result .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#booking-result .loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Error messages in time slots */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    #acuity-custom-calendar {
        padding: 15px;
    }
    
    #class-selector-section {
        padding: 20px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-header button {
        width: 100%;
    }
    
    .day-name {
        font-size: 12px;
        padding: 8px 2px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-slot-btn {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    #time-slots,
    #booking-form {
        padding: 20px;
    }
    
    .class-info-inline {
        flex-direction: column;
        gap: 8px;
    }
}

#booking-result {
    margin-top: 20px;
}

#booking-result p {
    padding: 15px;
    border-radius: 6px;
    margin: 0;
    font-weight: 500;
}

#booking-result .success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#booking-result .error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

#booking-result .loading {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Error messages in time slots */
.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    #acuity-custom-calendar {
        padding: 15px;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .calendar-header button {
        width: 100%;
    }
    
    .day-name {
        font-size: 12px;
        padding: 8px 2px;
    }
    
    .calendar-day {
        font-size: 14px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .time-slot-btn {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    #time-slots,
    #booking-form {
        padding: 20px;
    }
}