/* Body */
body {
  background-color: #3b3573;
}

/* Registration Form */
#registration-form {
  background-color: #fff;
  padding: 36px;
  max-width: 600px;
  margin: 0 auto;
}

#form-subheader div {
  font-size: 28px;
  font-weight: lighter;
}

/* Fonts */
body,
input,
select,
textarea {
  font-family: Helvetica, Arial, sans-serif;
}

/* Form Information */
#form-information {
  display: flex;
  flex-wrap: nowrap;
}

#form-information input[type="radio"] {
  display: inline-block;
}

/* Toggle switch button section */
#switch {
  display: inline-block;
  margin-left: 65px;
  width: 240px;
  height: 40px;
}

.toggle {
  position: absolute;
  border: 2px solid #444249;
  border-radius: 20px;
  transition: border-color .6s ease-out;
  box-sizing: border-box;
}

.toggle.toggle-on {
  border-color: rgba(87, 157, 184, 0.4);
  transition: all .5s .15s ease-out;
}

.toggle-button {
  position: absolute;
  top: 3px;
  width: 130px;
  margin-left: 3px;
  margin-right: 3px;
  bottom: 3px;
  background-color: #3b3573;
  border-radius: 19px;
  cursor: pointer;
  transition: all .3s .1s, width .1s, top .1s, bottom .1s;
}

.toggle-on .toggle-button {
  top: 3px;
  width: 110px;
  bottom: 3px;
  right: 0px;
  border-radius: 19px;
  background-color: #3b3573;
  transition: all .2s .1s, right .1s;
}

.toggle-text-on {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 36px;
  text-align: right;
  margin-right: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  -webkit-user-select: none;
  /* Chrome/Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
  color: rgba(0, 0, 0, 0);
}

.toggle-on .toggle-text-on {
  color: #e4ebee;
  -webkit-transition: color .3s .15s;
  transition: color .3s .15s;
}

.toggle-text-off {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: 5px;
  line-height: 36px;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  color: #e4ebee;
  z-index: 1;
  -webkit-user-select: none;
  /* Chrome/Safari */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* IE10+ */
}

.toggle-on .toggle-text-off {
  color: rgba(0, 0, 0, 0);
  -webkit-transition: color .3s .15s;
  transition: color .3s .15s;
}


/* used for streak effect */
*/ .glow-comp {
  position: absolute;
  opacity: 0;
  top: 10px;
  bottom: 10px;
  left: 10px;
  right: 10px;
  border-radius: 6px;
  background-color: rgba(75, 122, 141, .1);
  box-shadow: 0 0 12px rgba(75, 122, 141, .2);
  -webkit-transition: opacity 4.5s 1s;
  transition: opacity 4.5s 1s;
}

.toggle-on .glow-comp {
  opacity: 1;
  -webkit-transition: opacity 1s;
  transition: opacity 1s;
}


/* Form Elements */
label {
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 5px;
  font-family: Arial, sans-serif;
  font-weight: lighter;
}

.form-column .input[type="text"],
input[type="tel"],
input[type="date"],
input[type="password"],
textarea {
  width: 100px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-bottom: 10px;
}

#new-student-fields,
#existing-student-fields {
  margin-bottom: 20px;
  margin-top: 20px;
}

#terms-and-conditions {
  margin-bottom: 20px;
  margin-top: 20px

}

#terms-and-conditions label {
  display: inline-block;
  vertical-align: middle;
}

#terms-and-conditions a {
  color: #0000ff;
  text-decoration: none;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 10px;
}

.form-column {
  width: 48%;
}

.form-column label {
  display: block;
  margin-bottom: 5px;
}

.form-column input,
.form-column select,
.form-column textarea {
  display: block;
  width: 90%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.form-column textarea {
  height: 80px;
}


.form-required {
  color: red;
}

.error-msg {
  color: red;
  font-size: 14px;
  }

/* Complex Container */
.complex_container {
  margin-left: 5px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  width: 500px;
  border-radius: 5px;
  border: 1px solid #e6e6e6;
  font-size: 25px;
}

.complex_label {
  flex: 1 100%;
}

.complex_item{
  border: 1px solid #7E7E7E;
  border-radius: 3px;
  flex: 1;
  max-width: 60px;
  height: 60px;
  text-align: center;
  appearance: none;
  padding-top: 5px;
  font-size: 25px;
  margin-bottom: 10px;
  }

/* Chrome,Safari,Edge,Opera  */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}
.complex_item span {
  margin-top: 12px;
  display: block;
}

#button {
  padding: 12px 20px;
  border: none;
  background-color: #5d588a;
  color: #fff;
  font: weight 34px;
  ;
  border-radius: 3px;
  width: 260px;
  transition: all 0.5s ease-in-out;
  height: 36px;
  letter-spacing: 1px;
  display: block;
  margin: 0 auto;
}

#button:hover {
  transform: scale(1.05);
  background-color: #3b3573;
  cursor: pointer;
}

@media (max-width: 767px) {
  /* Mobile styles */
  #registration-form {
    background-color: #fff;
    padding: 15px;
  } 
  .complex_container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    width: 325px;
    border-radius: 5px;
    border: 1px solid #E6E6E6;
    font-size: 25px;
  }
  .complex_item span {
    margin-top: 2px;
    display: block;
}
  .complex_item{
    border: 1px solid #7E7E7E;
    border-radius: 3px;
    flex: 1;
    max-width: 35px;
    height: 30px;
    text-align: center;
    appearance: none;
    padding-bottom: 5px;
    font-size: 25px;
    margin-bottom: 5px;
    }
}