.contact-modal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  color: #064789;
  background: #fff;
  box-shadow: 0 24px 80px rgba(2, 40, 78, .35);
}

.contact-modal[open] {
  animation: modal-enter .38s cubic-bezier(.2, .8, .2, 1) both;
}

.contact-modal[open].is-closing {
  animation: modal-exit .26s cubic-bezier(.4, 0, 1, 1) both;
}

.contact-modal::backdrop {
  background: rgba(2, 37, 72, .72);
  backdrop-filter: blur(4px);
  animation: backdrop-enter .3s ease-out both;
}

.contact-modal.is-closing::backdrop {
  animation: backdrop-exit .26s ease-in both;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes modal-exit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }
}

@keyframes backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdrop-exit {
  from { opacity: 1; }
  to { opacity: 0; }
}

.modal-accent {
  height: 8px;
  background: linear-gradient(90deg, #11a64d, #ffed25 77%, #f78823);
}

.modal-content {
  padding: 42px 48px 48px;
}

.modal-logo {
  display: block;
  width: 166px;
  height: auto;
  margin-bottom: 30px;
  padding: 10px;
  border-radius: 8px;
  background: #085a9e;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border: 0;
  border-radius: 50%;
  color: #064789;
  background: #f3fafe;
  font: 400 30px/1 Inter, sans-serif;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: #fff;
  background: #085a9e;
  outline: none;
}

.modal-kicker {
  margin: 0 0 8px;
  color: #1870b8;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.contact-modal h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.modal-description {
  margin: 12px 0 30px;
  color: #48769e;
  font-size: 16px;
}

.modal-email-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid #c9e1f2;
  border-radius: 12px;
  color: #064789;
  background: #f3fafe;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.modal-email-card:hover,
.modal-email-card:focus-visible {
  border-color: #1870b8;
  box-shadow: 0 8px 24px rgba(8, 90, 158, .13);
  transform: translateY(-2px);
  outline: none;
}

.modal-email-card > span:last-child {
  min-width: 0;
}

.modal-email-card small,
.modal-email-card strong {
  display: block;
}

.modal-email-card small {
  margin-bottom: 5px;
  color: #5680a3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.modal-email-card strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.modal-email-icon {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1870b8;
  font-size: 22px;
}

.modal-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.modal-socials a {
  padding: 11px 16px;
  border: 1px solid #1870b8;
  border-radius: 999px;
  color: #085a9e;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.modal-socials a:hover,
.modal-socials a:focus-visible {
  color: #fff;
  background: #1870b8;
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal-content {
    padding: 34px 24px 30px;
  }

  .modal-logo {
    width: 140px;
    margin-bottom: 24px;
  }

  .contact-modal h2 {
    padding-right: 28px;
    font-size: 27px;
  }

  .modal-email-card {
    gap: 13px;
    padding: 16px;
  }

  .modal-email-card strong {
    font-size: 13px;
  }
}

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