/* ==========================================================================
   e-autosankauf.de - Modern Design System & Master Stylesheet
   Designed for High Conversion, Trust (EEAT), and Rapid Page Speeds
   ========================================================================== */

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --electric: #00f2fe;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-light: #d1fae5;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --dark-border: #334155;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-light: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.25);
  --transition: all 0.25s ease-in-out;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1320px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-light);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 1200px) {
  html {
    font-size: 17.5px;
  }
}

@media (min-width: 1600px) {
  html {
    font-size: 18px;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15.5px;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 2.5vw, 24px);
  padding-right: clamp(16px, 2.5vw, 24px);
}

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.header-topbar {
  background: var(--dark);
  color: var(--text-light);
  font-size: 0.825rem;
  padding: 6px 0;
}

.header-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-perks {
  display: flex;
  gap: 20px;
}

.topbar-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-perks span svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.topbar-contact a {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar-contact a:hover {
  color: var(--electric);
}

.header-main {
  padding: 14px 0;
}

.header-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.brand-icon svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.brand-logo:hover .brand-icon {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
  transform: scale(1.04);
}

.brand-logo:hover .brand-icon svg {
  transform: scale(1.1);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
}

.brand-name .brand-e {
  color: #0c2d54;
}

.brand-name .brand-ankauf {
  color: #ff790d;
}

.brand-name .brand-tld {
  color: #0284c7;
  font-size: 0.9em;
  font-weight: 700;
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.3rem;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .brand-icon svg {
    width: 17px;
    height: 17px;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-light);
  color: var(--dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1eb954;
  color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark);
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Hero Section & Interactive Valuation Form
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(2, 132, 199, 0.06) 0%, transparent 50%),
              linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
  padding: 32px 0 60px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}

.hero-content {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
  padding-bottom: 32px;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.hero-badge-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 14px;
  letter-spacing: -1px;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 620px;
  line-height: 1.5;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

/* ==============================================================================
   Hero CTA Layout: Primary Form Button + Dual Contact Buttons Below
   ============================================================================== */
.hero-cta-cluster {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  max-width: 580px;
}

/* Primary Top Button: Big Form CTA */
.hero-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7900 0%, #ea580c 100%);
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  text-decoration: none !important;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, transparent 100%);
  pointer-events: none;
}

.hero-btn-primary .btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hero-btn-primary .btn-arrow {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.48);
}

.hero-btn-primary:hover .btn-arrow {
  transform: translateX(5px);
}

/* Secondary Row: Phone & WhatsApp Side-by-Side */
.hero-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-btn-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

/* Phone Button */
.btn-contact-phone {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.btn-contact-phone .contact-icon {
  color: #38bdf8;
  flex-shrink: 0;
}

.btn-contact-phone:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.3);
  border-color: rgba(56, 189, 248, 0.45);
}

/* WhatsApp Button */
.btn-contact-whatsapp {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.24);
}

.btn-contact-whatsapp .contact-icon {
  color: #ffffff;
  flex-shrink: 0;
}

.btn-contact-whatsapp:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.38);
}

/* Live Pulse Indicator for Phone */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  position: relative;
  margin-left: 2px;
  flex-shrink: 0;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid #22c55e;
  opacity: 0.8;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@media (max-width: 900px) {
  .hero-content {
    padding-bottom: 0;
  }
  .hero-cta-cluster {
    margin-top: 20px;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .hero-contact-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-btn-primary {
    font-size: 1rem;
    padding: 12px 18px;
  }
}

/* Legacy button fallbacks */
.hero-cta-buttons, .hero-action-tiles, .hero-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.hero-highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.hero-highlight-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Valuation Card (Form)
   ========================================================================== */
.valuation-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(2, 132, 199, 0.15);
  position: relative;
}

.valuation-card-header {
  margin-bottom: 20px;
  text-align: center;
}

.valuation-card-header h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
}

.valuation-card-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-size: 0.95rem;
  color: var(--text-main);
  background: #fdfdfd;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-privacy-note {
  font-size: 0.775rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

.form-privacy-note a {
  text-decoration: underline;
}

/* ==========================================================================
   Trust Banner
   ========================================================================== */
.trust-bar {
  background: #ffffff;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.trust-bar-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.trust-badge-icon svg {
  width: 24px;
  height: 24px;
}

.trust-badge-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--dark);
}

.trust-badge-content span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Content Sections & Feature Cards
   ========================================================================== */
.section-padding {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px;
}

.section-subtitle {
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.825rem;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Step Process
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.4);
}

.step-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-top: 10px;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   EEAT Technical Knowledge & Legal Callout Boxes
   ========================================================================== */
.eeat-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 32px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.eeat-box-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.eeat-box-header svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.eeat-box-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--dark);
}

.legal-callout {
  background: #f0fdf4;
  border-left: 5px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.legal-callout h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-callout p {
  font-size: 0.925rem;
  color: #047857;
  line-height: 1.6;
}

/* Technical & Scientific EV Knowledge Components */
.tech-table-container {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #ffffff;
  min-width: 600px;
}

.tech-table th {
  background: #f8fafc;
  padding: 14px 18px;
  font-weight: 800;
  color: #0c2d54;
  border-bottom: 2px solid #e2e8f0;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.tech-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.5;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table tr:hover td {
  background: #f8fafc;
}

.chem-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.chem-lfp { background: #dcfce7; color: #15803d; }
.chem-nmc { background: #e0f2fe; color: #0369a1; }
.chem-nca { background: #fef3c7; color: #b45309; }

.tech-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.tech-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tech-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.tech-metric-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0c2d54;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tech-metric-card p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .tech-spec-grid {
    grid-template-columns: 1fr;
  }
}

/* Local City Deep Injection Card */
.city-meta-card {
  background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 28px;
  margin: 30px 0;
}

.city-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.city-meta-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.city-meta-item span {
  font-size: 0.95rem;
  color: var(--dark);
  font-weight: 600;
}

/* ==========================================================================
   Pillars Link Cloud & Internal Linking Mesh
   ========================================================================== */
.pillars-mesh {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.pillar-link-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.pillar-link-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(4px);
}

.pillar-link-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 4px;
}

.pillar-link-card span {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ Section Accordions
   ========================================================================== */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--primary);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ==========================================================================
   Bottom Dark Conversion CTA
   ========================================================================== */
.bottom-cta-section {
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #090d16 100%);
  color: #ffffff;
  padding: 70px 0;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--dark-border);
}

.bottom-cta-inner {
  max-width: 820px;
  margin: 0 auto;
}

.bottom-cta-badge {
  display: inline-block;
  background: rgba(0, 242, 254, 0.15);
  color: var(--electric);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.bottom-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.bottom-cta-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.bottom-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hotline-link {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hotline-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--electric);
}

/* ==========================================================================
   Scientific & Comprehensive EV Knowledge Components (EEAT)
   ========================================================================== */
.brand-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 16px;
}

.brand-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.35);
}

.brand-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.brand-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0;
}

.brand-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #0369a1;
  border: 1px solid #cbd5e1;
  white-space: nowrap;
}

.brand-models-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 600;
}

.brand-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #334155;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.brand-specs-list li {
  position: relative;
  padding-left: 20px;
}

.brand-specs-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.78rem;
  color: #0284c7;
}

.brand-card-action {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.brand-card-action a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.brand-card-action a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Seller Checklist Styles */
.ev-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 16px;
}

.checklist-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.checklist-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(0, 242, 254, 0.12) 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.checklist-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.checklist-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.45;
}

.checklist-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #16a34a;
  margin-top: 2px;
}

/* Valuation Formula Factors */
.val-factors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0 16px;
}

.val-factor-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.val-factor-number {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(2, 132, 199, 0.12);
  line-height: 1;
}

.val-factor-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
  padding-right: 32px;
}

.val-factor-card p {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 992px) {
  .brand-matrix-grid, .ev-checklist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .val-factors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .brand-matrix-grid, .ev-checklist-grid, .val-factors-grid {
    grid-template-columns: 1fr;
  }
}

/* Comparison Table Component */
.compare-table-wrapper {
  overflow-x: auto;
  margin: 32px 0 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  min-width: 700px;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.compare-table thead th {
  background: #f8fafc;
  color: var(--dark);
  font-weight: 800;
  font-size: 0.95rem;
  border-bottom: 2px solid #e2e8f0;
}

.compare-table thead th.col-highlight {
  background: #f0fdf4;
  color: #166534;
  border-top: 3px solid #22c55e;
}

.compare-table tbody td.col-highlight {
  background: rgba(240, 253, 244, 0.5);
  font-weight: 600;
  color: #14532d;
}

.compare-table tbody tr:hover td {
  background: #f8fafc;
}

.compare-table tbody tr:hover td.col-highlight {
  background: #f0fdf4;
}

.badge-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #16a34a;
  font-weight: 700;
}

.badge-cross {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dc2626;
  font-weight: 700;
}

.badge-neutral {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d97706;
  font-weight: 700;
}

/* Tax & Legal Advantages Grid */
.tax-legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0 16px;
}

.tax-legal-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.tax-legal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.tax-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tax-legal-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.tax-legal-card p {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 900px) {
  .tax-legal-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   4-Column Professional German Footer
   ========================================================================== */
.site-footer {
  background: #090d16;
  color: #94a3b8;
  font-size: 0.9rem;
  border-top: 1px solid #1e293b;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.825rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* Mobile Sticky Bottom Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  padding: 8px 16px;
  z-index: 999;
}

.mobile-sticky-inner {
  display: flex;
  gap: 10px;
}

.mobile-sticky-inner .btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.875rem;
}


/* ==========================================================================
   Customer Reviews & Testimonials Section (EEAT Trust Factor)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(2, 132, 199, 0.3);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 18px;
  font-style: italic;
}

.testimonial-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: 14px;
  margin-top: auto;
}

.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--dark);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.model-eeat-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.model-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.925rem;
}

.model-specs-table th,
.model-specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.model-specs-table th {
  width: 30%;
  background: #f8fafc;
  color: var(--dark);
  font-weight: 700;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
}

.footer-social-link:hover {
  background: rgba(2, 132, 199, 0.25);
  color: #38bdf8;
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.footer-social-link.yt:hover {
  color: #ff0000;
  border-color: #ff0000;
  background: rgba(255, 0, 0, 0.15);
}

.footer-social-link.fb:hover {
  color: #1877f2;
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.15);
}

.footer-social-link.x:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.footer-social-link.tt:hover {
  color: #00f2fe;
  border-color: #fe2c55;
  background: rgba(254, 44, 85, 0.15);
}

.footer-social-link.ig:hover {
  color: #f43f5e;
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.15);
}

.footer-social-link.gpt:hover {
  color: #10a37f;
  border-color: #10a37f;
  background: rgba(16, 163, 127, 0.15);
}

.footer-social-link svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* ==============================================================================
   E-Autos-Ankauf.de Exact Master Form Design System
   ============================================================================== */
.contact-card, .valuation-card {
  background: #ffffff !important;
  border: 1px solid #d8e5f3 !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 16px 40px rgba(4, 35, 70, 0.10) !important;
  position: relative;
  max-width: 720px;
  width: 100%;
  margin-inline: auto;
}

.contact-card::before, .valuation-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #ff790d 0%, #00b94f 50%, #0284c7 100%);
  border-radius: 16px 16px 0 0;
}

.contact-card h2, .valuation-card-header h2 {
  font-size: 22px !important;
  line-height: 1.35 !important;
  margin: 0 0 8px !important;
  color: #06264b !important;
  font-weight: 800 !important;
  letter-spacing: -0.4px;
}

.contact-card > p, .valuation-card-header p {
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  margin: 0 0 20px !important;
  color: #2d4e77 !important;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-bottom: 2px;
}

.form-row-address {
  grid-template-columns: 120px 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.form-group label, .upload-label-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #0c2d54;
  margin-bottom: 5px;
  display: block;
}

.form-group label .req {
  color: #ef4444;
}

.field {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  border: 1px solid #c7d8eb;
  border-radius: 7px;
  background: #ffffff;
  color: #1e416d;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field:focus-within {
  border-color: #ff790d;
  box-shadow: 0 0 0 3px rgba(255, 121, 13, 0.18);
}

.field input, .field select, .field textarea {
  font: inherit;
  font-size: 14px;
  color: #0c2b50;
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  padding: 11px 13px;
  min-width: 0;
  box-sizing: border-box;
}

.field input::placeholder, .field textarea::placeholder {
  color: #6c8cae;
  opacity: 1;
}

.field textarea {
  min-height: 75px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 28px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 11px;
  color: #6484a8;
}

.upload-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 14px;
  border: 2px dashed #9cbddf;
  border-radius: 9px;
  background: #f7faff;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.upload-dropzone:hover {
  border-color: #ff790d;
  background: #edf5fd;
}

.upload-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 5px;
}

.upload-headline {
  font-size: 13.5px;
  font-weight: 700;
  color: #06264b;
  margin-bottom: 3px;
}

.upload-subtext {
  font-size: 11.5px;
  line-height: 1.4;
  color: #4f6e92;
  max-width: 440px;
  margin-bottom: 6px;
}

.upload-status {
  display: inline-block;
  padding: 4px 13px;
  background: #e2edfa;
  color: #1e416d;
  font-size: 12px;
  font-weight: 600;
  border-radius: 14px;
  margin-top: 2px;
}

.privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.45;
  color: #36587f;
  margin: 12px 0 16px;
  cursor: pointer;
}

.privacy-check input {
  margin-top: 3px;
  accent-color: #ff790d;
  flex: 0 0 auto;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

.privacy-link {
  color: #0284c7;
  text-decoration: underline;
}

.button.button-orange.submit-button {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font-size: 15.5px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff790d 0%, #f97316 100%);
  color: #ffffff !important;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(255, 121, 13, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.button.button-orange.submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(255, 121, 13, 0.45);
}

.button.button-orange.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 640px) {
  .form-row, .form-row-address {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .contact-card, .valuation-card {
    padding: 22px 18px !important;
  }
  .window-tab-btn {
    padding: 8px 10px;
    gap: 8px;
  }
  .tab-title {
    font-size: 12px;
  }
  .tab-subtitle {
    display: none;
  }
  .window-nav-actions-split {
    flex-direction: column;
  }
  .btn-prev-step, .window-nav-actions-split .submit-button {
    width: 100%;
  }
}

/* ==============================================================================
   Dual-Window Interactive Form System (Desktop & Multi-Window)
   ============================================================================== */
.form-window-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  background: #f1f6fc;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #d4e3f4;
}

.window-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #4b6b94;
  font-family: inherit;
}

.window-tab-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  color: #06264b;
}

.window-tab-btn.active {
  background: #ffffff;
  color: #06264b;
  box-shadow: 0 4px 12px rgba(4, 35, 70, 0.08);
}

.window-tab-btn.active .tab-badge {
  background: #ff790d;
  color: #ffffff;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #d8e5f3;
  color: #0c2d54;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.tab-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tab-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

.tab-subtitle {
  font-size: 11px;
  color: #6484a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-pane-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e8f0f8;
}

.window-pane-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #06264b;
  margin: 0;
}

.pane-tag {
  display: inline-block;
  padding: 3px 9px;
  background: #e6f0fb;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
}

.form-window-pane {
  display: none;
  animation: windowFadeIn 0.25s ease-out;
}

.form-window-pane.active {
  display: block;
}

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

.window-nav-actions {
  margin-top: 18px;
}

.window-nav-actions-split {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-next-step {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff790d 0%, #e05e00 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 121, 13, 0.35);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
}

.btn-next-step:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 121, 13, 0.45);
}

.btn-prev-step {
  min-height: 48px;
  padding: 12px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #c7d8eb;
  background: #f7faff;
  color: #2d4e77;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.btn-prev-step:hover {
  background: #eaf2fb;
  color: #06264b;
}

.window-nav-actions-split .submit-button {
  flex: 1;
  margin-top: 0 !important;
}

/* Side-by-Side Dual-Window Layout on Desktop */
@media (min-width: 992px) {
  .contact-card.view-side-by-side {
    max-width: 1140px !important;
    width: 100% !important;
  }

  .contact-card.view-side-by-side .form-windows-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    align-items: start;
  }

  .contact-card.view-side-by-side .form-window-pane {
    display: block !important;
    background: #fbfdff;
    border: 1px solid #e1ecf7;
    border-radius: 12px;
    padding: 22px;
  }

  .contact-card.view-side-by-side .btn-next-step,
  .contact-card.view-side-by-side .btn-prev-step {
    display: none !important;
  }

  .contact-card.view-side-by-side .window-nav-actions-split {
    display: block !important;
  }

  .contact-card.view-side-by-side .window-nav-actions-split .submit-button {
    width: 100% !important;
  }
}
