.add-emergency-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #fff5f5;
  padding: 25px;
  border-radius: 12px;
  border: 2px solid #d9534f;
  box-shadow: 0 0 15px rgba(217, 83, 79, 0.6);
  animation: pulse-border 1.5s infinite;
}

/* Pulse effect for the form */
@keyframes pulse-border {
  0% {
    box-shadow: 0 0 15px rgba(217, 83, 79, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(217, 83, 79, 1);
  }
  100% {
    box-shadow: 0 0 15px rgba(217, 83, 79, 0.6);
  }
}

.add-emergency-form h2 {
  color: #a94442;
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.add-emergency-form label {
  display: block;
  color: #333;
  font-weight: bold;
  margin-bottom: 7px;
  text-transform: uppercase;
  font-size: 0.95em;
}

.add-emergency-form input[type='text'],
.add-emergency-form textarea,
.add-emergency-form select,
.add-emergency-form input[type='date'] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #555;
  transition:
    border 0.3s,
    background-color 0.3s;
}

.add-emergency-form input[type='text']:focus,
.add-emergency-form textarea:focus,
.add-emergency-form select:focus,
.add-emergency-form input[type='date']:focus {
  border-color: #a94442;
  background-color: #fff1f1;
  outline: none;
  box-shadow: 0 0 8px rgba(169, 68, 66, 0.6);
}

.add-emergency-form button {
  width: 100%;
  background-color: #d9534f;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition:
    background-color 0.3s,
    transform 0.1s ease-in-out;
}

.add-emergency-form button:hover {
  background-color: #c9302c;
  transform: scale(1.05);
}

.success-message,
.error-message {
  text-align: center;
  font-weight: bold;
  margin-top: 12px;
  text-transform: uppercase;
}

.success-message {
  color: #5cb85c;
  background-color: #f0fdf0;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #5cb85c;
}

.error-message {
  color: #d9534f;
  background-color: #fff1f1;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #d9534f;
}

.notification {
  background-color: #f39c12;
  color: #fff;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  margin-top: 15px;
  text-transform: uppercase;
  animation: blink 1.5s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.loader {
  text-align: center;
  color: #5bc0de;
  font-size: 1.2em;
  margin-bottom: 20px;
}

.error {
  color: #d9534f;
  font-size: 0.85em;
  margin-top: -10px;
  margin-bottom: 10px;
}

.emergencyVisitModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.emergencyVisitModal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: fadeIn 0.3s ease-in-out;
}

.emergencyVisitModal-content h3 {
  margin-bottom: 10px;
}

.emergencyVisitModal-content p {
  margin-bottom: 20px;
  color: #444;
}

.emergencyVisitModal-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.emergencyVisitModal-buttons button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Cancel button */
.emergencyVisitModal-buttons button:first-of-type {
  background-color: #6c757d !important;
  color: #fff !important;
}

.emergencyVisitModal-buttons button:first-of-type:hover {
  background-color: #5a6268;
}

/* Confirm button */
.emergencyVisitModal-buttons button:last-of-type {
  background-color: #0144aa !important;
  color: #fff !important;
}

.emergencyVisitModal-buttons button:last-of-type:hover {
  background-color: #014cbc;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
