form {

  .form-wrapper {
    margin-bottom: 30px;
    position: relative;

    &__error {
      display: none;
      font-size: 12px;
      color: red;
      position: absolute;
      right: 0;
      bottom: -20px;
    }

    &.\-\-flex {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    &.\-\-center {
      text-align: center;
    }

    &.\-\-right {
      text-align: right;
    }

    &.\-\-mb8 {
      margin-bottom: 8px;
    }

    &__checkbox {
      display: block;
      position: relative;
      padding-left: 35px;
      margin-bottom: 16px;
      cursor: pointer;
      font-size: 16px !important;
      font-weight: 400 !important;
      color: $black-75 !important;
      text-transform: none !important;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      transition: 0.2s;

      input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
        transition: 0.2s;

        &:checked {
          ~ {
            .form-wrapper__checkbox__checkmark {
              background-color: $black;
              border: 1px solid $black;

              &:after {
                display: block;
              }
            }
          }
        }
      }

      &__checkmark {
        position: absolute;
        top: 0;
        left: 0;
        height: 16px;
        width: 16px;
        background-color: $white;
        border: 1px solid $black-50;
        transition: 0.2s;

        &:after {
          content: "";
          position: absolute;
          display: none;
          left: 5px;
          top: -2px;
          width: 5px;
          height: 10px;
          border: solid white;
          border-width: 0 2px 2px 0;
          -webkit-transform: rotate(45deg);
          -ms-transform: rotate(45deg);
          transform: rotate(45deg);
        }
      }

      &:hover {
        color: $black !important;

        .form-wrapper__checkbox__checkmark {
          border: 1px solid $black;
        }
      }
    }
  }

  label {
    display: block;
    color: $black;
  }

  input:not([type='submit']), textarea, select {

    background-color: $white;
    border: 1px solid $black-10;
    outline: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: $black;
    width: 100%;
    font-family: 'regular', sans-serif;
    -moz-transition-duration: 0.2s; /* Safari */
    -webkit-transition-duration: 0.2s; /* Safari */
    transition-duration: 0.2s;
    font-size: 100%;

    &::placeholder {
      color: $black-25;
      font-size: 100%;
      font-family: 'regular', sans-serif;
    }

    &:focus, &:hover {
      border-color: $primary !important;
    }
  }

  input[type='checkbox'] {
    width: fit-content;
    margin: 0 8px 0 0;
  }
}

@media only screen and (max-width: 768px) {
  form {

    .form-wrapper {
      margin-bottom: 16px;

      &__checkbox {
        padding: 12px 16px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border: 1px solid $black-10;

        &__checkmark {
          position: relative;
        }
      }
    }

    input:not([type='submit']), textarea, select {
      padding: 12px 16px;

      &::placeholder {
        color: $black-75;
        font-size: 100%;
        font-family: 'Inter', sans-serif;
      }

      &:focus, &:hover {
        border-color: $black !important;
      }
    }
  }
}
