﻿body.dgp-form-modal-open { overflow: hidden; }
.wpcf7 form.sent .wpcf7-response-output { display: none !important; }

.dgp-thank-you-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity .2s ease, visibility .2s ease;
}
.dgp-thank-you-modal.is-visible { visibility: visible; opacity: 1; }
.dgp-thank-you-modal__backdrop { position: absolute; inset: 0; background: rgba(18, 28, 45, .58); }
.dgp-thank-you-modal__card {
  position: relative;
  width: min(100%, 500px);
  box-sizing: border-box;
  padding: 42px 34px 34px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(18, 28, 45, .25);
  text-align: center;
  transform: translateY(12px) scale(.98);
  transition: transform .2s ease;
}
.dgp-thank-you-modal.is-visible .dgp-thank-you-modal__card { transform: translateY(0) scale(1); }
.dgp-thank-you-modal__close { position: absolute; top: 10px; right: 14px; border: 0; background: none; color: #6e675e; font-size: 28px; line-height: 1; cursor: pointer; }
.dgp-thank-you-modal__icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; background: #2f9e5b; color: #fff; font-size: 28px; font-weight: 700; }
.dgp-thank-you-modal__card h2 { margin: 0 0 10px; color: #293992; font-size: clamp(21px, 3vw, 28px); }
.dgp-thank-you-modal__card p { margin: 0 auto 24px; color: #514b45; font-size: 15px; }
.dgp-thank-you-modal__ok { min-width: 130px; min-height: 42px; border: 0; border-radius: 4px; background: #293992; color: #fff; font-weight: 700; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .dgp-thank-you-modal, .dgp-thank-you-modal__card { transition: none; } }
