/* Harvey form skin for Tilda form block BF101/BF102.
   Вставить в Page Settings -> Additional CSS.
   Лучше добавить форме CSS class: harvey-lead-form.
   Если поля класса нет, CSS также цепляется за #contact .t-form. */

#contact .t-form,
.harvey-lead-form .t-form {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

#contact .t-input-group,
.harvey-lead-form .t-input-group {
  margin: 0 !important;
}

#contact .t-input-group:nth-child(n+3),
#contact .t-form__submit,
.harvey-lead-form .t-input-group:nth-child(n+3),
.harvey-lead-form .t-form__submit {
  grid-column: 1 / -1;
}

#contact .t-input,
#contact .t-input-phonemask,
#contact textarea.t-input,
.harvey-lead-form .t-input,
.harvey-lead-form .t-input-phonemask,
.harvey-lead-form textarea.t-input {
  width: 100% !important;
  height: auto !important;
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, .13) !important;
  background: rgba(0, 0, 0, .24) !important;
  color: #f6f0e6 !important;
  border-radius: 18px !important;
  padding: 16px 18px !important;
  font: 16px/1.35 Inter, system-ui, -apple-system, Segoe UI, sans-serif !important;
  outline: none !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

#contact textarea.t-input,
.harvey-lead-form textarea.t-input {
  min-height: 120px !important;
  resize: vertical;
}

#contact .t-input:focus,
#contact .t-input-phonemask:focus,
#contact textarea.t-input:focus,
.harvey-lead-form .t-input:focus,
.harvey-lead-form .t-input-phonemask:focus,
.harvey-lead-form textarea.t-input:focus {
  border-color: rgba(214, 179, 106, .55) !important;
  box-shadow: 0 0 0 4px rgba(214, 179, 106, .08) !important;
}

#contact .t-input::placeholder,
#contact textarea.t-input::placeholder,
.harvey-lead-form .t-input::placeholder,
.harvey-lead-form textarea.t-input::placeholder {
  color: rgba(169, 160, 150, .78) !important;
}

#contact .t-submit,
.harvey-lead-form .t-submit {
  width: 100% !important;
  min-height: 56px !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 15px 20px !important;
  background: linear-gradient(135deg, #f4d99a, #c3933d) !important;
  color: #15100a !important;
  font: 800 16px/1 Inter, system-ui, -apple-system, Segoe UI, sans-serif !important;
  box-shadow: 0 18px 45px rgba(214, 179, 106, .26) !important;
  cursor: pointer;
}

#contact .t-submit:hover,
.harvey-lead-form .t-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

#contact .t-form__errorbox-wrapper,
#contact .t-form__successbox,
.harvey-lead-form .t-form__errorbox-wrapper,
.harvey-lead-form .t-form__successbox {
  grid-column: 1 / -1;
  border-radius: 18px !important;
}

@media (max-width: 680px) {
  #contact .t-form,
  .harvey-lead-form .t-form {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  #contact .t-input,
  #contact .t-input-phonemask,
  #contact textarea.t-input,
  .harvey-lead-form .t-input,
  .harvey-lead-form .t-input-phonemask,
  .harvey-lead-form textarea.t-input {
    padding: 13px 14px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }
}