@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap");

p {
  margin: 0;
  padding: 0;
}

/* Log-in block in the top of registration page  */
.registration-cta {
  display: flex;
  padding-top: 20px;
  padding-right: 28px;
  justify-content: flex-end;
}

.registration-cta span {
  font-size: 14px;
  font-weight: bold;
  color: #0a5a74;
}

.registration-cta a {
  color: #0a5a74;
  text-decoration: none;
}

/* Content block containing registration window */
.registration-block {
  width: 568px;
  min-height: 255px;
  box-shadow: 0 2px 36px 0 rgb(0 0 0 / 13%);
  margin: 48px auto 24px;
  background-color: #ecf4ff;
}

/* Header of registration window */
.registration-block__header {
  background-color: transparent;
  padding: 20px 8px 8px;
  text-align: center;
}

.registration-block__header h3 {
  font-size: 18px;
  letter-spacing: -0.55px;
  color: #056fff;
  margin: 0;
}

.registration-block__header span {
  font-family: Quicksand, sans-serif;
  padding: 0;
  margin: 8px 0 0 0;
  font-size: 11px;
  color: #056fff;
}

/* Steps describing registration progress */
.registration-steps {
  display: flex;
  padding: 0;
  margin: 12px 0 0 0;
  justify-content: center;
  list-style: none;
}

.registration-step {
  position: relative;
  margin-right: 56px;
  width: 25px;
  height: 25px;
  border: 1px #056fff solid;
  border-radius: 100%;
}

.registration-step:after {
  content: "";
  position: absolute;
  width: 42px;
  height: 2px;
  background-color: #056fff;
  left: 32px;
  top: 12px;
}

.registration-step:last-child {
  margin-right: 0;
}

.registration-step:last-child:after {
  display: none;
}

.registration-step__wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
}

.registration-step.active {
  background-color: #056fff;
}

.registration-step__number {
  margin-top: 3px;
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #056fff;
}

.registration-step.active .registration-step__number {
  color: #FFFFFF;
}


.registration-step.finished a:before {
  content: "";
  width: 24px;
  height: 24px;
  background: 4px 6px no-repeat url(../Images/registration/check.svg);
}

.registration-step.finished .registration-step__number {
  display: none;
}

.registration-step__title {
  margin-top: 6px;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  font-weight: bold;
  color: #056fff;
}

/* Form that contain fields, checkboxes, buttons etc */
.registration-form {
  box-sizing: content-box !important;
  max-width: 320px;
  margin: 48px auto 0;
  padding: 0 24px;
}

/* Button */
.registration-button {
  width: 100% !important;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 12px 0 !important;
  background: #056fff;
  margin-top: 12px;
  font-weight: bold;
  font-size: 14px;
}

.registration-button:disabled{
  opacity: 0.5;
  pointer-events: none;
}

.registration-button:hover {
  background: #056fff !important;
  filter: contrast(0.8);
}

.registration-button:active{
  background: #056fff !important;
  filter: contrast(0.6);
}

.registration-field {
  margin-bottom: 12px;
}

/* Wrapper for individual registration form elements */
.registration-field > label {
  display: block;
  margin-bottom: 2px;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #39363a;
}

.registration-field > label span{
  font-weight: normal;
}

.registration-field .field_error_msg {
  margin-top: 4px;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: #f44336;
  display: block;
}

.registration-field .label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: Quicksand, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.registration-field .label span{
  font-size: 11px;
  font-weight: normal;
  letter-spacing: -0.18px;
  color: #39363a;
}

.registration-field .label label {
  color: #000000;
}

.registration-field .label a {
  color: #000000;
  text-decoration: none;
}

.registration-field.checkbox {
  margin-top: 24px;
}

.registration-field.checkbox span {
  margin-top: 8px;
}

.registration-field.checkbox label {
  display: flex;
  align-items: flex-start;
}

/* Input field for text and password */
.registration-input {
  position: relative;
  width: 100%;
}

.registration-input input,
.registration-input select {
  width: 100%;
  box-sizing: border-box;
  border: 1px #6c6c6c solid;
  background-color: #fff;
  padding: 20px 12px 8px;
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  color: #000000;
}

.registration-input select {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.registration-input select:focus {
  outline: none;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "▼";
  font-size: 12px;
  top: 16px;
  right: 12px;
  position: absolute;
}

.registration-input input:focus + label,
.registration-input input:not(:placeholder-shown) + label,
.registration-input.valid label,
.registration-input select + label {
  top: 5px;
  left: 12px;
  font-size: 12px;
}

.registration-input.valid input,
.registration-input.valid select {
  border: 1px #15b859 solid;
}

.registration-input.invalid input {
  border: 1px #f44336 solid;
}

.registration-input label {
  position: absolute;
  top: 15px;
  left: 12px;
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  color: #757077;
  transition: all 0.2s ease-in-out;
  cursor: text;
}

.registration-input.pw-field input {
  padding-left: 32px;
}

.registration-input.pw-field label {
  margin-left: 20px;
}

.registration-input .strength-meter {
  width: 180px;
  height: 4px;
  z-index: 3;
  position: absolute;
  left: 32px;
  bottom: 4px;
  border-radius: 2px;
}

.registration-input .strength-meter .indicator {
  width: 0;
  height: 100%;
  border-radius: 2px;
  transition: all linear .3s;
}

#change-password {
  position: absolute;
  cursor: pointer;
  left: 8px;
  bottom: 14px;
  font-size: 16px;
  text-decoration: none;
  color: #757077;
}

/* Radio buttons that looks like MUI button group */
.registration-radio {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.gender-select input {
  display: none;
}

.gender-select label {
  border: solid 1px #6c6c6c;
  background-color: #FFFFFF;
  font-family: Quicksand, sans-serif;
  font-size: 13px;
  line-height: 1.85;
  text-align: center;
  color: #39363a;
  width: 78px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gender-select.valid label {
  border: solid 1px #15b859;
}

.gender-select {
  display: flex;
}

.gender-select label.checked,
.gender-select label:checked {
  border-width: 2px;
  border-color: #15b815;
  color: #39363a;
  z-index: 9;
}

.gender-select label:first-of-type {
  margin-right: -1px;
}

.gender-select label:last-child {
  margin-left: -1px;
}

.gender-invalid .gender-select label {
  border: 1px #f44336 solid;
}

.registration-radio__title {
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.2px;
  text-align: right;
  color: #39363a;
}

/* Icons in the bottom of registration form */
.registration-icons {
  padding: 0 8px 20px 0;
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.registration-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 12px;
}

.registration-icon span {
  margin-top: 2px;
  font-family: Quicksand, sans-serif;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.85;
  letter-spacing: -0.6px;
  text-align: center;
  color: #9595a8;
}

/* Styles for terms and conditions */
.registration-terms {
  background-color: #FFFFFF;
}

.registration-terms__toggle {
  width: 100%;
  padding: 12px;
  background-color: #FFFFFF;
  box-sizing: border-box;
  font-family: OpenSans, sans-serif;
  font-size: 11px;
  letter-spacing: -0.18px;
  text-align: center;
  color: #757077;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.registration-terms__toggle:after {
  content: " ";
  background: url(../Images/arrow_down.svg) no-repeat top left;
  display: inline-block;
  width: 12px;
  height: 12px;
  position: relative;
  top: 2px;
  left: 2px;
  transform: rotate(180deg);
}

.registration-terms__toggle.opened:after {
  transform: rotate(0deg);
}

.registration-terms__content {
  display: none;
  padding: 24px 12px 48px;
  font-family: OpenSans, sans-serif;
  font-size: 1em;
  line-height: 1.714;
  letter-spacing: -0.005em;
}

.registration-terms__content {
  display: none;
  padding: 24px 12px 48px;
  font-family: OpenSans, sans-serif;
  font-size: 1em;
  line-height: 1.714;
  letter-spacing: -0.005em;
}

/* Inline wrapper to combine elements in one line */
.registration-inline {
  display: flex;
}

.registration-inline .registration-input input {
  border-radius: 0;
}

.registration-inline .registration-input:first-child {
  margin-right: -1px;
}

.registration-inline .registration-input:last-child {
  margin-left: -1px;
}

.registration-inline .registration-input:first-child input {
  border-radius: 4px 0 0 4px;
}

.registration-inline .registration-input:last-child input {
  border-radius: 0 4px 4px 0;
}

/* Custom checkbox */
.registration-checkbox {
  margin-right: 8px;
}

.registration-checkbox:last-child {
  margin-right: 0;
}

.registration-checkbox input {
  display: none;
}

.registration-checkbox label {
  display: flex;
  align-items: center;
  position: relative;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  cursor: pointer;
}

.registration-checkbox label:before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 2px;
  border: solid 1px #6c6c6c;
  background-color: #fff;
  margin-right: 8px;
}

.registration-checkbox label:after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 5px;
  position: absolute;
  top: 6px;
  left: 6px;
  border: 3px solid #333;
  border-top: none;
  border-right: none;
  background: transparent;
  opacity: 0;
  transform: rotate(-45deg);
}

.registration-checkbox input:checked + label:after {
  border-color: #15b859;
  opacity: 1;
}

/* Separate style for communication checkboxes only */
.registration-communications {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
}

/* Separate styles for opting radio buttons only */
.registration-opting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
}

.registration-opting .radio_buttons {
  display: flex;
  margin-right: 25px;
}

/* Radio buttons used for opt-ins */
.default-radio:first-child {
  margin-right: 35px;
}

.default-radio input[type=radio] {
  display: none;
}
.default-radio label {
  display: inline-block;
  cursor: pointer;
  position: relative;
  margin-right: 0;
  line-height: 18px;
  user-select: none;
}

.default-radio label:before {
  content: "";
  display: inline-block;
  width: 19px;
  height: 19px;
  position: absolute;
  right: -26px;
  bottom: 1px;
  border: solid 1px #6c6c6c;
  background-color: #FFFFFF;
  border-radius: 100%;
  flex-shrink: 0;
}

.default-radio label:after {
  content: "";
  display: none;
  width: 15px;
  height: 15px;
  position: absolute;
  right: -23px;
  bottom: 4px;
  background-color: #15b859;
  border-radius: 100%;
  flex-shrink: 0;
}

.default-radio input[type=radio]:checked + label:after {
  display: inline-block;
}

.default-radio label:hover:before {
  filter: brightness(120%);
}

.default-radio input[type=radio]:disabled + label:before {
  filter: grayscale(100%);
}

/* Registration warning and error pages */
.registration-error {
  padding-bottom: 32px;
}

.registration-error__title {
  width: 100%;
  border-bottom: solid 0.5px #e9e9e9;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px 0;
}

.registration-error__title span {
  width: 200px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 1.45;
  letter-spacing: 0.11px;
  margin-top: 10px;
}

.registration-error__title.type_error span {
  color: #f44336;
}

.registration-error__title.type_warning span {
  color: #ff9b00;
}


.registration-error__message {
  box-sizing: border-box;
  width: 100%;
  background-color: #f9f9fd;
  padding: 15px 10px;
}

.registration-error__message a {
  text-decoration: none;
  color: #39363a;
}

.registration-error__message p {
  font-family: Quicksand, sans-serif;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.56;
  color: #39363a;
}

.registration-error__message h6 {
  max-width: 300px;
  text-align: center;
  margin: 12px auto;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.56;
  letter-spacing: normal;
  color: #39363a;
}

/* Custom styles */
.subtitle {
  display: block;
  margin-bottom: 8px;
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.multi-field > label {
  display: flex;
  align-items: center;
}

.multi-field label span {
  font-family: Quicksand, sans-serif;
  font-size: 12px;
  margin-left: 4px;
}

.deposit_limit_frequency {
  width: 100%;
  box-sizing: border-box;
  border: 1px #6c6c6c solid;
  background-color: #fff;
  padding: 16px 8px;
  font-family: Quicksand, sans-serif;
  font-size: 14px;
  color: #000000;
  cursor: pointer;
}

.country-select {
  width: 80px;
}

.country-select .flag {
  padding: 14px 8px;
  text-align: center;
}

/* Responsive */

@media screen and (max-width: 1024px) {
  .registration-block {
    width: 100%;
    min-height: 255px;
    margin: 0;
    box-shadow: none;
  }
  .registration-cta {
    display: none;
  }
}

@media screen and (max-width: 480px) {

}
