/* ============================================================
   YPONTON.RU — переиспользуемая форма обратной связи (шорткод [yp_contact_form]).
   Извлечено из home-redesign.css (блок «Контакт/форма»), изолировано под .yph-cf,
   воспроизводит «серый+navy» вид как на главной (body.home #ypi-contact).
   Шрифт Onest подключён глобально (ypi_enqueue_header_assets). Префикс yph-.
   ============================================================ */
.yph-cf, .yph-cf * , .yph-cf *::before, .yph-cf *::after { box-sizing: border-box; }
.yph-cf {
  font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #11233f; -webkit-font-smoothing: antialiased;
  /* серая карточка-обёртка (как body.home #ypi-contact) */
  background: #f8f8f8; border: 1px solid #ced4da; border-radius: 20px; padding: 44px;
  margin: 40px 0;
}

/* внутренний блок — прозрачный, стили несёт .yph-cf */
.yph-cf .yph-contact { background: transparent; border: none; box-shadow: none; border-radius: 0; padding: 0; }

.yph-cf .yph-contact__top {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid #dde4ee;
}
.yph-cf .yph-contact__intro { min-width: 260px; }
.yph-cf .yph-contact__t { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: #11233f; }
/* Нейтрализуем оформление h2 страницы (напр. price.css: оранжевая метка ::before + border),
   чтобы заголовок формы выглядел ровно как на главной, независимо от страницы. */
.yph-cf .yph-contact__t { font-size: 21px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.yph-cf .yph-contact__t::before { content: none !important; display: none !important; }
.yph-cf .yph-contact__d { margin: 0; font-size: 14.5px; line-height: 1.6; color: #6a7588; max-width: 560px; }
.yph-cf .yph-contact__info { text-align: right; flex: none; }
.yph-cf .yph-contact__phone { display: block; font-size: 27px; font-weight: 800; color: #11233f; text-decoration: none; white-space: nowrap; }
.yph-cf .yph-contact__hours { display: block; margin-top: 4px; font-size: 14px; color: #8b94a3; }

/* Соцсети/мессенджеры */
.yph-cf .yph-contact__socials {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  padding-bottom: 26px; margin-bottom: 28px; border-bottom: 1px solid #dde4ee;
}
.yph-cf .yph-contact__soclabel { font-size: 14px; color: #6a7588; font-weight: 600; }
.yph-cf .yph-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.yph-cf .yph-soc {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1.5px solid #e1e6ee; color: #11233f;
  font-size: 13.5px; font-weight: 700; text-decoration: none;
  transition: transform .15s, border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.yph-cf .yph-soc:hover { transform: translateY(-2px); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(17,35,63,.16); }
.yph-cf .yph-soc--vk:hover  { background: #0077ff; }
.yph-cf .yph-soc--ok:hover  { background: #ee8208; }
.yph-cf .yph-soc--max:hover { background: #7f4dff; }
.yph-cf .yph-soc--tg:hover  { background: #229ed9; }
.yph-cf .yph-soc--wa:hover  { background: #25d366; }

/* Форма */
.yph-cf .yph-form { padding: 0; display: flex; flex-direction: column; gap: 14px; }
.yph-cf .yph-form__row { display: block; }
.yph-cf .yph-form__row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.yph-cf .yph-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.yph-cf .yph-form__foot .yph-consent { flex: 1; min-width: 260px; }
.yph-cf .yph-input {
  width: 100%; font: inherit; font-size: 15px; color: #11233f;
  border: 1px solid #ced4da; border-radius: 12px;
  padding: 15px 16px; -webkit-appearance: none; appearance: none;
  background: #fff; box-shadow: none; transition: border-color .15s, background .15s, box-shadow .15s;
}
.yph-cf .yph-input::placeholder { color: #97a1b2; opacity: 1; }
/* navy-акцент (как body.home #ypi-contact) */
.yph-cf .yph-input:focus { background: #fff; border-color: #001f3f; box-shadow: 0 0 0 3px rgba(0,31,63,.14); outline: none; }
.yph-cf textarea.yph-input:focus,
.yph-cf textarea.yph-input:focus-visible { border-color: #001f3f !important; }
.yph-cf .yph-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.yph-cf .yph-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.yph-cf .yph-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.5; color: #6a7588; cursor: pointer; }
.yph-cf .yph-consent input { margin-top: 2px; width: 17px; height: 17px; flex: none; accent-color: #001f3f; }
.yph-cf .yph-consent a { color: #001f3f; text-decoration: none; }
.yph-cf .yph-consent a:hover { text-decoration: underline; }
.yph-cf .yph-form__submit {
  align-self: flex-start; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: #001f3f; color: #fff; border: none; border-radius: 13px;
  height: 54px; padding: 0 32px; font: inherit; font-size: 16px; font-weight: 700;
  -webkit-appearance: none; appearance: none; box-shadow: none;
  transition: background .18s, gap .18s;
}
.yph-cf .yph-form__submit:hover { background: #002a52; gap: 13px; }
.yph-cf .yph-form__submit svg { width: 18px; height: 18px; }
.yph-cf .yph-form__note { padding: 12px 16px; border-radius: 11px; font-size: 14px; line-height: 1.4; }
.yph-cf .yph-form__note--ok { background: #e9f8ee; color: #1c7a3f; border: 1px solid #b8e6c7; }
.yph-cf .yph-form__note--err { background: #fdecec; color: #c0392b; border: 1px solid #f3c2bd; }

/* Убрать синюю UA-обводку фокуса у ссылок/кнопок внутри блока */
.yph-cf :focus, .yph-cf :focus-visible { outline: none; }
.yph-cf a, .yph-cf button { -webkit-tap-highlight-color: transparent; }

@media (max-width: 600px) {
  .yph-cf { padding: 24px 18px; }
  .yph-cf .yph-form__row--3 { grid-template-columns: 1fr; }
  .yph-cf .yph-contact__top { align-items: flex-start; }
  .yph-cf .yph-contact__info { text-align: left; }
  .yph-cf .yph-form__submit { width: 100%; justify-content: center; }
}

/* Форма обратной связи никогда не попадает в печать/PDF (в т.ч. при «Печать страницы» на /price/). */
@media print {
  .yph-cf { display: none !important; }
}
