.checkbox-label {
  display: flex;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
}

.checkbox-label:active {
  transition: 0.2s;
}

.select {
  color: gray;
  width: 100%;
  height: 38px;
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 0 10px;
}

.checkbox-valid {
  color: #9e9e9e;
}

.checkbox-invalid {
  color: red;
}

input[type=checkbox] {
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}

input[type=radio] {
  width: 0;
  height: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-label > span {
  min-width: 20px;
  min-height: 20px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  border: 2px solid #9e9e9e;
  margin-right: 15px;
  border-radius: 3px;
  transition: all 0.3s;
}

.radio-label {
  display: flex;
  color: #9e9e9e;
  position: relative;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.radio-label > span {
  min-width: 20px;
  min-height: 20px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  border: 2px solid #9e9e9e;
  margin-right: 15px;
  border-radius: 10px;
  transition: all 0.3s;
}

input[type=checkbox]:checked:disabled + label > span {
  border: 10px solid gray;
  -webkit-animation: bounce 250ms;
          animation: bounce 250ms;
}

input[type=radio]:checked + label > span {
  border: 10px solid gray;
  -webkit-animation: bounce 250ms;
          animation: bounce 250ms;
}

input[type=checkbox]:checked + label > span {
  border: 10px solid #3490dc;
  -webkit-animation: bounce 250ms;
          animation: bounce 250ms;
}

input[type=checkbox]:checked + label > span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4.5px;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(45deg);
  transform-origin: 0% 100%;
  -webkit-animation: checked-box 125ms 250ms forwards;
          animation: checked-box 125ms 250ms forwards;
}

input[type=radio]:checked:disabled + label > span {
  border: 10px solid gray;
  -webkit-animation: bounce 250ms;
          animation: bounce 250ms;
}

input[type=radio]:checked + label > span {
  border: 10px solid #3490dc;
  -webkit-animation: bounce 250ms;
          animation: bounce 250ms;
}

input[type=radio]:checked + label > span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 4.5px;
  border-right: 3px solid transparent;
  border-bottom: 3px solid transparent;
  transform: rotate(45deg);
  transform-origin: 0% 100%;
  -webkit-animation: checked-box 125ms 250ms forwards;
          animation: checked-box 125ms 250ms forwards;
}

.fileInputContainer {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

.fileInput {
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 80px;
  position: relative;
}

input::file-selector-button {
  display: none;
}

.dynamic-form-was-validated .form-control:valid,
.form-control.is-valid {
  border-color: #38c172;
  padding-right: calc(1.6em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2338c172' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center right calc(0.4em + 0.1875rem);
  background-size: calc(0.8em + 0.375rem) calc(0.8em + 0.375rem);
}

.dynamic-form-was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: #e3342f;
  padding-right: calc(1.6em + 0.75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23e3342f' viewBox='-2 -2 7 7'%3e%3cpath stroke='%23e3342f' d='M0 0l3 3m0-3L0 3'/%3e%3ccircle r='.5'/%3e%3ccircle cx='3' r='.5'/%3e%3ccircle cy='3' r='.5'/%3e%3ccircle cx='3' cy='3' r='.5'/%3e%3c/svg%3E");
  background-repeat: no-repeat;
  background-position: center right calc(0.4em + 0.1875rem);
  background-size: calc(0.8em + 0.375rem) calc(0.8em + 0.375rem);
}

.dynamic-form-was-validated .form-control:valid:focus,
.form-control.is-valid:focus {
  border-color: #38c172;
  box-shadow: 0 0 0 0.2rem rgba(56, 193, 114, 0.25);
}

.dynamic-form-was-validated .form-control:invalid + .fileInput {
  border-color: #e3342f;
  border-radius: 3px;
}

.form-control:disabled + .fileInput {
  background-color: #e9ecef;
  cursor: auto;
}

.invalid-file {
  border-color: #e3342f !important;
}

.dynamic-form-was-validated .form-control:valid + .fileInput {
  border-color: #38c172;
  border-radius: 3px;
}

.dynamic-form-was-validated .radioValidation:invalid + .radio-label {
  color: red;
}

.radioValidation:checked + .radio-label {
  color: black !important;
}

.dynamic-form-was-validated .radioValidation:valid + .radio-label {
  color: #9e9e9e;
}

.dynamic-form-was-validated .select-validate:invalid {
  border-color: #e3342f !important;
  border-radius: 3px !important;
}

.dynamic-form-was-validated .select-validate:valid {
  border-color: #38c172 !important;
  border-radius: 3px !important;
}

#numbersBlockContainer .invalidText {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #e3342f;
  display: block !important;
}

.invalidText {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 80%;
  color: #e3342f;
  display: none;
}

.deleteFile {
  position: absolute;
  right: 0px;
  background: #e9ecef;
  height: 35px;
  bottom: 0px;
  max-width: 78px;
  min-width: 70px;
  padding: 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-left: 1px solid #ced4da;
  border-right-radius: 0.25rem;
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes checked-box {
  0% {
    width: 0;
    height: 0;
    border-color: #212121;
    transform: translate(0, 0) rotate(45deg);
  }

  33% {
    width: 5px;
    height: 0;
    border-color: #212121;
    transform: translate(0, 0) rotate(45deg);
  }

  100% {
    width: 5px;
    height: 10px;
    border-color: #212121;
    transform: translate(0, -8px) rotate(45deg);
  }
}

@keyframes checked-box {
  0% {
    width: 0;
    height: 0;
    border-color: #212121;
    transform: translate(0, 0) rotate(45deg);
  }

  33% {
    width: 5px;
    height: 0;
    border-color: #212121;
    transform: translate(0, 0) rotate(45deg);
  }

  100% {
    width: 5px;
    height: 10px;
    border-color: #212121;
    transform: translate(0, -8px) rotate(45deg);
  }
}

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

  33% {
    transform: scale(0.7);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes bounce {
  0% {
    transform: scale(1);
  }

  33% {
    transform: scale(0.7);
  }

  100% {
    transform: scale(1);
  }
}

