/* registration styling */

body {
  font-family: "Roboto", sans-serif;
}

html {
  height: 100%;
}

/* Bootstrap Overrides */
.alert {
  background-image: none;
}

.form-control {
  -webkit-appearance: none;
  border-color: var(--neutral-blue-grey-2);
  box-shadow: none;
  height: 42px;
  padding: 10px 10px;
}

.form-control:focus,
.has-error .form-control:focus {
  box-shadow: none;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-light-blue);
}

select.form-control {
  background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/PjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDUxMS45OTcgNTExLjk5NyIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTExLjk5NyA1MTEuOTk3OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZmlsbD0iIzY2NjY2NiIgZD0iTTUxMS4yMjgsMTM0LjY5OWMtMS42MTUtNC4wNTItNS41NDItNi42OTgtOS44OTYtNi42OThoLTQyLjY2N2MtMi43MjksMC01LjM1NCwxLjA0Mi03LjMzMywyLjkyN0wyNTUuOTk5LDMxNS45N0w2MC42NjUsMTMwLjkyOGMtMS45NzktMS44ODUtNC42MDQtMi45MjctNy4zMzMtMi45MjdIMTAuNjY1Yy00LjM1NCwwLTguMjgxLDIuNjQ2LTkuODk2LDYuNjk4Yy0xLjYyNSw0LjA0Mi0wLjYyNSw4LjY2NywyLjUyMSwxMS42NzdsMjQ1LjMzMywyMzQuNjY3YzQuMTI1LDMuOTM4LDEwLjYyNSwzLjkzOCwxNC43NSwwbDI0NS4zMzMtMjM0LjY2N0M1MTEuODUzLDE0My4zNjYsNTEyLjg1MywxMzguNzQxLDUxMS4yMjgsMTM0LjY5OXoiLz48L3N2Zz4=);
  background-repeat: no-repeat;
  background-position: calc(100% - 10px) 50%;
  background-size: 12px;
}

.control-label {
  font-style: normal;
  font-weight: 200;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0%;
}

.help-block {
  font-size: 13px;
  color: #a94442; /* color used from bootstrap for errors */
}

.info-block {
  margin-bottom: 0;
}

.hidden-input {
  left: -9999px;
  opacity: 0;
  position: absolute;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

/* Topbar */

.top-bar {
  align-items: center;
  background: var(--neutral-white);
  box-shadow: 0px 2px 4px 0px rgba(48, 51, 54, 0.20);
  display: flex;
  justify-content: space-between;
  padding: 20px;
  position: fixed;
  width: 100%;
  z-index: 999;
}

.top-bar.hidden {
  display: none;
}

/* Register */

.register {
  padding-top: 120px;
  padding-bottom: 60px;
}

.register.hide-topbar {
  padding-top: 60px;
}

/* Registration form */

.registration-form {
  background-color: var(--neutral-white);
  margin: 0 auto;
  max-width: 470px;
}

.registration-confirmation-form {
  background-color: var(--neutral-white);
  margin: 0 auto;
  max-width: 470px;
}

.registration-form label {
  color: var(--neutral-black);
  display: flex;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

/* Steps components */

.steps {
  align-self: center;
  display: flex;
  justify-content: center;
  margin: 20px auto;
  position: relative;
  width: calc(100% - 35px);
}

.steps-confirmation {
  align-self: center;
  display: flex;
  justify-content: center;
  margin: 20px auto;
  position: relative;
  width: calc(100% - 35px);
}

.steps.hidden {
  display: none;
}

.steps .main-step {
  align-items: center;
  background-color: var(--neutral-200);
  border-radius: 50px;
  border: 1px solid var(--neutral-blue-grey-2);
  color: var(--neutral-base);
  display: flex;
  height: 25px;
  justify-content: center;
  margin-right: 5px;
  width: 25px;
  z-index: 1;
}

.steps-confirmation .main-step {
  align-items: center;
  background-color: var(--neutral-200);
  border-radius: 50px;
  border: 1px solid var(--neutral-blue-grey-2);
  color: var(--neutral-base);
  display: flex;
  height: 25px;
  justify-content: center;
  margin-right: 5px;
  width: 25px;
  z-index: 1;
}

.steps .main-step:disabled {
  color: var(--neutral-base);
}

.main-step-wrapper {
  align-items: flex-start;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  margin-right: 10px;
  width: 175px;
}

.main-step-wrapper.last-step {
  margin-right: 0;
}

.main-step-separator {
  background: var(--primary-dark-blue);
  height: 1px;
  margin-left: 10px;
  width: 32px;
}

.main-step-separator.disabled {
  background: var(--neutral-base);
}

.main-step-title {
  align-items: center;
  color: var(--primary-dark-blue);
  display: flex;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.main-step-secondary-title {
  align-items: center;
  color: var(--neutral-black);
  display: flex;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.main-step-title.disabled,
.main-step-subtitle.disabled {
  color: var(--neutral-base);
}

.main-step-secondary-title.disabled,
.main-step-secondary-title.disabled {
  color: var(--neutral-base);
}

.main-step-subtitle {
  display: flex;
}

.steps .main-step.current {
  background-color: var(--primary-dark-blue);
}

.steps-confirmation .main-step.current {
  background-color: var(--primary-dark-blue);
}

.steps .main-step.current>span {
  color: var(--neutral-white);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  text-align: center;
}

.steps-confirmation .main-step.current>span {
  color: var(--neutral-white);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  text-align: center;
}

.steps .main-step.complete {
  background-color: var(--neutral-white);
  border: none;
}

.steps .main-step.complete:before {
  content: url('/assets/check-mark.svg');
  filter: invert(62%) sepia(65%) saturate(432%) hue-rotate(101deg) brightness(96%) contrast(87%);
  margin-left: 5px;
  margin-top: 5px;
  margin-right: 10px;
}

.steps .main-step.complete>span {
  display: none;
}

/* Substep container */

.substep {
  display: none;
  max-width: 470px;
  position: absolute;
  transform-style: preserve-3d;
  transform: translate3d(0, 0, 0);
}

.is-current {
  display: block;
  z-index: 1;
}

.footer {
  color: var(--neutral-black);
  font-size: 22px;
  font-weight: 500;
  line-height: 24px;
  font-style: normal;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 20px;
  width: 100%;
}

.footer .footer-content {
  display: block;
  text-align: center;
}

.footer .footer-link {
  color: var(--primary-cta-blue);
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
}

.steps-mobile {
  display: none;
}

/* Substep title */

.title-wrapper,
.mobile-title-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
}

.title-wrapper.center,
.mobile-title-wrapper.center {
  justify-content: center;
}

.mobile-title-wrapper {
  display: none;
}

.step-title {
  color: var(--neutral-black);
  font-size: 34px;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0em;
  line-height: 46px;
  margin-bottom: 16px;
  text-align: left;
  width: 100%;
}

.step-secondary-title {
  color: var(--neutral-black);
  font-size: 22px;
  font-style: medium;
  font-weight: 500;
  letter-spacing: 0em;
  line-height: 24px;
  text-align: center;
  width: 100%;
  margin-bottom: 0px;
}

.step-title.center {
  text-align: center;
}

.step-sub-title {
  color: var(--neutral-black);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0em;
  line-height: 24px;
  margin-bottom: 32px;
  margin-top: 8px;
  text-align: justify;
  width: 100%;
}

.button-text {
  font-size: 16px;
  font-weight: 500;
  font-style: Roboto;
  line-height: 24px;
  letter-spacing: 0px;
  text-align: center;
}

.step-sub-title.center {
  text-align: center;
}

/* Form buttons */

.step-submit-button {
  align-items: center;
  background: var(--primary-cta-blue);
  border: none;
  border-radius: 10px;
  color: var(--neutral-white);
  display: flex;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  line-height: 150%;
  margin: 5px 0;
  padding: 8px 24px;
  width: 100%;
}

.step-submit-button.disabled {
  background-color: var(--neutral-200);
  color: var(--neutral-base);
  cursor: default;
}

.confirmation-main-button {
  padding: 24px 32px;
  font-size: 18px;
  font-weight: bold;
}

.step-button-footer {
  color: var(--neutral-black);
  font-weight: 400;
  font-size: 14px;
  font-style: normal;
  line-height: 24px;
  text-align: center;
}

.step-button-footer.center {
  text-align: center;
}

.resend {
  background-color: var(--process-blue);
}

.previous-step-wrapper {
  align-items: center;
  display: flex;
  width: 100%;
}

.prev-btn {
  align-items: center;
  background-color: transparent;
  border: none;
  display: flex;
  height: 32px;
  justify-content: center;
  margin-right: 10px;
  padding: 2px;
  width: 32px;
}

.grayed-out {
  background-color: var(--neutral-dark-grey);
  cursor: default;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

.loader {
  display: none;
  border: 2px solid var(--neutral-white);
  border-radius: 50%;
  border-top: 2px solid transparent;
  width: 15px;
  height: 15px;
  -webkit-animation: spin 1.2s linear infinite;
  /* Safari */
  animation: spin 1.2s linear infinite;
}

/* Toggle field */

.toggle-container {
  display: flex;
  justify-content: center;
}

.toggle {
  background-color: var(--neutral-300);
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  position: relative;
}

.toggle::after {
  background-color: var(--primary-dark-blue);
  border-radius: 20px;
  content: "";
  height: calc(100% - 8px);
  left: 4px;
  position: absolute;
  top: 4px;
  transition: all 0.2s ease-in-out;
  width: calc(50% - 4px);
}

.toggle--left::after {
  transform: translateX(0);
}

.toggle--right::after {
  transform: translateX(100%);
}

.toggle--left .toggle__button:nth-child(1) {
  color: var(--neutral-white);
}

.toggle--right .toggle__button:nth-child(2) {
  color: var(--neutral-white);
}

.toggle__button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  outline: none;
  padding: calc(4px + 4px) calc(8px + 10px);
  text-align: center;
  z-index: 2;
}

/* Password field */

.password-icon {
  cursor: pointer;
  float: right;
  margin-top: -28px;
  margin-right: 10px;
}

.password-rule-wrapper {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  margin-top: 10px;
  justify-content: flex-start;
}

.password-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  margin-bottom: 5px;
}

.password-rule>.icon {
  width: 15px;
  height: 15px;
  margin-right: 5px;
  filter: invert(92%) sepia(9%) saturate(217%) hue-rotate(164deg) brightness(88%) contrast(88%);
}

.password-rule>.icon.valid {
  filter: invert(33%) sepia(73%) saturate(405%) hue-rotate(120deg) brightness(105%) contrast(87%);
}

/* Radio Field */

.radio-options-wrapper {
  display: flex;
  justify-content: flex-start;
}

.radio-option {
  align-items: center;
  display: flex;
  margin-right: 40px;
}

/* Bootstrap Radio button Override */
input[type=radio] {
  margin: 0 0 3px;
}

.radio-custom {
  cursor: pointer;
  height: 20px;
  opacity: 0;
  position: absolute;
  width: 20px;
}

.radio-custom+.radio-custom-label:before {
  background: var(--neutral-white);
  border: 2px solid var(--primary-light-blue);
  content: '';
  display: inline-block;
  height: 20px;
  margin-right: 10px;
  text-align: center;
  vertical-align: middle;
  width: 20px;
}

.radio-custom+.radio-custom-label:before {
  border-radius: 50%;
}

.radio-custom:checked+.radio-custom-label:before {
  background: var(--primary-light-blue);
  box-shadow: inset 0px 0px 0px 4px var(--neutral-white);
}

/* Plan card container */

.plan-card {
  align-items: flex-start;
  border-radius: 8px;
  border: 0.50px var(--neutral-base) solid;
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding: 16px;
  width: 100%;
}

.plan-card-title {
  align-items: flex-start;
  display: inline-flex;
  gap: 8px;
  justify-content: flex-start;
}

.plan-card-subtitle {
  align-self: stretch;
  color: var(--neutral-black);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  word-wrap: break-word;
}

.plan-card-value-container {
  align-items: baseline;
  display: flex;
  gap: 4px;
  justify-content: flex-start;
  width: 100%;
}

.plan-card-value {
  color: var(--neutral-black);
  font-size: 16px;
  font-weight: 700;
  height: 21px;
  line-height: 24px;
  word-wrap: break-word;
}

.plan-card-value-save {
  color: var(--secondary-magenta);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  word-wrap: break-word;
}

/* Select fields */

.select-hidden {
  padding-right: 10px;
}

.select {
  color: var(--neutral-dark-grey);
  cursor: pointer;
  display: inline-block;
  font-size: 14px;
  height: 40px;
  position: relative;
  width: 100%;
}

.select-styled {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: var(--neutral-white);
  padding: 10px 15px;
  transition: all 0.2s ease-in;
  height: 42px;
  border: 1px solid var(--neutral-blue-grey);
  border-radius: 4px;
  color: var(--neutral-dark-grey);
}

.select-styled:after {
  position: absolute;
  content: "";
  top: 12px;
  right: 15px;
  border: 2px solid transparent;
  box-sizing: border-box;
  height: 10px;
  width: 10px;
  border-style: solid;
  border-color: var(--neutral-black);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.select-styled.active:after {
  transform: rotate(225deg);
  top: 16px;
}

.select-options {
  background-color: var(--neutral-white);
  border-radius: 4px;
  border: 1px solid var(--neutral-blue-grey);
  display: none;
  left: 0;
  list-style: none;
  margin-top: 5px;
  max-height: 300px;
  overflow-y: auto;
  padding: 0;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 999;
}

.select-options>li {
  align-items: center;
  color: var(--neutral-black);
  display: flex;
  height: 35px;
  margin: 0;
  padding: 12px 0;
  text-indent: 15px;
}

.select-options>li:hover,
.select-options>li.is-selected {
  background: var(--neutral-200);
  color: var(--neutral-black);
}

.select-options>li&[rel="hide"] {
  display: none;
}

/* Agreement */

.agreement {
  color: var(--neutral-dark-grey);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.registration-form label.agreement-label {
  display: inline-block;
}

.contact-link,
.login-link {
  color: var(--primary-cta-blue);
  text-decoration: underline;
}

/* Mobile field */
.input-group {
  display: flex;
  align-items: center;
  width: 100%;
}

.input-group-text {
  align-items: center;
  background-color: var(--neutral-200);
  border-bottom-left-radius: 4px;
  border-right: none;
  border-top-left-radius: 4px;
  border: 1px solid var(--neutral-blue-grey-2);
  display: flex;
  font-size: 1.2rem;
  height: 42px;
  padding: 10px;
  width: 40px;
}

.flag-icon {
  height: auto;
  width: 20px;
}

/* MOBILE */

@media (max-width: 500px) {
  .register {
    padding-left: 0;
    padding-right: 0;
    padding-top: 75px;
  }

  .register.hide-topbar {
    padding-top: 0;
  }

  .steps {
    display: none;
  }

  .registration-form {
    padding: 10px;
  }

  .registration-confirmation-form {
    padding: 10px;
  }

  .step-title {
    font-size: 34px;
    line-height: 43px;
  }
  
  .step-sub-title {
    font-size: 23px;
    line-height: 31px;
  }

  .step-button-footer {
    font-size: 14px;
    line-height: 31px;
  }

}

@media (max-width: 450px) {
  .register {
    padding-left: 0;
    padding-right: 0;
    padding-top: 75px;
  }

  .register.hide-topbar {
    padding-top: 0;
  }

  .steps {
    display: none;
  }

  .registration-form {
    padding: 10px;
  }

  .registration-confirmation-form {
    padding: 10px;
  }

  .step-title {
    font-size: 30px;
    line-height: 38px;
  }
  
  .step-sub-title {
    font-size: 21px;
    line-height: 28px;
  }

  .step-button-footer {
    font-size: 14px;
    line-height: 28px;
  }
}

@media (max-width: 400px) {
  .register {
    padding-left: 0;
    padding-right: 0;
    padding-top: 75px;
  }

  .register.hide-topbar {
    padding-top: 0;
  }

  .steps {
    display: none;
  }

  .registration-form {
    padding: 10px;
  }

  .registration-confirmation-form {
    padding: 10px;
  }

  .step-title {
    font-size: 26px;
  }
  
  .step-sub-title {
    font-size: 18px;
    line-height: 25px;
  }

  .step-button-footer {
    font-size: 14px;
    line-height: 25px;
  }
}

@media (max-width: 360px) {
  .register {
    padding-left: 0;
    padding-right: 0;
    padding-top: 75px;
  }

  .register.hide-topbar {
    padding-top: 0;
  }

  .steps {
    display: none;
  }

  .steps-mobile {
    align-items: center;
    background-color: var(--process-blue);
    box-shadow: 0px 2px 4px 0px rgba(48, 51, 54, 0.20);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px 16px;
    width: 360px;
  }

  .steps-mobile.hidden {
    display: none;
  }

  .steps-mobile>.main-step-wrapper {
    color: var(--neutral-white);
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    width: 100%;
  }

  .steps-mobile>.main-step-next {
    color: var(--neutral-white);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
  }

  .mobile-title-wrapper {
    display: flex;
  }

  .mobile-title-wrapper+.title-wrapper {
    display: none;
  }

  .registration-form {
    padding: 10px;
  }

  .registration-confirmation-form {
    padding: 10px;
  }

  .step-title {
    font-size: 24px;
  }
  
  .step-sub-title {
    font-size: 16px;
    line-height: 25px;
  }

  .step-button-footer {
    font-size: 14px;
    line-height: 25px;
  }
}