* {
  box-sizing: border-box;
}

body {
  color: #fff;
  margin: 0;
}

#regForm {
  margin: 0 auto;
  padding: 40px;
  width: 70%;
  min-width: 300px;
  max-width: 500px;
}

h1 {
  text-align: center;  
  font-size: 5vw;
}

p:has(input:disabled) { display:none; }

p:has(input:focus) > span {
  transition: all .3s ease-in;
  color: orange;
}

p:has(input:not(:placeholder-shown)) > span {
  transition: all .3s ease-in;
  color: #fff;
}

::placeholder {
  color: orange;
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Edge 12 -18 */
  color: orange;
}
span {
  color: #aaa;
}
input {
  padding: 10px;
  width: 100%;
  font-size: 17px;
  border: 1px solid #aaaaaa;
  background-color: #33333350;
  border-radius: 5px;
  color: #fff;
}

input[type="radio"] {
    width: 30px;
}
input[type="checkbox"] {
    width: 30px;
}
input:disabled {
    display:none; 
    opacity: 0; 
}
/* Mark input boxes that gets an error on validation: */
input.invalid {
  background-color: #ffdddd;
}

/* Hide all steps by default: */
.tab {
  display: none;
  font-size: 3vw;
}

button {
  background-color: #04AA6D;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 17px;
  cursor: pointer;
}

button:hover {
  opacity: 0.8;
}

#prevBtn {
  background-color: #bbbbbb;
  float:left;
}

#nextBtn {
  float: right;
}

/* 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: #04AA6D;
}

@media screen and (min-width: 801px) {
  h1 {
    font-size: 2em;
  }
  h2 {
    font-size: 1.2em;
  }
  .tab {
    font-size: 1.2em;
  }
}