/* tradutora-contact.css — блок выбора способа связи и пассивная надпись.

   Механика повторяет компонент OKNO, оформление — типографику Tradutora:
   Arial, цвет #222, поля с той же высотой и рамками, что у соседних полей
   формы. Специально сделано так, чтобы на телефоне кнопки были крупными,
   ничего не выезжало за край и выбор страны не сминал поле номера. */

.trd-contact { margin: 0 0 20px; }
.trd-contact__label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #222;
  margin-bottom: 8px;
}
.trd-contact__req { color: #d0021b; }

/* переключатель Telegram / WhatsApp */
.trd-contact__seg {
  display: flex;
  border: 1px solid #222;
  border-radius: 2px;
  overflow: hidden;
}
.trd-contact__btn {
  flex: 1 1 50%;
  min-height: 48px;
  padding: 12px 8px;
  border: 0;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  color: #222;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.trd-contact__btn + .trd-contact__btn { border-left: 1px solid #222; }
.trd-contact__btn:hover { background: #f4f4f4; }
.trd-contact__btn--on,
.trd-contact__btn--on:hover { background: #222; color: #fff; }

/* поле выбранного способа */
.trd-contact__input:empty { display: none; }
.trd-contact__input { margin-top: 10px; }

.trd-contact__tg,
.trd-contact__wa {
  display: flex;
  align-items: stretch;
  border: 1px solid #222;
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}
.trd-contact__prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f4f4f4;
  border-right: 1px solid #222;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #666;
  white-space: nowrap;
}
.trd-contact__country {
  flex: 0 0 auto;
  max-width: 42%;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid #222;
  background: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #222;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.trd-contact__field {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 12px;
  border: 0;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #222;
}
.trd-contact__field:focus { outline: none; }
.trd-contact__help {
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #888;
}
.trd-contact__loading { padding: 12px; color: #888; }

/* ошибка не двигает всю форму: место под неё выделено заранее */
.trd-contact__error {
  min-height: 18px;
  margin-top: 6px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #d0021b;
  visibility: hidden;
}
.trd-contact__error--show { visibility: visible; }
.trd-contact--invalid .trd-contact__seg,
.trd-contact--invalid .trd-contact__tg,
.trd-contact--invalid .trd-contact__wa { border-color: #d0021b; }

/* ─── пассивная надпись вместо галочки согласия ───────────────────────────
   Отдельного обязательного чекбокса в формах больше нет: согласие на
   обработку выражается самой отправкой. Слой согласия на аналитику — это
   другой механизм, он не меняется. */
.trd-form-notice {
  margin: 0 0 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #888;
}
.trd-form-notice a { color: #222; text-decoration: underline; }
.trd-form-notice a:hover { opacity: .7; }

@media screen and (max-width: 639px) {
  .trd-contact__btn { font-size: 16px; min-height: 52px; }
  .trd-contact__field { font-size: 16px; }   /* 16px — иначе iOS увеличивает страницу */
  .trd-contact__country { font-size: 15px; max-width: 46%; }
}
