/* Base styles — all screens */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  margin: 0;
  padding: 20px;
}

form {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h2, h3 {
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin: 10px 0 5px;
  font-size: 16px;
}

input[type="text"],
select,
input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
}

input[type="checkbox"] {
  transform: scale(1.3);
  margin-right: 10px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

input[type="submit"] {
  width: 100%;
  padding: 15px;
  background: darkgreen;
  color: #fff;
  font-size: 18px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

input[type="submit"]:hover {
  background: #056608;
}

/* ✅ Mobile: up to 480px */
@media (max-width: 480px) {
  body { padding: 10px; }
  form { padding: 15px; }
  label, .checkbox-label { font-size: 16px; }
  input[type="text"],
  select,
  input[type="date"] { font-size: 16px; }
  input[type="submit"] { font-size: 18px; }
}

/* ✅ Large Mobile / Phablet: up to 600px */
@media (max-width: 600px) {
  form { padding: 18px; }
  label, .checkbox-label { font-size: 17px; }
}

/* ✅ Tablets: up to 768px */
@media (max-width: 768px) {
  form { padding: 20px; }
  input[type="text"],
  select,
  input[type="date"] { font-size: 18px; }
}

/* ✅ Small Laptops: up to 992px */
@media (max-width: 992px) {
  form { max-width: 90%; }
}
