/* Tour Form — в стиле Tilda «Бесплатная консультация» */
.tf-wrap {
  max-width: 460px;
  margin: 32px auto;
  padding: 36px 32px 28px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, .08);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  box-sizing: border-box;
}
.tf-wrap *, .tf-wrap *::before, .tf-wrap *::after { box-sizing: border-box; }

.tf-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 12px;
}
.tf-subtitle {
  font-size: 14px;
  color: #777;
  text-align: center;
  line-height: 1.45;
  margin-bottom: 22px;
}

.tf-tour {
  border: 1px solid #e7f2d1;
  background: #f8fde9;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 16px;
  text-align: left;
}
.tf-tour__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #6b7c45;
  margin-bottom: 4px;
}
.tf-tour__title {
  font-size: 14px;
  font-weight: 700;
  color: #1a4a00;
  line-height: 1.35;
}

.tf-field { display: block; margin-bottom: 12px; }
.tf-field input {
  width: 100%;
  border: 1.5px solid #e2e2e2;
  border-radius: 100px;
  padding: 14px 22px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.tf-field input::placeholder { color: #b2b2b2; }
.tf-field input:focus {
  border-color: #1e6b1e;
  box-shadow: 0 0 0 3px rgba(30, 107, 30, .1);
}
.tf-field.tf-error input {
  border-color: #d8431a;
  box-shadow: 0 0 0 3px rgba(216, 67, 26, .1);
}

.tf-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 14px;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.tf-consent input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #1e6b1e;
  cursor: pointer;
}
.tf-consent a { color: #1e6b1e; text-decoration: none; }
.tf-consent a:hover { text-decoration: underline; }
.tf-consent.tf-error { color: #d8431a; }
.tf-consent.tf-error input {
  outline: 2px solid rgba(216, 67, 26, .32);
  outline-offset: 2px;
}

.tf-btn {
  width: 100%;
  background: #c6ef6e;
  color: #1a4a00;
  border: none;
  border-radius: 100px;
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .15s;
  margin-top: 8px;
  position: relative;
}
.tf-btn:hover { background: #b5e050; transform: translateY(-1px); }
.tf-btn:active { transform: translateY(0); }
.tf-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.tf-btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(26, 74, 0, .2);
  border-top-color: #1a4a00;
  border-radius: 50%;
  animation: tf-spin .7s linear infinite;
  margin-left: 8px;
  vertical-align: middle;
}
.tf-btn.loading .tf-btn__spinner { display: inline-block; }
.tf-btn.loading .tf-btn__text { opacity: .6; }
@keyframes tf-spin { to { transform: rotate(360deg); } }

.tf-privacy {
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.45;
  margin-top: 14px;
}
.tf-privacy a { color: #1e6b1e; text-decoration: none; }
.tf-privacy a:hover { text-decoration: underline; }

.tf-message {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  min-height: 18px;
  padding: 0 8px;
}
.tf-message.ok { color: #1b5e20; }
.tf-message.err { color: #d8431a; }

.tf-form.sent .tf-field,
.tf-form.sent .tf-consent,
.tf-form.sent .tf-btn,
.tf-form.sent .tf-privacy { display: none; }
.tf-form.sent .tf-success {
  display: block;
  text-align: center;
  padding: 18px 12px;
}
.tf-success { display: none; }
.tf-success__icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: #c6ef6e;
  border-radius: 50%;
  font-size: 28px;
  margin-bottom: 14px;
}
.tf-success__text {
  font-size: 16px;
  color: #1b5e20;
  font-weight: 600;
}

@media (max-width: 480px) {
  .tf-wrap { padding: 28px 22px 22px; border-radius: 16px; }
  .tf-title { font-size: 22px; }
  .tf-subtitle { font-size: 13px; }
  .tf-field input { padding: 12px 18px; font-size: 14px; }
  .tf-btn { padding: 14px 20px; font-size: 13px; }
}
