/**
 * Enhanced Booking Flow UI
 * Modern step-by-step booking experience
 */

/* Booking Container */
.booking-flow-modern {
    background: #F9FAFB;
    min-height: 100vh;
    padding: 3rem 0;
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Step Progress Indicator */
.booking-steps {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.steps-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.steps-wrapper::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: #E5E7EB;
    z-index: 0;
}

.steps-progress {
    position: absolute;
    top: 2rem;
    left: 2rem;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 100%);
    transition: width 0.5s ease;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: white;
    border: 3px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #9CA3AF;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-color: #4F46E5;
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    animation: pulse-step 2s infinite;
}

.step-item.completed .step-circle {
    background: #10B981;
    border-color: #10B981;
    color: white;
}

@keyframes pulse-step {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
    }
}

.step-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #9CA3AF;
    text-align: center;
}

.step-item.active .step-label {
    color: #4F46E5;
}

.step-item.completed .step-label {
    color: #10B981;
}

/* Booking Content */
.booking-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* Main Content Area */
.booking-main {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.booking-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.booking-section-subtitle {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

/* Session Selection */
.session-grid {
    display: grid;
    gap: 1rem;
}

.session-card {
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.session-card:hover {
    border-color: #4F46E5;
    background: #F9FAFB;
}

.session-card.selected {
    border-color: #4F46E5;
    background: rgba(79, 70, 229, 0.05);
}

.session-card.selected::after {
    content: '✓';
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: #4F46E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.session-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.session-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4F46E5;
}

.session-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.session-description {
    font-size: 0.875rem;
    color: #6B7280;
    line-height: 1.5;
}

/* Calendar Selector */
.calendar-modern {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid #E5E7EB;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-month {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 1px solid #E5E7EB;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.calendar-nav-btn:hover {
    background: #F9FAFB;
    border-color: #4F46E5;
    color: #4F46E5;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    padding: 0.5rem;
}

.calendar-date {
    aspect-ratio: 1;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.calendar-date:hover:not(.disabled):not(.selected) {
    background: #F9FAFB;
}

.calendar-date.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
}

.calendar-date.selected {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    font-weight: 700;
}

.calendar-date.today {
    border: 2px solid #4F46E5;
}

/* Time Slot Selection */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.time-slot {
    padding: 0.875rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-slot:hover:not(.disabled):not(.selected) {
    border-color: #4F46E5;
    background: #F9FAFB;
}

.time-slot.disabled {
    background: #F9FAFB;
    color: #D1D5DB;
    cursor: not-allowed;
}

.time-slot.selected {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-color: #4F46E5;
    color: white;
}

/* Booking Summary Sidebar */
.booking-summary {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
}

.mentor-info {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 1.5rem;
}

.mentor-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
}

.mentor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mentor-details {
    flex: 1;
}

.mentor-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.mentor-role {
    font-size: 0.875rem;
    color: #6B7280;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #F3F4F6;
}

.summary-label {
    font-size: 0.875rem;
    color: #6B7280;
}

.summary-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid #E5E7EB;
}

.total-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4F46E5;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.payment-method {
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-method:hover {
    border-color: #4F46E5;
    background: #F9FAFB;
}

.payment-method.selected {
    border-color: #4F46E5;
    background: rgba(79, 70, 229, 0.05);
}

.payment-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    background: #F9FAFB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.payment-description {
    font-size: 0.75rem;
    color: #6B7280;
}

/* Action Buttons */
.booking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-booking {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-booking-primary {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-booking-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-booking-secondary {
    background: white;
    color: #6B7280;
    border: 2px solid #E5E7EB;
}

.btn-booking-secondary:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
}

/* Success Confirmation */
.booking-success {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: success-pop 0.5s ease;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.success-message {
    font-size: 1.125rem;
    color: #6B7280;
    margin-bottom: 2rem;
}

.booking-details-card {
    background: #F9FAFB;
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

/* Responsive */
@media (max-width: 1024px) {
    .booking-content {
        grid-template-columns: 1fr;
    }
    
    .booking-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .booking-flow-modern {
        padding: 1.5rem 0;
    }
    
    .booking-steps {
        padding: 1.5rem;
    }
    
    .step-circle {
        width: 3rem;
        height: 3rem;
        font-size: 1.125rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .booking-main {
        padding: 1.5rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .booking-actions {
        flex-direction: column-reverse;
    }
}
