/* Custom animations and transitions */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50px);
  }
}

.slide-enter {
  animation: slideInRight 0.3s ease-out forwards;
}

.slide-exit {
  animation: slideOutLeft 0.3s ease-out forwards;
}

/* Progress Bar Styling */
.progress-bar-fill {
  transition: width 0.3s ease-in-out;
  background: linear-gradient(90deg, #1c58e0, #3b82f6);
}

/* Custom Button Hover Effects */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* Card Styling */
.option-card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.option-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(28, 88, 224, 0.15);
}

.option-card.selected {
  border-color: #1c58e0;
  background-color: rgba(28, 88, 224, 0.05);
  box-shadow: 0 0 0 2px #1c58e0;
}

/* Input Styling */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #1c58e0;
  box-shadow: 0 0 0 3px rgba(28, 88, 224, 0.1);
}

/* Checkbox Styling */
.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.custom-checkbox:checked {
  background-color: #1c58e0;
  border-color: #1c58e0;
}

.custom-checkbox:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Responsive Image Grid */
.image-option img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Fade transitions */
.fade-in {
  animation: fadeIn 0.3s ease-in forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Estimation Card Styling */
.estimation-card {
  background: linear-gradient(135deg, #1c58e0 0%, #3b82f6 100%);
  color: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(28, 88, 224, 0.3);
}

.estimation-value {
  font-size: 2.5rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Success checkmark animation */
@keyframes checkmark {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-checkmark {
  animation: checkmark 0.5s ease-out forwards;
}
