/* Формы заявок: ловушка для ботов, ошибка, сообщение «спасибо». */
.hb-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

[data-hb-lead] [aria-invalid="true"] { border-color: #E5484D !important; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.2); outline: 0; }

.hb-form-error {
  flex: 1 1 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: #FDECEC;
  color: #B42318;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

/* Выбор страны у поля телефона: значок слева внутри поля, список открывается по нажатию (на телефоне системный) */
.hb-ph { position: relative; display: block; width: 100%; box-sizing: border-box; }
.hb-ph-in { width: 100% !important; box-sizing: border-box !important; padding-left: 74px !important; }
.hb-ph-b {
  position: absolute; left: 0; top: 0; bottom: 0; width: 66px; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; line-height: 1; pointer-events: none;
}
.hb-ph-b::after { content: ""; position: absolute; right: 0; top: 24%; bottom: 24%; width: 1px; background: currentColor; opacity: 0.2; }
.hb-ph-iso { display: inline-flex; align-items: center; }
.hb-ph-b svg { opacity: 0.6; flex: none; }
.hb-ph .hb-ph-sel { position: absolute !important; left: 0 !important; top: 0 !important; bottom: 0 !important; width: 66px !important; height: auto !important; min-height: 0 !important; max-width: 66px !important; z-index: 2; opacity: 0 !important; cursor: pointer; font-size: 16px; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.hb-ph:focus-within .hb-ph-b svg { opacity: 1; }
.hb-ph:has(.hb-ph-sel:focus-visible) .hb-ph-b { outline: 2px solid #F87400; outline-offset: -3px; border-radius: 10px; }

/* после отправки поля и кнопки скрыты, остаётся благодарность */
.hb-lead-sent > *:not(.hb-thanks) { display: none !important; }
.hb-thanks {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(248, 116, 0, 0.12);
  color: inherit;
  font-size: 15px;
  line-height: 1.45;
}
.hb-thanks strong { font-size: 19px; font-weight: 800; }
.hb-thanks-i {
  width: 34px; height: 34px; border-radius: 50%;
  background: #F87400; color: #FFFFFF; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Блок «Приглашаем на пробную процедуру» (template-parts/trial-band.php): тёплое приглашение и форма заявки. */
.tb { position: relative; overflow: hidden; padding: 96px 0; background: #14100D; color: #FFFFFF; }
.tb-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(640px 420px at 92% 100%, rgba(248, 116, 0, .26), transparent 70%), linear-gradient(90deg, rgba(16, 11, 8, .9) 0%, rgba(16, 11, 8, .78) 45%, rgba(16, 11, 8, .62) 100%), url(../img/trial-band.webp) 30% 45% / cover no-repeat; }
.tb-wrap { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.tb-copy { display: flex; flex-direction: column; gap: 18px; }
.tb-tag { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #FFB36B; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); }
.tb-h { margin: 0; font-weight: 800; font-size: 46px; line-height: 1.04; text-transform: uppercase; }
.tb-h span { color: #FF9A3D; }
.tb-lead { margin: 0; max-width: 540px; font-size: 18px; line-height: 1.55; color: rgba(255, 255, 255, .84); }
.tb-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tb-list li { display: flex; gap: 14px; align-items: flex-start; }
.tb-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; color: #FF9A3D; backdrop-filter: blur(6px); }
.tb-list b { display: block; font-size: 17px; font-weight: 700; color: #FFFFFF; }
.tb-list li span { display: block; margin-top: 2px; font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .72); }
.tb-form { background: #FFFFFF; color: #212121; border-radius: 28px; padding: 30px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.tb-fh b { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.tb-fh span { display: block; margin-top: 4px; font-size: 14px; color: #6B6B6B; }
.tb-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tb-f input, .tb-f select { width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid #E8DCCF; padding: 0 16px; font: inherit; font-size: 16px; background: #FFFDFB; color: #212121; }
.tb-f input:focus, .tb-f select:focus { outline: 0; border-color: #F87400; box-shadow: 0 0 0 3px rgba(248, 116, 0, .16); }
.tb-btn { min-height: 60px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #FF8A1F 0%, #F87400 50%, #E05F00 100%); box-shadow: 0 16px 34px rgba(248, 116, 0, .4); color: #FFFFFF; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.tb-btn:hover { transform: translateY(-2px); box-shadow: 0 20px 38px rgba(248, 116, 0, .46); }
.tb-alt { margin: 0; text-align: center; font-size: 13px; color: #6B6B6B; }
.tb-alt a { color: #F87400; font-weight: 700; }
@media (max-width: 900px) {
  .tb { padding: 56px 0; }
  .tb-bg { background: radial-gradient(420px 300px at 90% 100%, rgba(248, 116, 0, .24), transparent 70%), linear-gradient(180deg, rgba(16, 11, 8, .86) 0%, rgba(16, 11, 8, .78) 100%), url(../img/trial-band-m.webp) 35% 40% / cover no-repeat; }
  .tb-wrap { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .tb-h { font-size: 32px; }
  .tb-lead { font-size: 16px; }
  .tb-form { padding: 22px; border-radius: 24px; }
  .tb-fh b { font-size: 20px; }
}
