/* Static export fallback: content must remain visible if React hydration fails. */
main [style*="opacity:0"],
main [style*="opacity: 0"] {
  opacity: 1 !important;
  transform: none !important;
}

#thank-you-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#thank-you-popup.is-open {
  display: flex;
}

.thank-you-dialog {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.35);
  animation: thank-you-enter 220ms ease-out both;
}

.thank-you-dialog::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, #2557a7, #4f83d1, #f4a000);
}

.thank-you-content {
  padding: 38px 40px 40px;
  text-align: center;
}

.thank-you-icon {
  display: flex;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, #2557a7, #4f83d1);
  box-shadow: 0 12px 30px rgba(37, 87, 167, 0.28);
}

.thank-you-title {
  margin: 0 0 14px;
  color: #1c1917;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.2;
  font-weight: 750;
}

.thank-you-text {
  margin: 0;
  color: #57534e;
  font-size: 16px;
  line-height: 1.7;
}

.thank-you-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #57534e;
  background: #f5f5f4;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.thank-you-close:hover {
  color: #1c1917;
  background: #e7e5e4;
  transform: rotate(5deg);
}

.thank-you-action {
  display: inline-flex;
  min-width: 150px;
  margin-top: 26px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 13px 26px;
  color: #fff;
  background: #2557a7;
  box-shadow: 0 10px 24px rgba(37, 87, 167, 0.24);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.thank-you-action:hover {
  background: #1d4688;
  transform: translateY(-1px);
}

@keyframes thank-you-enter {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 540px) {
  #thank-you-popup { padding: 16px; }
  .thank-you-content { padding: 34px 22px 28px; }
  .thank-you-close { top: 15px; right: 15px; }
}
