/* ═══════════════════════════════════════════════
   Ambulance Al-Makam — Premium Design System
   ═══════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: 'Inter', 'Noto Sans Arabic', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: #070b14;
  color: #e2e8f0;
}

::selection {
  background: rgba(220, 38, 38, 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════════
   Background System
   ═══════════════════════════════════════════════ */

/* Main page background — deep navy with subtle gradient */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 30, 30, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(100, 25, 25, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #070b14 0%, #0a1020 40%, #0d1428 70%, #070b14 100%);
  z-index: -2;
  pointer-events: none;
}

/* Subtle noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.015'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

/* Section alternate backgrounds */
.section-dark {
  background: rgba(10, 16, 32, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* ═══════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════ */
.nav-blur {
  background: rgba(7, 11, 20, 0.5);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-blur.scrolled {
  background: rgba(7, 11, 20, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #8896ab;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  padding: 0.45rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.3);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  box-shadow: 0 4px 18px rgba(185, 28, 28, 0.45);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   Language Toggle
   ═══════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #8896ab;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.lang-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.lang-toggle:active {
  transform: scale(0.96);
}

/* ═══════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════ */
/* Hero background image */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Multi-layer dark overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    /* Strong left-to-right gradient so text side is dark */
    linear-gradient(90deg, rgba(7, 11, 20, 0.92) 0%, rgba(7, 11, 20, 0.7) 45%, rgba(7, 11, 20, 0.4) 100%),
    /* Top-to-bottom gradient for navbar blend */
    linear-gradient(180deg, rgba(7, 11, 20, 0.6) 0%, transparent 30%, transparent 70%, rgba(7, 11, 20, 0.95) 100%);
}

/* Bottom shadow vignette for section transition */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, #070b14, transparent);
  z-index: 5;
  pointer-events: none;
}

/* Hero text colors */
.hero-subtitle {
  color: #8896ab;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  font-size: 0.925rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(153, 27, 27, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-cta-primary:hover {
  box-shadow: 0 6px 28px rgba(153, 27, 27, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #8896ab;
  font-size: 0.925rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  transform: translateY(-2px);
}

.scroll-indicator {
  animation: fadeInUp 1s ease 1.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Trust indicators */
.trust-check {
  color: #22c55e;
}

.trust-text {
  color: #64748b;
}

/* ═══════════════════════════════════════════════
   Section Badge
   ═══════════════════════════════════════════════ */
.section-badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.15);
  color: #dc2626;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-badge--red {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.22);
  color: #ef4444;
}

/* Section headings */
.section-heading {
  color: #f1f5f9;
}

.section-desc {
  color: #64748b;
}

/* ═══════════════════════════════════════════════
   Service Cards
   ═══════════════════════════════════════════════ */
.service-card {
  position: relative;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.35s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  border-color: rgba(185, 28, 28, 0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  background: rgba(15, 23, 42, 0.7);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  position: relative;
  z-index: 1;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: rgba(185, 28, 28, 0.1);
  border: 1px solid rgba(185, 28, 28, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.875rem;
}

.service-card h3 {
  position: relative;
  z-index: 1;
  color: #f1f5f9;
}

.service-card p {
  position: relative;
  z-index: 1;
  color: #64748b;
}

/* ═══════════════════════════════════════════════
   Step Cards (How It Works)
   ═══════════════════════════════════════════════ */
.step-card {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.step-card:hover {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(153, 27, 27, 0.4);
  z-index: 2;
}

.step-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: rgba(185, 28, 28, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem auto 1rem;
}

.step-card h3 {
  color: #f1f5f9;
}

.step-card p {
  color: #64748b;
}

/* ═══════════════════════════════════════════════
   Algeria Map (Coverage)
   ═══════════════════════════════════════════════ */
.map-container {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.map-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -60%);
  background: radial-gradient(circle, rgba(185, 28, 28, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.algeria-map-wrapper {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.algeria-map-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.35) saturate(0.6) hue-rotate(340deg);
  transition: filter 0.5s ease;
}

.algeria-map-wrapper:hover .algeria-map-img {
  filter: brightness(0.45) saturate(0.7) hue-rotate(340deg);
}

/* City dot overlays */
.city-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  cursor: default;
}

.city-dot-core {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.6), 0 0 20px rgba(220, 38, 38, 0.3);
  position: relative;
  z-index: 2;
}

.city-dot--capital .city-dot-core {
  width: 12px;
  height: 12px;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.7), 0 0 30px rgba(220, 38, 38, 0.4);
}

.city-dot-ping {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.3);
  animation: dotPing 2.5s ease-in-out infinite;
  z-index: 1;
}

.city-dot--capital .city-dot-ping {
  width: 32px;
  height: 32px;
}

@keyframes dotPing {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  30% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.5);
  }
}

.city-dot-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(100% + 6px);
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.city-dot--capital .city-dot-label {
  opacity: 1;
  font-size: 12px;
  color: #f1f5f9;
}

.city-dot:hover .city-dot-label {
  opacity: 1;
}

/* Coverage stat cards */
.map-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.map-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 0.5rem;
  border-radius: 0.875rem;
  background: rgba(10, 16, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.map-stat-card:hover {
  border-color: rgba(185, 28, 28, 0.15);
  transform: translateY(-2px);
}

.map-stat-number {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f1f5f9;
}

.map-stat-label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   Glass Card (Booking Form)
   ═══════════════════════════════════════════════ */
.glass-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  backdrop-filter: blur(30px) saturate(1.4);
  -webkit-backdrop-filter: blur(30px) saturate(1.4);
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow:
    0 8px 50px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════════════════════════
   Form Styles
   ═══════════════════════════════════════════════ */
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  pointer-events: none;
  z-index: 2;
}

.textarea-wrapper .input-icon {
  top: 14px;
  transform: none;
}

.form-input {
  width: 100%;
  padding: 0.8rem 0.875rem 0.8rem 2.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 16, 32, 0.6);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: all 0.25s ease;
}

.form-input::placeholder {
  color: rgba(148, 163, 184, 0.35);
}

.form-input:focus {
  border-color: rgba(185, 28, 28, 0.5);
  background: rgba(10, 16, 32, 0.8);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-input.input-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.35rem;
  padding-left: 0.25rem;
}

/* ═══════════════════════════════════════════════
   GPS Button
   ═══════════════════════════════════════════════ */
.gps-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(185, 28, 28, 0.25);
  background: rgba(153, 27, 27, 0.06);
  color: #e57373;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.gps-btn:hover {
  background: rgba(153, 27, 27, 0.1);
  border-color: rgba(185, 28, 28, 0.4);
  color: #ef9a9a;
  transform: translateY(-1px);
}

.gps-btn:active {
  transform: translateY(0);
}

.gps-btn.gps-active {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(21, 128, 61, 0.08);
  color: #4ade80;
}

/* ═══════════════════════════════════════════════
   Submit Button
   ═══════════════════════════════════════════════ */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.875rem;
  border: none;
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 18px rgba(153, 27, 27, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  box-shadow: 0 6px 26px rgba(153, 27, 27, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.submit-btn:hover::after {
  opacity: 1;
}

.submit-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(153, 27, 27, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ═══════════════════════════════════════════════
   Spinner
   ═══════════════════════════════════════════════ */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ═══════════════════════════════════════════════
   Reference Box & Emergency Notice
   ═══════════════════════════════════════════════ */
.ref-box {
  background: rgba(10, 16, 32, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0.875rem;
  padding: 1.25rem;
}

.emergency-notice {
  background: rgba(153, 27, 27, 0.08);
  border: 1px solid rgba(185, 28, 28, 0.12);
  border-radius: 0.75rem;
  padding: 0.875rem;
}

/* ═══════════════════════════════════════════════
   Success Animation
   ═══════════════════════════════════════════════ */
.success-check svg {
  animation: scaleIn 0.5s ease-out both;
}

.success-check #checkPath {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.6s ease-out 0.3s forwards;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

/* ═══════════════════════════════════════════════
   Pulse Glow
   ═══════════════════════════════════════════════ */
.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(153, 27, 27, 0.2);
  }

  50% {
    box-shadow: 0 0 22px rgba(153, 27, 27, 0.4);
  }
}

/* ═══════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════ */
footer {
  background: rgba(5, 8, 15, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social:hover {
  background: rgba(185, 28, 28, 0.1);
  border-color: rgba(185, 28, 28, 0.2);
  color: #dc2626;
  transform: translateY(-2px);
}

.footer-link {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #e2e8f0;
}

/* ═══════════════════════════════════════════════
   Connector Line (How It Works)
   ═══════════════════════════════════════════════ */
.connector-line {
  background: linear-gradient(90deg, transparent, rgba(185, 28, 28, 0.2), transparent);
}

/* ═══════════════════════════════════════════════
   Animations
   ═══════════════════════════════════════════════ */
.fade-up {
  animation: fadeUp 0.7s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   RTL Support (Arabic)
   ═══════════════════════════════════════════════ */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .input-icon {
  left: auto;
  right: 14px;
}

[dir="rtl"] .form-input {
  padding-left: 0.875rem;
  padding-right: 2.75rem;
  text-align: right;
}

[dir="rtl"] .form-label,
[dir="rtl"] .form-error {
  text-align: right;
}

[dir="rtl"] .form-error {
  padding-left: 0;
  padding-right: 0.25rem;
}

[dir="rtl"] .gps-btn,
[dir="rtl"] .gps-btn__text {
  direction: rtl;
}

[dir="rtl"] .hero-cta-primary,
[dir="rtl"] .hero-cta-secondary {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-link,
[dir="rtl"] .footer-link {
  text-align: right;
}

[dir="rtl"] .city-chip {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .step-number {
  left: 50%;
  transform: translateX(-50%);
}

/* ═══════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .glass-card {
    border-radius: 1.25rem;
  }

  .submit-btn {
    font-size: 0.925rem;
    padding: 0.875rem 1.5rem;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .emergency-card {
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 480px) {
  .glass-card {
    border-radius: 1rem;
  }
}

/* ═══════════════════════════════════════════════
   Sticky WhatsApp Button
   ═══════════════════════════════════════════════ */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow:
    0 4px 16px rgba(37, 211, 102, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-entrance 0.6s ease-out 1s both;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow:
    0 6px 24px rgba(37, 211, 102, 0.5),
    0 4px 12px rgba(0, 0, 0, 0.25);
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Tooltip */
.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  white-space: nowrap;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #1e293b;
  border-right: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Animations */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@keyframes whatsapp-entrance {
  from {
    opacity: 0;
    transform: scale(0.3) translateY(30px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}