/* Global styles */
body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  margin-bottom: 100px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.submit-button {
  width: 100px;
  float: left;
  text-align: center;
}

/* Form styles */
.CustomHtmlSignupForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}

fieldset {
  border: none;
  margin-bottom: 30px;
}

legend {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
}

input[type="text"],
input[type="password"],
textarea,
select {
  width: 80%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 40px;
  font-size: 14px;
}

input + span {
  display: block;
  margin-top: -30px;
  margin-bottom: 40px; 
  font-size: 0.8em;
  color: #666;
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 10px;
}

input[type="submit"] {
  background-color: #4caf50;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

input[type="submit"]:hover {
  background-color: #45a049;
}

.error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
  padding: 15px;
  font-style: italic;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Additional styles and layout adjustments */
.SignupForm {
  display: grid;
  gap: 20px;
}

.SignupForm div {
  margin-top: 20px;
}

.SignupForm label {
  display: inline-block;
}

.SignupForm input[type="radio"],
.SignupForm input[type="checkbox"] {
  display: inline;
}

.SignupForm span {
  font-size: 14px;
  color: #777;
}

.clear {
  clear: both;
}

.FormMessage {
  color: #a94442;
  margin-top: 20px;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .CustomHtmlSignupForm input[type="text"],
  .CustomHtmlSignupForm input[type="password"],
  .CustomHtmlSignupForm textarea,
  .CustomHtmlSignupForm select {
    width: 100%;
  }
}



/* Form styles */
.CustomHtmlSignupForm {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.CustomHtmlSignupForm label {
  display: block;
}

.CustomHtmlSignupForm label.error {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
  padding: 1px 20px 1px 20px;
  font-style: italic;
}



.radio-option {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.radio-option input[type="radio"] {
  transform: scale(1.5);
}
