/* Reset box-sizing for all elements */
* {
  box-sizing: border-box;
}

/* Body styling */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f5f1;
  margin: 0;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  color: #333;
}

/* Form container */
form#survey-form {
  background: #fff;
  max-width: 500px;
  width: 100%;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

/* Title */
#title {
  text-align: center;
  color: #b7410e;
  margin-bottom: 5px;
}

/* Description paragraph */
#description {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

/* Labels */
label,
legend {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

/* Fieldset styling */
fieldset {
  border: none;
  padding: 0;
  margin-top: 15px;
}

/* Inputs, select, textarea */
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1.8px solid #c7c4c0;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  resize: vertical;
}

/* Focus style */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #b7410e;
  box-shadow: 0 0 6px #f3c59f;
}

/* Radio and checkbox labels inline */
fieldset label {
  display: inline-block;
  margin-right: 15px;
  font-weight: normal;
  cursor: pointer;
  user-select: none;
}

/* Inputs radio and checkbox spacing */
input[type="radio"],
input[type="checkbox"] {
  margin-right: 6px;
  cursor: pointer;
}

/* Textarea min height */
textarea {
  min-height: 80px;
}

/* Submit button */
#submit {
  margin-top: 25px;
  background-color: #b7410e;
  border: none;
  color: white;
  padding: 12px 18px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

#submit:hover {
  background-color: #9e360b;
}

/* Responsive */
@media (max-width: 540px) {
  form#survey-form {
    padding: 20px;
  }
}

