:root {
  --black: 0, 0, 0;
}

.ajax-test-form {
  padding-bottom: 1.5rem;
  border: 0.125rem solid rgba( var(--black) , 0.125);
  position: relative;

  &:after {
    content: "";
    position: absolute;
    background-color: transparent;
    transition: opacity 1s linear, background-color 1s linear;
    pointer-events: none;
    opacity: 0;
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
  }

  &.ready {
    &:after {
      pointer-events: auto;
      background-color: #d23;
      transition: opacity 1s linear, background-color 1s linear;
      opacity: 1;
    }

  }

  & .rules {
    margin-bottom: 0;
    padding-left: 1rem;
    position: relative;

    &:before {
      content: "";
      position: absolute;

      display: inline-block;
      width: 0.5rem;
      height: 0.5rem;
      background-color: rgb(var(--black));
      border-radius: 50%;
      left: 0;
      top: calc(50% - 0.25rem);

    }

    &.error {
      color: #d23;

      &:before {
        background-color: #d23;
      }

    }

  }

}




