@use "sass:math";

form {
  .form-group {
    margin: 30px 0 0;
    display: flex;
    flex-direction: column;
    width: 100%;

    input,
    select {
      background: var(--front-secondary);
      border: none;
      box-sizing: border-box;
      border-radius: 5px;
      width: 100%;
      padding: 5px 10px;

      &:disabled {
        background: #979797;
      }
    }

    input[type=checkbox] {
      width: auto;
    }

    label {
      position: relative;

      &.required {
        &::after {
          content: "*";
          position: relative;
          right: -9px;
          top: 1px;
          color: red;
        }
      }

      .invalid-feedback {
        display: none;
      }
    }

    .input-group {
      display: flex;
      align-items: center;

      input {
        border-radius: 3Px 0 0 3px;
      }

      .input-group-append {
        background: var(--front-secondary);
        padding: 5px 15px;
        border: 1px solid #CCCCCC;
        box-sizing: border-box;
        border-radius: 0px 3px 3px 0;
      }
    }
  }

  textarea {
    background: var(--front-secondary);
    border: none;
    box-sizing: border-box;
    border-radius: 3px;
    width: 100%;
    padding: 5px 10px;
    resize: unset;
    height: 150px;
  }

  .invalid-feedback {
    .badge {
      display: none;
    }

    .form-error-message {
      color: red;
    }
  }
}