.contact-dialog {
  position: fixed;
  inset: 0;
  width: min(29rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  margin: auto;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid #cbd3cc;
  border-radius: 1rem;
  background: #fffef8;
  color: #132f35;
  box-shadow: 0 12px 50px #132f3533;
  font: inherit;
}

.contact-dialog::backdrop { background: #132f3580; }
.contact-dialog h2 { margin: 0 2.1rem .4rem 0; font-family: inherit; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.contact-dialog p { margin: 0; }

.contact-dialog-close {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.55rem;
  cursor: pointer;
}

.contact-dialog-number { display: block; margin: 1rem 0; font-size: .9rem; font-weight: 700; }
.contact-dialog-number input {
  display: block;
  width: 100%;
  margin-top: .25rem;
  padding: .55rem .7rem;
  border: 1px solid #a5b8b8;
  border-radius: .4rem;
  color: inherit;
  background: white;
  font-size: 1.1rem;
}

.contact-dialog-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.contact-dialog-actions > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .45rem 1rem;
  border: 1px solid #0066db;
  border-radius: 2rem;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.contact-dialog-open { background: #0066db; color: white; }
.contact-dialog-copy { background: transparent; color: #0054b2; }
.contact-dialog-status:not(:empty) { margin-top: .75rem; font-size: .9rem; }
.contact-dialog :is(a, button, input):focus-visible { outline: 3px solid #0066db; outline-offset: 3px; }
