/* Fleet Leasing Form Styles */
.fleet-leasing-form-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.fleet-leasing-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #133285, #1e40af);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-title {
    color: #133285;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #6b7280;
    margin-bottom: 0;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.progress-step.completed {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #133285;
    color: white;
}

.progress-step.completed .step-number {
    background: #10b981;
    color: white;
}

.step-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

.progress-step.active .step-label {
    color: #133285;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 2rem;
    text-align: center;
}

.step-header h5 {
    color: #133285;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #6b7280;
    margin-bottom: 0;
}

/* Vehicle Selection */
.condition-selector {
    margin-bottom: 1.5rem;
}

.condition-selector > label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

.radio-group {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    margin: 0;
    padding: 0;
}

.radio-option input[type="radio"] {
    display: none;
    margin: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #133285;
    background: #133285;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.vehicle-selector {
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Fix for form controls - main issue fix */
.vehicle-selector .form-control,
.form-control {
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    padding: 0.75rem !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
    color: #374151 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
}

.vehicle-selector .form-control:focus,
.form-control:focus {
    border-color: #133285 !important;
    box-shadow: 0 0 0 3px rgba(19, 50, 133, 0.1) !important;
    outline: none !important;
    background-color: #ffffff !important;
    color: #374151 !important;
}

.vehicle-selector .form-control::placeholder,
.form-control::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

/* Select specific styling */
select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
    background-repeat: no-repeat !important;
    background-size: 1.5em 1.5em !important;
    padding-right: 2.5rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Textarea specific styling */
textarea.form-control {
    resize: vertical !important;
    min-height: 80px !important;
}

/* Button styling fixes */
.vehicle-selector .btn-primary {
    background: #133285 !important;
    border-color: #133285 !important;
    border-radius: 6px !important;
    padding: 0.75rem 1rem !important;
    color: white !important;
    font-weight: 500 !important;
}

.vehicle-selector .btn-primary:hover {
    background: #1e40af !important;
    border-color: #1e40af !important;
    color: white !important;
}

.vehicle-selector .btn-primary:disabled {
    background: #d1d5db !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

/* Selected Vehicles */
.selected-vehicles {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 1.5rem;
}

.selected-vehicles h6 {
    color: #133285;
    font-weight: 600;
    margin-bottom: 1rem;
}

.vehicles-list {
    min-height: 60px;
}

.no-vehicles {
    color: #6b7280;
    font-style: italic;
    text-align: center;
    margin: 0;
}

.vehicle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.vehicle-info {
    flex: 1;
}

.vehicle-type {
    font-weight: 600;
    color: #374151;
    text-transform: capitalize;
}

.vehicle-quantity {
    color: #6b7280;
    font-size: 0.875rem;
}

.remove-vehicle {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-vehicle:hover {
    background: #fca5a5;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    font-weight: 500;
    color: #374151 !important;
    margin-bottom: 0.5rem;
    display: block;
}

/* Review Section */
.review-section {
    margin-bottom: 2rem;
}

.review-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-card h6 {
    color: #133285;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.review-label {
    font-weight: 500;
    color: #6b7280;
}

.review-value {
    color: #374151;
    text-transform: capitalize;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}

.btn-primary {
    background: #133285 !important;
    color: white !important;
}

.btn-primary:hover:not(:disabled) {
    background: #1e40af !important;
    color: white !important;
}

.btn-primary:disabled {
    background: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
}

.btn-secondary {
    background: #6b7280 !important;
    color: white !important;
}

.btn-secondary:hover {
    background: #4b5563 !important;
    color: white !important;
}

.btn-success {
    background: #10b981 !important;
    color: white !important;
}

.btn-success:hover {
    background: #059669 !important;
    color: white !important;
}

/* Input focus states - additional protection */
input:focus,
select:focus,
textarea:focus {
    color: #374151 !important;
    background-color: #ffffff !important;
}

/* Override any conflicting styles from other CSS files */
.fleet-leasing-form-container input,
.fleet-leasing-form-container select,
.fleet-leasing-form-container textarea {
    color: #374151 !important;
    background-color: #ffffff !important;
}

.fleet-leasing-form-container input:focus,
.fleet-leasing-form-container select:focus,
.fleet-leasing-form-container textarea:focus {
    color: #374151 !important;
    background-color: #ffffff !important;
}

/* File input styling */
input[type="file"].form-control {
    padding: 0.5rem 0.75rem !important;
    border: 1px dashed #d1d5db !important;
    background-color: #f9fafb !important;
}

input[type="file"].form-control:focus {
    border-color: #133285 !important;
    background-color: #f9fafb !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fleet-leasing-form-container {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .progress-indicator {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
    }
    
    .vehicle-selector .row > div {
        margin-bottom: 0.5rem;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step-actions .btn {
        width: 100%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success Message */
.success-message {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
}

/* Error Message */
.error-message {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
}

/* Info Message */
.info-message {
    background: #e0f2fe;
    border: 1px solid #7dd3fc;
    color: #0c4a6e;
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 1rem;
}


/* ========================================
   ENHANCED FORM NOTIFICATIONS
======================================== */

/* Message Container */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
}

/* Success Message Enhanced */
.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: slideInRight 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-message i {
    font-size: 20px;
    color: white;
}

/* Error Message Enhanced */
.error-message {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95) 0%, rgba(200, 35, 51, 0.95) 100%);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(220, 53, 69, 0.3);
    animation: slideInRight 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-message i {
    font-size: 20px;
    color: white;
}

/* Info Message Enhanced */
.info-message {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95) 0%, rgba(37, 99, 235, 0.95) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: left;
    margin-bottom: 1rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
    animation: slideInRight 0.4s ease-out;
    display: flex;
    align-items: center;
    gap: 12px;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Submit button loading with spinner */
.submit-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success/Error button states */
.submit-btn .fa-check {
    color: white;
}

.submit-btn .fa-exclamation-triangle {
    color: white;
}

/* Responsive notifications */
@media (max-width: 768px) {
    .message-container {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
    
    .success-message,
    .error-message,
    .info-message {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
}
