/* Request forms and callback dialog. The review form remains separate. */
body[class] .mg-lead-form {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: auto;
  min-height: 0;
}
body[class] .mg-lead-form.legacy-form--stacked { grid-template-columns: minmax(0, 1fr); }
body[class] .mg-lead-form input:not([type="checkbox"]):not([type="hidden"]),
body[class] .legacy-callback .mg-lead-form input:not([type="checkbox"]):not([type="hidden"]) {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 54px;
  margin: 0;
  padding: 14px 18px;
  color: #12343a;
  background: #fff;
  border: 1px solid #cbdedc;
  border-radius: 16px;
  font-size: .88rem;
  font-weight: 500;
  text-align: left;
  transform: none;
}
body[class] .mg-lead-form input:not([type="checkbox"])::placeholder {
  color: #5c7074;
  text-align: left;
  text-transform: none;
}
body[class] .mg-lead-form input:not([type="checkbox"]):focus-visible,
body[class] .mg-lead-form input[type="checkbox"]:focus-visible {
  outline: 3px solid #14b8c6;
  outline-offset: 2px;
}
body[class] .mg-lead-form .mg-lead-consent {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 560px;
  margin: 4px 0 2px;
  color: #456168;
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}
body[class] .mg-lead-form .mg-lead-consent input {
  position: static;
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  min-height: 19px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #087d89;
  transform: none;
}
body[class] .mg-lead-form .mg-lead-consent a {
  color: #087d89;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body[class] .mg-lead-form .mg-lead-consent label { cursor: pointer; }
body[class] .mg-lead-form .mg-lead-consent a:hover { color: #12343a; }
body[class] .mg-lead-form .legacy-button,
body[class] .legacy-callback .mg-lead-form .legacy-button {
  position: static;
  grid-column: 1 / -1;
  justify-self: start;
  width: min(250px, 100%);
  max-width: none;
  min-height: 52px;
  margin: 4px 0 0;
  padding: 10px 22px;
  transform: none;
}
body[class] .legacy-contacts__panel .mg-lead-form .legacy-button { justify-self: stretch; width: 100%; }
.mg-lead-form .mg-lead-unavailable { grid-column: 1 / -1; margin: 0; color: #456168; font-size: .85rem; }

body.mg-lead-modal-open { overflow: hidden; }
.mg-lead-modal[hidden] { display: none !important; }
.mg-lead-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: grid;
  place-items: center;
  padding: 24px;
}
.mg-lead-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 30, 36, .67); }
.mg-lead-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  max-height: min(90vh, 800px);
  overflow-y: auto;
  padding: 36px;
  color: #12343a;
  background: #fffefa;
  border: 1px solid rgba(20, 184, 198, .35);
  border-radius: 28px;
  box-shadow: 0 32px 90px rgba(8, 38, 45, .28);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mg-lead-modal__close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #456168;
  background: #e6f4f2;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}
.mg-lead-modal__close:hover,
.mg-lead-modal__close:focus-visible { color: #12343a; background: #cceae8; }
.mg-lead-modal__eyebrow {
  margin: 0 0 14px;
  color: #087d89;
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mg-lead-modal__dialog h2 {
  margin: 0 42px 12px 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 690;
  letter-spacing: -.055em;
  line-height: 1.05;
}
.mg-lead-modal__intro { margin: 0 0 24px; color: #456168; font-size: .96rem; line-height: 1.55; }
body[class] .mg-lead-form--modal { gap: 12px; }
body[class] .mg-lead-form--modal .legacy-button { justify-self: stretch; width: 100%; }
.mg-lead-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mg-lead-error:not([hidden]) { grid-column: 1 / -1; margin: 0; color: #a12525; font-size: .9rem; line-height: 1.4; }

@media (max-width: 600px) {
  body[class] .mg-lead-form { grid-template-columns: minmax(0, 1fr); }
  body[class] .mg-lead-form .legacy-button { justify-self: stretch; width: 100%; }
  .mg-lead-modal:not([hidden]) { padding: 12px; }
  .mg-lead-modal__dialog { padding: 28px 22px; border-radius: 22px; }
}

.mg-legal-page {
  width: min(860px, calc(100vw - 40px));
  max-width: none;
  margin: 48px auto 90px;
  padding: clamp(28px, 5vw, 60px);
  color: #12343a;
  background: #fffefa;
  border: 1px solid #d6e6e5;
  border-radius: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
.mg-legal-page h1 { margin-bottom: 30px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.08; }
.mg-legal-page h2 { margin: 36px 0 12px; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.25; }
.mg-legal-page p { margin-bottom: 16px; }
.mg-legal-page a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 2px; }
