.contact-sheet[hidden] {
  display: none;
}

.contact-sheet {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: grid;
  align-items: end;
  color: #1d2d4d;
}

.contact-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 37, 68, 0.44);
  backdrop-filter: blur(3px);
}

.contact-sheet__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  margin: 0 auto;
  box-sizing: border-box;
  padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
  border: 1px solid rgba(222, 230, 247, 0.96);
  border-radius: 26px 26px 0 0;
  background: #fff;
  box-shadow: 0 -18px 48px rgba(27, 46, 91, 0.22);
}

.contact-sheet__handle {
  width: 40px;
  height: 5px;
  margin: 0 auto 13px;
  border-radius: 999px;
  background: #dce4f1;
}

.contact-sheet__close {
  position: absolute;
  top: 15px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: #f3f6fb;
  color: #64748e;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.contact-sheet__close:focus-visible,
.contact-sheet__copy:focus-visible {
  outline: 3px solid rgba(62, 108, 242, 0.32);
  outline-offset: 2px;
}

.contact-sheet__eyebrow {
  margin: 4px 48px 5px 0;
  color: #5475d7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contact-sheet h2 {
  margin: 0;
  color: #1a2946;
  font-size: clamp(22px, 6vw, 28px);
  line-height: 1.25;
}

.contact-sheet__description {
  margin: 9px 0 0;
  color: #677792;
  font-size: 14px;
  line-height: 1.65;
}

.contact-sheet__contact {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #d6e5ff;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4f8ff, #fafdff);
}

.contact-sheet__contact span {
  color: #6a7d9e;
  font-size: 12px;
  font-weight: 700;
}

.contact-sheet__contact strong {
  overflow-wrap: anywhere;
  color: #21375d;
  font-size: 19px;
  line-height: 1.35;
}

.contact-sheet__prompt {
  margin: 11px 2px 0;
  color: #7584a0;
  font-size: 13px;
  line-height: 1.6;
}

.contact-sheet__copy {
  width: 100%;
  min-height: 48px;
  margin-top: 15px;
  border: 0;
  border-radius: 15px;
  background: #316cf4;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(49, 108, 244, 0.2);
}

.contact-sheet__copy:active {
  transform: translateY(1px);
}

.contact-sheet__status {
  min-height: 1.25em;
  margin: 9px 2px 0;
  color: #4b77d8;
  font-size: 13px;
  line-height: 1.5;
}

@media (min-width: 680px) {
  .contact-sheet {
    align-items: center;
    padding: 24px;
  }

  .contact-sheet__panel {
    padding-bottom: 24px;
    border-radius: 25px;
  }
}

@media (max-width: 360px) {
  .contact-sheet__panel {
    padding-right: 16px;
    padding-left: 16px;
  }
}
