* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  max-width: 560px;
  margin: 60px auto;
  padding: 40px;
  background: linear-gradient(135deg, #eef2f7 0%, #dde7f0 100%);
  min-height: 100vh;
}

h1 {
  color: #12293f;
  text-align: center;
  font-size: 2.4em;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

body > p {
  text-align: center;
  color: #5a6b7d;
  font-size: 15px;
  margin-bottom: 25px;
}

textarea {
  width: 100%;
  height: 110px;
  padding: 14px;
  font-size: 15px;
  font-family: 'Segoe UI', Arial, sans-serif;
  border: 2px solid #e1e8ef;
  border-radius: 12px;
  background: #ffffff;
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

textarea:focus {
  outline: none;
  border-color: #2c5f8a;
  box-shadow: 0 0 0 4px rgba(44, 95, 138, 0.12);
}

textarea::placeholder {
  color: #a3b1bf;
}

button {
  width: 100%;
  padding: 15px;
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.3px;
}

button[onclick="checkSymptoms()"] {
  background: linear-gradient(135deg, #12293f 0%, #2c5f8a 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(18, 41, 63, 0.25);
}

button[onclick="checkSymptoms()"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 41, 63, 0.35);
}

button[onclick="startVoiceInput()"] {
  background: #ffffff;
  color: #12293f;
  border: 2px solid #d7e0e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

button[onclick="startVoiceInput()"]:hover {
  border-color: #2c5f8a;
  background: #f5f9fc;
}

button:active {
  transform: translateY(0px) scale(0.98);
}

#result {
  margin-top: 22px;
  padding: 20px;
  border-radius: 14px;
  font-size: 15.5px;
  line-height: 1.6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

#map {
  height: 260px;
  border-radius: 14px;
  margin-top: 18px;
  display: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  border: 3px solid #ffffff;
  animation: slideIn 0.4s ease-out;
}