/* CSS Document */

#dcalc * {
  box-sizing: border-box;
}

#dcalc {
  padding: 40px 40px;
  background-color: white;
  border: 1px solid black;
  border-radius: 4px;
  margin: 0 auto 30px;
  max-width: 600px;
  width: 100%;
}

.dcalc_amounts,
.dcalc_terms,
.dcalc_benefits,
.dcalc_cta {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1em;
}

.dcalc_button {
  flex-basis: 32%;
  text-align: center;
  padding: 1em;
  border: 1px solid #0044B5;
  border-radius: 4px;
}

.dcalc_terms {
  justify-content: center;
  margin-top: 40px;
}

.dcalc_terms .dcalc_button {
  flex-basis: 32%;
}

@media all and (max-width: 767px) {
  .dcalc_terms .dcalc_button, .dcalc_amounts .dcalc_button {
    flex-basis: 48%;
  }
}

.dcalc_payperiods {
  margin: 0.5em 0 1em;
}

.dcalc_results {
  justify-content: center;
}

.dcalc_results.active {
  min-height: 250px;
  transition: 0.5s;
  padding: 1em;
  margin-bottom: 1em;
  background-color: lightgray;
  border-radius: 4px;
}

.dcalc_results .dcalc_blurb {
  width: 100%;
  text-align: center;
  font-size: 24px;
  font-style: italic;
  font-weight: bolder;
  margin-bottom: 1em;
}

.dcalc_results .dcalc_benefits {
  width: 100%;
  justify-content: center;
}

.dcalc_benefits .dcalc_or {
  display: flex;
  flex-basis: 5%;
  align-items: center;
  text-align: center;
  font-style: italic;
  color: #555555;
}

.dcalc_results .dcalc_benefit {
  flex-basis: 25%;
  text-align: center;
}

.dcalc_benefit .dcalc_icon {
  display: inline-block;
  width: 64px;
  height: 96px;
  align-self: center;
  margin-bottom: 16px;
  font-size: 64px;
  color: #0044B5 ;
}
.dcalc_benefit .dcalc_icon svg {
  width: 100%;
  height: 100%;
}

.dcalc_benefit .dcalc_number {
  font-family: Impact, Haettenschweiler, "Franklin Gothic Bold", "Arial Black", sans-serif;
  font-size: 32px;
  margin-bottom: 16px;
}

#dcalc input[type="text"] {
  width: 100%;
  text-align: center;
  font-size: 18px;
  border: none;
  background-color: transparent;
}

.dcalc_button,
.dcalc_button input[type="text"] {
  cursor: pointer;
}

.dcalc_button:hover,
.dcalc_button:hover input[type="text"] {
  background-color: #0044B5C0;
  color: white;
  transition-property: background-color;
  transition-duration: 0.2s;
}

.dcalc_button.chosen,
.dcalc_button.chosen input[type="text"] {
  background-color: #0044B5;
  color: white !important;
}

/* free-form "Other" textbox is shown/hidden dynamically based on Pay mode */
.dcalc_button.other {
  /* controlled via JS, no static hide */
}

.dcalc_button.other input.dcalc_invalid {
  color: red !important;
}

.dcalc_agreement {
  width: 100%;
  border: 1px solid red;
  border-radius: 4px;
  padding: 0.5em;
  margin: 1em 0;
  font-size: smaller;
}

/* .dcalc_hidden { visibility: hidden; } */

.dcalc_bonus {
  text-align: center;
  font-style: italic;
  font-weight: bold;
  margin: 0.5em 0;
}

.dcalc_matching_text {
  text-align: center;
}


.loader {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
  margin: 15px auto;
  position: relative;
  left: -100px;
  box-sizing: border-box;
  color: #FFF;
  animation: shadowRolling 2s linear infinite;
}

@keyframes shadowRolling {
  0% {
    box-shadow: 0px 0 rgba(255, 255, 255, 0),
                0px 0 rgba(255, 255, 255, 0),
                0px 0 rgba(255, 255, 255, 0),
                0px 0 rgba(255, 255, 255, 0);
  }
  12% {
    box-shadow: 100px 0 white,
                0px 0 rgba(255, 255, 255, 0),
                0px 0 rgba(255, 255, 255, 0),
                0px 0 rgba(255, 255, 255, 0);
  }
  25% {
    box-shadow: 110px 0 white,
                100px 0 white,
                0px 0 rgba(255, 255, 255, 0),
                0px 0 rgba(255, 255, 255, 0);
  }
  36% {
    box-shadow: 120px 0 white,
                110px 0 white,
                100px 0 white,
                0px 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 130px 0 white,
                120px 0 white,
                110px 0 white,
                100px 0 white;
  }
  62% {
    box-shadow: 200px 0 rgba(255, 255, 255, 0),
                130px 0 white,
                120px 0 white,
                110px 0 white;
  }
  75% {
    box-shadow: 200px 0 rgba(255, 255, 255, 0),
                200px 0 rgba(255, 255, 255, 0),
                130px 0 white,
                120px 0 white;
  }
  87% {
    box-shadow: 200px 0 rgba(255, 255, 255, 0),
                200px 0 rgba(255, 255, 255, 0),
                200px 0 rgba(255, 255, 255, 0),
                130px 0 white;
  }
  100% {
    box-shadow: 200px 0 rgba(255, 255, 255, 0),
                200px 0 rgba(255, 255, 255, 0),
                200px 0 rgba(255, 255, 255, 0),
                200px 0 rgba(255, 255, 255, 0);
  }
}
