/* 🔽 Fade-in animation for the results section */
#quoteResults {
  animation: fadeIn 0.4s ease-in-out forwards;
  margin-top: 1rem;
  padding: 0.5rem 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔽 Fade-in-down animation for main container */
.animate-fade-in-down {
  animation: fadeInDown 0.5s ease-out both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🔽 Additional fade for inner elements */
.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* 🔼 Upward fade for quote card entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 🚗 Quote card styling (global for all screen sizes) */
.quote-card {
  animation: fadeInUp 0.4s ease-out forwards;
  width: 320px;
  padding: 1.5rem;
  margin: 0.75rem;
  background: #fff;
  border-radius: 1.25rem;
  border: 1px solid #e3e3e3;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* 🚩 Highlight selected vehicle card */
.selected-vehicle {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3) !important;
  transform: translateY(-8px) scale(1.02);
  transition: all 0.3s ease-in-out;
}

.selected-vehicle:before {
  content: "✓ Selected";
  position: absolute;
  top: 0;
  right: 0;
  background: #2563eb;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 0.3rem 0.8rem;
  border-bottom-left-radius: 0.8rem;
}

/* ✅ Flex container for quote cards */
#quoteOutput {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* 📱 Stack vertically on smaller screens */
@media (max-width: 768px) {
  #quoteOutput {
    flex-direction: column;
    align-items: center;
  }

  .quote-card {
    width: 100%;
    max-width: 100%;
  }
}

/* 🚙 Vehicle bubble */
.vehicle-bubble {
  width: 90px;
  height: 90px;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
  transition: all 0.3s ease;
  border: 2px solid rgba(59, 130, 246, 0.2);
}

.quote-card:hover .vehicle-bubble {
  transform: scale(1.05);
  background-color: rgba(59, 130, 246, 0.15);
}

.selected-vehicle .vehicle-bubble {
  background-color: rgba(59, 130, 246, 0.2);
  border-color: #2563eb;
}

.vehicle-bubble img {
  width: 48px;
  height: 48px;
}

/* Vehicle title */
.quote-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #2563eb;
  letter-spacing: 0.5px;
}

/* Vehicle specs block */
.vehicle-specs {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1.2rem;
  line-height: 1.5;
  background-color: #f9fafb;
  padding: 0.8rem;
  border-radius: 0.5rem;
  width: 100%;
}

.vehicle-specs p {
  margin-bottom: 0.3rem;
}

.vehicle-specs strong {
  color: #4b5563;
}

/* Price line */
.price-line {
  font-size: 0.95rem;
  font-weight: 600;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  width: 100%;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  margin-top: 0.5rem;
}

.price-line span:first-child {
  color: #047857; /* Green for the base price */
}

.price-line span:nth-child(2) {
  color: #6b7280; /* Gray for VAT */
}

.price-line span:last-child {
  color: #1d4ed8; /* Blue for total */
  font-weight: 700;
  font-size: 1.05rem;
}

@keyframes background-slide {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.animate-background-slide {
  background-size: 200% 200%;
  animation: background-slide 6s linear infinite alternate;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.2s;
}

/* Form styling */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #374151;
  border: none;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

.flash-message {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.flash-message.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.flash-message.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #ef4444;
}

.flash-message.warning {
  background-color: #fff7ed;
  color: #c2410c;
  border: 1px solid #fb923c;
}

.flash-message.info {
  background-color: #e0f2fe;
  color: #0c4a6e;
  border: 1px solid #38bdf8;
}

/* Mobile menu styles */
#mobileMenu {
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 40;
}
