/* CDO Global — единая CTA-форма V3 (День 3, 2026-07-07).
   Все селекторы формы скоупятся через .cdo-cta-block, чтобы не задевать
   существующие кастомные формы (turing_demo, analytics_demo, leadForm и т.п.).
*/
.cdo-cta-block {
  box-sizing: border-box;
  /* Защита: если блок окажется внутри grid/flex-контейнера,
     он всё равно займёт все колонки и не будет сжат. */
  grid-column: 1 / -1;
  flex-basis: 100%;
  width: 100%;
  margin: 48px auto;
  padding: 40px 24px;
  max-width: 1200px;
  background: linear-gradient(135deg, #f3f6fb 0%, #eaf1fb 100%);
  border-radius: 16px;
  scroll-margin-top: 80px;
}
.cdo-cta-block *,
.cdo-cta-block *::before,
.cdo-cta-block *::after { box-sizing: border-box; }

.cdo-cta-block .cdo-cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .cdo-cta-block { padding: 28px 16px; margin: 32px auto; }
  .cdo-cta-block .cdo-cta-inner { grid-template-columns: 1fr; gap: 24px; }
}
.cdo-cta-block .cdo-cta-copy { min-width: 0; }
.cdo-cta-block .cdo-cta-title {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 12px;
  color: #142033;
  font-weight: 700;
}
@media (max-width: 900px) { .cdo-cta-block .cdo-cta-title { font-size: 22px; } }
.cdo-cta-block .cdo-cta-sub {
  font-size: 16px;
  line-height: 1.5;
  color: #3d4b60;
  margin: 0 0 20px;
}
.cdo-cta-block .cdo-cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cdo-cta-block .cdo-cta-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #3d4b60;
}
.cdo-cta-block .cdo-cta-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.85);
}
.cdo-cta-block .cdo-cta-bullets a { color: #2563eb; text-decoration: none; font-weight: 600; }
.cdo-cta-block .cdo-cta-bullets a:hover { text-decoration: underline; }

.cdo-cta-block .cdo-form {
  background: #fff;
  padding: 28px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.cdo-cta-block .cdo-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cdo-cta-block .cdo-field__label {
  font-size: 13px;
  font-weight: 600;
  color: #142033;
  letter-spacing: 0.01em;
}
.cdo-cta-block .cdo-req { color: #dc2626; font-weight: 700; }
.cdo-cta-block .cdo-field input[type="text"],
.cdo-cta-block .cdo-field input[type="tel"],
.cdo-cta-block .cdo-field input[type="email"],
.cdo-cta-block .cdo-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: #142033;
  background: #fff;
  font-family: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.cdo-cta-block .cdo-field textarea { resize: vertical; min-height: 72px; }
.cdo-cta-block .cdo-field input:focus,
.cdo-cta-block .cdo-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.cdo-cta-block .cdo-field.cdo-field--error input,
.cdo-cta-block .cdo-field.cdo-field--error textarea { border-color: #dc2626; }
.cdo-cta-block .cdo-field__err {
  font-size: 12px;
  color: #dc2626;
  line-height: 1.35;
}
.cdo-cta-block .cdo-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}
.cdo-cta-block .cdo-submit {
  margin-top: 4px;
  padding: 13px 20px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}
.cdo-cta-block .cdo-submit:hover { background: #1d4ed8; }
.cdo-cta-block .cdo-submit:disabled { background: #94a3b8; cursor: not-allowed; }
.cdo-cta-block .cdo-consent {
  font-size: 12px;
  color: #6b7686;
  margin: 0;
  line-height: 1.45;
}
.cdo-cta-block .cdo-consent a { color: #2563eb; text-decoration: underline; }

/* Thank-you state. Показывается вместо полей после успешной отправки. */
.cdo-cta-block .cdo-form.cdo-form--sent .cdo-field,
.cdo-cta-block .cdo-form.cdo-form--sent .cdo-submit,
.cdo-cta-block .cdo-form.cdo-form--sent .cdo-consent,
.cdo-cta-block .cdo-form.cdo-form--sent .cdo-honey { display: none; }
.cdo-cta-block .cdo-form.cdo-form--sent .cdo-thanks { display: block; }
.cdo-cta-block .cdo-thanks {
  display: none;
  padding: 16px 4px 4px;
  text-align: left;
}
.cdo-cta-block .cdo-thanks__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 32px;
  line-height: 1;
  font-weight: 700;
}
.cdo-cta-block .cdo-thanks__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #142033;
}
.cdo-cta-block .cdo-thanks__sub {
  font-size: 15px;
  line-height: 1.55;
  color: #3d4b60;
  margin: 0 0 16px;
}
.cdo-cta-block .cdo-thanks__tg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #229ed9;
  color: #fff !important;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.cdo-cta-block .cdo-thanks__tg:hover { background: #1a86b8; }

/* Sticky mobile CTA — плавающая кнопка «Написать нам» ведёт к #cta. */
.cdo-sticky-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  padding: 12px 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.cdo-sticky-cta:hover { background: #1d4ed8; }
@media (max-width: 900px) {
  .cdo-sticky-cta { display: inline-flex; align-items: center; gap: 6px; }
}
.cdo-sticky-cta.cdo-sticky-cta--hidden { display: none !important; }
