.label-animation {
  position: relative;

  input,
  textarea,
  select {
    &::placeholder {
      opacity: 0;
    }
  }

  label {
    position: absolute;
    top: 14px;
    left: 30px;
    pointer-events: none;
    transition: all 0.2s;
    font-size: toRem(21);
    font-weight: 400;
    color: #262626;

    // Telas até SM
    @include media($xs-max) {
      font-size: 16px;
      top: 14px;
    }
  }

  &.active,
  &.focus,
  &.select-active {
    label {
      background-color: $white;
      width: fit-content;
      top: -18px;
      left: 30px;
      font-size: toRem(20);
      padding: 0 6px;
      color: #262626;

      // Telas até SM
      @include media($xs-max) {
        font-size: 14px;
      }
    }

    input,
    textarea,
    select {
      background-color: #fff;
    }
  }

  &.hide:not(.select-active) {
    select {
      color: transparent;
    }
  }
}

.wpcf7-form-control-wrap[data-name="data"] {
  .label-animation {
    input {
      color: #EDEDED;
    }

    &.active {
      input {
        color: #262626;
      }
    }
  }
}