.field__wrap {
  position: relative;
}
.field__wrap::after {
  content: url(../../static/icons/tick-green.svg);
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: -1;
  opacity: 0;
  transition: 0.3s;
}

.field__name {
  margin-right: 8px;
}

.field {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  grid-column-gap: 8px;
  align-items: center;
  padding-bottom: 20px;
}
.field:has(.field__error.active) {
  padding-bottom: 40px;
}
.field:has(.field__under.active) {
  padding-bottom: 40px;
}
.field textarea {
  resize: none;
}
.field textarea.field__input {
  height: 160px;
}
.field.field--checkbox {
  grid-template-columns: auto 1fr;
}

.field.js-important .field__name::after {
  content: "*";
  color: #ff4c4c;
  margin-left: 3px;
}

.field:has(input[required]) .field__name::after {
  content: "*";
  color: #ff4c4c;
  margin-left: 3px;
}

.field.vertical {
  flex-direction: column;
}
.field.vertical .field__name {
  margin-right: 0;
  margin-bottom: 8px;
}

.field__input {
  display: block;
  max-width: 100%;
  width: 100%;
  border: 1px solid #CED4DA;
  padding: 16px 20px 16px 20px;
  transition: 0.3s;
}
.field__input:focus {
  border-color: #2F2F3E;
}

.field__input.field__input--short {
  width: 90px;
  padding-right: 20px;
}

.field__under {
  z-index: -1;
  position: absolute;
  bottom: 0;
  transform: translateY(calc(100% + 4px));
  transition: 0.3s;
  text-wrap: balance;
}

.field__error.active {
  opacity: 1;
  z-index: 1;
}
.field__error.active ~ .field__hint {
  opacity: 0;
}

.field__error {
  opacity: 0;
  color: #ff4c4c;
}

.field.js-invalid .field__input {
  border-color: #ff4c4c;
}

.field.js-valid .field__wrap::after {
  opacity: 1;
  z-index: 1;
}

.rating-mock {
  cursor: pointer;
}
.rating-mock:not(:last-child) {
  margin-left: 4px;
}
.rating-mock::before {
  content: url(../../static/icons/star-empty.svg);
}
.rating-mock:hover::before {
  content: url(../../static/icons/star-full.svg);
}
.rating-mock:hover ~ .rating-mock::before {
  content: url(../../static/icons/star-full.svg);
}

.rating-input {
  display: none;
}
.rating-input:checked ~ .rating-mock::before {
  content: url(../../static/icons/star-full.svg);
}

.field-rating .field__wrap {
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
}
.field-rating .field__name {
  width: fit-content;
  margin-right: 16px;
}

.field--checkbox {
  cursor: pointer;
  gap: 8px;
  padding-bottom: 0;
}
.field--checkbox .field__input {
  display: none;
}
.field--checkbox .field__input:checked + .field__mock {
  background: #2F2F3E;
}
.field--checkbox .field__input:checked + .field__mock::before {
  opacity: 1;
}
.field--checkbox .field__mock {
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid #CED4DA;
  border-radius: 4px;
  transition: 0.3s;
  position: relative;
}
.field--checkbox .field__mock::before {
  display: block;
  content: "\f107";
  opacity: 0;
  transition: 0.3s;
  font-size: 12px;
  font-family: "Line Awesome Free";
  position: absolute;
  color: #FFFFFF;
  top: 50%;
  left: 50%;
  font-weight: 900;
  transform: translate(-50%, -50%);
}
.field--checkbox:hover .field__mock {
  border-color: #2F2F3E;
}

.field--checkbox.disabled {
  pointer-events: none;
}
.field--checkbox.disabled span.p3 {
  color: #CED4DA;
}

.field-popup {
  width: 100%;
  max-height: 377px;
  position: absolute;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #CED4DA;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: none;
  background: #FFFFFF;
  border-radius: 8px;
}
.field-popup > .link:not(:last-child) {
  margin-bottom: 16px;
}

.field-popup.active {
  display: block;
}

.show_password {
  position: absolute;
  top: 22px;
  right: 22px;
  display: block;
  width: 16px;
  height: 16px;
  background: url(../../static/icons/password-show.svg);
  background-repeat: no-repeat;
  cursor: pointer;
  z-index: 2;
}

.show_password.active {
  background: url(../../static/icons/password-hide.svg);
}

/*# sourceMappingURL=inputs.css.map */
