/* Custom CSS for EazzyCar Landing Page */
/* Tailwind utilities will be loaded via CDN, this file contains custom overrides */

:root {
  --primary: #AD3628;
  --primary-dark: #8b2818;
  --background: #ffffff;
  --foreground: #1f2937;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
}

/* Custom gradient text */
.bg-gradient-text {
  background: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom gradient background */
.bg-gradient-primary {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
}

/* Hero slider mobile height */
@media (max-width: 640px) {
  .hero-slider {
    height: 70vh !important;
  }
}

/* Smooth transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Custom button hover effects */
.btn-primary {
  background-color: var(--primary);
  color: white;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: rgba(173, 54, 40, 0.8);
}

/* Mobile menu animation */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 2000px;
}

/* Slider transitions */
.slider-container {
  transition: transform 0.7s ease-in-out;
}

/* Image object fit */
img {
  max-width: 100%;
  height: auto;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem;
  text-align: left;
}

table th {
  background-color: var(--primary);
  color: white;
  font-weight: bold;
}

table tr:nth-child(even) {
  background-color: var(--gray-50);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Ensure simuler buttons are always clickable */
.simuler-btn {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 1000;
  position: relative;
}

/* Ensure hover overlay allows interaction */
.intro-slide .group-hover\:opacity-100 {
  pointer-events: auto;
}

/* Lead Collection Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  background: var(--primary);
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.modal-logo {
  height: 40px;
  width: auto;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
}

.modal-body {
  padding: 30px;
}

.vehicle-summary {
  margin-bottom: 30px;
  padding: 20px;
  background: var(--gray-50);
  border-radius: 8px;
}

.vehicle-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.modal-vehicle-img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.vehicle-details h3 {
  margin: 0 0 10px 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.modal-logo-small {
  height: 30px;
  width: auto;
  margin-right: 10px;
}

.simulation-summary {
  margin-bottom: 30px;
}

.simulation-summary h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.summary-item.highlight {
  background: var(--primary);
  color: white;
  font-weight: bold;
}

.summary-item .label {
  font-weight: 500;
}

.summary-item .value {
  font-weight: bold;
}

.lead-form h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.lead-form p {
  color: var(--gray-600);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(173, 54, 40, 0.1);
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
}

.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

@media (max-width: 768px) {
  .modal-content {
    margin: 10px;
    max-height: 95vh;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .vehicle-info {
    flex-direction: column;
    text-align: center;
  }
  
  .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
}


/* Success Message Styles */
.success-message {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 20000;
  text-align: center;
  max-width: 500px;
  width: 90%;
  display: none;
}

.success-message.show {
  display: block !important;
}

.success-message h3 {
  color: #28a745;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.success-message p {
  color: var(--gray-700);
  margin-bottom: 25px;
  line-height: 1.6;
}

.success-message .success-icon {
  font-size: 4rem;
  color: #28a745;
  margin-bottom: 20px;
}

.success-message button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.success-message button:hover {
  background: var(--primary-dark);
}


/* Success Message Backdrop */
.success-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 19999;
  display: none;
}

.success-backdrop.show {
  display: block !important;
}


/* Modal body transition for success message */
.modal-body {
  transition: opacity 0.3s ease;
}
