/* for CF7 */
.floating-label-group {
  font-size: 15px;
  position: relative;
  margin-bottom: 1em;
}

.floating-label-group p {
  margin: 0;
}

.floating-label-group .wpcf7-form-control-wrap {
  position: initial;
}

.floating-label-group input,
.floating-label-group input[type="date"],
.floating-label-group select,
input[type="submit"] {

  /* appearance: none; */
  /* Убираем стандартный вид */
  /* -webkit-appearance: none; */
  /* Для Safari */
  /* display: block; */
  width: 100%;
  max-width: 100%;
  background-color: #F9F9F9;
  font-size: 14px;
  padding: .5em .75em;
  border: 1px solid var(--Gray-dark, #C4C4C4);
  border-radius: .5em;
  color: #424241;
  transition: border-color 0.25s ease-in-out;
  height: 40px;
}

body.iphone .floating-label-group input[type="date"] {
  max-width: calc(100% - 16px);
}

.floating-label-group.active input,
.floating-label-group.active select,
.floating-label-group:hover input,
.floating-label-group select:focus,
.floating-label-group:hover select {
  border: 1px solid var(--Text-primary, #333);
}

.floating-label-group input.wpcf7-not-valid,
.floating-label-group.active input.wpcf7-not-valid,
.floating-label-group select.wpcf7-not-valid,
.floating-label-group.active select.wpcf7-not-valid {
  border: 1px solid var(--color-error);
}

.floating-label-group.not-valid label,
.floating-label-group.not-valid.active label {
  color: var(--color-error);
}

.floating-label-group label {
  display: block;
  padding: .2em .2em 0;
  top: .35em;
  left: .5em;
  position: absolute;
  pointer-events: none;
  cursor: text;
  transform-origin: top left;
  transition: all 0.1s ease-in-out;
  color: var(--Text-secondary, #666);
  z-index: 2;
  background: rgba(255, 255, 255, 0);
  transition: top 0.25s ease-in-out, color 0.25s ease-in-out, background 0.25s ease-in-out, left 0.25s ease-in-out, font-size 0.25s ease-in-out;
}




/* .floating-label-group.active label {
    font-size: .8em;
    top: -1em;
    left: 1em;
    color: var(--color-text);
    background: #F9F9F9;
} */

.floating-label-group.active label {
  font-size: .8em;
  top: -1em;
  left: 1em;
  color: var(--color-text);
  background: linear-gradient(0deg, #F9F9F9 0%, #F9F9F9 41%, transparent 46%, transparent 100%)
}

.floating-label-group.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.wpcf7-acceptance .wpcf7-list-item {
  margin: .5em 0;
}

:focus-visible {
  outline: none;
}

.wpcf7-not-valid-tip {
  color: var(--color-error);
  font-size: .7em;
  font-weight: normal;
  display: block;
  position: absolute;
  right: .5em;
  bottom: .2em;
  pointer-events: none;
}

.wpcf7 form.invalid .wpcf7-response-output:empty,
.wpcf7 form.unaccepted .wpcf7-response-output:empty {
  height: 0;
  overflow-y: hidden;
  transition: height 0.25s ease-in-out;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  height: auto;
  border-color: #ffe39a;
  background: #ffe39a;
  margin: .5em 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
  height: auto;
  border-color: #d1e7dd;
  background: #d1e7dd;
  margin: .5em 0 0;
}



.wpcf7 form .wpcf7-spinner {
  display: flex;
  position: absolute;
  top: 1.2em;
  right: -.3em;
}

.wpcf7 a {
  color: var(--color-secondary);
}

.wpcf7 .row {
  --bs-gutter-x: .65rem;
}

.wpcf7 h5 {
  font-size: 1em;
}

@media screen and (min-width: 992px) {

  /* NOTE Bootstrap cover lg */
  /* .floating-label-group input {
        padding: 1em .75em;
    }

    .floating-label-group label {
        top: .9em;
    } */
  .floating-label-group {
    font-size: 20px;
  }

  .floating-label-group input,
  .floating-label-group input[type="date"],
  .floating-label-group select,
  input[type="submit"] {
    font-size: 20px;
    height: 52px;
  }

  .wpcf7 form.sent .wpcf7-response-output {
    margin: .5em 0 0;
  }
}