/* Контейнер формы */
.cf7-beauty-popup {
  position: relative;
  margin: 40px auto;
  padding: 28px;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #fff;
  text-align: left;
  box-shadow: 0 18px 40px rgba(10,20,40,0.45);
}

/* Фон */
.cf7-beauty-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("https://www.shautsova.com/images/american-flag.jpg") center/cover no-repeat;
  filter: saturate(0.88) contrast(1.02);
  transform: scale(1.05);
  z-index: 0;
}
.cf7-beauty-popup::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,24,66,0.48), rgba(4,10,30,0.64));
  z-index: 1;
}

/* Внутренний контент поверх фона */
.cf7-beauty-popup .wpcf7-form,
.cf7-beauty-popup > * {
  position: relative;
  z-index: 2;
}

/* Заголовок */
.cf7-beauty-popup .cf7-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cf7-beauty-popup .cf7-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: .2px;
}
.cf7-beauty-popup .cf7-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.88);
  margin: 2px 0 0;
}

/* Поля ввода */
.cf7-beauty-popup input[type="text"],
.cf7-beauty-popup input[type="email"],
.cf7-beauty-popup input[type="tel"],
.cf7-beauty-popup textarea,
.cf7-beauty-popup select {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  outline: none;
  box-sizing: border-box;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

/* Фокус поля */
.cf7-beauty-popup input:focus,
.cf7-beauty-popup textarea:focus,
.cf7-beauty-popup select:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(3,10,30,0.35);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
	color:#fff !important;
}

/* Многострочное поле */
.cf7-beauty-popup textarea { min-height: 110px; resize: vertical; }

/* Label к полям */
.cf7-beauty-popup label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.94);
  margin-bottom: 6px;
  font-weight: 600;
}

/* Кнопка отправки */
.cf7-beauty-popup .wpcf7-submit {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(180deg,#ff6b4a 0%, #d9402e 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(217,64,46,0.28), inset 0 -2px 0 rgba(255,255,255,0.06);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

/* Hover/active для кнопки */
.cf7-beauty-popup .wpcf7-submit:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(217,64,46,0.32); }
.cf7-beauty-popup .wpcf7-submit:active { transform: translateY(0); opacity: .96; }

/* Чекбоксы и радио стиль */
.cf7-beauty-popup .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.95);
  margin-bottom: 8px;
}

/* Ошибки и сообщения */
.cf7-beauty-popup .wpcf7-not-valid-tip {
  display: block;
  background: rgba(255,50,50,0.08);
  color: #ffdede;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 12px;
} 
.cf7-beauty-popup .wpcf7-response-output {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 14px;
}
.cf7-beauty-popup .wpcf7-mail-sent-ok { background: rgba(20,160,100,0.12); color: #e6ffee; border: 1px solid rgba(20,160,100,0.14); }
.cf7-beauty-popup .wpcf7-mail-sent-ng { background: rgba(255,60,60,0.10); color: #ffdfe0; border: 1px solid rgba(255,60,60,0.12); }

/* Малые экраны */
@media (max-width: 600px) {
  .cf7-beauty-popup { width: 94%; padding: 18px; border-radius: 12px; margin: 18px auto; }
  .cf7-beauty-popup .cf7-title { font-size: 18px; }
  .cf7-beauty-popup .wpcf7-submit { width: 100%; text-align: center; padding: 12px; }
  .pum-theme-46 .pum-content + .pum-close, .pum-theme-content-only .pum-content + .pum-close { right: 17px; }
}

/* Кнопка закрытия */
.pum-theme-46 .pum-content + .pum-close, .pum-theme-content-only .pum-content + .pum-close {
    height: 28px;
    width: 28px;
	color: #fff !important;
}