/* ===== ПОПАП — ОСНОВНОЙ ===== */

.t-popup {
  background: rgba(0,0,0,0.8) !important;
}

.t-popup__container {
  background: linear-gradient(145deg, #1c1c1c 0%, #2a1020 100%) !important;
  border: 1px solid rgba(255, 11, 186, 0.25) !important;
  box-shadow: 0 0 30px rgba(255, 11, 186, 0.15), 0 20px 50px rgba(0,0,0,0.4) !important;
  border-radius: 24px !important;
  padding: 32px 28px !important;
  max-width: 480px !important;
  width: 90vw !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  margin: auto !important;
  box-sizing: border-box !important;
}

.t-popup__container * {
  color: #ffffff !important;
  font-family: 'Unbounded', sans-serif !important;
  box-sizing: border-box !important;
}

.t-popup__container .t-title {
  font-size: 20px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin-bottom: 8px !important;
  line-height: 1.3 !important;
}

.t-popup__container .t-descr {
  font-size: 13px !important;
  color: rgba(255,255,255,0.7) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.7) !important;
  margin-bottom: 16px !important;
  line-height: 1.4 !important;
}

.t-popup__container .t-form__field-title,
.t-popup__container label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  margin-bottom: 4px !important;
  display: block !important;
}

.t-popup__container .t-form__inputsbox {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* ===== ПОЛЯ ВВОДА ===== */

.t-popup__container .t-input,
.t-popup__container input[type="text"],
.t-popup__container input[type="email"],
.t-popup__container input[type="tel"],
.t-popup__container textarea {
  background: rgba(255,255,255,0.07) !important;
  border: 2px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  width: 100% !important;
  outline: none !important;
  caret-color: #ff0bba !important;
}

.t-popup__container .t-input:focus,
.t-popup__container input:focus {
  background: rgba(255,255,255,0.11) !important;
  border-color: #ff0bba !important;
}

.t-popup__container .t-input::placeholder,
.t-popup__container input::placeholder {
  color: rgba(255,255,255,0.35) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.35) !important;
}

/* ===== ФИКС AUTOFILL ===== */

.t-popup__container input:-webkit-autofill,
.t-popup__container input:-webkit-autofill:hover,
.t-popup__container input:-webkit-autofill:focus,
.t-popup__container input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 100px #2a1020 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px !important;
}

.t-popup__container input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #2a1020 inset !important;
  border-color: #ff0bba !important;
}

/* ===== SELECT ===== */

.t-popup__container select,
.t-popup__container select.t-input {
  background: rgba(255,255,255,0.07) !important;
  border: 2px solid rgba(255,255,255,0.12) !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  width: 100% !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.t-popup__container select option {
  background: #2a1020 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}


/* ===== ЧЕКБОКС — ФИНАЛЬНЫЙ ФИКС ===== */

/* Обёртка — жёсткий flex, не ломается */
.t-input-group-cb .t-input-block,
.t-popup__container .t-checkbox,
label.t-checkbox__control,
label.t-checkbox__control.t-checkbox__control_flex {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
}

/* Квадратик — жёстко фиксирован, не сжимается */
.t-checkbox__indicator,
.t-popup__container .t-checkbox__indicator,
div.t-checkbox__indicator,
label.t-checkbox__control .t-checkbox__indicator {
  display: block !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  min-width: 18px !important;
  min-height: 18px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 5px !important;
  border: 2px solid #ff0bba !important;
  border-color: #ff0bba !important;
  background: transparent !important;
  margin-top: 1px !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Отмечен — не меняет размер! */
.t-checkbox__control input[type="checkbox"]:checked ~ .t-checkbox__indicator,
.t-checkbox__input:checked + .t-checkbox__indicator,
input[name="Checkbox"]:checked ~ .t-checkbox__indicator,
.js-tilda-rule:checked ~ .t-checkbox__indicator,
* .t-checkbox__indicator[style] {
  background: #ff0bba !important;
  border-color: #ff0bba !important;
  border: 2px solid #ff0bba !important;
  min-width: 18px !important;
  min-height: 18px !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 10px rgba(255, 11, 186, 0.8) !important;
}

/* Галочка внутри */
.t-checkbox__indicator::after,
.t-popup__container .t-checkbox__indicator::after {
  border-color: #ffffff !important;
  opacity: 1 !important;
}

/* Перебиваем inline style Тильды */
* .t-checkbox__indicator[style] {
  border-color: #ff0bba !important;
}

/* ===== ТЕКСТ — маленький, не вылезает ===== */

.t-popup__container .t-checkbox__text,
.t-checkbox__text,
label.t-checkbox__control .t-text,
label.t-checkbox__control span.t-text,
label.t-checkbox__control .t-text_xs {
  font-size: 9px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: rgba(255,255,255,0.4) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.4) !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  flex: 1 !important;
  min-width: 0 !important;
  word-break: break-word !important;
  margin-top: 2px !important;
}

/* Ссылки — чуть заметнее */
.t-popup__container .t-checkbox__text a,
.t-checkbox__text a,
label.t-checkbox__control .t-text a,
label.t-checkbox__control .t-text_xs a {
  font-size: 9px !important;
  color: rgba(255,255,255,0.6) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.6) !important;
  font-weight: 400 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.t-popup__container .t-checkbox__text a:hover,
.t-checkbox__text a:hover,
label.t-checkbox__control .t-text a:hover {
  color: #ff0bba !important;
  -webkit-text-fill-color: #ff0bba !important;
}

/* Убираем жирный со всех вложенных тегов */
.t-checkbox__text span,
.t-checkbox__text strong,
.t-checkbox__text b,
label.t-checkbox__control .t-text span,
label.t-checkbox__control .t-text strong {
  font-weight: 400 !important;
  font-size: 9px !important;
}
/* ===== СТИЛИЗАЦИЯ ФОРМЫ ===== */
.t-input {
  background: #f5f5f5 !important;
  border: 2px solid transparent !important;
  border-radius: 12px !important;
  padding: 14px 18px !important;
  font-family: 'Unbounded', sans-serif !important;
  font-size: 14px !important;
  color: #0a0a0a !important;
  transition: border-color 0.2s, background 0.2s !important;
  outline: none !important;
}
.t-input:focus {
  background: #fff !important;
  border-color: #ff0bba !important;
}
.t-input::placeholder {
  color: #aaa !important;
  font-size: 13px !important;
}
.t-btn {
  background: #ff0bba !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 32px !important;
  font-family: 'Unbounded', sans-serif !important;
  font-weight: 900 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s !important;
  width: 100% !important;
}
.t-btn:hover {
  background: #d900a0 !important;
  transform: translateY(-1px) !important;
}
.t-checkbox__indicator {
  border-radius: 6px !important;
  border: 2px solid #ff0bba !important;
}
.t-checkbox__input:checked + .t-checkbox__indicator {
  background: #ff0bba !important;
}
@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}


