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

.contact-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(6px);
}

.contact-modal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.contact-modal-card {
  position: relative;
  width: min(100%, 560px);
  border: 1px solid rgba(191, 219, 254, 0.95);
  border-radius: 18px;
  padding: 16px;
  padding-top: 20px;
  padding-right: 48px;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.contact-modal-close:hover {
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-1px);
}

.contact-modal-eyebrow {
  margin: 0 0 6px;
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 700;
}

.contact-modal-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.contact-modal-copy {
  margin: 0 0 14px;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

.contact-modal-list {
  display: grid;
  gap: 10px;
}

.contact-modal-item {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.contact-modal-label {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.contact-modal-link,
.contact-modal-copy-trigger {
  color: #2563eb;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-all;
}

.contact-modal-copy-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.contact-modal-group-body {
  display: grid;
  gap: 4px;
}

.contact-modal-group-body strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
}

body.contact-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .contact-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .contact-modal-card {
    width: 100%;
    border-radius: 16px;
    padding: 14px;
  }

  .contact-modal-title {
    font-size: 17px;
  }
}
