/* Booking Modal Styles */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.booking-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #e0e0e0;
}

.booking-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f5f5f5;
}

/* Progress Indicator */
.booking-progress {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
}

.progress-step.active .step-number {
    background: #4CAF50;
}

.step-label {
    font-size: 12px;
    color: #666;
    text-align: center;
}

/* Modal Body */
.booking-modal-body {
    padding: 32px;
}

.step-content h3 {
    margin: 0 0 24px 0;
    font-size: 20px;
    color: #333;
}

/* Calendar Styles */
.calendar-container {
    margin-bottom: 32px;
}

.calendar {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: white;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cal-nav-btn {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.2s;
}

.cal-nav-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.calendar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background: white;
}

.calendar-day.empty {
    border: none;
    cursor: default;
}

.calendar-day.past,
.calendar-day.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    background: #fafafa;
}

.calendar-day.today {
    border-color: #4CAF50;
    background: #e8f5e9;
}

.calendar-day.available:hover {
    background: #f0f7ff;
    border-color: #2196F3;
}

.calendar-day.selected {
    background: #2196F3;
    color: white;
    border-color: #1976D2;
}

.day-number {
    font-size: 14px;
    font-weight: 500;
}

.availability-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #4CAF50;
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    border-radius: 10px;
    font-weight: 600;
}

/* Time Slots */
.time-slots-container {
    margin-bottom: 32px;
}

.time-slots-container h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #333;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.time-slot {
    padding: 12px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.time-slot:hover {
    border-color: #2196F3;
    background: #f0f7ff;
}

.time-slot.selected {
    background: #2196F3;
    color: white;
    border-color: #1976D2;
}

.select-date-message,
.no-slots {
    color: #666;
    font-style: italic;
}

/* Package Selection */
.package-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.package-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    text-align: center;
}

.package-card:hover {
    border-color: #2196F3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.package-card.selected {
    border-color: #2196F3;
    background: #f0f7ff;
}

.savings-badge {
    position: absolute;
    top: -12px;
    right: 16px;
    background: #FF5722;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.package-card h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.package-price {
    font-size: 32px;
    font-weight: bold;
    color: #2196F3;
    margin: 8px 0;
}

.package-note {
    font-size: 12px;
    color: #666;
    margin: 8px 0 0 0;
}

.selected-summary {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 24px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2196F3;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.booking-summary h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item.total {
    border-bottom: none;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid #ddd;
    font-size: 18px;
}

/* Payment Section */
.payment-section {
    margin-bottom: 24px;
}

.payment-section h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    color: #333;
}

.card-input-mock {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    background: white;
}

.card-input-mock input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-note {
    margin-top: 12px;
    color: #666;
    font-size: 14px;
}

/* Action Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #2196F3;
    color: white;
}

.btn-primary:hover {
    background: #1976D2;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #388E3C;
}

/* Success State */
.booking-success {
    text-align: center;
    padding: 48px;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.booking-success h2 {
    margin: 0 0 16px 0;
    color: #333;
}

.booking-success p {
    color: #666;
    margin: 8px 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-modal {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .booking-progress {
        padding: 16px;
        overflow-x: auto;
    }

    .progress-step {
        min-width: 60px;
    }

    .step-label {
        font-size: 10px;
    }

    .package-options {
        grid-template-columns: 1fr;
    }

    .calendar-days {
        gap: 2px;
    }

    .calendar-day {
        font-size: 12px;
    }

    .availability-badge {
        font-size: 8px;
        padding: 1px 2px;
    }

    .time-slots {
        gap: 8px;
    }

    .time-slot {
        padding: 10px 16px;
        font-size: 13px;
    }

    .step-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
    }
}