/* Motorcycle Booking System Styles - Optimized */
.motorcycle-booking-container * {
    box-sizing: border-box;
}

.motorcycle-booking-container {
    text-align: center;
    margin: 20px 0;
}

.booking-trigger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: inline-block;
}

.booking-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.popup-overlay.show {
    display: flex;
}

.popup-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: auto;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.popup-overlay.show .popup-container {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: #333;
    background: #f0f0f0;
}

.popup-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.bike-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.bike-option {
    padding: 15px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.bike-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.bike-option.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bike-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
}

.calendar-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-nav {
    background: #667eea;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: #5a6fd8;
    transform: scale(1.1);
}

.calendar-month {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    padding: 12px;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    background: #e9ecef;
    border-radius: 8px;
}

.calendar-day {
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border: 2px solid transparent;
}

.calendar-day:hover {
    background: #e8f0fe;
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #ccc;
    background: #f8f9fa;
}

.calendar-day.booked {
    background: #ff4757;
    color: white;
    cursor: not-allowed;
}

.calendar-day.booked:hover {
    transform: none;
}

.calendar-day.available {
    background: #2ed573;
    color: white;
    border-color: #2ed573;
}

.calendar-day.available:hover {
    background: #26d0ce;
    border-color: #26d0ce;
}

.calendar-day.selected {
    background: #667eea;
    color: white;
    font-weight: 600;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.booking-summary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #dee2e6;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    font-size: 15px;
}

.summary-row.total {
    border-top: 2px solid #667eea;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 600;
    font-size: 18px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form {
    display: grid;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-input {
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.submit-btn {
    background: linear-gradient(135deg, #2ed573 0%, #17a085 100%);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 213, 115, 0.3);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.legend {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 20px;
    font-size: 14px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.1);
}

.discount-info {
    background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%);
    border: 1px solid #bee5eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    color: #0c5460;
    text-align: center;
}

.discount-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popup-container {
        padding: 20px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .popup-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .bike-selector {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .bike-option {
        min-width: auto;
        width: 100%;
        max-width: none;
    }
    
    .calendar-container {
        padding: 15px;
    }
    
    .calendar-grid {
        gap: 4px;
    }
    
    .calendar-day {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .calendar-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .calendar-month {
        font-size: 18px;
    }
    
    .legend {
        gap: 15px;
        justify-content: space-around;
    }
    
    .legend-item {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .summary-row {
        font-size: 14px;
    }
    
    .summary-row.total {
        font-size: 16px;
    }
    
    .booking-summary, .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: 15px;
        margin: 5px;
    }
    
    .booking-trigger {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .calendar-day {
        padding: 6px 2px;
        font-size: 11px;
        min-height: 35px;
    }
    
    .legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Animation for popup */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-overlay.show .popup-container {
    animation: popupFadeIn 0.3s ease;
}