/* Easy Booking Plugin Styles */

.easy-booking-wrapper {
    max-width: 800px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.easy-booking-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.easy-booking-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    text-align: center;
}

.easy-booking-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Step Indicator */
.easy-booking-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.easy-booking-step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.step.completed .step-number {
    background: #4CAF50;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #999;
    text-align: center;
}

.step.active .step-label {
    color: #4CAF50;
    font-weight: 600;
}

/* Messages */
.easy-booking-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.easy-booking-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Steps */
.easy-booking-step h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

/* Calendar */
#easy-booking-calendar {
    max-width: 500px;
    margin: 0 auto;
}

.easy-booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.current-month {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.prev-month,
.next-month {
    background: #f5f5f5;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.prev-month:hover,
.next-month:hover {
    background: #e0e0e0;
}

.calendar-table {
    width: 100%;
    border-collapse: collapse;
}

.calendar-table th {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.calendar-table td {
    padding: 5px;
    text-align: center;
}

.calendar-day {
    width: 100%;
    aspect-ratio: 1;
    border: none;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #333;
}

.calendar-day:hover:not(.disabled):not(.past) {
    background: #e8f5e9;
    transform: scale(1.05);
}

.calendar-day.disabled {
    background: transparent;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.past {
    background: transparent;
    color: #ccc;
    cursor: not-allowed;
}

.calendar-day.selected {
    background: #4CAF50;
    color: white;
    font-weight: 600;
}

.calendar-day.available {
    background: #f5f5f5;
    color: #333;
}

.calendar-day.today {
    border: 2px solid #4CAF50;
}

/* Time Slots */
.selected-date-display {
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-button {
    background: transparent;
    border: none;
    color: #4CAF50;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.back-button:hover {
    background: rgba(76, 175, 80, 0.1);
}

.time-slots-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
}

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

.time-slot:hover {
    border-color: #4CAF50;
    background: #e8f5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.time-slot.selected {
    border-color: #4CAF50;
    background: #4CAF50;
    color: white;
}

/* Booking Summary */
.booking-summary {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.summary-details {
    margin-top: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item strong {
    color: #666;
}

/* Form */
.booking-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.required {
    color: #f44336;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
}

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

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.submit-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.submit-button:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .easy-booking-container {
        padding: 20px;
    }
    
    .easy-booking-title {
        font-size: 24px;
    }
    
    .step-label {
        display: none;
    }
    
    .time-slots-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
