/* ==========================================================================
   Urban Track — Service Availability Modal (Rectangular, No Scroll, Executive)
   ========================================================================== */

.ut-sa-root {
  --ut-navy: #12002b;
  --ut-navy-dark: #0a0018;
  --ut-orange: #ff7200;
  --ut-orange-hover: #e65c00;
  --ut-gold: #d97706;
  --ut-amber: #f59e0b;
  --ut-slate-dark: #1e1b2e;
  --ut-slate-body: #4b5563;
  --ut-slate-sub: #64748b;
  --ut-border-soft: rgba(18, 0, 43, 0.08);

  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ut-sa-root.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ut-sa-root.is-closing {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Translucent Frosted Glass Backdrop — Blurred yet clearly visible */
.ut-sa-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 0, 43, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* Modal Dialog Box — Rectangular & strictly NO scrollbar */
.ut-sa-dialog {
  position: relative;
  z-index: 10;
  width: min(720px, 94vw);
  box-sizing: border-box;
  overflow: hidden; /* NO SCROLL */
  background: #ffffff;
  border-radius: 12px; /* Clean rectangular corners */
  border: 1px solid rgba(255, 114, 0, 0.24);
  box-shadow:
    0 20px 50px -10px rgba(18, 0, 43, 0.28),
    0 8px 20px -6px rgba(18, 0, 43, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 24px 26px 18px;
  transform: scale(0.95) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ut-sa-root.is-visible .ut-sa-dialog {
  transform: scale(1) translateY(0);
}

.ut-sa-root.is-closing .ut-sa-dialog {
  transform: scale(0.96) translateY(8px);
}

/* Top Accent Bar */
.ut-sa-dialog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #ff7200 0%, #ffaa1f 50%, #ff7200 100%);
}

/* Ambient Radial Glow Effect */
.ut-sa-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 114, 0, 0.14) 0%, rgba(98, 0, 234, 0.04) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Rectangular Sleek Close Button */
.ut-sa-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px; /* Rectangular corners */
  border: 1px solid rgba(18, 0, 43, 0.12);
  background: #ffffff;
  color: var(--ut-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(18, 0, 43, 0.08);
  transition: all 0.2s ease;
  z-index: 20;
  padding: 0;
}

.ut-sa-close svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.ut-sa-close:hover {
  background: #ff7200;
  border-color: #ff7200;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 114, 0, 0.35);
}

.ut-sa-close:hover svg {
  transform: rotate(90deg);
}

.ut-sa-close:active {
  transform: scale(0.94);
}

/* ==========================================================================
   Header Section (Compact & Clean — No circular logo)
   ========================================================================== */

.ut-sa-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 16px;
}

/* Live Kicker Pill */
.ut-sa-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 6px; /* Rectangular tag */
  background: #fff7ed;
  border: 1px solid rgba(255, 114, 0, 0.25);
  color: var(--ut-orange);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Radar Pulse Beacon */
.ut-sa-live-pulse {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
}

.ut-sa-live-pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: utLivePulse 1.8s infinite ease-out;
}

@keyframes utLivePulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Title & Brand Highlight */
.ut-sa-title {
  margin: 0 0 3px;
  font-size: clamp(21px, 3.5vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ut-navy);
}

.ut-sa-brand-highlight {
  color: var(--ut-orange);
}

/* Tagline */
.ut-sa-tagline {
  margin: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  color: var(--ut-gold);
}

/* Subtitle Message */
.ut-sa-message {
  margin: 0 auto;
  max-width: 580px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ut-slate-body);
}

/* ==========================================================================
   Location Grid & Hub Cards (2x2 Balanced Symmetry)
   ========================================================================== */

.ut-sa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

@media (min-width: 540px) {
  .ut-sa-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Location Card Base — Rectangular with subtle accent */
.ut-sa-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 9px; /* Clean rectangular corners */
  background: #ffffff;
  border: 1px solid rgba(18, 0, 43, 0.09);
  box-shadow: 0 2px 8px rgba(18, 0, 43, 0.035);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ut-sa-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: background 0.2s ease;
}

.ut-sa-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 114, 0, 0.35);
  box-shadow: 0 8px 18px -4px rgba(255, 114, 0, 0.14), 0 3px 8px rgba(18, 0, 43, 0.05);
}

.ut-sa-card:active {
  transform: translateY(0);
}

.ut-sa-card--emerald::before { background: #10b981; }
.ut-sa-card--blue::before { background: #0284c7; }
.ut-sa-card--purple::before { background: #8b5cf6; }

.ut-sa-card-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}

/* Icon Box — Rectangular squircle */
.ut-sa-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px; /* Rectangular corners */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: var(--ut-orange);
  box-shadow: 0 2px 5px rgba(255, 114, 0, 0.1);
  transition: transform 0.2s ease, background 0.2s ease;
}

.ut-sa-card:hover .ut-sa-icon-box {
  transform: scale(1.06);
  background: linear-gradient(135deg, #ff7200 0%, #ff9436 100%);
  color: #ffffff;
}

.ut-sa-icon-box svg {
  width: 18px;
  height: 18px;
}

/* Card Info Column */
.ut-sa-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ut-sa-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.ut-sa-card-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ut-navy);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Badges */
.ut-sa-badge {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  padding: 1px 6px;
  border-radius: 4px; /* Rectangular badge */
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ut-sa-badge--emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ut-sa-badge--blue {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.ut-sa-badge--purple {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.ut-sa-dot {
  width: 4.5px;
  height: 4.5px;
  border-radius: 50%;
  background: currentColor;
}

/* Features Subtext */
.ut-sa-card-features {
  margin: 0 0 1px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ut-slate-body);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ut-sa-card-state {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ut-slate-sub);
}

/* Right Arrow Hover Action */
.ut-sa-card-arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  flex-shrink: 0;
  margin-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.ut-sa-card:hover .ut-sa-card-arrow {
  color: var(--ut-orange);
  transform: translateX(3px);
}

.ut-sa-card-arrow svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Footer Section & Primary CTA
   ========================================================================== */

.ut-sa-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Rectangular Radiant CTA Button */
.ut-sa-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 9px; /* Rectangular button */
  background: linear-gradient(135deg, #ff7200 0%, #ff882e 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 114, 0, 0.32);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  padding: 0 18px;
}

.ut-sa-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: utButtonShine 4s infinite ease-in-out;
}

@keyframes utButtonShine {
  0% { left: -100%; }
  35%, 100% { left: 160%; }
}

.ut-sa-cta-btn:hover {
  background: linear-gradient(135deg, #f06700 0%, #ff7a1a 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255, 114, 0, 0.4);
}

.ut-sa-cta-btn:active {
  transform: translateY(0) scale(0.99);
}

.ut-sa-btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.ut-sa-cta-btn:hover .ut-sa-btn-icon {
  transform: translateX(3px);
}

/* Trust Guarantee Strip */
.ut-sa-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ut-sa-trust-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ut-slate-sub);
}

.ut-sa-trust-item svg {
  width: 14px;
  height: 14px;
  color: var(--ut-orange);
}

/* Prevent Background Scroll When Open */
html.ut-sa-open,
body.ut-sa-open {
  overflow: hidden !important;
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */

@media (max-width: 480px) {
  .ut-sa-dialog {
    padding: 20px 14px 14px;
    border-radius: 10px;
  }

  .ut-sa-title {
    font-size: 19px;
  }

  .ut-sa-message {
    font-size: 11.5px;
    margin-bottom: 12px;
  }

  .ut-sa-grid {
    gap: 8px;
  }

  .ut-sa-card {
    padding: 9px 11px;
  }

  .ut-sa-icon-box {
    width: 32px;
    height: 32px;
  }

  .ut-sa-icon-box svg {
    width: 16px;
    height: 16px;
  }

  .ut-sa-card-title {
    font-size: 12.5px;
  }

  .ut-sa-cta-btn {
    min-height: 42px;
    font-size: 12.5px;
  }

  .ut-sa-trust-strip {
    gap: 10px;
    font-size: 10px;
  }
}

/* Landscape / Small-height screen safeguard */
@media (max-height: 480px) {
  .ut-sa-dialog {
    max-height: 94vh;
    overflow-y: auto;
    scrollbar-width: none;
  }
  .ut-sa-dialog::-webkit-scrollbar {
    display: none;
  }
}
