@import 'variables';

.jfFormControl {
  display: flex;
  flex-direction: column;
  gap: 8px;

  &.jfFormControl--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .jfFormLabel {
    font-size: 14px;
    font-weight: 500;
    color: white;

    .jfFormLabel--description {
      display: block;
      font-size: 12px;
      font-weight: 400;
      color: var(--jfv-gray-200);
      margin-top: 2px;
      margin-bottom: 4px;
    }
  }

  .jfFormHelperText {
    font-size: 12px;
    color: var(--jfv-navy-300);
    display: flex;
    align-items: center;
    gap: 4px;

    &.jfFormHelperText--error {
      color: var(--jfv-red-400);
    }

    .jfFormHelperText--icon {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
    }
  }
}
