/* A conversation opens above the page; the approved page stays in place. */
html.emavio-contact-is-open {
  overflow: hidden;
  scrollbar-gutter: stable;
}

dialog.emavio-contact {
  --emavio-contact-ink: #10263e;
  --emavio-contact-muted: #536974;
  --emavio-contact-sage: #75a17f;
  --emavio-contact-line: #dce5de;
  box-sizing: border-box;
  width: min(960px, calc(100vw - 48px));
  max-width: none;
  max-height: min(90svh, 950px);
  margin: auto;
  padding: 0;
  border: 1px solid rgb(220 229 222 / .8);
  border-radius: 24px;
  background: #fdfefd;
  color: var(--emavio-contact-ink);
  box-shadow: 0 28px 100px rgb(16 38 62 / .16);
  font: 400 16px/1.6 Arial, Helvetica, sans-serif;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

dialog.emavio-contact[open] { display: flex; flex-direction: column; }
dialog.emavio-contact::backdrop {
  background: rgb(16 38 62 / .24);
  backdrop-filter: blur(7px);
  opacity: 1;
  transition: opacity 220ms ease;
}
dialog.emavio-contact.emavio-contact--entering {
  animation: emavio-contact-arrive 350ms cubic-bezier(.2, .7, .3, 1) both;
}
dialog.emavio-contact.emavio-contact--entering::backdrop {
  animation: emavio-contact-backdrop 350ms ease both;
}
dialog.emavio-contact.emavio-contact--closing {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
dialog.emavio-contact.emavio-contact--closing::backdrop { opacity: 0; }

.emavio-contact .emavio-contact__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 16px 26px 12px 36px;
  background: #fdfefd;
}
.emavio-contact .emavio-contact__logo {
  display: block;
  width: 116px;
  max-width: none;
  height: auto;
}
.emavio-contact .emavio-contact__close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f4f1;
  color: var(--emavio-contact-ink);
  cursor: pointer;
  transition: background 180ms ease;
}
.emavio-contact .emavio-contact__close:hover { background: #e4ece5; }
.emavio-contact .emavio-contact__close svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}
.emavio-contact .emavio-contact__content {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 42px;
  min-height: 0;
  padding: 20px 42px 40px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.emavio-contact .emavio-contact__intro { padding-top: 3px; }
.emavio-contact .emavio-contact__kicker {
  margin: 0 0 20px;
  color: var(--emavio-contact-muted);
  font: 400 11px/1.6 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.emavio-contact .emavio-contact__title {
  margin: 0;
  color: var(--emavio-contact-ink);
  font: 700 clamp(34px, 3.5vw, 43px)/1.13 'Trebuchet MS', Arial, sans-serif;
  letter-spacing: -.045em;
}
.emavio-contact .emavio-contact__title span { color: #50788b; }
.emavio-contact .emavio-contact__description {
  margin: 22px 0 0;
  color: var(--emavio-contact-muted);
  font: 400 14px/1.85 Arial, Helvetica, sans-serif;
}
.emavio-contact .emavio-contact__direct {
  margin: 28px 0 0;
  color: var(--emavio-contact-muted);
  font: 400 12px/1.8 Arial, Helvetica, sans-serif;
}
.emavio-contact .emavio-contact__direct a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--emavio-contact-ink);
  font-size: 14px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.emavio-contact .emavio-contact__form { margin: 0; min-width: 0; }
.emavio-contact .emavio-contact__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 16px;
}
.emavio-contact .emavio-contact__field {
  display: block;
  min-width: 0;
  color: var(--emavio-contact-ink);
  font: 400 12px/1.6 Arial, Helvetica, sans-serif;
}
.emavio-contact .emavio-contact__field--full { grid-column: 1 / -1; }
.emavio-contact .emavio-contact__optional {
  color: var(--emavio-contact-muted);
  font-size: 11px;
}
.emavio-contact .emavio-contact__field input,
.emavio-contact .emavio-contact__field select,
.emavio-contact .emavio-contact__field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 7px 0 0;
  padding: 11px 12px;
  border: 1px solid #cbd8d0;
  border-radius: 7px;
  background: #fff;
  color: var(--emavio-contact-ink);
  font: 400 16px/1.5 Arial, Helvetica, sans-serif;
  box-shadow: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.emavio-contact .emavio-contact__field textarea {
  min-height: 134px;
  resize: vertical;
}
.emavio-contact .emavio-contact__field input::placeholder,
.emavio-contact .emavio-contact__field textarea::placeholder {
  color: #758680;
  opacity: 1;
}
.emavio-contact .emavio-contact__field input:focus,
.emavio-contact .emavio-contact__field select:focus,
.emavio-contact .emavio-contact__field textarea:focus {
  border-color: var(--emavio-contact-sage);
  box-shadow: 0 0 0 3px rgb(117 161 127 / .12);
}
.emavio-contact .emavio-contact__send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 49px;
  margin: 23px 0 0;
  padding: 13px 19px;
  border: 1px solid var(--emavio-contact-ink);
  border-radius: 7px;
  background: var(--emavio-contact-ink);
  color: #fff;
  font: 400 14px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.emavio-contact .emavio-contact__send:hover { background: #315369; border-color: #315369; }
.emavio-contact .emavio-contact__help {
  margin: 13px 0 0;
  color: var(--emavio-contact-muted);
  font: 400 11px/1.8 Arial, Helvetica, sans-serif;
}
.emavio-contact .emavio-contact__copy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--emavio-contact-muted);
  font: 400 12px/1.5 Arial, Helvetica, sans-serif;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}
.emavio-contact .emavio-contact__status {
  margin: 9px 0 0;
  color: #315b48;
  font: 400 12px/1.8 Arial, Helvetica, sans-serif;
}
.emavio-contact .emavio-contact__status:empty { margin: 0; }
.emavio-contact .emavio-contact__close:focus-visible,
.emavio-contact .emavio-contact__direct a:focus-visible,
.emavio-contact .emavio-contact__send:focus-visible,
.emavio-contact .emavio-contact__copy:focus-visible,
.emavio-contact .emavio-contact__field input:focus-visible,
.emavio-contact .emavio-contact__field select:focus-visible,
.emavio-contact .emavio-contact__field textarea:focus-visible {
  outline: 2px solid var(--emavio-contact-sage);
  outline-offset: 3px;
}
.emavio-contact .emavio-contact__title:focus { outline: none; }

@media (max-width: 700px) {
  dialog.emavio-contact { width: calc(100vw - 24px); max-height: 92svh; border-radius: 20px; }
  .emavio-contact .emavio-contact__header { min-height: 66px; padding: 11px 14px 8px 22px; }
  .emavio-contact .emavio-contact__logo { width: 100px; }
  .emavio-contact .emavio-contact__content { grid-template-columns: 1fr; gap: 24px; padding: 12px 24px 26px; }
  .emavio-contact .emavio-contact__kicker { margin-bottom: 14px; }
  .emavio-contact .emavio-contact__title { font-size: clamp(31px, 8.7vw, 39px); }
  .emavio-contact .emavio-contact__description { margin-top: 16px; font-size: 13px; }
  .emavio-contact .emavio-contact__direct { margin-top: 13px; }
  .emavio-contact .emavio-contact__direct a { min-height: 34px; }
  .emavio-contact .emavio-contact__fields { grid-template-columns: 1fr; gap: 17px; }
  .emavio-contact .emavio-contact__send { width: 100%; }
}

@keyframes emavio-contact-arrive {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes emavio-contact-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.emavio-contact,
  dialog.emavio-contact::backdrop,
  .emavio-contact .emavio-contact__close,
  .emavio-contact .emavio-contact__send,
  .emavio-contact .emavio-contact__field input,
  .emavio-contact .emavio-contact__field select,
  .emavio-contact .emavio-contact__field textarea { animation: none !important; transition: none !important; }
}
