/* Обёртка формы */
.t-form {
  position: relative;
}

/* Подложка, которая перекрывает всё */
.t-form::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  background: #f5f0e6; /* цвет страницы */
  opacity: 0;

  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Когда форма отправлена — включаем подложку */
.t-form_success .t-form::after {
  opacity: 1;
}

/* Плашка "Спасибо" поверх подложки */
.t-form__successbox {
  position: relative;
  z-index: 2;

  background-color: #173b32 !important;
  color: #ffffff !important;
  border-radius: 24px !important;
  padding: 24px 32px !important;
}


