/* LMT Start Page — Frontend Styles */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --sp-primary: #0d2137;
  --sp-accent:  #d42b2b;
  --sp-accent2: #337f3e;
  --sp-white:   #ffffff;
  --sp-gray-50: #f8fafc;
  --sp-gray-100:#f1f5f9;
  --sp-gray-200:#e2e8f0;
  --sp-gray-400:#94a3b8;
  --sp-gray-600:#64748b;
  --sp-gray-800:#1e293b;
  --sp-radius:  14px;
  --sp-shadow:  0 20px 60px rgba(13,33,55,0.18);
}

body.lmtsp-standalone-page {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--sp-primary);
  min-height: 100vh;
  color: var(--sp-gray-800);
  -webkit-font-smoothing: antialiased;
}

/* ===== NAV ===== */
.lmtsp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,33,55,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
}
.lmtsp-nav-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.lmtsp-nav-logo { height: 36px; width: auto; }
.lmtsp-nav-brand { color: #fff; font-family: 'Barlow', sans-serif; font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -0.3px; }
.lmtsp-nav-back { color: rgba(255,255,255,0.55); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.lmtsp-nav-back:hover { color: #fff; }

/* ===== HERO ===== */
.lmtsp-hero {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lmtsp-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a1b2e 0%, #0d2137 50%, #0f2840 100%);
}

/* Dot grid */
.lmtsp-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Glow orbs */
.lmtsp-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: lmtsp-float 8s ease-in-out infinite;
}
.lmtsp-orb-1 {
  width: 500px; height: 500px;
  background: var(--sp-accent);
  top: -150px; right: -100px;
}
.lmtsp-orb-2 {
  width: 400px; height: 400px;
  background: #1a6fdb;
  bottom: -100px; left: -80px;
  animation-delay: -4s;
}
@keyframes lmtsp-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.lmtsp-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1250px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 70px;
  align-items: center;
  width: 100%;
}

/* Hero text */
.lmtsp-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.lmtsp-badge-dot {
  width: 7px; height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.3);
  animation: lmtsp-pulse 2s infinite;
}
@keyframes lmtsp-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0.1); }
}

.lmtsp-hero-heading {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.lmtsp-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 500px;
}

/* Trust row */
.lmtsp-trust-row {
  display: flex;
  gap: 28px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.lmtsp-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
}
.lmtsp-trust-icon { font-size: 18px; }

/* Steps */
.lmtsp-steps { display: flex; align-items: center; gap: 0; }
.lmtsp-step { display: flex; align-items: center; gap: 12px; }
.lmtsp-step-num {
  width: 36px; height: 36px;
  background: var(--sp-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.lmtsp-step-text { display: flex; flex-direction: column; }
.lmtsp-step-text strong { color: #fff; font-size: 13px; font-weight: 700; }
.lmtsp-step-text span { color: rgba(255,255,255,0.5); font-size: 12px; }
.lmtsp-step-connector {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.12);
  margin: 0 16px;
  min-width: 24px;
}

/* ===== FORM CARD ===== */
.lmtsp-form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--sp-shadow), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  animation: lmtsp-rise 0.6s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes lmtsp-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lmtsp-shortcode-mode { max-width: 600px; margin: 0 auto; }

.lmtsp-form-header {
  background: var(--sp-primary);
  padding: 24px 28px 20px;
  border-bottom: 3px solid var(--sp-accent);
}
.lmtsp-form-header h2 {
  font-family: 'Barlow', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.lmtsp-form-header p { color: rgba(255,255,255,0.6); font-size: 13px; }

/* VIN detected banner */
.lmtsp-vin-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0fdf4;
  border-bottom: 1px solid #86efac;
  padding: 12px 28px;
}
.lmtsp-vin-icon { font-size: 22px; }
.lmtsp-vin-banner div { display: flex; flex-direction: column; }
.lmtsp-vin-banner strong { font-size: 13px; color: #166534; font-weight: 700; }
.lmtsp-vin-banner span { font-size: 12px; color: #4ade80; font-family: monospace; letter-spacing: 1px; }

#lmtsp-form-wrap { padding: 24px 28px 20px; }

/* Fields */
.lmtsp-field-group {
  margin-bottom: 16px;
}
.lmtsp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.lmtsp-field-wrap { display: flex; flex-direction: column; gap: 5px; }
.lmtsp-field-wrap label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-gray-600);
  letter-spacing: 0.2px;
}
.lmtsp-req { color: var(--sp-accent); }
.lmtsp-opt { color: var(--sp-gray-400); font-weight: 400; font-size: 12px; }

.lmtsp-field {
  border: 1.5px solid var(--sp-gray-200);
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--sp-gray-800);
  background: var(--sp-gray-50);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  width: 100%;
}
.lmtsp-field:focus {
  outline: none;
  border-color: var(--sp-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13,33,55,0.07);
}
.lmtsp-field.lmtsp-field-error { border-color: var(--sp-accent); box-shadow: 0 0 0 3px rgba(212,43,43,0.08); }
.lmtsp-field::placeholder { color: var(--sp-gray-400); }
.lmtsp-vin-field { text-transform: uppercase; letter-spacing: 1.5px; font-family: monospace; font-size: 13px; }

.lmtsp-input-with-unit { position: relative; }
.lmtsp-input-with-unit .lmtsp-field { padding-right: 40px; }
.lmtsp-unit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-gray-400);
  pointer-events: none;
}

.lmtsp-field-hint { font-size: 11px; color: var(--sp-gray-400); }

/* Error box */
.lmtsp-error-box {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-left: 3px solid var(--sp-accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: #c53030;
  margin-bottom: 16px;
}

/* Submit button */
.lmtsp-submit-btn {
  width: 100%;
  background: var(--sp-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px 24px;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  margin-top: 4px;
}
.lmtsp-submit-btn:hover {
  background: #b52020;
  box-shadow: 0 6px 24px rgba(212,43,43,0.35);
  transform: translateY(-1px);
}
.lmtsp-submit-btn:active { transform: scale(0.98); }
.lmtsp-submit-btn:disabled { background: var(--sp-gray-400); cursor: not-allowed; transform: none; box-shadow: none; }

/* Spinner */
.lmtsp-spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: lmtsp-spin 0.7s linear infinite;
}
@keyframes lmtsp-spin { to { transform: rotate(360deg); } }

.lmtsp-form-disclaimer {
  font-size: 11px;
  color: var(--sp-gray-400);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

/* Success */
#lmtsp-success-wrap {
  padding: 36px 28px;
  text-align: center;
}
.lmtsp-success-icon { font-size: 52px; margin-bottom: 16px; }
.lmtsp-success-heading {
  font-family: 'Barlow', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--sp-primary);
  margin-bottom: 12px;
}
.lmtsp-success-text {
  font-size: 15px;
  color: var(--sp-gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
}
.lmtsp-success-details {
  background: var(--sp-gray-50);
  border: 1px solid var(--sp-gray-200);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--sp-gray-600);
  line-height: 1.8;
}
.lmtsp-success-details strong { color: var(--sp-primary); }
.lmtsp-back-home-btn {
  display: inline-block;
  background: var(--sp-primary);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}
.lmtsp-back-home-btn:hover { background: #0a1b2e; }

/* Footer */
.lmtsp-footer {
  background: #060f1a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 24px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* Utility */
.lmtsp-hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .lmtsp-hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 40px 20px 50px; }
  .lmtsp-hero-sub { max-width: 100%; }
  .lmtsp-steps { flex-wrap: wrap; gap: 12px; }
  .lmtsp-step-connector { display: none; }
}
@media (max-width: 560px) {
  .lmtsp-two-col { grid-template-columns: 1fr; }
  .lmtsp-form-header, #lmtsp-form-wrap, #lmtsp-success-wrap { padding-left: 18px; padding-right: 18px; }
  .lmtsp-trust-row { gap: 16px; }
}
