/**
 * Blue Motors Southampton - Public Styles
 * 
 * @package BlueMotosSouthampton
 * @since 1.0.0
 */

/* Container & Layout */
.bms-booking-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

/* Location Header */
.bms-location-header {
    background: #302f63;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.bms-location-header h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    color: white;
}

.location-details p {
    margin: 8px 0;
    font-size: 16px;
}

.location-details i {
    margin-right: 8px;
}

/* Progress Steps */
.bms-progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.bms-progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-weight: bold;
    margin-bottom: 8px;
    border: 2px solid #e0e0e0;
}

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

.step.completed .step-number {
    background: #4caf50;
    color: white;
    border-color: #4caf50;
}

.step-label {
    display: block;
    font-size: 14px;
    color: #666;
}

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

/* Service Cards */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.service-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.service-card.selected {
    border-color: #667eea;
    background: #f8f9ff;
}

.service-card h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.service-price {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    margin: 10px 0;
}

.service-desc {
    color: #666;
    margin: 10px 0;
}

.service-duration {
    font-size: 14px;
    color: #999;
}

.btn-select-service {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-select-service:hover {
    background: #5a67d8;
}
/* Vehicle Details Step Styling */
#step-2-content {
    background: #f5cc11;
    color: black;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

#step-2-content h3 {
    color: black;
    margin: 0 0 20px 0;
    font-weight: bold;
}

/* Vehicle Lookup Section */
.vehicle-lookup-section {
    margin: 20px 0;
}

.lookup-input-group {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

#vehicle-reg {
    flex: 1;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
    text-transform: uppercase;
}

#vehicle-details-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.vehicle-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.price-display {
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

.calculated-price {
    font-size: 32px;
    font-weight: bold;
    color: #4caf50;
}

/* Time Slots */
#time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.time-slot {
    padding: 10px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group input.error {
    border-color: #f44336;
}

/* Buttons */
.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Messages */
.bms-message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.bms-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bms-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(3, end) infinite;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .bms-progress-steps {
        flex-direction: column;
    }
    
    .bms-progress-steps::before {
        display: none;
    }
    
    .step {
        margin-bottom: 15px;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .lookup-input-group {
        flex-direction: column;
    }
    
    #time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes dots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}