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

  label {
    display: block;
    font-size: 1rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 17px;
    .asterisk {
        color: var(--danger);
    }
  }
  .my-custom-input {
    position: relative;
    border: 1px solid #797782;
    border-radius: 0px;
    overflow: hidden;
    input, textarea {
        width: 100%;
        padding: 18px 11px;
        font-size: 0.938rem;
        line-height: 1.125rem;
        font-weight: 400;
        color: #000;
        border: none;
        &::placeholder {
           font-size: 0.938rem;
            color: #656370;
        }
    }
    .icon {
        position: absolute;
        right: 10px;
        bottom: 7px;
        padding: 6px;
    }
    &.group {
        display: flex;
        align-items: center;
        background-color: #635CA81A;
        .group-text {
            padding: 8px;
            white-space: nowrap;
            color: var(--primary);
            font-size: 0.75rem;
            font-weight: 400;
        }
        input {
            border-left: 1px solid #D0D5DE;
        }
    }
    &:has(.ng-touched.ng-invalid) {
        border: 1px solid var(--danger);
    }
  }
  span.error {
      position: absolute;
      margin-top: 2px;
      color: var(--danger);
      font-size: 0.85rem;
      display: block;
  }
}

:host-context(html[dir=rtl]) {
    .form-input {
        .my-custom-input {
            .icon {
                left: 10px;
                right: unset;
            }
        }
    }   
}
