* {
  box-sizing: border-box;
}

body {
  background-color: #f1f1f1;
}

#regForm {
  background-color: #ffffff;
  margin: 10px auto;
  font-family: Raleway;
  padding: 18px;
  width: auto;
  min-width: 300px;
}

h1 {
  text-align: center;  
}

input,select {
  padding: 20px;
  width: 335px;
  font-size: 17px;
  font-family: Raleway;
  border: 3px solid #aaaaaa;
}

/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}



button {
  background-color: #4CAF50;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 25px;
  font-family: Raleway;
  cursor: pointer;
  margin: 10px;
}

button:hover {
  opacity: 0.8;
}

#prevBtn {
  background-color: #bbbbbb;
}

/* Make circles that indicate the steps of the form: */
.step {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbbbbb;
  border: none;  
  border-radius: 50%;
  display: inline-block;
  opacity: 0.5;
}

.step.active {
  opacity: 1;
}

/* Mark the steps that are finished and valid: */
.step.finish {
  background-color: #4CAF50;
}
form .button-m{
  margin-top: 12px;
  line-height: 0;
}

form .button-m:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.agreement .req {
  color: #e00;
}

.agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 370px;
  margin: 25px auto 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  color: #333;
  cursor: pointer;
}

.agreement input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 2px 0 0;
  flex-shrink: 0;
  border: 2px solid #aaaaaa;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.agreement input[type="checkbox"]:checked {
  background: #025e01;
  border-color: #025e01;
}

.agreement input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}