/* Custom styles for the insurance calculator */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Radio button styling */
input[type="radio"]:checked + label {
  border-color: #eab308;
  background-color: #fef9c3;
}

/* Focus styles for accessibility */
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #eab308;
  outline-offset: 2px;
}

/* Progress bar animation */
#progress-bar {
  transition: width 0.3s ease;
}

/* Toast notification */
#toast {
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  h1.text-3xl {
    font-size: 1.875rem;
  }

  h2.text-2xl {
    font-size: 1.5rem;
  }
}

/* Loading spinner for API calls */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form validation styles */
input.invalid,
select.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input.valid,
select.valid {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Summary section styling */
#vehicle-summary p,
#coverage-summary p,
#premium-breakdown p {
  margin-bottom: 0.5rem;
}

/* Button hover effects */
.next-btn:hover,
.prev-btn:hover,
#send-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Smooth transitions */
* {
  transition: background-color 0.2s, border-color 0.2s;
}
