body {
  font-family: "Nunito", sans-serif;
  color: #384047;
  display: flex;
  justify-content: center;
  padding: 10px;
  background: linear-gradient(135deg, #4567b2 20%, #8ab9ff 80%);
  margin: 0;
  height: 100vh;
  background-attachment: fixed;
}

form {
  margin: 10px auto;
  padding: 10px 20px;
  /* background: #f4f7f8; */
  border-radius: 8px;
  width: 100%;
  max-width: 1200px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #fff;
  font-size: 2.5rem;
  font-family: 'Source Sans Pro', sans-serif;
}

/* Form container as a grid layout */
.form-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

/* Card Styling */
.card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

legend {
  font-weight: bold;
  font-size: 1.2em;
  color: #333;
}

label {
  display: block;
  margin: 15px 0 5px;
}

.number {
  background-color: #2f579f;
  color: #fff;
  height: 30px;
  width: 30px;
  display: inline-block;
  font-size: 0.8em;
  margin-right: 4px;
  line-height: 30px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
  border-radius: 100%;
}

input,
select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

button[type="submit"] {
  display: block;
  width: 100%;
  padding: 12px;
  font-size: 1em;
  color: #fff;
  background-color: #2f579f;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin: 20px auto 0 auto;
}

button[type="submit"]:hover {
  background-color: #3c61a7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  form {
    padding: 15px;
  }
  
  /* Adjust field spacing for smaller screens */
  .card {
    padding: 15px;
  }
  
  button[type="submit"] {
    padding: 10px;
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5em;
  }

  .number {
    height: 25px;
    width: 25px;
    font-size: 0.7em;
    line-height: 25px;
  }
}


#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  background-color: rgba(255, 255, 255, 0.8);
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#error-message {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  background-color: rgba(255, 0, 0, 0.8);
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-family: Arial, sans-serif;
}
.spacer {
  padding: 15px;
}