.form-trap {
  display: none !important;
}

/* btn */

.btn, button, .button {
  display: inline-block;
  min-width: 180px;
  min-height: 50px;
  padding: 12px 15px;

  background: var(--color-accent);
  border: 2px solid var(--color-accent);
  color: var(--color-white);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: filter .1s ease-in-out, background-color .1s ease-in-out, color .1s ease-in-out;
  outline: none;
  border-radius: 2px;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 200;
  line-height: 1.2;
  -webkit-appearance: none;

  @media (width < 480px) {
    min-width: 130px;
    padding: 8px 15px;
    min-height: 40px;
  }

  &:disabled {
    opacity: .6;
    pointer-events: none;
  }

  &:hover {
    filter: contrast(1.25) saturate(1.25);
    text-decoration: none;
  }

  &:active {
    filter: contrast(.8) saturate(.8);
  }
}

.btn--ruble::before {
  content: '₽';
  margin-right: 10px;
  font-weight: 400;
}

.btn--arrow-right::after {
  content: '➔';
  margin-left: 10px;
  font-weight: 400;
}

.btn--white-transparent {
  border: 2px solid var(--color-white);
  background-color: transparent;

  &:hover {
    background-color: var(--color-white);
    color: var(--color-black-light);
  }
}

/* input */

.input-wrapper {
  position: relative;
  display: block;
  padding: 0 0 20px;

  .error {
    display: none;
    position: absolute;
    bottom: 3px;
    left: 0;

    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 12px;
    color: var(--color-red-dark);
  }
}

.input-wrapper__input {
  width: 100%;
}

.input-wrapper__label {
  position: absolute;
  top: -12px;
  left: 16px;
  right: 16px;
  width: calc(100% - 25px);

  color: var(--color-grey-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
  pointer-events: none;
  text-shadow: -2px 1px 1px var(--color-grey-extra-light), 2px 1px 1px var(--color-grey-extra-light);
  white-space: nowrap;

  transition: top .1s ease, color .06s linear, font-size .1s linear;
}

.input-wrapper__input:placeholder-shown + .input-wrapper__label,
.input-wrapper__textarea:placeholder-shown + .input-wrapper__label {
  top: 14px;
  color: var(--color-black);
  font-size: 16px;

  @media (width < 480px) {
    top: 8px;
  }
}

.input-wrapper__input:focus + .input-wrapper__label,
.input-wrapper__textarea:focus + .input-wrapper__label {
  top: -12px;
}

.input-wrapper__textarea {
  display: block;
  width: 100%;
  line-height: 1.4;
  height: 50px;
  resize: vertical;
}

/* Флажок согласия под формой и баннер cookie */

.consent {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-grey-dark);
}

.consent__label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.consent__input {
  flex: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 1px 0 0;
  padding: 0;
  background: none;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--color-accent);
  cursor: pointer;

  /* Класс ставит RadicalForm, когда флажок обязателен и не отмечен. */
  &.is-invalid + .consent__text {
    color: var(--color-red-dark);
  }
}

.consent__note {
  margin: 4px 0 0 24px;
  font-weight: 200;
}

.consent__link {
  border-bottom: 1px dashed var(--color-grey);
  color: var(--color-black-extra-light);

  transition: border .1s ease;

  &:hover {
    text-decoration: none;
    border-color: transparent;
  }
}

.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
  padding: 12px var(--container-gutter);

  background: var(--color-white);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-black-extra-light);

  &[hidden] {
    display: none;
  }
}

.cookie-banner__text {
  margin: 0;
  max-width: 640px;
}

.cookie-banner__buttons {
  display: flex;
  gap: 10px;
}

.cookie-banner__decline {
  background: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}
