/* Sell My Car Page Styles */

/* Hero Section */
.sell-hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);  color: white;
  padding: 80px 0;
  text-align: center;
}

.hero-title {
  font-size: 2.9rem !important;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 0;
}

/* Form Section */
.sell-form-section {
  background-color: #f4f4f4;
}

.sell-form-container {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

/* Car Preview Card */
.car-preview-card {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 2px dashed #dee2e6;
  text-align: center;
}

.car-image-placeholder {
  margin-bottom: 1.5rem;
}

.car-image-placeholder img {
  max-width: 200px;
  height: auto;
  opacity: 0.6;
}

.car-details {
  margin-bottom: 1.5rem;
}

.car-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.car-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #22c55e;
  margin-bottom: 0.5rem;
}

.price-blur {
  filter: blur(4px);
  color: #6b7280;
}

.car-year {
  font-size: 1rem;
  color: #6b7280;
}

.car-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.action-btn {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.action-btn:hover {
  border-color: #10B981;
  color: #10B981;
  transform: translateY(-2px);
}

.action-blur {
  filter: blur(3px);
}

/* Benefits List */
.benefits-list {
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f0f9ff;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-item i {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.benefit-item span {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
}

/* Post Ad Button */
.post-ad-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border: none;
  border-radius: 12px;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  color: white !important;
}

.post-ad-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white !important;
}

.post-ad-btn:active {
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .sell-form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .car-preview-card {
    padding: 1.5rem;
  }
  
  .car-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.875rem;
  }
  
  .sell-form-container {
    padding: 1rem;
  }
  
  .car-preview-card {
    padding: 1rem;
  }
  
  .benefit-item {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .post-ad-btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Animation for better UX */
.sell-form-container {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Focus states for accessibility */
.action-btn:focus,
.post-ad-btn:focus {
  outline: 2px solid #10B981;
  outline-offset: 2px;
}

/* Loading state for button */
.post-ad-btn.loading {
  position: relative;
  color: transparent;
}

.post-ad-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #ffffff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}
