.grant-application-cta {
  align-items: center !important;
  background: #f6a800 !important;
  border: 3px solid #12384a !important;
  border-radius: 999px !important;
  box-shadow: 0 5px 0 #12384a, 0 9px 22px rgb(18 56 74 / 22%) !important;
  color: #12384a !important;
  cursor: pointer;
  display: inline-flex !important;
  font-size: max(1rem, 16px) !important;
  font-weight: 800 !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  min-height: 52px;
  padding: .85rem 1.5rem !important;
  text-decoration: none !important;
  transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.grant-application-cta::after {
  content: "\2192" !important;
  font-size: 1.25em;
  line-height: 1;
  margin-left: .65rem !important;
}

.grant-application-cta:hover {
  background: #12384a !important;
  box-shadow: 0 5px 0 #f6a800, 0 10px 24px rgb(18 56 74 / 28%) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

.grant-application-cta:focus-visible {
  background: #fff !important;
  color: #12384a !important;
  outline: 4px solid #f6a800 !important;
  outline-offset: 4px !important;
}

.grant-modal {
  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: #12384a;
  box-shadow: 0 24px 80px rgb(0 0 0 / 35%);
}

.grant-modal::backdrop {
  background: rgb(5 31 44 / 72%);
  backdrop-filter: blur(3px);
}

.grant-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 20px 32px;
  border-bottom: 1px solid #dce8ed;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.grant-modal__title {
  margin: 0 0 4px;
  color: #12384a;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
}

.grant-modal__intro {
  margin: 0;
  color: #496773;
}

.grant-modal__form {
  min-height: 360px;
  padding: 24px 32px 32px;
  overflow: auto;
}

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

@media (max-width: 600px) {
  .grant-application-cta {
    min-height: 56px;
    width: 100%;
  }

  .grant-modal {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 12px;
  }

  .grant-modal__header {
    padding: 16px 14px 16px 18px;
  }

  .grant-modal__form {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .grant-application-cta {
    transition: none;
  }
}
