* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --red: #e63946;
  --dark: #1d1d2e;
  --light: #f8f9fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
  background: var(--light);
  color: var(--dark);
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--red);
}

.register-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.register-btn:hover {
  opacity: 0.85;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, #1d1d2e, #e63946);
  color: white;
  text-align: center;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero h1 span {
  color: #ffd166;
}

.hero p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 36px;
}

.search-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-bar select,
.search-bar button {
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.search-bar select {
  min-width: 200px;
  background: white;
  color: var(--dark);
}

.search-bar button {
  background: #ffd166;
  color: var(--dark);
  transition: opacity 0.2s;
}

.search-bar button:hover {
  opacity: 0.85;
}

/* SECTIONS */
.section {
  padding: 60px 40px;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--dark);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}

.blood-badge {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
  margin-right: 4px;
}

.available {
  color: #2ecc71;
  font-weight: 600;
}

.unavailable {
  color: #e63946;
  font-weight: 600;
}

/* CALL BUTTON */
.call-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: #2ecc71;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.call-btn:hover {
  opacity: 0.85;
}

/* MAP */
#map-container {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
}

/* ADVICE CARD */
.advice-card {
  background: white;
  border-left: 4px solid #e63946;
  border-radius: 12px;
  padding: 24px;
  max-width: 600px;
  box-shadow: var(--shadow);
}

.advice-card h3 {
  margin-bottom: 12px;
  color: var(--red);
}

.advice-card p {
  line-height: 1.8;
  color: #444;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-box h3 {
  font-size: 22px;
  color: var(--dark);
}

.modal-box input,
.modal-box select {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
}

.modal-box button {
  padding: 12px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.close-btn {
  background: #eee !important;
  color: var(--dark) !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .section {
    padding: 40px 20px;
  }
}