/* Enhanced Add Vehicle Modal Styles */

/* Modal Structure */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Increased z-index to ensure it appears above everything */
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none;
}

.modal-content.cyberpunk-modal {
    background-color: rgba(18, 18, 30, 0.95);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(108, 99, 255, 0.3);
    transform: scale(1);

    border: 1px solid rgba(108, 99, 255, 0.3);
    position: relative;
    z-index: 10000; /* Ensure content is above the modal background */
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.2);
    background: linear-gradient(to right, rgba(18, 18, 30, 0.9), rgba(30, 30, 45, 0.9));
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: #ffffff;
}

.modal-header .gradient-text {
    background: linear-gradient(90deg, #6c63ff, #00ffcc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.close-modal {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;

    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
}

.close-modal:hover {
    color: #ff6b6b;
}

.modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 80px); /* Account for header height */
    color: #ffffff;
}

/* Progress Indicator */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.form-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(108, 99, 255, 0.2);
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(26, 26, 37, 0.8);
    border: 2px solid rgba(108, 99, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);

}

.step-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);

}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #6c63ff, #00ffcc);
    border-color: #00ffcc;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.progress-step.active .step-label {
    color: #ffffff;
    font-weight: 600;
}

/* Form Steps - excluding rental modal */
.form-step:not(#list-as-rental-modal .form-step):not(#list-as-rental-form .form-step) {
    display: none;
}

.form-step.active:not(#list-as-rental-modal .form-step.active):not(#list-as-rental-form .form-step.active) {
    display: block;
}

/* Special styles for rental modal form steps */
#list-as-rental-modal .form-step {
    display: none;
}

#list-as-rental-modal .form-step.active {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.form-actions button {
    min-width: 120px;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;

}

.btn-prev {
    background: rgba(26, 26, 37, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.5);
    color: #ffffff;
}

.btn-prev:hover {
    background: rgba(26, 26, 37, 1);
    border-color: rgba(108, 99, 255, 0.8);
}

.btn-next {
    background: linear-gradient(135deg, #6c63ff, #5a52e0);
    border: none;
    color: #ffffff;
}

.btn-next:hover {
    background: linear-gradient(135deg, #7d75ff, #6c63ff);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
}

.btn-submit {
    background: linear-gradient(135deg, #00ffcc, #00ccff);
    border: none;
    color: #1a1a25;
    font-weight: 600;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #00ffdd, #00ddff);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #ffffff;
}

.cyberpunk-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(26, 26, 37, 0.8);
    border: 1px solid rgba(108, 99, 255, 0.5);
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    /* Disable transitions to prevent animations */
    transition: none;
}

.cyberpunk-input:focus {
    /* Static border color instead of animated border */
    border: 1px solid #00ffcc;
    /* Remove box-shadow to prevent animation */
    box-shadow: none;
    /* Use outline instead of animated effects */
    outline: 1px solid rgba(0, 255, 204, 0.3);
}

.cyberpunk-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    background: rgba(26, 26, 37, 0.5);
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 5px;

}

.feature-checkbox:hover {
    /* Static background instead of animated */
    background: rgba(26, 26, 37, 0.8);
    /* Static border instead of animated border-color */
    border: 1px solid rgba(108, 99, 255, 0.5);
    /* Disable transitions */
    transition: none;
}

.feature-checkbox input {
    margin-right: 8px;
}

/* Upload Areas */
.upload-area {
    border: 2px dashed rgba(108, 99, 255, 0.5);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    background: rgba(26, 26, 37, 0.5);
    cursor: pointer;

}

.upload-area:hover, .upload-area.dragover {
    /* Static border instead of animated border-color */
    border: 2px dashed #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    /* Disable transitions */
    transition: none;
}

.upload-area i {
    font-size: 2rem;
    color: rgba(108, 99, 255, 0.8);
    margin-bottom: 15px;
}

.upload-area p {
    margin-bottom: 5px;
    color: #ffffff;
}

.upload-area small {
    color: rgba(255, 255, 255, 0.6);
}

/* Document Preview */
.document-preview {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(26, 26, 37, 0.7);
    border-radius: 5px;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.document-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    color: #6c63ff;
}

.document-info {
    flex: 1;
}

.document-name {
    font-weight: 500;
    margin-bottom: 3px;
}

.document-size {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.document-remove {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

/* Image Preview */
.image-preview {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.image-preview-item {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #ff6b6b;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}

/* Verification Options */
.verification-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.verification-option {
    cursor: pointer;
}

.verification-option input {
    display: none;
}

.verification-card {
    padding: 20px;
    border-radius: 8px;
    background: rgba(26, 26, 37, 0.7);
    border: 2px solid rgba(108, 99, 255, 0.3);

}

.verification-option input:checked + .verification-card {
    /* Static border instead of animated border-color */
    border: 2px solid #00ffcc;
    background: rgba(0, 255, 204, 0.1);
    /* Remove box-shadow to prevent animation */
    box-shadow: none;
    /* Add a static indicator */
    position: relative;
}

.verification-option input:checked + .verification-card::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    color: #00ffcc;
    font-size: 16px;
}

.verification-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.verification-header i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #6c63ff;
}

.verification-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.verification-card p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.verification-price {
    font-weight: 600;
    font-size: 1.2rem;
    color: #00ffcc;
}

/* Form Validation */
.cyberpunk-input.invalid {
    /* Static border instead of animated border-color */
    border: 1px solid #ff6b6b;
    /* Remove box-shadow to prevent animation */
    box-shadow: none;
    /* Use outline instead of animated effects */
    outline: 1px solid rgba(255, 107, 107, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-progress {
        margin-bottom: 20px;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .verification-options {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
}
