/* ==========================================================================
   NORUMOTO EV DESIGN SYSTEM - STYLESHEET (WHITE CORPORATE DOMINANT THEME)
   Aesthetics: Clean White Dominant Background, Norumoto Corporate Pattern Accents
   ========================================================================== */

:root {
  /* Color Palette - White Dominant Theme */
  --bg-primary: #FAFAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #F8FAFC;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-glass-card: rgba(255, 255, 255, 0.9);
  
  --border-color: #E2E8F0;
  --border-glow: rgba(0, 176, 255, 0.35);
  
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  
  /* Brand Accents (Norumoto Corporate Colors) */
  --brand-green: #00C853;
  --brand-cyan: #00B0FF;
  --brand-blue: #2563EB;
  --brand-red: #EF4444;
  --brand-yellow: #F59E0B;
  
  /* Gradient Definitions */
  --grad-brand: linear-gradient(135deg, #00C853 0%, #00B0FF 50%, #2563EB 100%);
  --grad-cyan-blue: linear-gradient(135deg, #00B0FF 0%, #2563EB 100%);
  --grad-red-orange: linear-gradient(135deg, #EF4444 0%, #FF7E40 100%);
  
  /* Shadows & Glows */
  --glow-cyan: 0 0 25px rgba(0, 176, 255, 0.25);
  --glow-green: 0 0 25px rgba(0, 200, 83, 0.25);
  --shadow-card: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
  --shadow-elevated: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  
  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  /* Corporate Geometric EV Mesh Background Pattern */
  background-image: 
    radial-gradient(rgba(0, 176, 255, 0.12) 1.2px, transparent 1.2px), 
    radial-gradient(rgba(0, 200, 83, 0.08) 1.2px, transparent 1.2px);
  background-size: 36px 36px;
  background-position: 0 0, 18px 18px;
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Ambient Background Glow Effects (Soft Corporate Glows) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
}

.glow-1 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 176, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(0, 200, 83, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: -150px;
  left: -150px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center { text-align: center; }
.text-warning { color: var(--brand-yellow); }
.text-danger { color: var(--brand-red); }
.justify-center { justify-content: center; }

.mb-4 { margin-bottom: 24px; }
.mt-4 { margin-top: 24px; }

/* Navbar & Official Branding Logo */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  padding: 14px 0;
}

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

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  text-decoration: none;
}

.brand-logo-pill {
  background: #FFFFFF;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 176, 255, 0.2);
}

.user-official-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.brand-by-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: #64748B;
  text-transform: uppercase;
  padding-left: 0;
  text-align: center;
  opacity: 0.85;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Language Switcher Pill Toggle */
.lang-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748B;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn.active {
  background: #0284C7;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}

.lang-btn:hover:not(.active) {
  color: #0F172A;
  background: #E2E8F0;
}

/* Button Component */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-cyan-blue);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -6px rgba(0, 176, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-surface-elevated);
  border-color: #CBD5E1;
}

.btn-outline {
  background: transparent;
  color: #0284C7;
  border: 1px solid rgba(0, 176, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(0, 176, 255, 0.08);
  border-color: var(--brand-cyan);
}

.btn-accent-submit {
  background: var(--grad-brand);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 8px 25px -4px rgba(0, 200, 83, 0.4);
}

.btn-accent-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background: #1EBE57;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* Hero Section */
.hero-section {
  padding: 60px 0 40px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(0, 176, 255, 0.08);
  border: 1px solid rgba(0, 176, 255, 0.25);
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0284C7;
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green);
}

.hero-title {
  font-size: 2.8rem;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 580px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.spec-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  position: relative;
  transition: all 0.22s ease;
}

.spec-card:hover {
  border-color: #00B0FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 176, 255, 0.15);
}

.spec-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #E0F2FE;
  color: #0284C7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.spec-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spec-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

.spec-label {
  font-size: 0.76rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 2px;
}

.spec-arrow {
  color: #CBD5E1;
  font-size: 0.85rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.spec-card:hover .spec-arrow {
  color: #0284C7;
  transform: translateX(3px);
}

.spec-highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  border-left: 4px solid #0284C7;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #0F172A;
}

.spec-modal-list {
  padding-left: 18px;
  margin: 12px 0 0 0;
}

.spec-modal-list li {
  margin-bottom: 8px;
  color: #334155;
  font-size: 0.88rem;
}

.hero-media {
  position: relative;
}

.bike-card-preview {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
  transition: var(--transition-smooth);
  background: #FFFFFF;
}

.bike-card-preview:hover {
  border-color: var(--brand-cyan);
  box-shadow: 0 20px 40px rgba(0, 176, 255, 0.2);
  transform: scale(1.02);
}

.hero-bike-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: var(--transition-fast);
}

.bike-card-preview:hover .media-overlay {
  opacity: 1;
}

.overlay-badge {
  background: #FFFFFF;
  border: 1px solid var(--brand-cyan);
  color: #0284C7;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Booking Section & Form Wizard */
.booking-section {
  padding: 60px 0 100px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

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

/* Wizard Container */
.wizard-container {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-elevated);
  position: relative;
  overflow: hidden;
}

.wizard-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grad-brand);
}

/* Step Progress Bar */
.wizard-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 48px;
}

.progress-bar-bg {
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-cyan-blue);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.step-item {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.step-item.active .step-number {
  background: #FFFFFF;
  border-color: #0284C7;
  color: #0284C7;
  box-shadow: 0 0 15px rgba(0, 176, 255, 0.3);
}

.step-item.completed .step-number {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #FFFFFF;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--text-primary);
}

.step-item.completed .step-label {
  color: var(--brand-green);
}

/* Wizard Step Display */
.wizard-step {
  display: none;
  animation: fadeInStep 0.4s ease-out forwards;
}

.wizard-step.active {
  display: block;
}

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

.step-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-title i {
  color: #0284C7;
}

.step-desc {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Model Cards Grid */
.model-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card {
  background: #FFFFFF;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.model-card.selected {
  border-color: #0284C7;
  background: rgba(0, 176, 255, 0.03);
  box-shadow: 0 8px 25px rgba(0, 176, 255, 0.15);
}

.model-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-style: dashed;
  background: #F8FAFC;
}

.model-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--grad-cyan-blue);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 1px;
}

.badge-soon {
  background: #E2E8F0;
  border: 1px solid #CBD5E1;
  color: var(--text-muted);
}

.model-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.model-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.model-tag {
  font-size: 0.75rem;
  color: #0284C7;
  font-weight: 600;
}

.model-specs-mini {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.model-specs-mini i {
  width: 16px;
  color: var(--brand-green);
}

.model-select-radio {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0284C7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.model-select-radio.muted {
  color: var(--text-muted);
}

/* Form Controls */
.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.req {
  color: var(--brand-red);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-control:focus {
  border-color: #0284C7;
  box-shadow: 0 0 15px rgba(0, 176, 255, 0.2);
  background: #FFFFFF;
}

.form-control:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: #0284C7;
}

select.form-control {
  appearance: none;
  cursor: pointer;
}

select.form-control option {
  background: #FFFFFF;
  color: var(--text-primary);
}

/* Custom Checkbox */
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  border-radius: 6px;
  margin-top: 2px;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-container:hover input ~ .checkmark {
  border-color: #0284C7;
}

.checkbox-container input:checked ~ .checkmark {
  background: #0284C7;
  border-color: #0284C7;
}

.checkmark::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #FFFFFF;
  font-size: 0.75rem;
  display: none;
}

.checkbox-container input:checked ~ .checkmark::after {
  display: block;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Promo Opt-in Card */
.promo-optin-box {
  background: rgba(0, 200, 83, 0.05);
  border: 1px solid rgba(0, 200, 83, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
}

.optin-header {
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}

.optin-icon {
  font-size: 1.5rem;
  color: var(--brand-green);
}

.optin-title {
  font-size: 1.05rem;
  color: #047857;
  margin-bottom: 4px;
}

.optin-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.optin-checkbox .checkbox-label {
  color: var(--text-primary);
}

/* Terms & Declarations Card */
.terms-card {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.terms-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.term-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  transition: var(--transition-fast);
}

.term-item:hover {
  border-color: #0284C7;
  background: #FFFFFF;
}

.term-item strong {
  color: var(--text-primary);
}

/* Digital Signature Canvas Box */
.signature-box-wrapper {
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sig-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sig-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.btn-sig-action {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sig-action:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.canvas-container {
  position: relative;
  width: 100%;
  height: 180px;
  background: #FFFFFF;
  border: 2px dashed #0284C7;
  border-radius: var(--radius-md);
  overflow: hidden;
  touch-action: none;
}

.canvas-container.has-signature {
  border-style: solid;
  border-color: var(--brand-green);
  box-shadow: 0 0 15px rgba(0, 200, 83, 0.2);
}

#sigCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.canvas-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.canvas-container.has-signature .canvas-placeholder {
  opacity: 0;
}

.sig-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Wizard Actions Buttons */
.wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.wizard-actions.right-only {
  justify-content: flex-end;
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.78) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content, .modal-card {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 100000;
}

.modal-backdrop.active .modal-content,
.modal-backdrop.active .modal-card {
  transform: scale(1);
}

.modal-lg { max-width: 800px; }
.modal-md { max-width: 580px; }

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close:hover {
  color: var(--brand-red);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Brochure Preview */
.brochure-preview-frame {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.modal-brochure-img {
  width: 100%;
  height: auto;
  display: block;
}

.brochure-modal-info h4 {
  margin-bottom: 6px;
}

.brochure-modal-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Success Modal & Receipt */
.success-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(0, 200, 83, 0.1);
  color: var(--brand-green);
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
}

.success-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.success-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.summary-receipt {
  background: #F8FAFC;
  border: 1px dashed #0284C7;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 0.9rem;
}

.receipt-row:last-child {
  border-bottom: none;
}

.r-label {
  color: var(--text-muted);
}

.r-val {
  font-weight: 600;
  color: var(--text-primary);
}

.r-val.highlight {
  color: #0284C7;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.res-sig-thumbnail {
  max-height: 40px;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toast {
  background: #FFFFFF;
  border: 1px solid #0284C7;
  color: var(--text-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  animation: slideToast 0.3s ease forwards;
}

.toast.toast-error {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

@keyframes slideToast {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* App Footer & Admin CSV Download Link */
.app-footer {
  padding: 40px 0 60px 0;
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.btn-admin-link {
  background: #F8FAFC;
  border: 1px dashed #0284C7;
  color: #0284C7;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-admin-link:hover {
  background: rgba(0, 176, 255, 0.08);
  border-color: #0284C7;
}

/* Printable Official Document Styles (Applies to both HTML2Canvas & Print) */
.print-official-container {
  display: none;
}

.print-paper {
  width: 100%;
  max-width: 794px;
  margin: 0 auto;
  padding: 22px 26px;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  box-sizing: border-box;
}

.print-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.print-logo-img {
  height: 38px !important;
  max-height: 38px !important;
  width: auto !important;
  max-width: 240px !important;
  object-fit: contain !important;
  display: block !important;
}

.print-doc-meta {
  text-align: right !important;
}

.print-doc-title {
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 2px 0 !important;
}

.print-doc-sub {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: #059669 !important;
  letter-spacing: 1px !important;
  margin: 0 0 4px 0 !important;
}

.print-ref-pill {
  display: inline-block !important;
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 0.75rem !important;
  color: #334155 !important;
}

.print-divider {
  height: 2px !important;
  background: #0284c7 !important;
  margin: 8px 0 14px 0 !important;
}

.print-sec {
  margin-bottom: 12px !important;
}

.print-sec-heading {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  background: #f8fafc !important;
  padding: 4px 8px !important;
  border-left: 3px solid #0284c7 !important;
  margin-bottom: 6px !important;
}

.print-info-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 0.78rem !important;
}

.print-info-table td {
  padding: 4px 8px !important;
  border: 1px solid #e2e8f0 !important;
}

.cell-label {
  width: 25% !important;
  font-weight: 700 !important;
  background: #f8fafc !important;
  color: #475569 !important;
}

.cell-value {
  width: 25% !important;
  color: #0f172a !important;
  font-weight: 500 !important;
}

.highlight-val {
  font-weight: 800 !important;
  color: #0284c7 !important;
}

.print-terms-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  color: #334155 !important;
}

.print-terms-intro {
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.print-terms-ol {
  padding-left: 16px !important;
  margin: 0 !important;
}

.print-terms-ol li {
  margin-bottom: 3px !important;
}

.print-sig-block {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  margin-top: 10px !important;
}

.print-sig-col {
  width: 60% !important;
}

.sig-title-txt {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
  color: #0f172a !important;
}

.print-sig-frame {
  width: 240px !important;
  height: 60px !important;
  border: 1px dashed #94a3b8 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px !important;
}

.print-sig-frame img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.sig-meta-txt {
  font-size: 0.7rem !important;
  color: #64748b !important;
  margin-top: 4px !important;
}

.print-official-seal-col {
  width: 35% !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.official-seal-box {
  border: 2px double #059669 !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  text-align: center !important;
  background: #f0fdf4 !important;
}

.seal-header {
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  color: #059669 !important;
  letter-spacing: 1px !important;
}

.seal-badge {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #065f46 !important;
  margin: 2px 0 !important;
}

.seal-check {
  font-size: 0.7rem !important;
  font-weight: 800 !important;
  color: #047857 !important;
}

.seal-date {
  font-size: 0.6rem !important;
  color: #065f46 !important;
  margin-top: 2px !important;
}

.print-footer-bar {
  margin-top: 14px !important;
  padding-top: 6px !important;
  border-top: 1px solid #cbd5e1 !important;
  text-align: center !important;
  font-size: 0.65rem !important;
  color: #64748b !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm;
  }

  /* Hide interactive web page elements when printing */
  body * {
    visibility: hidden;
  }
  
  .print-official-container, .print-official-container * {
    visibility: visible;
  }

  .print-official-container {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff !important;
    color: #0f172a !important;
  }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .model-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .wizard-container {
    padding: 24px;
  }
}

@media (max-width: 600px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .brand-logo {
    align-items: flex-start;
  }

  .brand-logo-pill {
    padding: 4px 10px;
    border-radius: 8px;
  }

  .user-official-logo-img {
    height: 22px;
  }

  .brand-by-tag {
    font-size: 0.5rem;
    letter-spacing: 1px;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-toggle-wrapper {
    padding: 2px;
    border-radius: 20px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
    border-radius: 14px;
  }

  .nav-actions .btn-outline {
    display: none; /* Hide secondary brochure button on mobile navbar to keep top bar 100% clean */
  }

  .nav-actions .btn-primary {
    padding: 7px 12px;
    font-size: 0.76rem;
    border-radius: 8px;
    gap: 5px;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }
  
  .specs-grid {
    grid-template-columns: 1fr;
  }
  
  .step-label {
    display: none;
  }
}

/* Gamified EV Live Telemetry Cockpit Dashboard */
.cockpit-container {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  color: #FFFFFF;
}

.cockpit-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
}

.cockpit-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cockpit-logo-img {
  height: 24px;
  width: auto;
}

.cockpit-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #38BDF8;
}

.cockpit-status-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10B981;
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

/* Speedometer Ring */
.speedo-wrapper {
  margin: 10px 0;
}

.speedo-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(15, 23, 42, 0.8) 70%);
  border: 4px solid #0284C7;
  box-shadow: 0 0 35px rgba(2, 132, 199, 0.4), inset 0 0 20px rgba(2, 132, 199, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.speedo-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.8);
}

.speedo-unit {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #38BDF8;
  margin-top: 4px;
}

/* Cockpit Stats Grid */
.cockpit-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.c-stat-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.c-stat-icon {
  font-size: 1.3rem;
}

.c-stat-info {
  display: flex;
  flex-direction: column;
}

.c-stat-label {
  font-size: 0.7rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.c-stat-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.c-stat-val small {
  font-size: 0.72rem;
  color: #94A3B8;
  font-weight: 400;
}

.cockpit-demo-bar {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: #FCD34D;
  text-align: center;
  width: 100%;
}

.cockpit-footer {
  width: 100%;
  margin-top: 10px;
}

.btn-stop-ride {
  width: 100%;
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.btn-stop-ride:hover {
  transform: translateY(-2px);
}

/* Post Ride Score Box */
.score-card-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
}

.badge-award-header {
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px dashed #CBD5E1;
  margin-bottom: 14px;
}

.award-icon-circle {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 10px auto;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.award-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #D97706;
  margin-bottom: 2px;
}

.award-subtitle {
  font-size: 0.8rem;
  color: #475569;
}

.score-grid-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.s-summary-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 8px 12px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.s-label {
  font-size: 0.72rem;
  color: #64748B;
}

.s-val {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0F172A;
}

.s-val.highlight {
  color: #0284C7;
}

.s-val.score-pts {
  color: #D97706;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
}

/* Leaderboard Table */
.leaderboard-table-responsive {
  overflow-x: auto;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.leaderboard-table th {
  background: #F1F5F9;
  color: #334155;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid #CBD5E1;
}

.leaderboard-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
  color: #1E293B;
  vertical-align: middle;
}

.rank-pill {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
}

.rank-1 { background: #FEF3C7; color: #D97706; border: 1px solid #F59E0B; }
.rank-2 { background: #F1F5F9; color: #475569; border: 1px solid #94A3B8; }
.rank-3 { background: #FFEDD5; color: #C2410C; border: 1px solid #F97316; }
.rank-other { background: #F8FAFC; color: #64748B; }

/* Floating Leaderboard Pill Button */
.floating-leaderboard-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-leaderboard-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.hero-leaderboard-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25) !important;
}

@media (max-width: 600px) {
  .floating-leaderboard-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 0.78rem;
  }
}

/* 3D Interactive Flipbook Brochure Styles */
.flipbook-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 20px 0;
  user-select: none;
}

.flipbook-stage {
  width: 100%;
  max-width: 500px;
  height: 680px;
  position: relative;
  perspective: 1600px;
}

@media (max-width: 600px) {
  .flipbook-stage {
    max-width: 320px;
    height: 440px;
  }
}

.flipbook-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
  cursor: pointer;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.25);
}

.flipbook-card.flipped {
  transform: rotateY(-180deg);
}

.flipbook-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  background: #000000;
  border: 1px solid #334155;
}

.flipbook-face-front {
  z-index: 2;
  transform: rotateY(0deg);
}

.flipbook-face-back {
  transform: rotateY(180deg);
}

.flipbook-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flipbook-hint-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flipbook-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  margin-top: 18px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 12px 18px;
  border-radius: 14px;
  flex-wrap: wrap;
}
