/* Updated CSS with design brief colors, dark mode support, and improved junk car styling */
/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Updated color palette based on design brief */
  --background: #ffffff;
  --foreground: #1f2937;
  --card: #ffffff;
  --card-foreground: #1f2937;
  --primary: #d97706;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #374151;
  --muted: #6b7280;
  --muted-foreground: #ffffff;
  --accent: #d97706;
  --accent-foreground: #ffffff;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #6b7280;
  --input: #f1f5f9;
  --ring: rgba(217, 119, 6, 0.5);

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Added dark theme variables */
.dark-theme {
  --background: #1f2937;
  --foreground: #ffffff;
  --card: #374151;
  --card-foreground: #ffffff;
  --secondary: #4b5563;
  --secondary-foreground: #ffffff;
  --muted: #9ca3af;
  --input: #374151;
  --border: #4b5563;
}

body {
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Added control buttons for language and theme switching */
.controls {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1001;
}

.control-btn {
  width: 36px;
  height: 36px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--foreground);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.control-btn:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1);
}

/* Header */
.header {
  background: var(--card);
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 10vw;
  object-fit: contain;
  border-radius: var(--radius);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.025em;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: var(--primary-foreground);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

/* Main Form Section */
.form-section {
  padding: 4rem 0;
  background: var(--background);
  min-height: calc(100vh - 80px);
  position: relative;
}

.form-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(217, 119, 6, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(31, 41, 55, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--foreground), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500;
}

.form-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* Form Styles - Now first in layout */
.form-wrapper {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-foreground);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

.form-header p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--card-foreground);
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  letter-spacing: -0.025em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--input);
  font-family: inherit;
  font-weight: 500;
  color: var(--card-foreground);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 0 0 4px var(--ring);
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: var(--primary-foreground);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
  letter-spacing: -0.025em;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(217, 119, 6, 0.4);
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.form-note i {
  color: #10b981;
  font-size: 1.1rem;
}

/* Info Card */
.info-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  position: sticky;
  top: 7rem;
  backdrop-filter: blur(10px);
}

.info-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.info-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.3);
  position: relative;
}

.info-icon::before {
  content: "";
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
}

.info-icon i {
  font-size: 1.75rem;
  color: var(--primary-foreground);
}

.info-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--card-foreground);
  letter-spacing: -0.025em;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  background: rgba(217, 119, 6, 0.05);
  border-radius: var(--radius);
  margin: 0 -0.5rem;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item i {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(217, 119, 6, 0.05));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item a,
.contact-item span:not(.label) {
  display: block;
  font-size: 1rem;
  color: var(--card-foreground);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--primary);
}

.benefits {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.05), rgba(217, 119, 6, 0.02));
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid rgba(217, 119, 6, 0.1);
}

.benefit {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

.benefit:hover {
  background: rgba(217, 119, 6, 0.05);
  transform: translateX(5px);
}

.benefit:last-child {
  margin-bottom: 0;
}

.benefit i {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-foreground);
  font-size: 0.8rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.benefit span {
  font-size: 0.9rem;
  color: var(--card-foreground);
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--foreground), #374151);
  color: var(--primary-foreground);
  padding: 3rem 0 1.5rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #ea580c);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: var(--radius);
}

.footer-logo h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.footer-info h4,
.footer-contact h4,
.footer-social h4,
.footer-map h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary);
  letter-spacing: -0.025em;
}

.footer-info p,
.footer-contact p {
  margin-bottom: 0.75rem;
  color: #d1d5db;
  line-height: 1.7;
  font-weight: 500;
}

.footer-contact i {
  color: var(--primary);
  margin-right: 0.75rem;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #ea580c);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3);
}

.social-links a:hover {
  background: linear-gradient(135deg, #ea580c, #dc2626);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
}

.footer-map {
  grid-column: span 1;
}

.footer-map iframe {
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 2.5rem;
  border-top: 1px solid #4b5563;
  color: #9ca3af;
  font-weight: 500;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #25d366, #20c55e);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse-whatsapp 3s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4), 0 0 0 15px rgba(37, 211, 102, 0.1);
  }
  100% {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .form-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .info-card {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: span 2;
  }

  .controls {
    top: 0.5rem;
    right: 0.5rem;
  }

  .control-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .header-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.875rem;
  }

  .form-section {
    padding: 3rem 0;
  }

  .info-card,
  .form-wrapper {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-map {
    grid-column: span 1;
  }

  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .info-card,
  .form-wrapper {
    padding: 1.25rem;
  }

  .form-header h3 {
    font-size: 1.25rem;
  }

  .contact-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }

  .logo-img,
  .footer-logo-img {
    width: 11vh;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .controls {
    position: relative;
    top: auto;
    right: auto;
    justify-content: center;
    margin: 1rem 0;
  }
}

.form-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
  vertical-align: middle;
  cursor: pointer;
}

/* Optional: Make label clickable */
.form-group label {
  cursor: pointer;
}