/* =========================================
   EMERGENCY PAGE STYLES
   ========================================= */

:root {
  --color-danger: #dc3545; /* Red for Emergency */
  --color-dark: #333;
  --color-light: #f8f9fa;
  --white: #ffffff;
}

/* --- 1. Hero Section --- */
.em-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://img.freepik.com/free-photo/ambulance-car-street_23-2150893903.jpg"); /* Replace with Ambulance Image */
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  text-align: center;
  color: var(--white);
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid var(--color-danger);
  color: #ff6b6b;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.blink-dot {
  width: 10px;
  height: 10px;
  background-color: var(--color-danger);
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    opacity: 0.5;
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

.em-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.em-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-emergency {
  background-color: var(--color-danger);
  color: var(--white);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.btn-ambulance {
  background-color: var(--white);
  color: var(--color-dark);
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
}

.btn-ambulance:hover {
  background-color: #eee;
}

/* Pulse Animation for Call Button */
.pulse-animation {
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* --- 2. Services Grid --- */
.em-services {
  padding: 80px 0;
  background-color: var(--white);
}

.section-heading {
  margin-bottom: 50px;
  color: var(--color-dark);
  font-size: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.em-card {
  padding: 30px;
  border-radius: 15px;
  background: var(--color-light);
  text-align: center;
  transition: 0.3s;
  border: 1px solid #eee;
}

.em-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
  width: 70px;
  height: 70px;
  background: #ffe3e3;
  color: var(--color-danger);
  font-size: 1.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.em-card h3 {
  margin-bottom: 15px;
  color: var(--color-dark);
}

/* --- 3. Split Section (Form & FAQ) --- */
.em-split-section {
  padding: 80px 0;
  background-color: #fff5f5; /* Light Red tint */
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

/* Form Styles */
.ambulance-box {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--color-danger);
}

.ambulance-box h3 {
  color: var(--color-danger);
  margin-bottom: 10px;
}

.em-form .form-group {
  margin-bottom: 15px;
}

.em-form input,
.em-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--color-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.btn-submit:hover {
  background: var(--color-danger);
}

/* Accordion Styles */
.acc-item {
  background: var(--white);
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
}

.acc-header {
  padding: 15px 20px;
  background: var(--white);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--color-dark);
}

.acc-body {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fafafa;
  color: #555;
  font-size: 0.95rem;
}

.acc-item.active .acc-body {
  padding: 15px 20px;
  max-height: 200px; /* Adjust if content is long */
}

.acc-item.active .acc-header i {
  transform: rotate(45deg);
  transition: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .em-title {
    font-size: 2.5rem;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
}
