#result {
  display: flex;
  align-items: center;
}
#result:before {
  transform: scale(0.8);
  margin-right: 10px;
}
#result.correct {
  color: green;
}
#result.correct:before {
  content: url(../img/correct.png);
}
#result.error {
  color: red;
}
#result.error:before {
  content: url(../img/failed.png);
}
#result.view {
  font-weight: 700;
}

.button-next {
  display: inline-block;
  margin-top: 30px;
}

.hide {
  display: none;
}

.questions_form button {
  height: 52px;
}

.radio-row {
  display: flex;
  margin: 5px 0;
}
.radio-row input[type=radio] {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
.radio-row input[type=radio]:checked + label {
  text-shadow: 0 0 1px #000;
}
.radio-row input[type=radio]:checked + label:before {
  border-color: #86774f;
  background-color: #86774f;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  padding: 10px 0;
  transition: 0.2s;
}
.radio-row label:before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  flex-grow: 0;
  border: 1px solid #adb5bd;
  border-radius: 50%;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 50% 50%;
  transition: 0.2s;
}

.form {
  display: flex;
  flex-wrap: wrap;
}
.form.hide {
  display: none;
}
.form input,
.form button {
  height: 45px;
  border: 1px solid #c8c8c8;
  background: #fff;
  padding: 0 20px;
  font-weight: bold;
  border-radius: 2px;
  color: #000;
}
.form input {
  border-right: 0;
}
.form button {
  width: auto;
  border-left: 0;
}

.text-after.show {
  display: flex;
  align-items: flex-start;
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 18px;
  line-height: 1.2;
  border-top: 2px solid #d7d6d6;
  padding-top: 30px;
}
.text-after.show:before {
  content: url(../img/next-button.svg);
  transform: scale(0.8);
  margin-right: 10px;
  margin-top: -7px;
}
.text-after .wrap {
  display: flex;
  flex-direction: column;
}
.text-after .wrap img {
  margin-top: 20px;
}

.box-enter-number .q-number {
  color: #ccc;
}
.box-enter-number .text-before {
  margin-bottom: 50px;
}
.box-enter-number .form-enter-number {
  display: inline-flex;
  gap: 0;
  border: 2px solid #867750;
  border-radius: 10px;
  overflow: hidden;
}
.box-enter-number .form-enter-number .enterNumber {
  border: 0;
  padding: 15px 10px;
}
.box-enter-number .form-enter-number .enterNumber::placeholder {
  color: #aaa;
  font-style: italic;
}
.box-enter-number .form-enter-number .button {
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #867750;
  color: #fff;
}
.box-enter-number .form-enter-number .button:hover, .box-enter-number .form-enter-number .button:focus {
  background: rgb(102.0654205607, 90.6401869159, 60.9345794393);
}
.box-enter-number .information_ref {
  min-height: 38px;
  margin-block: 15px;
}

.description.resume .button {
  margin-top: 15px;
}

.form-container {
  margin: -30px;
  padding: 30px;
  background: #f9f0e1;
  margin-top: 50px;
}
.form-container.return {
  margin-top: 20px;
}
.form-container p {
  text-align: center;
}

.form-form {
  max-width: 60%;
  margin: 30px auto 0;
}
.form-form input {
  width: 100%;
  padding: 10px 20px;
  box-sizing: border-box;
  background: #fffaf2;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  margin-bottom: 15px;
}
.form-form .button {
  width: 100%;
  border-radius: 0;
  height: auto;
  padding: 5px 20px;
  margin-top: 15px;
  background: #988558;
  color: #fff;
  border: 0;
}
.form-form .button:hover {
  background: rgb(119.7, 104.7375, 69.3);
}
.form-form label.custom .checkbox-custom {
  width: 18px;
  height: 18px;
  border-width: 1px;
}
.form-form label.custom input[type=checkbox]:checked + .checkbox-custom:before {
  top: 0;
  left: 2px;
}

.first-mess.load {
  opacity: 0.3;
  transition: 0.25s;
}

.start-mess {
  display: none;
}
.start-mess.visible {
  display: block;
}

.final-content.show {
  margin-top: 50px;
}

.loader {
  position: absolute;
  top: 30%;
  left: calc(50% - 40px);
  display: inline-block;
  width: 80px;
  height: 80px;
  pointer-events: none;
  transition: 0.2s;
}
.loader div {
  position: absolute;
  border: 4px solid #000;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.loader div:nth-child(2) {
  animation-delay: -0.5s;
}
.loader.hide {
  opacity: 0;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  4.9% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 0;
  }
  5% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}
@media (max-width: 767px) {
  .form input,
  .form button {
    width: 100%;
    border: 1px solid #c8c8c8;
  }
  .form button {
    margin-top: 15px;
  }
  .form-form {
    max-width: 100%;
  }
}
.afterEnterNumber {
  display: none;
}

.footer {
  margin-top: 50px;
}
