/* Shared modal form shell for the standalone static website. */
body.site-modal-open {
  overflow: hidden;
}

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

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 19, 30, 0.78);
  backdrop-filter: blur(4px);
}

.site-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid rgba(67, 132, 168, 0.32);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(8, 19, 30, 0.38);
  color: #24364b;
  outline: none;
}

.site-modal__dialog:focus-visible {
  box-shadow: 0 0 0 3px rgba(67, 132, 168, 0.34),
    0 28px 80px rgba(8, 19, 30, 0.38);
}

.site-modal__header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #101d28, #1d3650);
  color: #ffffff;
}

.site-modal__eyebrow {
  margin: 0 0 4px;
  color: #b9d8e8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-modal__header h2 {
  margin: 0;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.site-modal__close {
  appearance: none;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

.site-modal__close svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-modal__close:hover,
.site-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid rgba(255, 255, 255, 0.66);
  outline-offset: 2px;
}

.site-modal__body {
  padding: 28px;
}

.site-modal__intro {
  margin: 0 0 20px;
  color: #52677e;
  line-height: 1.65;
}

.site-modal__context {
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid #c8dae4;
  border-radius: 10px;
  background: #f3f8fb;
  color: #244b62;
  font-size: 0.9rem;
  font-weight: 700;
}

.hubspot-form-host {
  --hsf-global__font-family: "Plus Jakarta Sans", sans-serif;
  --hsf-button__background-color: #4384a8;
  --hsf-button__border-radius: 8px;
  min-height: 1px;
}

.hubspot-form-status {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #c8dae4;
  border-radius: 12px;
  background: #f3f8fb;
}

.hubspot-form-status[hidden] {
  display: none;
}

.hubspot-form-status p {
  margin: 0;
  color: #52677e;
}

.site-modal__privacy {
  margin: 20px 0 0;
  color: #6d7f91;
  font-size: 0.78rem;
  line-height: 1.5;
}

.site-modal__privacy a {
  color: #336f91;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-noscript-notice {
  margin: 0;
  padding: 12px 20px;
  background: #f3f8fb;
  color: #52677e;
  font-size: 0.88rem;
  text-align: center;
}

.legal-modal-button {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .site-modal {
    align-items: end;
    padding: 0;
  }

  .site-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 0 0;
  }

  .site-modal__header,
  .site-modal__body {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-modal__backdrop {
    backdrop-filter: none;
  }
}
