/* Vehicle Booking System Styles */

.hmcvb-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.hmcvb-header {
    background: #0047ab;
    color: white;
    padding: 25px;
    text-align: center;
}

.hmcvb-header h2 {
    margin: 0;
    font-size: 24px;
}

.hmcvb-form {
    padding: 30px;
}

.hmcvb-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.hmcvb-section h3 {
    margin: 0 0 20px;
    color: #0047ab;
    font-size: 18px;
}

.hmcvb-field {
    margin-bottom: 20px;
}

.hmcvb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hmcvb-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.hmcvb-field input[type="text"],
.hmcvb-field input[type="email"],
.hmcvb-field input[type="datetime-local"],
.hmcvb-field select,
.hmcvb-field textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.hmcvb-field input:focus,
.hmcvb-field select:focus,
.hmcvb-field textarea:focus {
    border-color: #0047ab;
    outline: none;
}

.hmcvb-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.hmcvb-preview {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #0047ab;
}

.hmcvb-preview h4 {
    margin: 0 0 15px;
    color: #0047ab;
}

.hmcvb-preview p {
    margin: 8px 0;
}

.hmcvb-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.hmcvb-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.hmcvb-btn-primary {
    background: #28a745;
    color: white;
}

.hmcvb-btn-primary:hover {
    background: #218838;
}

.hmcvb-btn-secondary {
    background: #6c757d;
    color: white;
}

.hmcvb-btn-secondary:hover {
    background: #5a6268;
}

.hmcvb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.hmcvb-message {
    padding: 15px;
    margin: 20px 30px;
    border-radius: 6px;
}

.hmcvb-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.hmcvb-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.hmcvb-error-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.hmcvb-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0047ab;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hmcvb-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .hmcvb-actions {
        flex-direction: column;
    }
    
    .hmcvb-btn {
        width: 100%;
    }
}