*, *:before, *:after {
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #384047;
  background-image: url('../images/form2.png'); /* Replace with your image URL */
  background-size: cover; /* Ensures the image covers the entire background */
  background-position: center center; /* Centers the image */
  background-repeat: no-repeat; /* Prevents the image from repeating */
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.form-container {
  max-width: 350px; /* Further reduced max width */
  width: 50%;
  margin: 20px;
  padding: 15px;
  background-color: #f4f4f4; /* Keeps form container background color */
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.header {
  text-align: center;
  margin-bottom: 15px;
  position: relative;
}

.header img {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 90px; /* Increased the height of the image */
  width: auto;
  margin-right: 15px; /* Added space between the image and title */
}

.header h1 {
  font-size: 28px; /* Adjusted font size to match image */
  margin-left: 75px; /* Moved the title to the right to make space for the larger image */
  padding: 0;
}

form {
  margin-top: 15px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 18px;
}

input[type="text"], 
input[type="password"], 
input[type="date"], 
input[type="email"], 
input[type="tel"], 
input[type="number"], 
input[type="search"], 
input[type="url"], 
textarea, 
select {
  width: 100%;
  padding: 10px; /* Reduced padding for smaller inputs */
  margin-bottom: 20px;
  background-color: #e8eeef;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  color: #8a97a0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
}

input[type="radio"] {
  margin: 0 10px 0 0;
}

label.radio-label {
  display: inline-block;
  margin-right: 20px;
  font-weight: normal;
  color: #384047;
}

button {
  padding: 12px 30px; /* Adjusted button padding */
  background-color: #4bc970;
  color: #FFF;
  font-size: 16px;
  border: 1px solid #3ac162;
  border-radius: 5px;
  width: 100%;
  cursor: pointer;
  text-align: center;
}

button:hover {
  background-color: #3ac162;
}

fieldset {
  margin-bottom: 20px;
  border: none;
}

legend {
  font-size: 1.2em;
  margin-bottom: 10px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.number {
  background-color: #5fcf80;
  color: #fff;
  height: 25px;
  width: 25px;
  display: inline-block;
  font-size: 0.7em;
  margin-right: 4px;
  line-height: 25px;
  text-align: center;
  border-radius: 100%;
}

@media screen and (min-width: 480px) {
  .form-container {
      max-width: 100%;
  }
}

