.emergency-hotline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #b91c1c 0%, #ef4444 50%, #dc2626 100%);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  animation: emergency-glow 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  transition: transform 0.2s ease;
}

.emergency-hotline-btn:hover {
  transform: scale(1.04);
  color: #fff;
}

.emergency-hotline-btn i {
  font-size: 13px;
}

.emergency-label-short {
  display: none;
}

@keyframes emergency-glow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8), 0 0 20px rgba(239, 68, 68, 0.45);
  }
  50% {
    box-shadow: 0 0 16px rgba(239, 68, 68, 1), 0 0 36px rgba(248, 113, 113, 0.75);
  }
}

.emergency-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.emergency-modal-overlay.is-open {
  display: flex;
}

.emergency-modal {
  width: min(460px, 100%);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
}

.emergency-modal-header {
  background: linear-gradient(135deg, #991b1b, #ef4444);
  color: #fff;
  padding: 22px 24px;
}

.emergency-modal-header h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 800;
}

.emergency-modal-header p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

.emergency-modal-body {
  padding: 24px;
}

.emergency-call-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 12px;
  animation: emergency-glow 1.4s ease-in-out infinite;
  cursor: pointer;
}

.emergency-call-now:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.emergency-end-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #0b1437;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
  cursor: pointer;
}

.emergency-call-status {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
}

.emergency-call-status.is-active {
  background: #ecfdf5;
  color: #047857;
}

.emergency-call-status.is-ended {
  background: #fee2e2;
  color: #991b1b;
}

.emergency-online-note {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 16px;
  text-align: center;
}

.emergency-form-group {
  margin-bottom: 14px;
}

.emergency-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #334155;
}

.emergency-form-group input,
.emergency-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font: inherit;
}

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

.emergency-submit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #0b1437;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.emergency-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.emergency-modal-header-wrap {
  position: relative;
}

.emergency-success {
  display: none;
  padding: 14px;
  border-radius: 10px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.emergency-success.is-visible {
  display: block;
}

@media (max-width: 768px) {
  .emergency-hotline-btn span.emergency-label-long {
    display: none;
  }

  .emergency-hotline-btn span.emergency-label-short {
    display: inline;
  }

  .emergency-hotline-btn {
    padding: 8px 12px;
  }
}
