/* Vehicle Booking Form Styles */
.vehicle-booking-form {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    text-align: left;
}

.vehicle-booking-form * {
    box-sizing: border-box;
}

/* Form Sections */
.form-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.form-section h3 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h3 i {
    width: 20px;
    height: 20px;
    background: #6b7280;
    mask-size: contain;
    mask-repeat: no-repeat;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    width: 16px;
    height: 16px;
    background: #6b7280;
    mask-size: contain;
    mask-repeat: no-repeat;
}

.required {
    color: #ef4444;
}

.form-group small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

/* Input Styles */
input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #ffffff;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Address Row */
.address-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* Product Search Section */
.product-search {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.search-header {
    background: #1f2937;
    color: #ffffff;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
}

.search-input {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.search-input input {
    border: none;
    background: #f9fafb;
    margin: 0;
}

.selected-products {
    padding: 40px 16px;
    min-height: 120px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-item-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
}

.add-item-placeholder i {
    width: 32px;
    height: 32px;
    background: #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.add-item-placeholder i::before,
.add-item-placeholder i::after {
    content: '';
    position: absolute;
    background: #ffffff;
}

.add-item-placeholder i::before {
    width: 16px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.add-item-placeholder i::after {
    height: 16px;
    width: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Toggle Switches */
.toggle-group {
    margin: 12px 0;
}

.toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
}

.toggle input[type="checkbox"] {
    display: none;
}

.slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: 24px;
    transition: all 0.2s ease;
}

.slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle input[type="checkbox"]:checked + .slider {
    background: #3b82f6;
}

.toggle input[type="checkbox"]:checked + .slider::before {
    transform: translateX(20px);
}

.toggle-label {
    color: #374151;
    font-weight: 500;
}

/* Textarea */
textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 32px;
}

.btn-submit {
    background: #1f2937;
    color: #ffffff;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.btn-submit:hover {
    background: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Form Messages */
#form-messages {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: none;
}

#form-messages.success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

#form-messages.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-booking-form {
        padding: 16px;
    }
    
    .form-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .address-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .btn-submit {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .vehicle-booking-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        max-width: 1000px;
        margin: 0 auto;
        align-items: start;
    }
    
    .form-section:nth-child(1) {
        grid-column: 1;
    }
    
    .form-section:nth-child(2) {
        grid-column: 2;
    }
    
    .form-section:nth-child(3) {
        grid-column: 1 / -1;
    }
    
    .form-section:nth-child(4) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1201px) {
    .vehicle-booking-form {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 16px;
        max-width: 1400px;
        margin: 0 auto;
        align-items: start;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-section:nth-child(1) {
        grid-column: 1;
    }
    
    .form-section:nth-child(2) {
        grid-column: 2;
    }
    
    .form-section:nth-child(3) {
        grid-column: 3;
    }
    
    .form-section:nth-child(4) {
        grid-column: 4;
    }
}