/* 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 G.M Towing visual style */
  --background: #FFFFFF;
  --foreground: #000000;
  --card: #FFFFFF;
  --card-foreground: #000000;
  --primary: #C8102E;
  --primary-hover: #8B0000;
  --primary-foreground: #FFFFFF;
  --secondary: #E5E5E5;
  --secondary-foreground: #000000;
  --muted: #808080;
  --muted-foreground: #FFFFFF;
  --accent: #C8102E;
  --accent-foreground: #FFFFFF;
  --destructive: #8B0000;
  --destructive-foreground: #FFFFFF;
  --border: #E5E5E5;
  --input: #F9F9F9;
  --ring: rgba(200, 16, 46, 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.5rem;
  --radius-lg: 1rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Added dark theme variables */
.dark-theme {
  --background: #000000;
  --foreground: #FFFFFF;
  --card: #1A1A1A;
  --card-foreground: #FFFFFF;
  --secondary: #333333;
  --secondary-foreground: #FFFFFF;
  --muted: #808080;
  --input: #262626;
  --border: #333333;
}

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;
}

/* Top Bar */
.top-bar {
  background: var(--foreground);
  color: var(--background);
  padding: 0.5rem 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.top-bar-content {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar-item a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* Header */
.header {
  background: var(--card);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--primary);
}

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

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

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--foreground);
  margin: 0;
  line-height: 1;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* New Form-Centric Layout */
.main-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background: var(--bg-color);
  transition: background 0.3s ease;
}

.form-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.main-logo {
  height: 70px; /* Reduced as requested */
  width: auto;
  margin-bottom: 1rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.form-hero h1 {
  font-size: clamp(2rem, 8vw, 3.5rem); /* Responsive font size */
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.form-hero .tagline {
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.quick-contact {
  display: flex;
  justify-content: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
}

.quick-contact a {
  font-size: clamp(0.9rem, 4vw, 1.1rem);
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.2s;
}

.quick-contact a:hover {
  transform: translateY(-2px);
  color: var(--primary-hover);
}

.standalone-form {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.standalone-form .form-wrapper {
  background: var(--card);
  padding: clamp(1.5rem, 6vw, 4rem);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.standalone-form .form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
}

.form-header h2 {
  font-size: clamp(1.8rem, 7vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--foreground);
  letter-spacing: -0.5px;
}

.form-header p {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Form Styles Premium */
.contact-form .form-group {
  margin-bottom: 1.75rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: 2px solid var(--border);
  background: var(--background);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--foreground);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.12);
  transform: translateY(-2px);
}

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

/* Premium Button Styling */
.submit-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(200, 16, 46, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(255,255,255,0.1);
  transform: rotate(45deg);
  transition: all 0.6s;
  pointer-events: none;
}

.submit-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(200, 16, 46, 0.4);
}

.submit-btn:hover::after {
  left: 120%;
}

.submit-btn:active {
  transform: translateY(-2px) scale(0.98);
}

.submit-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s;
}

.submit-btn:hover i {
  transform: translateX(5px) rotate(-10deg);
}

/* Slider Styles */
.price-slider-group {
  margin-bottom: 2.5rem;
  background: var(--secondary);
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.slider-header label {
  margin-bottom: 0 !important;
}

.price-display {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  background: var(--card);
  padding: 0.2rem 1rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.premium-slider {
  -webkit-appearance: none;
  appearance: none; /* Added for compatibility */
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: var(--border);
  outline: none;
  margin: 1rem 0;
}

.premium-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 4px solid var(--card);
  box-shadow: 0 4px 10px rgba(200, 16, 46, 0.3);
  transition: transform 0.2s;
}

.premium-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

/* Fixed Controls Discrete */
.fixed-controls {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 1000;
}

.control-btn-mini {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.control-btn-mini:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .form-row {
      grid-template-columns: 1fr;
  }
  .fixed-controls {
    bottom: auto;
    top: 1rem;
    left: auto;
    right: 1rem;
    flex-direction: row;
  }
}

.minimal-footer {
  margin-top: 4rem;
  text-align: center;
  padding-bottom: 2rem;
}

.service-list {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.service-list span {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  background: var(--card);
}

.minimal-footer p {
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.8;
}