/**
 * DeMV Platform - Add Vehicle Details Form Styling
 * Enhanced cyberpunk styling for the second step of the vehicle registration form
 */

/* Step 2 Form Styling */
.form-step[data-step="2"] {
  background: rgba(10, 15, 30, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.form-step[data-step="2"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 0, 128, 0.05), rgba(0, 255, 255, 0.05));
  z-index: -1;
}

.form-step[data-step="2"] h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
  position: relative;
  padding-left: 1.25rem;
  display: flex;
  align-items: center;
}

.form-step[data-step="2"] h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(to bottom, #ff00ff, #00ffff);
  border-radius: 2px;
}

/* Form Group Styling */
.form-step[data-step="2"] .form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-step[data-step="2"] .form-group label {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-step[data-step="2"] .form-group small {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  color: rgba(0, 255, 255, 0.7);
}

/* Input Styling */
.form-step[data-step="2"] input[type="text"],
.form-step[data-step="2"] input[type="number"],
.form-step[data-step="2"] select,
.form-step[data-step="2"] textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
}

.form-step[data-step="2"] input[type="text"]:focus,
.form-step[data-step="2"] input[type="number"]:focus,
.form-step[data-step="2"] select:focus,
.form-step[data-step="2"] textarea:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.form-step[data-step="2"] select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300ffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

/* Form Row Styling */
.form-step[data-step="2"] .form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-step[data-step="2"] .form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Image Upload Styling */
.form-step[data-step="2"] .image-upload-container {
  margin-bottom: 0.5rem;
}

.form-step[data-step="2"] .image-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 2px dashed rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-step[data-step="2"] .image-upload-area:hover {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 255, 255, 0.5);
}

.form-step[data-step="2"] .image-upload-area.active {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
  transform: scale(0.98);
}

.form-step[data-step="2"] .image-upload-area.dragover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
  transform: scale(1.02);
}

.form-step[data-step="2"] .image-upload-area i {
  font-size: 2.5rem;
  color: rgba(0, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.form-step[data-step="2"] .image-upload-area p {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin: 0;
}

.form-step[data-step="2"] .image-preview {
  position: relative;
  margin-top: 1rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.form-step[data-step="2"] .image-preview img {
  width: 100%;
  height: auto;
  display: block;
}

.form-step[data-step="2"] .remove-image-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: #ff3366;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-step[data-step="2"] .remove-image-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  color: #ffffff;
}

/* Features Styling */
.form-step[data-step="2"] .features-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-step[data-step="2"] .feature-checkbox {
  position: relative;
}

.form-step[data-step="2"] .feature-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-step[data-step="2"] .feature-checkbox label {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(128, 128, 255, 0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0;
  font-size: 0.9rem;
}

.form-step[data-step="2"] .feature-checkbox label::before {
  content: '';
  width: 18px;
  height: 18px;
  margin-right: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.form-step[data-step="2"] .feature-checkbox input[type="checkbox"]:checked + label {
  background: rgba(0, 40, 70, 0.8);
  border-color: rgba(0, 255, 255, 0.5);
}

.form-step[data-step="2"] .feature-checkbox input[type="checkbox"]:checked + label::before {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  border-color: transparent;
  box-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.form-step[data-step="2"] .feature-checkbox input[type="checkbox"]:checked + label::after {
  content: '✓';
  position: absolute;
  left: 1.35rem;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Description Textarea */
.form-step[data-step="2"] textarea {
  min-height: 120px;
  resize: vertical;
}

/* Form Actions */
.form-step[data-step="2"] .form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.form-step[data-step="2"] .cyberpunk-button {
  padding: 0.75rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.form-step[data-step="2"] .cyberpunk-button::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.form-step[data-step="2"] .cyberpunk-button:hover::before {
  opacity: 1;
  animation: shine 1.5s infinite;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.form-step[data-step="2"] .cyberpunk-button:hover {
  transform: translateY(-2px);
}

.form-step[data-step="2"] .cyberpunk-button:active {
  transform: translateY(1px);
}

.form-step[data-step="2"] .btn-next {
  background: linear-gradient(135deg, #ff00ff, #00ffff);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.form-step[data-step="2"] .btn-next:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.form-step[data-step="2"] .btn-prev {
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-step[data-step="2"] .btn-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-step[data-step="2"] .form-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .form-step[data-step="2"] .features-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .form-step[data-step="2"] h3 {
    font-size: 1.5rem;
  }
}
