.contact-subscribe-wrap { max-width: 780px; margin: 0 auto 1.5rem; }
.contact-subscribe-button {
  min-height: 44px; padding: .55rem 1.3rem; border: 0; border-radius: .6rem;
  background: #9a0000; color: white; font: inherit; font-weight: 700; cursor: pointer;
}
.contact-subscribe-button:disabled { opacity: .7; }
.contact-subscribe-dialog {
  color: #022e6f; background: white; border: 0; border-radius: 1rem;
  width: min(26rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 1.4rem; box-sizing: border-box; box-shadow: 0 20px 60px #03132c55;
}
.contact-subscribe-dialog::backdrop { background: #03132ca6; }
.contact-subscribe-dialog h2 { margin: 0 0 1rem; padding-inline-end: 3rem; }
.contact-subscribe-close {
  position: absolute; inset-block-start: .65rem; inset-inline-end: .65rem;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  color: #022e6f; background: #edf2f9; font-size: 1.5rem; cursor: pointer;
}
.contact-subscribe-fields { display: grid; gap: .7rem; }
.contact-subscribe-fields label { display: grid; gap: .2rem; font-weight: 700; }
.contact-subscribe-fields input {
  box-sizing: border-box; width: 100%; min-height: 44px; padding: .4rem .6rem;
  border: 1px solid #8797ac; border-radius: .4rem; font: inherit;
}
.contact-subscribe-status { margin: 0; }
.contact-subscribe-status:empty { display: none; }
.contact-subscribe-frame { display:block; width:100%; height:20rem; border:0; }

.contact-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.contact-confetti i {
  position: absolute; top: 58%; left: 50%; width: 7px; height: 12px;
  border-radius: 2px; animation: contact-confetti-burst 1s ease-out both;
}
.contact-confetti i:nth-child(3n) { width: 4px; height: 17px; }
@keyframes contact-confetti-burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  12% { opacity: 1; }
  72% { opacity: 1; }
  100% { transform: translate(var(--fly-x), var(--fly-y)) rotate(var(--spin)); opacity: 0; }
}

.contact-subscribe-frame[hidden], .contact-subscribe-existing[hidden] { display:none; }
.contact-subscribe-existing p { margin:0 0 1rem; }
.contact-subscribe-footer-link { display:block; margin-bottom:.75rem; font-weight:700; }
.contact-subscribe-toast {
  position:fixed; z-index:10001; inset-inline:1rem; inset-block-start:1rem;
  max-width:32rem; margin:0 auto; padding:1rem 1.25rem; border-radius:.75rem;
  background:#147443; color:#fff; text-align:center; font-weight:800;
  box-shadow:0 8px 25px #03132c45; pointer-events:none;
}
.contact-subscribe-toast:empty { display:none; }
.contact-confetti { position:fixed; z-index:10002; }
.contact-confetti i { animation-duration:1.25s; }
.contact-confetti i:nth-child(3n) { height:24px; }
@keyframes contact-confetti-burst {
  0% { transform:translate(0,0) rotate(0); opacity:1; }
  58% { transform:translate(var(--fly-x),var(--fly-y)) rotate(var(--spin)); opacity:1; }
  100% { transform:translate(var(--fly-x),calc(var(--fly-y) + 90px)) rotate(calc(var(--spin) + 110deg)); opacity:0; }
}
