/* Base styling */
body {
  font-family: sans-serif;
  padding: 2em;
  margin: auto;
  background: #fdfdfd;
  max-width: 700px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  background: #f0f4fa;
  padding: 1em 2em;
  border-bottom: 2px solid #ccc;
  margin-bottom: 2em;
  flex-wrap: wrap;
}

header img {
  height: 60px;
  margin-right: 20px;
}

header p {
  margin: 0;
  color: #555;
  font-size: 1em;
}

/* Form and inputs */
form {
  text-align: center;
}

fieldset {
  border: 1px solid #ccc;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 8px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

legend {
  font-weight: bold;
  font-size: 1.3em;
  margin-bottom: 1em;
}

/* Inputs */
textarea,
input[type="text"],
input[type="number"],
select {
  font-size: 1em;
  padding: 0.6em;
  width: 90%;
  max-width: 400px;
  height: auto;
  box-sizing: border-box;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  height: 120px;
  resize: vertical;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5em;
  transform: scale(1.2);
}

label {
  display: block;
  margin: 0.6em auto;
  font-size: 1em;
}

/* Buttons */
button {
  background: #1976d2;
  color: white;
  font-size: 1.1em;
  border: none;
  border-radius: 5px;
  padding: 12px 24px;
  cursor: pointer;
  margin-top: 1em;
}

button:hover {
  background: #145a9e;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 480px) {
  body {
    font-size: 17px;
    padding: 1em;
    max-width: 100%;
    margin: 0;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8em 1em;
  }

  header img {
    margin-bottom: 0.5em;
    height: 50px;
  }

  legend {
    font-size: 1.1em;
    text-align: center;
  }

  input[type="text"],
  input[type="number"],
  textarea,
  select {
    width: 100%;
    max-width: 100%;
  }

  button {
    padding: 10px 20px;
    font-size: 1em;
    width: 100%;
  }

  fieldset {
    padding: 1em;
    margin: 1em 0;
  }
}
