/* Booking Flow Styles */

.rezva-booking {
    max-width: 800px;
    margin: 0 auto;
}

/* Booking Header */
.booking-header {
    margin-bottom: 30px;
}

.specialist-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.specialist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.specialist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initial {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.specialist-details h2 {
    margin: 0 0 5px;
}

.specialist-trade {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 5px;
}

.specialist-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6c757d;
    font-size: 0.9rem;
}

.specialist-location .material-icons {
    font-size: 18px;
}

/* Progress Steps */
.booking-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.booking-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.booking-steps .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e9ecef;
}

.booking-steps .step.completed:not(:last-child)::after,
.booking-steps .step.active:not(:last-child)::after {
    background: #667eea;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin-bottom: 8px;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 500;
}

/* Booking Content */
.booking-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    overflow: hidden;
}

.booking-content h3 {
    margin-bottom: 25px;
    color: #333;
}

/* Service Selection */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.service-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.service-main h4 {
    margin: 0 0 5px;
    color: #333;
}

.service-desc {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.service-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.service-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #6c757d;
}

.service-duration .material-icons {
    font-size: 16px;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

/* Selected Service Summary */
.selected-service {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 25px;
}

.selected-service h4 {
    margin: 0;
    flex: 1;
}

.selected-service .service-duration,
.selected-service .service-price {
    font-weight: 500;
}

.change-link {
    color: #667eea;
    font-size: 0.9rem;
}

/* Date Selection */
.date-time-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    overflow: hidden;
}

.date-selection,
.time-selection {
    min-width: 0;
    overflow: hidden;
}

.time-selection h3 {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Calendar Header */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-header .btn-nav {
    background: none;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-header .btn-nav:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #667eea;
}

.calendar-header .btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.calendar-header .btn-nav .material-icons {
    font-size: 20px;
    color: #333;
}

/* Calendar Weekdays */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
    padding: 8px 0;
}

/* Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f9fa;
}

.calendar-day:hover:not(.unavailable):not(.past):not(.other-month) {
    background: #e8e9ff;
}

.calendar-day.selected {
    background: #667eea;
    color: white;
}

.calendar-day.unavailable,
.calendar-day.past {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent;
}

.calendar-day.other-month {
    opacity: 0.25;
    cursor: default;
    background: transparent;
}

.calendar-day .day-number {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.time-slots::-webkit-scrollbar {
    width: 6px;
}

.time-slots::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.time-slots::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.time-slot {
    padding: 12px;
    text-align: center;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.time-slot:hover {
    background: #667eea;
    color: white;
}

.no-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.no-slots .material-icons {
    font-size: 48px;
    opacity: 0.5;
    margin-bottom: 15px;
}

/* Confirmation Grid */
.booking-confirm-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

/* Booking Summary */
.booking-summary {
    position: sticky;
    top: 20px;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

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

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

.summary-item .label {
    color: #6c757d;
}

.summary-item .value {
    font-weight: 500;
    color: #333;
}

.summary-divider {
    height: 2px;
    background: #667eea;
    margin: 10px 0;
}

.summary-item.total {
    border-bottom: none;
    font-size: 1.1rem;
}

.summary-item.total .value {
    color: #667eea;
    font-weight: 700;
}

/* Booking Form */
.booking-form h3 {
    margin-bottom: 20px;
}

/* Booking Actions */
.booking-actions {
    display: flex;
    gap: 15px;
}

/* Success Page */
.booking-success {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    margin-bottom: 20px;
}

.success-icon .material-icons {
    font-size: 80px;
    color: #28a745;
}

.booking-success h2 {
    margin-bottom: 15px;
    color: #28a745;
}

.success-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.booking-details-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    max-width: 400px;
    margin: 0 auto 30px;
    text-align: left;
}

.booking-details-card h4 {
    margin-bottom: 20px;
    text-align: center;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .material-icons {
    color: #667eea;
}

.detail-row .label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
}

.detail-row .value {
    display: block;
    font-weight: 500;
    color: #333;
}

.booking-status {
    margin-bottom: 30px;
}

.status-note {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 10px;
}

.next-steps {
    background: #e8f4fd;
    border-radius: 10px;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto 30px;
    text-align: left;
}

.next-steps h4 {
    margin-bottom: 15px;
    color: #0c5460;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #0c5460;
}

.next-steps .material-icons {
    color: #17a2b8;
}

.success-actions {
    margin-top: 30px;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: #6c757d;
}

.loading .material-icons.rotating {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .date-time-selection {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .booking-confirm-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-summary {
        position: static;
        order: 1;
    }
    
    .booking-form {
        order: 2;
    }
}
