/* ============================================================
   CAR CURE – SOS Recovery Page Styles
   ============================================================ */

/* ─── Color tokens ───────────────────────────────────────────── */
:root {
  --sos-red:        #e53935;
  --sos-red-dark:   #b71c1c;
  --sos-red-glow:   rgba(229, 57, 53, 0.28);
  --sos-red-faint:  rgba(229, 57, 53, 0.08);
  --sos-surface:    #13131a;
  --sos-surface-2:  #0d0d10;
  --sos-border:     rgba(255,255,255,.07);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Technor', sans-serif !important;
  font-weight: 400;
}

/* ─── Shared ─────────────────────────────────────────────────── */
.highlight-red     { color: var(--sos-red); }

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-teal, #60e5d9);
  margin-bottom: 0.5rem;
}

/* Section container — 92% width with auto margins keeps content away from edges */
.section-container {
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;

}

/* Global overflow fix for SOS page */
#sos-hero, #sos-form, #how-it-works, #safety, .sos-cta-strip,
.sos-hero-content, .sos-form-context, .sos-form-card {
  max-width: 100%;
  overflow: hidden !important;
}
.sos-form-layout {
  max-width: 100%;
  overflow: visible;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.sos-hero {
  position: relative;
  min-height: auto;
  background: #0a0202;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem 2rem;
}

/* ── Video ───────────────────────────────────────────────────── */
.sos-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;   /* show upper portion of footage for road context */
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: videoFadeIn 1.6s ease-out 0.3s forwards;
}

@keyframes videoFadeIn {
  to { opacity: 1; }
}

/* ── Overlay: thin dark overlay that covers entire hero section
      without affecting content (z-index below content) ──────── */
.sos-hero-video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.65);
}

/* ── Stripes ─────────────────────────────────────────────────── */
.sos-stripe {
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.sos-stripe-left  { left:  0; background: linear-gradient(to right, rgba(255,255,255,0.04), transparent); animation: stripeLeft  1.2s ease-out 0.5s both; }
.sos-stripe-right { right: 0; background: linear-gradient(to left,  rgba(255,255,255,0.04), transparent); animation: stripeRight 1.2s ease-out 0.5s both; }
@keyframes stripeLeft  { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes stripeRight { from { transform: translateX(100%);  opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Hero content ─────────────────────────────────────────────── */
.sos-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

/* Badge */
.sos-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* frosted white pill for contrast against any video frame */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  padding: 0.45rem 1.3rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.55s forwards;
  max-width: 320px;
}

/* Response time disclaimer asterisk */
.response-time-disclaimer {
  display: inline-block;
  font-size: 0.7em;
  color: rgba(255,255,255,0.6);
  cursor: help;
  vertical-align: super;
  margin-left: 3px;
  transition: color 0.2s ease;
}

.response-time-disclaimer:hover {
  color: #e53935;
}

.response-time-disclaimer::after {
  content: "Estimated average response time. May vary based on location, distance, and conditions.";
  position: fixed;
  background: #1a1a1a;
  color: #ccc;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 400;
  white-space: normal;
  width: 220px;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 9999999;
  pointer-events: none;
  left: 20px;
  top: 20px;
}

.response-time-disclaimer:hover::after {
  opacity: 1;
  visibility: visible;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sos-red);
  box-shadow: 0 0 6px var(--sos-red);
  animation: dotPulse 1.8s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Title */
.sos-hero-title {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fadeInUp 0.9s ease-out 0.75s forwards;
}
/* Accent line: bright white with a warm tint instead of competing red */
.hero-title-accent {
  color: #ffffff;
  display: inline-block;
  position: relative;
}
.hero-title-accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--sos-red);
  transform: scaleX(0);
  transform-origin: left;
  animation: accentLine 0.7s cubic-bezier(0.4,0,0.2,1) 1.4s forwards;
}
@keyframes accentLine {
  to { transform: scaleX(1); }
}

/* Description */
.sos-hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.95s forwards;
}
.sos-hero-desc strong { color: #fff; font-weight: 700; }

/* Stats strip — frosted glass cards */
.sos-hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2.8rem;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 16px;
  padding: 0.2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.1s forwards;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.9rem 2rem;
}
.hero-stat-value {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 20px rgba(229,57,53,0.6);
}
.hero-stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}

/* Action buttons */
.sos-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 1.25s forwards;
}

/* Scroll hint */
.sos-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 3;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 1s ease-out 1.6s forwards;
  padding-top: 4rem;
  width: 100%;
}
.sos-scroll-hint i { animation: scrollBounce 2.4s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes scrollBounce {
  0%,100% { transform: translateY(0);   opacity: 0.5; }
  45%,55% { transform: translateY(8px); opacity: 1;   }
}

/* ─── BUTTONS ────────────────────────────────────────────────── */

/* Primary — red fill, light-ray sweep on hover */
.btn-sos-primary, .btn-sos-secondary, .btn-sos-outline {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.34,1.3,0.64,1),
              box-shadow 0.38s ease;
  max-width: 100% !important;
  white-space: normal !important;
  box-sizing: border-box;
}

/* Primary button specific */
.btn-sos-primary {
  background: var(--sos-red);
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 22px var(--sos-red-glow);
}

/* Secondary button specific */
.btn-sos-secondary {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-sos-primary img,
.btn-sos-secondary img,
.btn-sos-outline img,
.sos-hero-content .section-icon,
.cta-strip-actions img { filter: brightness(0) invert(1); }


/* Diagonal light-ray sweep */
.btn-sos-primary::before {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  transform: skewX(-15deg) translateX(0);
  transition: transform 0.55s ease;
}
.btn-sos-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 38px rgba(229,57,53,0.52);
  background: #c62828;
}
.btn-sos-primary:hover::before { transform: skewX(-15deg) translateX(350%); }
.btn-sos-primary:active { transform: translateY(-1px) scale(1); }

/* Secondary — frosted border, fills on hover */
.btn-sos-secondary {
  transition: border-color 0.3s ease,
              background 0.35s ease,
              transform 0.38s cubic-bezier(0.34,1.3,0.64,1),
              box-shadow 0.3s ease;
}
.btn-sos-secondary:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.16);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
.btn-sos-secondary:active { transform: translateY(-1px); }

/* Outline — vertical fill wipe */
.btn-sos-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--sos-red);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  border: 2px solid var(--sos-red);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.32s ease,
              border-color 0.32s ease,
              transform 0.38s cubic-bezier(0.34,1.3,0.64,1),
              box-shadow 0.32s ease;
}
.btn-sos-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sos-red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.36s cubic-bezier(0.4,0,0.2,1);
  z-index: 0;
}
.btn-sos-outline > * { position: relative; z-index: 1; }
.btn-sos-outline span, .btn-sos-outline i { position: relative; z-index: 1; }
.btn-sos-outline:hover { color: #fff; border-color: var(--sos-red); transform: translateY(-3px); box-shadow: 0 8px 24px var(--sos-red-glow); }
.btn-sos-outline:hover::before { transform: scaleY(1); }

/* Success-screen outline override */
.success-new-btn { color: #22c55e; border-color: #22c55e; }
.success-new-btn::before { background: #22c55e; }
.success-new-btn:hover { color: #fff; border-color: #22c55e; box-shadow: 0 8px 24px rgba(34,197,94,0.3); }

/* CTA-strip outline on dark bg */
.cta-strip-actions .btn-sos-outline { color: rgba(255,255,255,0.9); border-color: rgba(255,255,255,0.35); }
.cta-strip-actions .btn-sos-outline::before { background: rgba(255,255,255,0.14); }
.cta-strip-actions .btn-sos-outline:hover { color: #fff; border-color: rgba(255,255,255,0.7); }

/* ─── FORM SECTION ───────────────────────────────────────────── */
.sos-form-section {
  padding: 7rem 0;
  background: #0d0d10;
  position: relative;
}
.sos-form-layout {
  display: grid !important;
  grid-template-columns: 1fr 1.55fr !important;
  gap: 5rem !important;
  align-items: start !important;
}

.sos-form-context { 
  align-self: start;
}

.sos-form-card {
  align-self: start;
}

.context-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sos-red-faint);
  border: 1px solid rgba(229,57,53,0.28);
  color: var(--sos-red);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 1.5rem;
}
.sos-form-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #e8e8ec;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.sos-form-subtext { font-size: 1rem; color: #6a6a7c; line-height: 1.8; margin-bottom: 2rem; }

.sos-context-list { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.sos-context-list li { display: flex; align-items: flex-start; gap: 0.85rem; font-size: 0.93rem; color: #6a6a7c; line-height: 1.5; }
.sos-context-list li i { color: var(--sos-red); font-size: 1rem; margin-top: 0.14rem; flex-shrink: 0; width: 1em; text-align: center; }

/* While You Wait - Safety Checklist */
.sos-safety-checklist {
  background: linear-gradient(135deg, rgba(229,57,53,0.08) 0%, rgba(10,10,15,0.95) 100%);
  border: 1px solid rgba(229,57,53,0.25);
  border-radius: 14px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.checklist-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checklist-items li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
}
.checklist-items li i {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sos-live-stats-text {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Live Stats - Recovery units active */
.sos-live-stats {
  background: rgba(96,229,217,0.08);
  border: 1px solid rgba(96,229,217,0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}
.live-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.live-stat-dot {
  width: 10px;
  height: 10px;
  background: #60e5d9;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(96,229,217,0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}
.live-stat-label {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 500;
}
.live-stat-label strong {
  color: #60e5d9;
  font-weight: 700;
}

/* Service Areas */
.sos-coverage-list {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.coverage-title {
  font-size: 0.85rem;
  color: #60e5d9;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.coverage-places {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.coverage-places li {
  background: transparent;
  border: 1px solid rgba(96,229,217,0.3);
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: #60e5d9;
  font-weight: 500;
  text-align: center;
}


/* Hotline card — lift + border glow on hover */
.sos-hotline-card {
  background: linear-gradient(135deg, rgba(229,57,53,0.12) 0%, rgba(6,47,45,0.95) 100%);
  padding: 2rem;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgba(229,57,53,0.4);
  position: relative;
  overflow: hidden;
  transition: all 0.38s cubic-bezier(0.34,1.3,0.64,1);
}
.sos-hotline-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 85% 15%, rgba(229,57,53,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.sos-hotline-card:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 16px 48px rgba(229,57,53,0.25); 
  border-color: rgba(229,57,53,0.7);
}
.hotline-label { 
  font-size: 0.75rem; 
  font-weight: 600; 
  text-transform: uppercase; 
  letter-spacing: 0.15em; 
  color: rgba(255,255,255,0.6); 
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hotline-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--sos-red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hotline-number { 
  font-size: 2.4rem; 
  font-weight: 900; 
  color: #fff; 
  text-decoration: none; 
  letter-spacing: -0.02em; 
  transition: color 0.3s ease;
  text-shadow: 0 2px 20px rgba(229,57,53,0.4);
}
.hotline-number:hover { 
  color: #ff6b6b; 
  text-shadow: 0 2px 30px rgba(229,57,53,0.6);
}
.hotline-sub { 
  font-size: 0.85rem; 
  color: rgba(255,255,255,0.5); 
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hotline-sub::before {
  content: '';
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74,222,128,0.5);
}

/* Form card */
.sos-form-card {
  position: relative;
  background: #13131a;
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: 0 12px 60px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,.07);
  max-width: 100%;
  overflow: visible;
}

/* Login promo banner */
.sos-login-promo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, rgba(96, 229, 217, 0.1), rgba(96, 229, 217, 0.05));
  border: 1px solid rgba(96, 229, 217, 0.2);
  border-radius: 12px;
  margin-bottom: 1.25rem;
}
.sos-login-promo i {
  font-size: 1.5rem;
  color: var(--primary-teal, #60e5d9);
  flex-shrink: 0;
}
.sos-login-promo-text {
  flex: 1;
}
.sos-login-promo-text strong {
  display: block;
  font-size: 0.85rem;
  color: #fff;
  margin-bottom: 0.2rem;
}
.sos-login-promo-text span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.sos-login-btn {
  padding: 0.5rem 1rem;
  background: var(--primary-teal, #60e5d9);
  color: #000;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(96, 229, 217, 0.3);
  transition: all 0.2s ease;
}
.sos-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 229, 217, 0.4);
}

/* My Vehicles button - standalone outside form */
.sos-my-vehicles-standalone {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
}
.sos-my-vehicle-btn-full {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: rgba(96, 229, 217, 0.08);
  border: 1px solid rgba(96, 229, 217, 0.25);
  border-radius: 8px;
  color: var(--primary-teal, #60e5d9);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.sos-my-vehicle-btn-full:hover {
  background: rgba(96, 229, 217, 0.15);
  border-color: rgba(96, 229, 217, 0.5);
  transform: translateY(-1px);
}
.sos-my-vehicle-btn-full img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(73%) sepia(46%) saturate(481%) hue-rotate(118deg) brightness(101%) contrast(101%);
}

/* Form elements */
.form-section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-teal, #60e5d9);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 1rem;
}
.form-section-label .section-icon {
  width: 1.2rem;
  height: 1.2rem;
  filter: brightness(0) saturate(100%) invert(73%) sepia(46%) saturate(481%) hue-rotate(118deg) brightness(101%) contrast(101%);
}
.context-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.14rem;
  filter: invert(12%) sepia(98%) saturate(6943%) hue-rotate(354deg) brightness(93%) contrast(103%);
}
.sos-context-list li:nth-child(1) .context-icon,
.sos-context-list li:nth-child(3) .context-icon {
  width: 1.7rem;
  height: 1.7rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

#sosForm .form-group,
.sos-form-card .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.form-group label { font-size: 0.85rem; font-weight: 600; color: #6a6a7c; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0; }

#sosForm .form-group:has(.urgency-toggle-label) {
  margin-bottom: 1.2rem !important;
}
.req { color: var(--sos-red); }
.optional { color: #6a6a7c; font-weight: 400; text-transform: none; letter-spacing: 0; }

/* Urgency Toggle */
.form-group:has(.urgency-toggle-label) {
  display: flex;
  flex-direction: column;
}
.form-group:has(.urgency-toggle-label) > label:first-child {
  margin-bottom: 0;
}
.urgency-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  background: #0d0d10;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  transition: background 0.2s ease, border-color 0.2s ease;
  min-height: 42px;
  box-sizing: border-box;
  width: 100%;
}
.urgency-toggle-label:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.urgency-toggle-label input { display: none; }
.urgency-toggle-switch {
  width: 36px;
  height: 18px;
  background: #3a3a4a;
  border-radius: 9px;
  position: relative;
  transition: background 0.3s ease;
  align-self: center;
}
.urgency-toggle-switch::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
}
.urgency-toggle-label input:checked + .urgency-toggle-switch {
  background: var(--sos-red);
}
.urgency-toggle-label input:checked + .urgency-toggle-switch::after {
  transform: translateX(17px);
}
.urgency-toggle-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

/* Show More/Less - Hidden by default with smooth transition */
.sos-additional-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  padding: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.sos-additional-details.visible {
  max-height: 1200px;
  opacity: 1;
}

/* Show More Button */
.sos-show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: auto;
  padding: 0 !important;
  margin-top: 1.5rem;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  border-radius: 0;
}

/* Mobile: CTA section proper layout */
@media (max-width: 600px) {
  .sos-form-card {
    padding: 1rem !important;
  }
  .btn-submit-sos {
    width: 100% !important;
    max-width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    margin-top: 0.75rem !important;
    box-sizing: border-box !important;
    order: 1;
  }
  .sos-show-more-btn {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.5rem !important;
    padding: 0 !important;
    font-size: 0.8rem !important;
    order: 2;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: #fff;
  }
  .sos-show-more-btn:hover {
    background: transparent !important;
  }
  /* Mobile: reduce gap between hero buttons and scroll hint */
  .sos-scroll-hint {
    padding-top: 1.5rem !important;
  }
  .sos-form-card form {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .form-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  .form-row > div {
    width: 100% !important;
    max-width: 100% !important;
  }
}
.sos-show-more-btn:hover,
.sos-show-more-btn:focus,
.sos-show-more-btn:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.8);
}
.sos-show-more-btn i {
  font-size: 0.7rem;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.sos-show-more-btn.expanded i {
  transform: rotate(180deg) !important;
}

/* Manual Location Input */
.manual-location-wrap .input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}
.manual-location-wrap .input-with-icon input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  font-size: 1rem;
  color: #e8e8ec;
  background: #0d0d10;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}
.manual-location-wrap .input-with-icon input:focus {
  border-color: var(--primary-teal, #60e5d9);
  box-shadow: 0 0 0 3px rgba(96, 229, 217, 0.1);
}
.manual-location-wrap .location-edit-btn {
  position: absolute;
  right: 8px;
  padding: 0.4rem 0.6rem;
  background: rgba(96, 229, 217, 0.1);
  border: 1px solid rgba(96, 229, 217, 0.25);
  border-radius: 6px;
  color: var(--primary-teal, #60e5d9);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.manual-location-wrap .location-edit-btn:hover {
  background: rgba(96, 229, 217, 0.2);
  border-color: rgba(96, 229, 217, 0.5);
}

/* Damage Photo Upload */
.sos-photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.sos-photo-upload-slot {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.sos-photo-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.sos-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 10px;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.sos-photo-upload-slot:hover .sos-photo-empty {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.6);
}

/* Photo Preview with Remove Button */
.sos-photo-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
}

.sos-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sos-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  background: rgba(220,38,38,0.9);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.sos-photo-remove:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.form-hint { font-size: 0.85rem; color: #6a6a7c; margin-top: 0.25rem; }

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px;
  font-size: 1rem;
  color: #e8e8ec;
  background: #0d0d10;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  min-height: 42px;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary-teal,#60e5d9); box-shadow: 0 0 0 3px rgba(96,229,217,0.1); }
.form-group input.input-error,
.form-group textarea.input-error { border-color: var(--sos-red); box-shadow: 0 0 0 3px var(--sos-red-faint); }
.form-group textarea { resize: vertical; min-height: 80px; }

.select-wrapper { position: relative; }
.select-wrapper select {
  width: 100%; padding: 0.9rem 2.5rem 0.9rem 1.1rem;
  border: 1px solid rgba(255,255,255,.09); border-radius: 10px;
  font-size: 1rem; color: #e8e8ec; background: #0d0d10;
  appearance: none; cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none; font-family: inherit;
  min-height: 42px;
}
  outline: none; font-family: inherit;
}
.select-wrapper select:focus { border-color: var(--primary-teal,#60e5d9); box-shadow: 0 0 0 3px rgba(96,229,217,0.1); }
.select-wrapper select.input-error { border-color: var(--sos-red); }
.select-arrow { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: #555; pointer-events: none; font-size: 0.78rem; }
.field-error { font-size: 0.76rem; color: var(--sos-red); font-weight: 600; min-height: 1em; display: block; }

/* Condition grid — radiate on hover */
.condition-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 0.65rem; 
  margin-bottom: 0.3rem;
  align-items: stretch;
}
.condition-option { 
  cursor: pointer;
  display: flex;
}
.condition-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.condition-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.34,1.5,0.64,1);
  color: #6a6a7c;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
.condition-card span {
  text-align: center;
  line-height: 1.2;
  font-size: 0.7rem;
}
.condition-card:hover { border-color: var(--sos-red); color: var(--sos-red); }
.condition-card:hover span { color: var(--sos-red); }
.condition-card i,
.condition-card .condition-icon { 
  font-size: 1.6rem; 
  width: 1.6rem; height: 1.6rem; object-fit: contain; 
  filter: brightness(0) saturate(100%) invert(62%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0.58);
  transition: color 0.28s ease, transform 0.36s cubic-bezier(0.34,1.5,0.64,1), filter 0.28s ease; 
}
.condition-card .condition-icon-lg { 
  transform: scale(1.2);
}
.condition-option input:checked + .condition-card {
  border-color: var(--sos-red); background: var(--sos-red-faint); color: var(--sos-red);
}
.condition-option input:checked + .condition-card i,
.condition-option input:checked + .condition-card .condition-icon { color: var(--sos-red); transform: scale(1.18); filter: invert(12%) sepia(98%) saturate(6943%) hue-rotate(354deg) brightness(93%) contrast(103%); }

.condition-card:hover .condition-icon { filter: invert(12%) sepia(98%) saturate(6943%) hue-rotate(354deg) brightness(93%) contrast(103%); }

/* "Other" description — animated reveal */
.other-condition-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s ease;
}
.other-condition-wrap.visible { max-height: 120px; opacity: 1; pointer-events: auto; }

/* Phone input */
.phone-input-wrapper {
  display: flex; align-items: center;
  border: 1px solid rgba(255,255,255,.09); border-radius: 10px; overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.phone-input-wrapper:focus-within { border-color: var(--primary-teal,#60e5d9); box-shadow: 0 0 0 3px rgba(96,229,217,0.1); }
.phone-input-wrapper.input-error { border-color: var(--sos-red); }
.phone-prefix { padding: 0 0.9rem; background: rgba(255,255,255,0.04); border-right: 1px solid rgba(255,255,255,.09); font-size: 0.95rem; font-weight: 700; color: #e8e8ec; white-space: nowrap; line-height: 2.8rem; }
.phone-input-wrapper input { flex: 1; border: none !important; box-shadow: none !important; border-radius: 0 !important; outline: none; padding: 0.9rem 1rem !important; font-size: 1rem; }

/* Location panel */
.location-panel { display: flex; flex-direction: column; gap: 1rem; }
.btn-locate {
  display: none; /* Disabled - using manual search only */
  align-items: center; justify-content: center; gap: 0.6rem;
  padding: 1rem; border: 2px dashed rgba(96,229,217,0.4); border-radius: 12px;
  background: rgba(96,229,217,0.04); color: var(--primary-teal,#60e5d9);
  font-size: 0.93rem; font-weight: 700; cursor: pointer; font-family: inherit;
  transition: background 0.3s ease, border-color 0.3s ease,
              transform 0.38s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.3s ease;
}
.btn-locate .geo-icon { width: 1.4rem; height: 1.4rem; object-fit: contain; filter: invert(73%) sepia(46%) saturate(481%) hue-rotate(118deg) brightness(101%) contrast(101%); transition: transform 0.3s ease, filter 0.3s ease; }
.btn-locate:hover { background: rgba(96,229,217,0.1); border-color: var(--primary-teal,#60e5d9); transform: translateY(-3px); box-shadow: 0 6px 18px rgba(96,229,217,0.14); }
.btn-locate:hover .geo-icon { transform: scale(1.1); }
.btn-locate.loading { opacity: 0.7; pointer-events: none; }
.btn-locate.success { border-style: solid; border-color: #22c55e; color: #22c55e; background: rgba(34,197,94,0.05); }
.btn-locate.success .geo-icon { transform: scale(1.08); filter: invert(53%) sepia(86%) saturate(403%) hue-rotate(82deg) brightness(93%) contrast(101%); }

.location-status { display: none; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: #22c55e; font-weight: 600; padding: 0.6rem 1rem; background: rgba(34,197,94,0.08); border-radius: 8px; border: 1px solid rgba(34,197,94,0.22); }
.location-status.show { display: flex; }
.location-divider { display: flex; align-items: center; gap: 1rem; color: #4a4a5a; font-size: 0.79rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.location-divider::before, .location-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.08); }

.location-search-wrapper { position: relative; }
.location-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.location-search-results.show { display: block; }
.location-search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.location-search-result:hover { background: rgba(96,229,217,0.1); }
.location-search-result:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.05); }
.location-search-result-icon { color: #60e5d9; font-size: 0.9rem; }
.location-search-result-text { flex: 1; }
.location-search-result-title { color: #fff; font-size: 0.9rem; margin-bottom: 0.15rem; }
.location-search-result-sub { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.location-search-loading,
.location-search-error,
.location-search-empty {
  padding: 1rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

.location-warning {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: #f59e0b;
  font-weight: 600;
  padding: 0.6rem 1rem;
  background: rgba(245,158,11,0.1);
  border-radius: 8px;
  border: 1px solid rgba(245,158,11,0.3);
  margin-top: 0.75rem;
}
.location-warning.show { display: flex; }
.location-warning i { font-size: 0.9rem; }

.location-map-preview {
  display: none;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 0.75rem;
  border: 1px solid rgba(255,255,255,0.1);
}
.location-map-preview.show { display: block; }
#locationMap {
  width: 100%;
  height: 100%;
  background: #0d0d10;
}
#locationMap .leaflet-container { width: 100%; height: 100%; background: #0d0d10; }
#locationMap .leaflet-tile { filter: brightness(0.6) invert(1) saturate(0); }
#locationMap .leaflet-control-zoom { border: none; }
#locationMap .leaflet-control-zoom a { background: #1a1a24; color: #fff; border-color: rgba(255,255,255,0.1); }
#locationMap .leaflet-control-attribution { background: rgba(0,0,0,0.5); color: #9ca3af; font-size: 0.65rem; }

.location-preview {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.22);
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #22c55e;
}
.location-preview.show { display: flex; }
.location-preview i { font-size: 0.9rem; flex-shrink: 0; }
.location-preview span { color: #fff; line-height: 1.3; }
.location-edit-btn {
  margin-left: auto;
  padding: 0.3rem 0.6rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: #9ca3af;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.location-edit-btn:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

.btn-locate-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: 10px;
  color: #f59e0b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-locate-retry:hover {
  background: rgba(245,158,11,0.2);
  border-color: rgba(245,158,11,0.6);
}

.location-map-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #9ca3af;
  font-size: 0.85rem;
  text-align: center;
}
.location-map-fallback.show { display: flex; }
.location-map-fallback i { font-size: 1.5rem; opacity: 0.6; }

.location-confirm {
  display: none; /* Removed - location confirmation checkbox no longer needed */
  margin-top: 0.75rem;
}
.location-confirm-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.85rem 1rem;
  background: rgba(96,229,217,0.05);
  border: 1px solid rgba(96,229,217,0.2);
  border-radius: 10px;
  transition: all 0.2s ease;
}
.location-confirm-label:hover {
  background: rgba(96,229,217,0.1);
  border-color: rgba(96,229,217,0.4);
}
.location-confirm-label input { display: none; }
.location-confirm-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(96,229,217,0.5);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.location-confirm-checkbox::after {
  content: '✓';
  color: transparent;
  font-size: 0.75rem;
  font-weight: 700;
}
.location-confirm-label input:checked + .location-confirm-checkbox {
  background: #60e5d9;
  border-color: #60e5d9;
}
.location-confirm-label input:checked + .location-confirm-checkbox::after { color: #000; }
.location-confirm-text {
  color: #e8e8ec;
  font-size: 0.9rem;
  font-weight: 500;
}
.location-confirm-label.error {
  background: rgba(229,57,53,0.1);
  border-color: rgba(229,57,53,0.4);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.location-reassurance {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: rgba(96,229,217,0.08);
  border: 1px solid rgba(96,229,217,0.2);
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: #60e5d9;
  font-weight: 500;
  line-height: 1.4;
}
.location-reassurance.show { display: flex; }
.location-reassurance i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Submit */
.btn-submit-sos {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem;
  width: 100%; padding: 1.25rem 2rem;
  background: var(--sos-red); color: #fff;
  font-size: 1.08rem; font-weight: 800; border: none; border-radius: 14px;
  cursor: pointer; position: relative; overflow: hidden;
  font-family: inherit; margin-top: 1.5rem; letter-spacing: 0.01em;
  box-shadow: 0 6px 28px var(--sos-red-glow);
  transition: transform 0.38s cubic-bezier(0.34,1.3,0.64,1), box-shadow 0.38s ease, background 0.3s ease;
}
.btn-submit-sos img { filter: brightness(0) invert(1); }
.btn-submit-sos::before {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.2) 50%, transparent 65%);
  transform: skewX(-15deg);
  transition: transform 0.55s ease;
}
.btn-submit-sos:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 48px rgba(229,57,53,0.5); background: #c62828; }
.btn-submit-sos:hover::before { transform: skewX(-15deg) translateX(400%); }
.btn-submit-sos:active { transform: translateY(0) scale(1); }
.btn-submit-sos:disabled { opacity: 0.6; pointer-events: none; }
.submit-spinner { margin-left: auto; }

/* Success state */
.form-success-state {
  text-align: center; padding: 2.5rem 1.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.1rem;
}
.form-success-state[hidden] { display: none !important; }
.success-icon-wrap {
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(34,197,94,0.14) 0%, rgba(34,197,94,0.04) 100%);
  border: 2px solid rgba(34,197,94,0.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: successPop 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.success-icon-wrap i { font-size: 2.8rem; color: #22c55e; }
@keyframes successPop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success-state h3 { font-size: 1.8rem; font-weight: 800; color: #e8e8ec; }
.form-success-state p { color: #6a6a7c; line-height: 1.7; max-width: 340px; }
.form-success-state p strong { color: #e8e8ec; }
.success-ref { font-size: 0.84rem; color: rgba(229,57,53,0.7); font-family: monospace; letter-spacing: 0.05em; }

/* ─── HOW IT WORKS ───────────────────────────────────────────── */
.sos-how {
  padding: 6rem 0;
  background: linear-gradient(180deg, #121219 0%, #1a1012 100%);
}

.sos-how .section-title { color: #e8e8ec; }
.sos-how .section-subtitle { color: #9a9aae; }
.sos-how .how-step h3 { color: #ececf2; }
.sos-how .how-step p { color: #b1b1c2; }
.sos-how .how-step-icon { border-color: rgba(255,255,255,.14); }

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 4rem;
  position: relative;
}
/* Connector line */
.how-steps-grid::before {
  content: '';
  position: absolute;
  top: 35px;
  left: calc(10% + 35px);
  right: calc(10% + 35px);
  height: 2px;
  background: linear-gradient(90deg, var(--sos-red), rgba(229,57,53,0.15));
  z-index: 0;
}

.how-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 1rem 2rem;
  position: relative; z-index: 1;
  max-width: 100%;
  box-sizing: border-box;
  /* Whole card lifts on hover */
  transition: transform 0.42s cubic-bezier(0.34,1.3,0.64,1);
}
.how-step:hover { transform: translateY(-8px); }

/* Icon — square with rounded corners like home page service icons;
   morphs to circle on hover */
.how-step-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--sos-red), var(--sos-red-dark));
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.3rem;
  box-shadow: 0 6px 22px var(--sos-red-glow);
  border: 3px solid #fff;
  position: relative; z-index: 1;
  transition: transform 0.48s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.38s ease,
              border-radius 0.38s ease;
}
.how-step:hover .how-step-icon {
  transform: rotate(8deg) scale(1.14);
  box-shadow: 0 14px 36px rgba(229,57,53,0.44);
  border-radius: 50%;
}
.how-step-icon i { font-size: 1.7rem; color: #fff; }
.how-step-icon .how-icon { width: 2rem; height: 2rem; object-fit: contain; filter: brightness(0) invert(1); }

.how-step h3 { font-size: 0.98rem; font-weight: 700; color: var(--primary-dark,#062f2d); margin-bottom: 0.5rem; }
.how-step p  { font-size: 0.86rem; color: #6b7280; line-height: 1.7; }

/* Step number — rendered BELOW text, clearly visible */
.how-step-number {
  margin-top: 1rem;
  font-size: 3.2rem;
  font-weight: 900;
  /* Visible red tint — not ghost-level */
  color: rgba(229,57,53,0.18);
  line-height: 1;
  letter-spacing: -0.05em;
  pointer-events: none;
  transition: color 0.38s ease, transform 0.38s ease;
}
.how-step:hover .how-step-number {
  color: rgba(229,57,53,0.35);
  transform: scale(1.1);
}

/* ─── ASSURANCE ──────────────────────────────────────────────── */
.sos-assurance {
  padding: 6rem 0;
  background: linear-gradient(180deg, #17131a 0%, #1e1215 100%);
}
.sos-assurance .section-eyebrow { color: var(--sos-red); }
.sos-assurance .section-title { color: #ffffff !important; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.02em; text-align: center; }
.sos-assurance .section-subtitle { color: #a5a5b3; }

.assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.assurance-card {
  background: #14141c;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.34,1.2,0.64,1),
              box-shadow 0.42s ease,
              border-color 0.3s ease;
}
/* Top accent bar slides in */
.assurance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sos-red), #ff6b6b);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
/* Glossy sheen */
.assurance-card::after {
  content: '';
  position: absolute;
  top: -80%; left: -80%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.55) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.assurance-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 56px rgba(229,57,53,0.13);
  border-color: rgba(229,57,53,0.28);
}
.assurance-card:hover::before { transform: scaleX(1); }
.assurance-card:hover::after  { opacity: 1; }

.assurance-icon-wrap {
  width: 64px; height: 64px;
  background: var(--sos-red-faint);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1),
              background 0.35s ease,
              border-radius 0.35s ease;
}
.assurance-icon-wrap i { font-size: 1.75rem; color: var(--sos-red); transition: color 0.3s ease; }
.assurance-icon-wrap .assurance-icon { width: 2rem; height: 2rem; object-fit: contain; filter: invert(12%) sepia(98%) saturate(6943%) hue-rotate(354deg) brightness(93%) contrast(103%); }
.assurance-card:hover .assurance-icon-wrap {
  transform: rotate(10deg) scale(1.12);
  background: var(--sos-red);
  border-radius: 50%;
}
.assurance-card:hover .assurance-icon-wrap i { color: #fff; }
.assurance-card:hover .assurance-icon-wrap .assurance-icon { filter: brightness(0) invert(1); }

.assurance-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark,#062f2d); margin-bottom: 0.8rem; }
.assurance-card h3 { color: #ececf2; }
.assurance-card p  { font-size: 0.9rem; color: #b5b5c4; line-height: 1.7; margin-bottom: 1.5rem; }

/* Metric row — numbers and labels vertically centred and aligned */
.assurance-metric {
  display: flex;
  align-items: center;       /* vertical centre */
  gap: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.09);
}
.metric-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--sos-red);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}
.metric-label {
  font-size: 0.75rem;
  color: #9d9daf;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

/* ─── CTA STRIP ──────────────────────────────────────────────── */
.sos-cta-strip {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--primary-dark,#062f2d) 0%, #1a0505 55%, var(--sos-red-dark) 100%);
  position: relative; overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
.sos-cta-strip::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(229,57,53,0.13) 0%, transparent 70%);
  border-radius: 50%;
  animation: ctaOrb 12s ease-in-out infinite;
}
@keyframes ctaOrb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,30px) scale(1.12); } }
.cta-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; position: relative; z-index: 1; max-width: 100%; box-sizing: border-box; overflow: hidden; }
.cta-strip-text h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.cta-strip-text p  { font-size: 1rem; color: rgba(255,255,255,0.68); }
.cta-strip-actions { display: flex; gap: 1rem; flex-shrink: 1; flex-wrap: wrap; justify-content: center; }

/* ─── Section titles ─────────────────────────────────────────── */
.section-title-wrapper { text-align: center; }
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800; color: var(--primary-dark,#062f2d);
  margin-bottom: 1rem; letter-spacing: -0.02em; text-align: center;
}
.section-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem); color: #6b7280;
  max-width: 580px; margin: 0 auto 3rem; line-height: 1.75; text-align: center;
}

/* ─── Shared animation ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Reveal system ──────────────────────────────────────────── */
.reveal-ready {
  opacity: 0;
  transform: translateY(36px) scale(0.97);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1),
              transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.reveal-ready.revealed { opacity: 1; transform: translateY(0) scale(1); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .assurance-grid    { grid-template-columns: repeat(2,1fr); }
  .how-steps-grid    { grid-template-columns: repeat(3,1fr); gap: 2rem; }
  .how-steps-grid::before { display: none; }
}
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; width: 100% !important; box-sizing: border-box; }
  * { box-sizing: border-box; max-width: 100%; overflow-wrap: break-word; }
  .sos-form-section, .sos-form-card, .sos-form-layout { max-width: 100% !important; width: 100% !important; overflow-x: hidden !important; }
  #sos-hero, #sos-form, #how-it-works, #safety, .sos-cta-strip { 
    overflow-x: hidden !important; 
    max-width: 100% !important; 
    width: 100% !important;
  }
  .sos-hero { min-height: auto; padding: 2rem 1rem 2rem; width: 100% !important; max-width: 100% !important; }
  .sos-hero-content { padding: 2rem 1rem; width: 100% !important; max-width: 100% !important; }
  .sos-hero-badge { 
    font-size: 0.75rem; 
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .sos-hero-title { font-size: clamp(2rem, 6vw, 2.8rem); }
  .sos-hero-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
  .sos-hero-stats { margin-bottom: 1.5rem; }
  .hero-stat-value   { font-size: 1.55rem; }
  .sos-hero-actions  { flex-direction: column; align-items: center; width: 100% !important; max-width: 100% !important; }
  .sos-hero-actions a,
  .sos-hero-actions .btn-sos-primary,
  .sos-hero-actions .btn-sos-secondary { width: 100% !important; max-width: 320px !important; justify-content: center; font-size: 0.95rem !important; }
  .sos-form-layout   { grid-template-columns: 1fr !important; gap: 2rem !important; width: 100% !important; max-width: 100% !important; }
  .sos-form-context  { position: static; margin-bottom: 0; }
  .sos-form-card     { padding: 1.5rem; width: 100% !important; max-width: 100% !important; margin: 0 auto; }
  .form-row          { grid-template-columns: 1fr; }
  .condition-grid    { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .condition-card    { padding: 0.75rem 0.5rem; font-size: 0.75rem; }
  .condition-card i  { font-size: 1.4rem; }
  .how-steps-grid    { grid-template-columns: 1fr; gap: 2rem; width: 100% !important; max-width: 100% !important; }
  .assurance-grid    { grid-template-columns: 1fr; width: 100% !important; max-width: 100% !important; }
  .sos-stripe        { width: 40px; }
  .sos-login-promo { flex-direction: column; text-align: center; gap: 0.5rem; }
  .sos-login-promo-text { text-align: center; }
  .sos-my-vehicles-standalone { top: 0.75rem; right: 0.75rem; }
}
@media (max-width: 480px) {
  html, body { 
    overflow-x: hidden !important; 
    max-width: 100vw !important; 
    width: 100% !important;
  }
  .section-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .sos-hero {
    width: 100% !important;
    max-width: 100% !important;
  }
  .sos-hero-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .sos-hero-title  { font-size: clamp(2.1rem, 8vw, 3rem); }
  .sos-hero-stats { flex-direction: column; width: 100%; max-width: 200px; margin-left: auto; margin-right: auto; }
  .hero-stat-divider { width: 60px; height: 1px; margin: 0 auto; }
  .hero-stat       { padding: 0.6rem 1rem; }
  .sos-form-section { padding: 3rem 0; width: 100% !important; max-width: 100% !important; }
  .sos-form-card   { padding: 1.25rem; border-radius: 16px; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }
  .condition-grid  { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; width: 100%; }
  .condition-card  { padding: 0.6rem 0.4rem; font-size: 0.7rem; min-width: 0; }
  .condition-card i { font-size: 1.2rem; width: 1.2rem; height: 1.2rem; }
  .condition-card .condition-icon { width: 1.2rem; height: 1.2rem; }
  .condition-card .condition-icon-lg { transform: scale(1.0); }
  .form-group      { margin-bottom: 1rem; width: 100%; }
  .form-group label { font-size: 0.75rem; }
  .form-group input,
  .form-group textarea { padding: 0.65rem 0.85rem; font-size: 0.9rem; width: 100% !important; box-sizing: border-box; }
  .sos-how        { padding: 3rem 0; width: 100% !important; max-width: 100% !important; }
  .sos-assurance { padding: 3rem 0; width: 100% !important; max-width: 100% !important; }
  .sos-cta-strip { padding: 2.5rem 0; width: 100% !important; max-width: 100% !important; }
  .cta-strip-inner { flex-direction: column; gap: 1.5rem; text-align: center; padding: 0 1rem; }
  .cta-strip-text { width: 100%; }
  .cta-strip-text h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .cta-strip-text p { font-size: 0.9rem; }
  .cta-strip-actions { flex-direction: column; align-items: center; width: 100%; max-width: 280px; gap: 0.75rem; overflow: hidden; }
  .cta-strip-actions a { width: 100%; max-width: 300px; justify-content: center; padding: 0.9rem 1rem; }
  .cta-strip-actions .btn-sos-primary,
  .cta-strip-actions .btn-sos-outline {
    font-size: 0.8rem !important;
    padding: 0.7rem 0.85rem !important;
    white-space: normal !important;
    max-width: 240px !important;
    min-width: 0 !important;
    width: calc(100% - 2px) !important;
    box-sizing: border-box !important;
  }
  .sos-stripe   { display: none; }
  .sos-hero-actions { width: 100% !important; max-width: 100% !important; display: flex !important; flex-direction: column; }
  .sos-hero-actions a,
  .sos-hero-actions .btn-sos-primary,
  .sos-hero-actions .btn-sos-secondary { 
    width: 100% !important; 
    max-width: 100% !important; 
    box-sizing: border-box !important; 
    padding: 1rem 1rem !important;
    font-size: 0.9rem !important;
  }
  .sos-hero-actions .btn-sos-primary span,
  .sos-hero-actions .btn-sos-secondary span {
    white-space: normal !important;
    text-align: center;
  }
  .how-step { width: 100% !important; max-width: 100% !important; }
  .how-step-icon { width: 3.5rem; height: 3.5rem; }
  .how-steps-grid { width: 100% !important; max-width: 100% !important; }
  .assurance-grid { width: 100% !important; max-width: 100% !important; }
}

/* ─── Accessibility ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-ready { opacity: 1 !important; transform: none !important; }
  .sos-hero-video { opacity: 0.8 !important; animation: none !important; }
}

/* ─── Toast for SOS ─────────────────────────────────────────── */
.sos-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #1a1a24;
  border: 1px solid rgba(96, 229, 217, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.sos-toast.show {
  transform: translateY(0);
  opacity: 1;
}
.sos-toast i {
  color: #60e5d9;
}

/* ─── My Vehicles Modal for SOS ─────────────────────────── */
.vehicle-modal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.vehicle-modal.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}
.vehicle-modal-content {
  background: #1a1a24;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vehicle-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.vehicle-modal-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.btn-close-modal {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}
.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.vehicle-modal-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
}
.vehicle-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vehicle-modal-item:hover {
  background: rgba(96, 229, 217, 0.08);
  border-color: rgba(96, 229, 217, 0.3);
}
.vehicle-modal-item-info {
  display: flex;
  flex-direction: column;
}
.vehicle-modal-item-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}
.vehicle-modal-item-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}
.vehicle-modal-item-plate {
  font-size: 0.8rem;
  color: rgba(96, 229, 217, 0.9);
  background: rgba(96, 229, 217, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}
.vehicle-modal-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.vehicle-modal-actions .sos-my-vehicle-btn,
.vehicle-modal-actions .sos-login-btn {
  flex: 1;
}