@import "../../constants/index.scss";

.form {
  background: #fafafa;
  height: 100%;
  overflow: auto;

  &Header {
    border: 1px solid #f2f2f2;
    background-color: white;

    &Title {
      margin: 16px;
      input {
        font-size: 14px;
      }
    }

    &Subtitle {
      margin: 16px;
      textarea {
        line-height: 20px;
        min-height: 100px;
        max-height: 100px;
        font-size: 14px;
      }
    }
  }

  &Body {
    padding-bottom: 100px;
    background: #fafafa;
    overflow: auto;

    &NoFieldView {
      height: 100%;
      background: #fafafa;
      padding-top: 56px;

      &Icon {
        margin: 0 auto;
        width: 144px;
        height: 144px;
        background: #e5e5e547;
        border-radius: 72px;
        align-content: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
      }

      &Message {
        margin: 20px 57px;
        text-align: center;
      }
    }

    &AddFieldButton {
      cursor: pointer;
      width: 125px;
      display: flex;
      color: #0e4498;
      font-weight: 600;
      font-size: 16px;
      line-height: 22px;
      margin-top: 16px;
    }

    &SubmitButtonCheckbox {
      margin-left: 16px;
      margin-top: 14px;
      &:global(-text) {
        font-weight: 500;
        font-size: 16px;
        line-height: 22px;
        color: #000000;
      }
    }

    &SubmitButtonInputs {
      margin-left: 22px;
      margin-right: 8px;

      &:global(-textinput) {
        border: 1px solid #bdbdbd;
        box-sizing: border-box;
        height: 36px;
        border-radius: 4px;
      }
      &:global(-label) {
        margin-left: 20px;
      }
      input {
        font-size: 14px;
      }
    }
  }
}

.preview {
  position: relative;
  background: #ffffff;
  border: 1px solid #dddddd;
  box-sizing: border-box;
  border-radius: 4px;
  max-width: 298px;
  min-width: 298px;

  &Error {
    border: 1px solid #ef8b93;
  }

  &Form {
    padding: 14px;
    min-height: 25px;
    &Title {
      color: #000000;
      font-weight: 600;
      font-size: 16px;
      line-height: 22px;
    }
    &Subtitle {
      margin-top: 4px;
      color: #595959;
      font-size: 14px;
      line-height: 20px;
    }

    &Fields {
      margin-top: 16px;

      &Item {
        min-height: 36px;
        margin-bottom: 8px;
        background: #ffffff;
        border: 1px solid #bdbdbd;
        box-sizing: border-box;
        border-radius: 4px;
        padding: 6px;
        font-size: 14px;
        display: flex;
        span {
          font-size: 14px;
          line-height: 24px;
          color: #a6a6a6;
          margin-left: 8px;
        }
      }
    }
  }

  &SubmitButton {
    min-height: 42px;
    background: #fafafa;
    padding: 12px;
    border-top: 1px solid #dddddd;
    box-sizing: border-box;
    border-radius: 0px 0px 5px 5px;
    font-weight: 600;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    color: #d9d9d9;
  }
}

.sortableElement {
  z-index: 10002;
  box-shadow: 0 10px 30px rgba(1, 1, 1, 0.1);
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  cursor: not-allowed;
}
