.mlnp-overlay,
.mlnp-overlay *,
.mlnp-overlay *::before,
.mlnp-overlay *::after {
  box-sizing: border-box;
}

.mlnp-overlay[hidden],
.mlnp-form-view[hidden],
.mlnp-success-view[hidden] {
  display: none !important;
}

.mlnp-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(19, 22, 18, 0.67);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.mlnp-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

body.mlnp-modal-open {
  overflow: hidden !important;
}

.mlnp-dialog {
  --mlnp-green: var(--ml-primary, #86b882);
  --mlnp-green-hover: var(--ml-primary-hover, #729f6f);
  --mlnp-ink: #171817;
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 43%) minmax(420px, 57%);
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  color: var(--mlnp-ink);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: opacity 220ms ease, transform 220ms ease;
}

.mlnp-overlay.is-open .mlnp-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mlnp-dialog--no-photo {
  display: block;
  width: min(570px, calc(100vw - 40px));
}

.mlnp-photo {
  min-height: 620px;
  background-position: center;
  background-size: cover;
}

.mlnp-content {
  position: relative;
  min-width: 0;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px 40px 24px;
  font-family: Rajdhani, "Arial Narrow", Arial, sans-serif;
  text-align: center;
  scrollbar-width: thin;
}

.mlnp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #151615;
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms ease;
}

.mlnp-close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.mlnp-close:focus-visible,
.mlnp-submit:focus-visible,
.mlnp-decline:focus-visible,
.mlnp-form input:focus-visible,
.mlnp-fine-print a:focus-visible {
  outline: 3px solid rgba(134, 184, 130, 0.42);
  outline-offset: 2px;
}

.mlnp-close span::before,
.mlnp-close span::after {
  position: absolute;
  top: 20px;
  left: 10px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.mlnp-close span::before {
  transform: rotate(45deg);
}

.mlnp-close span::after {
  transform: rotate(-45deg);
}

.mlnp-brand {
  min-height: 58px;
  margin: 0 44px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #171817;
}

.mlnp-brand img {
  display: block;
  max-width: 170px;
  max-height: 66px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.mlnp-brand span {
  font-family: "Glass Antiqua", Georgia, serif;
  font-size: 60px;
  line-height: 1;
}

.mlnp-content h2 {
  margin: 0 0 14px;
  color: var(--mlnp-ink);
  font-family: Rajdhani, "Arial Narrow", Arial, sans-serif;
  font-size: clamp(36px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.94;
  text-transform: uppercase;
}

.mlnp-intro {
  max-width: 500px;
  margin: 0 auto 18px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-transform: uppercase;
}

.mlnp-form {
  margin: 0;
  text-align: left;
}

.mlnp-form label {
  display: block;
  margin: 0 0 12px;
}

.mlnp-form label > span {
  display: block;
  margin: 0 0 5px;
  color: #252725;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

.mlnp-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mlnp-form input[type="text"],
.mlnp-form input[type="email"] {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #aeb2ae;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  color: #171817;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.2;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.mlnp-form input[type="text"]:focus,
.mlnp-form input[type="email"]:focus {
  border-color: var(--mlnp-green-hover);
  box-shadow: 0 0 0 3px rgba(134, 184, 130, 0.18);
  outline: 0;
}

.mlnp-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.mlnp-turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 0;
  margin: 0;
}

.mlnp-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 2px 0 0;
  padding: 10px 20px;
  border: 0;
  border-radius: 6px;
  background: var(--mlnp-green);
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  font-family: Rajdhani, "Arial Narrow", Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: background-color 160ms ease, transform 160ms ease;
}

.mlnp-submit:hover {
  background: var(--mlnp-green-hover);
  transform: translateY(-1px);
}

.mlnp-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.mlnp-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.48);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mlnp-spin 700ms linear infinite;
}

.mlnp-submit.is-loading .mlnp-submit-label {
  display: none;
}

.mlnp-submit.is-loading .mlnp-spinner {
  display: block;
}

.mlnp-status {
  min-height: 18px;
  margin: 5px 0 0;
  color: #a6382e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.mlnp-decline {
  display: inline-block;
  margin: 1px 0 8px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #658a60;
  cursor: pointer;
  font-family: Rajdhani, "Arial Narrow", Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.25;
  text-transform: uppercase;
}

.mlnp-decline:hover {
  color: var(--mlnp-green-hover);
}

.mlnp-fine-print {
  margin: 4px 0 0;
  color: #666966;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.3;
  text-transform: uppercase;
}

.mlnp-fine-print a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mlnp-success-view {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 54px 0 30px;
  outline: 0;
}

.mlnp-success-view p {
  max-width: 430px;
  margin: 0 auto 28px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 1.45;
  text-transform: uppercase;
}

.mlnp-success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(134, 184, 130, 0.18);
  color: var(--mlnp-green-hover);
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
}

@keyframes mlnp-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
  .mlnp-overlay {
    padding: 4vw 3vw;
  }

  .mlnp-dialog,
  .mlnp-dialog--no-photo {
    display: block;
    width: min(94vw, 620px);
    max-height: 92dvh;
    border-radius: 18px;
  }

  .mlnp-photo {
    display: none;
  }

  .mlnp-content {
    max-height: 92dvh;
    padding: 32px 7vw 24px;
  }

  .mlnp-close {
    top: 10px;
    right: 10px;
  }

  .mlnp-brand {
    min-height: 54px;
    margin-bottom: 16px;
  }

  .mlnp-brand img {
    max-width: 170px;
    max-height: 62px;
  }

  .mlnp-brand span {
    font-size: 58px;
  }

  .mlnp-content h2 {
    margin-bottom: 18px;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 0.95;
  }

  .mlnp-intro {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.4;
  }

  .mlnp-form label {
    margin-bottom: 14px;
  }

  .mlnp-form input[type="text"],
  .mlnp-form input[type="email"] {
    height: 50px;
  }

  .mlnp-submit {
    min-height: 55px;
    font-size: 24px;
  }

  .mlnp-decline {
    margin-top: 4px;
    font-size: 18px;
  }

  .mlnp-fine-print {
    font-size: 13px;
  }

  .mlnp-success-view {
    min-height: 470px;
  }
}

@media (max-width: 479px) {
  .mlnp-name-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mlnp-content {
    padding: 26px 24px 22px;
  }

  .mlnp-brand {
    margin-bottom: 10px;
  }

  .mlnp-brand span {
    font-size: 54px;
  }

  .mlnp-content h2 {
    font-size: clamp(30px, 8.5vw, 36px);
    margin-bottom: 14px;
  }

  .mlnp-intro {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .mlnp-form label > span {
    font-size: 13px;
  }

  .mlnp-form input[type="text"],
  .mlnp-form input[type="email"] {
    height: 46px;
  }

  .mlnp-submit {
    min-height: 50px;
    font-size: 21px;
  }

  .mlnp-decline {
    font-size: 16px;
  }

  .mlnp-fine-print {
    font-size: 11px;
  }
}

@media (max-height: 760px) and (min-width: 768px) {
  .mlnp-photo {
    min-height: 560px;
  }

  .mlnp-content {
    padding-top: 22px;
  }

  .mlnp-brand {
    min-height: 48px;
    margin-bottom: 6px;
  }

  .mlnp-brand img {
    max-height: 52px;
  }

  .mlnp-content h2 {
    font-size: 38px;
    margin-bottom: 10px;
  }

  .mlnp-intro {
    margin-bottom: 12px;
    font-size: 14px;
  }

  .mlnp-form input[type="text"],
  .mlnp-form input[type="email"] {
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlnp-overlay,
  .mlnp-dialog,
  .mlnp-submit,
  .mlnp-spinner {
    animation: none !important;
    transition: none !important;
  }
}
