.container {
  width: 100%;
  position: relative;
  text-align: center;
  min-width: 250px;

  margin: 0;
  max-width: 100%;

  & > input {
    appearance: none;
    border-radius: 24px;
    border: solid 1px #e5e7eb;
    color: #121620;
    line-height: 125%;
    outline: none;
    padding: 16px 24px 5px;
    transition: border-color 0.3s ease;
    width: 100%;

    background-color: #f1f1f1;
    min-height: 52px;

    &:focus {
      border-color: #000;
      transition-delay: 0.1s;
    }
  }

  & > .label {
    left: 24px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: top 0.3s ease;
    white-space: nowrap;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    pointer-events: none;

    & > span {
      transition:
        color 0.3s ease,
        font-size 0.3s ease;
    }
  }
}

.container > input:focus + .label,
.container > input:not(:placeholder-shown) + .label {
  top: 12px;
  width: auto;

  & > span {
    font-size: 12px;
  }
}

.inputError {
  border-color: #ef4444 !important;
  &:focus {
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
  }
}

.errorText {
  position: absolute;
  margin-top: 4px;
}
