/* Booking Calendar Styles */

.booking-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    position: relative;
    overflow: hidden;
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.booking-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Calendar Container */
.calendar-container {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.calendar-nav {
    display: flex;
    gap: 1rem;
}

.calendar-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.calendar-nav button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(94, 43, 255, 0.3);
}

.calendar-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Calendar Grid */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.weekday {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
    font-size: 0.875rem;
    padding: 0.5rem;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f9fafb;
    color: #374151;
    border: 2px solid transparent;
}

.calendar-day:hover:not(.disabled):not(.booked) {
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.1), rgba(200, 48, 204, 0.1));
    border-color: #5E2BFF;
    transform: scale(1.05);
}

.calendar-day.today {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(255, 16, 240, 0.1));
    border-color: #00D9FF;
    font-weight: 700;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(94, 43, 255, 0.3);
}

.calendar-day.booked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    cursor: not-allowed;
    opacity: 0.8;
}

.calendar-day.booked::after {
    content: '✕';
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
}

.calendar-day.partially-booked {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.calendar-day.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #e5e7eb;
}

.calendar-day.available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Robot Selection */
.robot-selection {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.robot-selection-header {
    margin-bottom: 1.5rem;
}

.robot-selection-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.robot-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.robot-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.robot-item:hover {
    border-color: #5E2BFF;
    background: rgba(94, 43, 255, 0.05);
}

.robot-item.selected {
    border-color: #5E2BFF;
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.1), rgba(200, 48, 204, 0.1));
}

.robot-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.robot-info {
    flex: 1;
}

.robot-name {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.robot-availability {
    font-size: 0.875rem;
    color: #6b7280;
}

.robot-price {
    font-weight: 700;
    color: #5E2BFF;
    font-size: 1.125rem;
}

/* Booking Form */
.booking-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #f3f4f6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #5E2BFF;
    box-shadow: 0 0 0 3px rgba(94, 43, 255, 0.1);
}

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.booking-summary {
    background: linear-gradient(135deg, rgba(94, 43, 255, 0.05), rgba(200, 48, 204, 0.05));
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.summary-item.total {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.125rem;
    padding-top: 0.5rem;
    border-top: 2px solid rgba(94, 43, 255, 0.1);
}

.booking-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #FF3CAC, #FF8A00);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 60, 172, 0.3);
}

.booking-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 60, 172, 0.4);
}

.booking-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Legend */
.calendar-legend {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f3f4f6;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

.legend-color.available {
    background: linear-gradient(135deg, #10b981, #059669);
}

.legend-color.booked {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.legend-color.partially {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.legend-color.selected {
    background: linear-gradient(135deg, #5E2BFF, #C830CC);
}

/* Responsive */
@media (max-width: 968px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
    }
    
    .calendar-container {
        order: 2;
    }
    
    .robot-selection {
        order: 1;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        font-size: 0.875rem;
    }
    
    .weekday {
        font-size: 0.75rem;
    }
    
    .date-range {
        grid-template-columns: 1fr;
    }
    
    .calendar-legend {
        justify-content: center;
    }
}