/* ==========================================================================
   CARFIX — TOWING MODULE STYLES (towing.css)
   مطابق لـ TowingScreen.kt + GlassSOSCard
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HEADER
   -------------------------------------------------------------------------- */
.towing-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.towing-header-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.towing-header-title { font-size: var(--text-lg); font-weight: var(--font-bold); color: var(--text-primary); }
.towing-header-sub   { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   3. CONTENT SCROLL AREA
   -------------------------------------------------------------------------- */
.towing-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-6) var(--space-8);
}

/* --------------------------------------------------------------------------
   4. SOS CARD — matches GlassSOSCard()
   -------------------------------------------------------------------------- */
.sos-card {
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: sos-glow-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes sos-glow-pulse {
  from { box-shadow: 0 0 30px rgba(255,107,0,0.10); }
  to   { box-shadow: 0 0 70px rgba(255,107,0,0.28); }
}

.sos-card-title {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

.sos-card-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: -var(--space-3);
}

/* Pulsing SOS Button — matches pulseScale animation */
.sos-btn-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sos-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,107,0,0.35);
  animation: sos-ring 1.4s ease-in-out infinite;
}

.sos-pulse-ring:nth-child(2) { animation-delay: 0.35s; }
.sos-pulse-ring:nth-child(3) { animation-delay: 0.70s; }

@keyframes sos-ring {
  0%   { transform: scale(0.75); opacity: 0.8; }
  100% { transform: scale(1.30); opacity: 0; }
}

.sos-btn {
  position: relative;
  z-index: 2;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #FF6B35;
  border: 2px solid rgba(255,255,255,0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(255,107,0,0.55);
  animation: sos-btn-pulse 0.9s ease-in-out infinite alternate;
  transition: transform 0.15s;
}

.sos-btn:hover { transform: scale(1.05); }
.sos-btn:active { transform: scale(0.97); }

@keyframes sos-btn-pulse {
  from { transform: scale(1.00); box-shadow: 0 8px 40px rgba(255,107,0,0.50); }
  to   { transform: scale(1.06); box-shadow: 0 12px 60px rgba(255,107,0,0.70); }
}

.sos-btn-emoji { font-size: 28px; line-height: 1; }

.sos-btn-text {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.sos-note {
  font-size: 12px;
  color: rgba(255,255,255,0.40);
}

/* --------------------------------------------------------------------------
   5. LOCATION CARD
   -------------------------------------------------------------------------- */
.towing-location-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(255,107,0,0.07);
  border: 1px solid rgba(255,107,0,0.20);
  border-radius: var(--radius-lg);
}

.towing-location-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.towing-location-label {
  font-size: 11px;
  font-weight: var(--font-bold);
  color: rgba(255,255,255,0.45);
}

.towing-location-address {
  font-size: var(--text-sm);
  font-weight: var(--font-semi);
  color: var(--text-primary);
  margin-top: 2px;
}

.towing-location-change {
  margin-right: auto;
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  color: #FF6B35;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.towing-location-change:hover { opacity: 0.75; }

/* --------------------------------------------------------------------------
   6. SUCCESS CARD
   -------------------------------------------------------------------------- */
.towing-success-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: var(--radius-lg);
  animation: fadeIn 0.4s ease;
}

.towing-success-icon { font-size: 28px; flex-shrink: 0; }

.towing-success-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: #22C55E;
}

.towing-success-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   7. PROVIDER SECTION TITLE
   -------------------------------------------------------------------------- */
.towing-section-title {
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   8. TOWING BOOKING MODAL
   -------------------------------------------------------------------------- */
.towing-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

.towing-modal-overlay.is-hidden { display: none; }

.towing-modal {
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(12,16,26,0.97);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1);
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .towing-body   { padding: var(--space-2) var(--space-4) var(--space-7); }
  .towing-header { padding: var(--space-4) var(--space-4) var(--space-3); }
}

