/* Estilos generales */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 20px;
  color: #333;
}

form {
  background-color: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #2c3e50;
}

fieldset {
  border: none;
  margin-bottom: 25px;
}

legend {
  font-weight: bold;
  margin-bottom: 10px;
  color: #34495e;
}

label {
  display: block;
  margin-bottom: 12px;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
canvas {
  width: 100%;
  padding: 10px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 8px;
}

button[type="submit"] {
  background-color: #27ae60;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: block;
  margin: 20px auto 0;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #219150;
}

.g-recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  form {
    padding: 20px;
  }

  input,
  select,
  canvas {
    font-size: 16px;
  }

  button[type="submit"] {
    width: 100%;
  }
}

@media (max-width: 480px) {
  label {
    font-size: 14px;
  }

  legend {
    font-size: 16px;
  }

  h1 {
    font-size: 20px;
  }
}