/* ----- FONTS ----- */

@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700');

@font-face {
  font-family: 'Morganite';
  src: url('fonts/Morganite-Book.eot');
  src: url('fonts/Morganite-Book.eot?#iefix') format('embedded-opentype'), url('fonts/Morganite-Book.woff2') format('woff2'), url('fonts/Morganite-Book.woff') format('woff'), url('fonts/Morganite-Book.ttf') format('truetype');
  font-weight: normal;
}

@font-face {
  font-family: 'Morganite';
  src: url('fonts/Morganite-Bold.eot');
  src: url('fonts/Morganite-Bold.eot?#iefix') format('embedded-opentype'), url('fonts/Morganite-Bold.woff2') format('woff2'), url('fonts/Morganite-Bold.woff') format('woff'), url('fonts/Morganite-Bold.ttf') format('truetype');
  font-weight: bold;
}

/* ----- /FONTS ----- */

/* GENERAL */

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
}

.no-display {
  display: none !important;
}

body {
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

*:focus {
  outline-color: lightskyblue;
}

/* SECTION WRAPPER */

header {
  background-color: #3a48a2;
}

.wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.wrapper h1::before {
  content: '';
  height: 6px;
  width: 50px;
  top: -32px;
  background-color: #939dff;
  position: relative;
  display: block;
}

section .wrapper {
  padding: 0 24px;
}

/* TYPOGRAPHY */

h1 {
  font-size: 122px;
  font-family: Morganite;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 1.5px;
  line-height: 100px;
  color: white;
}

h2 {
  color: white;
  display: inline-block;
  background-color: #888;
  padding: 11px 12px 2px;
  font-family: Morganite;
  font-size: 44px;
  border-radius: 2px;
  line-height: 38px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 32px 0;
}

h2.header {
  background-color: transparent;
  padding: 0;
  color: white;
  display: inline-block;
  font-family: Morganite;
  font-size: 59px;
  font-weight: normal;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 52px;
  margin: 0 0 40px;
}

form {
  margin-top: 32px;
}

form p {
  color: rgba(0, 0, 0, .87) !important;
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.4;
}

form p,
label[for="comfort"],
label[for="explain"] {
  margin-bottom: 2px;
}

label,
.label {
  color: rgba(0, 0, 0, .87) !important;
  display: block;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

input {
  display: block;
  margin-top: 10px;
  margin-bottom: 2px;
}

input+label {
  cursor: pointer;
  display: inline;
  font-size: 14px;
  line-height: 20px;
}

input[disabled="disabled"]+label {
  opacity: .5;
}

/* HEADER */

header {
  position: relative;
  padding: 56px 24px 4px;
  color: #fff;
}

/* SECTION */

section {
  background: #ffffff;
  padding: 20px 0 50px;
  flex: 1 0 auto;
}

section p {
  color: rgba(0, 0, 0, .87);
  line-height: 1.4;
}

/* FORM STYLES */

.input-wrap {
  margin-bottom: 10px;
}

select {
  display: block;
  margin-bottom: 32px;
  padding-left: 8px;
  -webkit-appearance: none;
}

input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
  display: inline-block;
  margin-right: 5px;
  vertical-align: text-bottom;
}

label[for="comfort"],
label[for="explain"] {
  display: block;
  margin-bottom: 20px;
  font-family: 'Libre Baskerville', serif;
  font-size: 18px;
  line-height: 1.6;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="tel"],
textarea {
  -webkit-appearance: none;
  width: 100%;
  max-width: 400px;
  box-sizing: border-box;
  padding: 6px;
  font-size: 15px;
  border: 1px solid #97b2c3;
  border-radius: 4px;
  margin-bottom: 32px;
}

/* #parent_address {
  width: 528px;
} */

.input-wrap.select-box {
  border: 1px solid #97b2c3;
  border-radius: 4px;
  max-width: 400px;
  width: 100%;
  height: 32px;
  padding: 0;
  margin-bottom: 32px;
}

.input-wrap.select-box.grade-select {
  margin-top: 8px;
  /*width: 528px;*/
}

input[type="date"],
input[type="time"] {
  -webkit-appearance: none;
  border: none;
  border: 1px solid #97b2c3;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 15px;
  letter-spacing: 0.5px;
  line-height: 24px;
  height: 32px;
  margin-bottom: 32px;
  max-width: 400px;
  padding: 0 10px;
  width: 100%;
}

/* .input-wrap.select-box:hover {
  background: #ede7f6;
} */

.input-wrap.select-box:hover select {
  /*    color: #fff;    */
}

textarea {
  min-height: 100px;
}

select {
  border: none;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 13px;
  letter-spacing: 0.5px;
  height: 32px;
  width: 100%;
  max-width: 400px;
}

select:hover {
  cursor: pointer;
}

.submit-btn-wrapper {
  position: relative;
}

input[type="submit"] {
  -webkit-appearance: none;
  display: block;
  margin: 80px auto 40px;
  width: 50%;
  font-family: Morganite;
  font-weight: bold;
  background: #3475ec;
  color: #fff;
  font-size: 48px;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  padding: 16px 0 6px;
}

input[type="submit"]:not([disabled]):hover {
  background: #2b65ce;
  cursor: pointer;
}

input[type="submit"][disabled] {
  cursor: default;
  opacity: .5;
}

/* https://codepad.co/snippet/eS0e7ZBE */

input[type="date"]::before {
  content: attr(data-placeholder);
  width: 100%;
}

/* hide our custom/fake placeholder text when in focus to show the default
 * 'mm/dd/yyyy' value and when valid to show the users' date of birth value.
 */

input[type="date"]:focus::before,
input[type="date"]:valid::before {
  display: none
}

.radio-form,
.checkbox-form {
  margin-bottom: 32px;
}

.inline-group {
  display: flex;
  margin-top: 8px;
  margin-bottom: 32px;
  position: relative;
}

input.inline-input {
  display: inline-block;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

input.inline-input.existing-info-email {
  width: 320px;
}

button.inline-button {
  margin-left: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: #3475ec;
  letter-spacing: .3px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  height: 32px;
  border-radius: 4px;
  border: none;
  min-width: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

button.inline-button.disabled,
button.inline-button.final-disabled {
  cursor: default;
  opacity: .5;
  pointer-events: none;
}

div.disabled button.inline-button:not(.disabled):hover {
  background: #3475ec;
  cursor: default;
}

button.inline-button:not(.disabled):not(.final-disabled):hover {
  background: #2b65ce;
  cursor: pointer;
}

button.inline-button .spinning-loader {
  display: none;
  transform: scale(.64);
  top: auto;
}

button.inline-button.disabled .spinning-loader {
  background-color: transparent;
  display: flex;
  min-height: 0;
}

button.inline-button.disabled .btn-label {
  display: none;
}

button.inline-button .spinning-loader>div {
  border: 3px solid #fff;
  border-bottom-color: transparent;
}

.description {
  color: rgba(0, 0, 0, .7);
  font-size: 13px;
  margin: 0 0 4px;
  line-height: 1.4;
}

.description ul {
  margin: 8px 0;
  padding-left: 32px;
}

.agreement {
  margin-bottom: 30px;
}

.agreement label {
  font-size: 13px;
}

table th,
table td {
  text-align: right;
}

tr.border-bottom th,
tr.border-bottom td {
  border-bottom: 1px solid #999;
  height: 24px;
  font-size: 14px;
  padding: 8px 0;
}

.tuition-description {
  font-size: 13px;
  line-height: 1.4;
  padding-top: 12px;
}

.table-label,
.subtotal-label {
  font-size: 18px;
}

.total-description {
  color: #444;
  font-size: 14px;
  line-height: 1.6;
  margin-left: 12px;
  white-space: pre-line;
}

.tuition-info,
.subtotal {
  background-color: #efefef;
  padding: 20px;
  border-radius: 2px;
}

.subtotal {
  margin: 6px 0 24px;
  padding: 16px 20px;
}

.tuition-info table {
  border-collapse: collapse;
  font-size: 15px;
  width: 100%;
}

.msg-proceed {
  line-height: 1.4;
  margin: 48px 0 -24px;
}

.msg-not-found {
  margin-bottom: 32px;
}

.msg-not-found p {
  color: #db4437 !important;
}

.msg-already-registered p {
  color: #0F9D58 !important;
}

.error {
  position: absolute;
  top: 34px;
  font-size: 13px;
  background-color: #db4437;
  color: white;
  padding: 3px 8px;
  border-radius: 2px;
}

.msg-can-pull.disabled,
.msg-enter-code.disabled,
.msg-existing.disabled,
.existing-or-not.disabled {
  opacity: .5;
}

.student-header {
  display: flex;
  align-items: center;
}

.btn-remove,
.btn-add {
  position: relative;
  margin-left: 54px;
  border: 1px solid #888;
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  color: rgba(0, 0, 0, .64);
  background-color: #eaeaea;
}

.btn-remove:hover,
.btn-add:hover {
  background-color: #ddd;
}

.btn-remove::before,
.btn-add::before {
  content: '';
  position: absolute;
  width: 32px;
  height: 0;
  top: 15px;
  left: -44px;
  border: .5px dashed #666;
}

.section1 {
  margin-bottom: 48px;
}

.section2 {
  opacity: 1;
  transition: opacity .6s ease-in-out .2s;
}

.student1,
.student2 {
  opacity: 1;
  transition: opacity .6s ease-in-out;
}

.section2.transparent,
.student1.transparent,
.student2.transparent {
  opacity: 0;
  transition: opacity 0s;
}

.add {
  margin-bottom: 56px;
}

.add h2 {
  opacity: .5;
}

.section0 {
  margin-bottom: 36px;
}

.section0 p {
  font-size: 16px;
}

.req::after {
  content: '*';
  color: #db4437;
  font-size: 15px;
  margin-left: 4px;
  font-weight: 700;
}

footer {
  margin: 0 auto;
  color: rgba(0, 0, 0, .87);
  width: 100%;
  bottom: 0;
  height: 40px;
  font-size: 13px;
  left: 0;
  right: 0;
  background: #e0e0e0;
  padding: 0 24px;
  line-height: 40px;
  box-sizing: border-box;
}

footer b {
  font-weight: 500;
}

.maintenance {
  margin-top: 40px;
}

.warning {
  color: #025780;
}

.warning b {
  font-weight: 500;
}

.strong-warning {
  color: #DB4437 !important;
}

.prog-indent {
  display: inline-block;
  line-height: 24px;
  margin-left: 24px;
}

.spinning-loader {
  top: 18%;
  background-color: white;
  display: flex;
  justify-content: center;
  flex-grow: 1;
  min-height: 140px;
  position: relative;
}

.spinning-loader>div:first-child {
  border-radius: 100%;
  margin: 2px;
  border: 3px solid #3a48a2;
  border-bottom-color: transparent;
  height: 26px;
  width: 26px;
  background: 0 0 !important;
  display: inline-block;
  -webkit-animation: rotate .75s 0s linear infinite;
  animation: rotate .75s 0s linear infinite;
}

@media screen and (max-width: 767px) {
  header {
    padding: 46px 24px 4px;
  }

  h1 {
    font-size: 114px;
    margin-bottom: 4px;
  }

  .wrapper h1::before {
    width: 46px;
    height: 6px;
    top: -24px;
  }

  h2.header {
    margin-top: 4px;
  }
}

@media screen and (max-width: 359px) {
  header {
    padding: 36px 20px 0;
  }

  h1 {
    font-size: 98px;
    line-height: 85px;
    margin-bottom: 0;
  }

  .wrapper h1::before {
    width: 40px;
    height: 5px;
    top: -20px;
  }

  h2 {
    font-size: 38px;
    line-height: 36px;
  }

  h2.header {
    font-size: 51px;
    letter-spacing: 1.16px;
  }

  .btn-remove,
  .btn-add {
    margin-left: 30px;
  }

  .btn-remove::before,
  .btn-add::before {
    width: 12px;
    left: -22px;
  }

  section .wrapper {
    padding: 0 20px;
  }

  footer {
    padding: 0 20px;
  }
}

@keyframes rotate {
  0% {
    -webkit-transform: rotate(0) scale(1);
    transform: rotate(0) scale(1);
  }

  50% {
    -webkit-transform: rotate(180deg) scale(1);
    transform: rotate(180deg) scale(1);
  }

  100% {
    -webkit-transform: rotate(360deg) scale(1);
    transform: rotate(360deg) scale(1);
  }
}

.spinning-loader.submit {
  display: none;
  position: absolute;
  top: 17px;
  left: 47%;
  background-color: transparent;
  min-height: 0;
  transform: scale(1.2);
}

.spinning-loader.submit>div {
  border: 3px solid white;
  border-bottom-color: transparent;
}

input[type="submit"][disabled]+.spinning-loader.submit {
  display: block;
}

.msg-new-students-only.disabled {
  opacity: .5;
}

.info-box {
  background-color: #f5f6ff;
  border-radius: 2px;
  margin-bottom: 28px;
  padding: 24px 28px;
}

.info-box .info-grp:first-child {
  margin-bottom: 28px;
}