.form__row {
  position: relative;
}

.form__row + .form__row {
  margin-top: 1rem;
}

.form__row--checkboxes {
  margin-top: 1.5em;
}

.form__label {
  color: #1d2533;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5rem;
}

.form__label--check-radio {
  vertical-align: text-top;
}

.form__label--check-radio + .form__label--check-radio {
  margin-left: 0.625rem;
}

.form__section + .form__section {
  margin-top: 1.5rem;
}

.form__header {
  border-bottom: 1px solid #dde1e9;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  text-align: center;
}

.form__title {
  color: #1d2533;
  margin: 0;
  font-family: "Montserrat", arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5rem;
}

.form__field {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  outline: 0;
}

.form__field--text,.form__field--textarea,.form__field--select {
  background-color: #fff;
  border: 1px solid #b9c4cf;
  border-radius: 0.1875rem;
  color: #54657e;
  display: block;
  font-size: 0.875rem;
  height: 3rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

.form__field--text:hover,.form__field--textarea:hover,.form__field--select:hover {
  border-color: #8493a8;
}

.form__field--text:focus,.form__field--textarea:focus,.form__field--select:focus {
  border-color: #0277bd;
  -webkit-box-shadow: 0 0 2px 0 rgba(2, 119, 189, 0.7);
  box-shadow: 0 0 2px 0 rgba(2, 119, 189, 0.7);
}

.form__field--text[disabled],.form__field--textarea[disabled],.form__field--select[disabled] {
  border-color: #dde1e9;
  color: #b9c4cf;
}

.form__field--textarea {
  min-height: 6rem;
}

.form__field--select {
  background-image: url("../../img/layout/ico-arrow-down.svg");
  background-position: right 6px center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

.form__checkbox-replace,.form__radio-replace {
  position: relative;
}

.form__checkbox-replace::before,.form__checkbox-replace::after,.form__radio-replace::before,.form__radio-replace::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
}

.form__checkbox-replace .form__field--checkbox,.form__checkbox-replace .form__field--radio,.form__radio-replace .form__field--checkbox,.form__radio-replace .form__field--radio {
  display: none;
}

.form__checkbox-replace {
  padding-left: 1.75rem;
}

.form__checkbox-replace::before {
  border: 2px solid #8493a8;
  border-radius: 0.1875rem;
  content: '';
  height: 1.125rem;
  left: 0;
  position: absolute;
  top: 0;
  width: 1.125rem;
  z-index: 0;
}

.form__checkbox-replace::after {
  content: '';
  height: 1.5rem;
  left: -0.1875rem;
  position: absolute;
  top: -0.1875rem;
  width: 1.5rem;
  z-index: 1;
}

.form__checkbox-replace.form__field--is-checked::before {
  background-color: #0277bd;
  border-width: 0;
}

.form__checkbox-replace.form__field--is-checked.form__field--is-disabled::before {
  background-color: #b9c4cf;
}

.form__checkbox-replace.form__field--is-checked::after {
  background: url("../../img/layout/ico-fields.svg");
  background-position: left top;
}

.form__checkbox-replace.form__field--is-disabled::before {
  background-color: inherit;
  border: 2px solid #b9c4cf;
}

.form__radio-replace {
  padding-left: 1.875rem;
}

.form__radio-replace::before {
  border: 2px solid #8493a8;
  border-radius: 50%;
  content: '';
  height: 1.25rem;
  left: 0;
  position: absolute;
  top: 0;
  width: 1.25rem;
}

.form__radio-replace::after {
  background-color: transparent;
  border-radius: 50%;
  content: '';
  height: 0;
  left: 5px;
  position: absolute;
  top: 5px;
  -webkit-transition: background-color .3s ease;
  transition: background-color .3s ease;
  width: 0;
}

.form__radio-replace.form__field--is-checked::before {
  border-color: #0277bd;
}

.form__radio-replace.form__field--is-checked::after {
  background-color: #0277bd;
  height: 0.625rem;
  width: 0.625rem;
}

.form__radio-replace.form__field--is-disabled::before {
  border-color: #b9c4cf;
}

.form__radio-replace.form__field--is-disabled::after {
  background-color: #b9c4cf;
}

.form__file-replace {
  background-color: #fff;
  border: 1px solid #dde1e9;
  border-radius: 0.1875rem;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  display: block;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  width: 100%;
}

.form__row--error:not(.form__row--has-file) .form__file-replace {
  border-color: #d71c1c;
  -webkit-box-shadow: 0 0 2px 0 rgba(215, 28, 28, 0.7);
  box-shadow: 0 0 2px 0 rgba(215, 28, 28, 0.7);
}

.form__file-replace .form__field--file {
  display: none;
}

.no-js .form__file-replace .form__field--file {
  display: inherit;
}

.file-replace__name {
  background-color: inherit;
  border: 0;
  color: #b9c4cf;
  display: block;
  -webkit-box-flex: 2;
  -ms-flex: 2;
  flex: 2;
  font-size: 0.875rem;
  padding-right: 1rem;
}

.file-replace__select {
  background-color: inherit;
  border: 0;
  color: #1bacc0;
  cursor: pointer;
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin: 1.875rem auto 1.125rem auto;
  padding: 0.625rem 0;
  text-align: center;
}

.file-replace__remove {
  background-image: url("../../img/layout/ico-fields.svg");
  background-position: -26px center;
  border: 0;
  cursor: pointer;
  display: none;
  height: 1.25rem;
  width: 1.25rem;
}

.file-replace--is-selected {
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  background-color: #dde1e9;
  border-color: #b9c4cf;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.file-replace--is-selected .file-replace__name {
  color: #54657e;
}

.file-replace--is-selected .file-replace__remove {
  display: inherit;
}

.file-replace--is-selected .file-replace__select {
  display: none;
}

.form__actions {
  border-top: 1px solid #dde1e9;
  margin-top: 1rem;
  padding-top: 1rem;
}

.form__actions .button {
  width: 100%;
}

.form__action-check .form__label {
  color: inherit;
  display: inline-block;
  font-weight: 400;
}

.form__action-check a {
  color: #1d2533;
  text-decoration: none;
}

.form__action-check a:hover {
  text-decoration: underline;
}

.form__list-item {
  display: block;
  margin: 0;
}

.form__list-item + .form__list-item {
  margin-top: 1rem;
}

.form__label + .form__list {
  margin-top: 0.5rem;
}

.form__field-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.form__field-help {
  color: #8493a8;
  display: none;
}

.form__field-help--visible,.form__field-help--fixed {
  display: block;
}

.form__field-help,.form__error-message {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5rem;
}

.form__error-message {
  color: #d71c1c;
}

.form__field--error {
  border-color: #d71c1c;
  -webkit-box-shadow: 0 0 2px 0 rgba(215, 28, 28, 0.7);
  box-shadow: 0 0 2px 0 rgba(215, 28, 28, 0.7);
}

.form__field--valid.form__field--text,.form__field--valid.form__field--textarea {
  background-image: url("../../img/layout/ico-check.svg");
  background-position: right 9px top 11px;
  background-repeat: no-repeat;
}

.form__row--error.form__row--has-file .form__error-message {
  display: none;
}

.form__row--error.form__row--has-file .form__field-help--visible {
  display: block;
}

.form__field--prefix {
  border-bottom-right-radius: 0;
  border-right: 0;
  border-top-right-radius: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  width: 3.5rem;
}

.form__field--prefix.form__field--valid {
  background-image: none;
}

.form__field--prefix-phone {
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

@media screen and (min-width: 48em) {
  .form__row + .form__row {
    margin-top: 1.5rem;
  }

  .form__section + .form__section {
    margin-top: 2.5rem;
  }

  .form__content {
    max-width: 25.9375rem;
  }

  .form__header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    position: relative;
    text-align: left;
  }

  .form__title {
    font-family: "Montserrat", arial, sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.75rem;
  }

  .form__mandatory {
    padding-bottom: 1rem;
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  .form__file-replace {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .file-replace__select {
    display: inherit;
    margin: 0;
    padding: 0;
  }

  .file-replace__remove {
    margin-right: -0.25rem;
  }

  .form__actions {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  .form__action-check .form__label {
    padding-right: 2rem;
  }

  .form__list {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  .form__list-item + .form__list-item {
    margin-left: 2rem;
    margin-top: 0;
  }
}

@media screen and (max-width: 47.9375em) {
  .form__action-buttons {
    margin-top: 1rem;
  }
}
