.contact-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  color: #333333;
  font-family: "Nunito", sans-serif;
  text-align: center;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.contact-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: contactDialogFade 250ms ease both;
}

.contact-dialog::backdrop { background: transparent; }

.contact-dialog-content {
  display: flex;
  max-width: 90vw;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: contactDialogPop 350ms cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.contact-dialog h2 {
  margin: 0;
  color: #1a1a1a;
  font-family: "Carter One", cursive;
  font-size: 30px;
  font-weight: 400;
}

.contact-dialog p { margin: 0; font-size: 16px; }

.contact-dialog-close {
  position: fixed;
  top: 18px;
  right: 22px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #555555;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.contact-dialog-qr,
.contact-dialog-qr img {
  width: min(260px, 68vw);
  height: min(260px, 68vw);
}

.contact-dialog-qr img { display: block; }

.contact-dialog-action,
.contact-dialog-phone {
  display: block;
  width: max-content;
  margin: 0 auto;
  font-family: "Carter One", cursive;
}

.contact-dialog-action {
  padding: 12px 24px;
  background: #ff1fa9;
  color: #ffffff;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.contact-dialog-action:hover,
.contact-dialog-action:focus-visible { background: #fff0fa; color: #1a1a1a; }

.contact-dialog-phone {
  color: #1a1a1a;
  text-decoration: none;
}

.contact-dialog-phone:hover,
.contact-dialog-phone:focus-visible { color: #d40e8a; }

.contact-dialog-close:hover,
.contact-dialog-close:focus-visible { color: #1a1a1a; }

.contact-dialog-close:focus-visible,
.contact-dialog-action:focus-visible,
.contact-dialog-phone:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 4px; }

@keyframes contactDialogFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes contactDialogPop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open],
  .contact-dialog-content { animation: none; }
}

@media (max-width: 520px) {
  .contact-dialog { padding: 22px; }
}
