/* --- Responsive Survey Style (v1.1, optimized for speed) --- */
html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background-color: #f8f9fa;
  color: #333;
}

/* Container chính */
.container {
  background: #fff;
  max-width: 480px;
  margin: 20px auto;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Tiêu đề */
h2 {
  text-align: center;
  color: #222;
  margin-top: 0;
  font-size: 1.5rem;
}
/* Logo bệnh viện */
.logo {
  display: block;
  margin: 0 auto 15px auto;
  max-width: 120px;
  height: auto;
  border-radius: 8px;        /* Bo tròn nhẹ góc logo */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Đổ bóng nhẹ */
}

/* Logo responsive trên điện thoại */
@media (max-width: 600px) {
  .logo {
    max-width: 90px;
    margin-bottom: 10px;
  }
}

/* Nhãn và input */
label {
  font-weight: 600;
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Nút gửi */
button {
  width: 100%;
  padding: 12px;
  margin-top: 18px;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  background-color: #007bff;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}

button:hover {
  background-color: #0069d9;
}

/* Thông báo cảm ơn */
.thankyou {
  text-align: center;
  color: #28a745;
  font-size: 18px;
  font-weight: 600;
  margin-top: 10px;
}

/* Bảng (nếu có dùng trong khảo sát mở rộng) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 15px;
}
th, td {
  border: 1px solid #ddd;
  padding: 6px;
  text-align: center;
}
th {
  background-color: #f2f2f2;
}

/* Responsive cho điện thoại */
@media (max-width: 600px) {
  body {
    background-color: #fefefe;
  }
  .container {
    margin: 10px;
    padding: 15px;
    box-shadow: none;
    border-radius: 8px;
  }
  h2 {
    font-size: 1.3rem;
  }
  button {
    font-size: 16px;
  }
}
