:root {
  --moody-mkt-blue: #0277bd;
  --moody-mkt-navy: #0b2236;
  --moody-mkt-deep: #061b2a;
  --moody-mkt-soft: #f6f9ff;
  --moody-mkt-cyan: #8fd4ff;
  --moody-mkt-white: #ffffff;
}

/* =========================================================
   GLOBAL NEWSLETTER — BEFORE FOOTER
   ========================================================= */
.moody-global-newsletter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 24px;
  background:
    radial-gradient(circle at 86% 6%, rgba(2,119,189,.28), transparent 30%),
    linear-gradient(135deg, #061a29 0%, #0a2b43 58%, #073654 100%);
  color: #fff;
}

.moody-global-newsletter::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -190px;
  bottom: -300px;
  border: 1px solid rgba(143,212,255,.18);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(143,212,255,.025), 0 0 0 110px rgba(143,212,255,.018);
  pointer-events: none;
}

.moody-global-newsletter__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: clamp(44px, 8vw, 96px);
}

.moody-global-newsletter__eyebrow,
.moody-consent__eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--moody-mkt-cyan);
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.moody-global-newsletter__copy h2 {
  max-width: 690px;
  margin: 0;
  color: #fff;
  font-family: Manrope, sans-serif;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.05em;
}

.moody-global-newsletter__copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.62);
  font-family: Manrope, sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

.moody-global-newsletter__form {
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 28px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 70px rgba(0,0,0,.12);
  backdrop-filter: blur(14px);
}

/* Brevo native form restyle */
.moody-global-newsletter .moody-brevo-form,
.moody-consent .moody-brevo-form {
  margin: 0 !important;
}

/* Custom Moody form layout */
.moody-newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
}

.moody-newsletter-fields input[type="email"] {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 19px !important;
  border: 1px solid rgba(255,255,255,.19) !important;
  border-radius: 999px !important;
  outline: 0 !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: Manrope, sans-serif !important;
  font-size: 12px !important;
}

.moody-newsletter-fields input[type="email"]::placeholder {
  color: rgba(255,255,255,.43) !important;
}

.moody-newsletter-fields button[type="submit"] {
  min-width: 138px;
  min-height: 54px;
  margin: 0;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--moody-mkt-navy);
  box-shadow: none;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.moody-newsletter-honeypot {
  position: absolute !important;
  left: -100000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.moody-newsletter-honeypot input {
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.moody-consent .moody-newsletter-fields input[type="email"] {
  border-color: rgba(11,34,54,.13) !important;
  background: #fff !important;
  color: var(--moody-mkt-navy) !important;
}

.moody-consent .moody-newsletter-fields input[type="email"]::placeholder {
  color: #89969e !important;
}

.moody-consent .moody-newsletter-fields button[type="submit"] {
  background: var(--moody-mkt-blue);
  color: #fff;
}

.moody-global-newsletter .moody-brevo-form .sib_signup_box_inside,
.moody-consent .moody-brevo-form .sib_signup_box_inside {
  padding: 0 !important;
}

.moody-global-newsletter .moody-brevo-form p,
.moody-consent .moody-brevo-form p {
  margin: 0 !important;
}

.moody-global-newsletter .moody-brevo-form p.sib-NAME-area,
.moody-consent .moody-brevo-form p.sib-NAME-area,
.moody-global-newsletter .moody-brevo-form label.sib-NAME-area,
.moody-consent .moody-brevo-form label.sib-NAME-area,
.moody-global-newsletter .moody-brevo-form input.sib-NAME-area,
.moody-consent .moody-brevo-form input.sib-NAME-area {
  display: none !important;
}

.moody-global-newsletter .moody-brevo-form label.sib-email-area,
.moody-consent .moody-brevo-form label.sib-email-area {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

.moody-global-newsletter .moody-brevo-form p.sib-email-area {
  display: inline-block !important;
  width: calc(100% - 142px) !important;
  vertical-align: top !important;
}

.moody-global-newsletter .moody-brevo-form input[type="email"] {
  width: 100% !important;
  max-width: none !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 19px !important;
  border: 1px solid rgba(255,255,255,.19) !important;
  border-radius: 999px !important;
  outline: none !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: Manrope, sans-serif !important;
  font-size: 12px !important;
}

.moody-global-newsletter .moody-brevo-form input[type="email"]::placeholder {
  color: rgba(255,255,255,.43) !important;
}

.moody-global-newsletter .moody-brevo-form input[type="submit"],
.moody-global-newsletter .moody-brevo-form button[type="submit"] {
  float: right !important;
  width: 132px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--moody-mkt-navy) !important;
  box-shadow: none !important;
  font-family: Manrope, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}

.moody-newsletter-consent {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 16px;
  color: rgba(255,255,255,.59);
  font-family: Manrope, sans-serif;
  font-size: 9px;
  line-height: 1.65;
  cursor: pointer;
}

.moody-newsletter-consent input {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  margin: 1px 0 0 !important;
  accent-color: var(--moody-mkt-blue);
}

.moody-newsletter-privacy {
  clear: both;
  padding-top: 10px !important;
  color: rgba(255,255,255,.36) !important;
  font-family: Manrope, sans-serif !important;
  font-size: 8px !important;
  line-height: 1.55 !important;
}

.moody-newsletter-privacy a {
  color: var(--moody-mkt-cyan) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.moody-newsletter-message,
.moody-global-newsletter .sib-alert-message,
.moody-consent .sib-alert-message {
  margin: 0 0 14px !important;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  font-family: Manrope, sans-serif !important;
  font-size: 10px !important;
  line-height: 1.5 !important;
}

.moody-newsletter-message--error,
.moody-global-newsletter .sib-alert-message-error,
.moody-consent .sib-alert-message-error {
  border: 1px solid rgba(255,120,120,.26) !important;
  background: rgba(255,120,120,.09) !important;
  color: #ffb5b5 !important;
}

.moody-global-newsletter .sib-alert-message-success,
.moody-consent .sib-alert-message-success {
  border: 1px solid rgba(94,222,147,.28) !important;
  background: rgba(94,222,147,.09) !important;
  color: #8cedb4 !important;
}

.moody-newsletter-admin-note {
  margin: 0;
  color: #fff;
  font-size: 12px;
}

/* =========================================================
   FIRST-VISIT COOKIE / NEWSLETTER POPUP
   ========================================================= */
.moody-consent {
  position: fixed;
  z-index: 99999999;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 22px;
  font-family: Manrope, sans-serif;
}

.moody-consent[hidden],
.moody-consent__view[hidden],
.moody-consent-manage[hidden] {
  display: none !important;
}

.moody-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4,20,32,.44);
  backdrop-filter: blur(6px);
}

.moody-consent__card {
  position: relative;
  z-index: 1;
  width: min(770px, 100%);
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(11,34,54,.10);
  border-radius: 30px;
  background: #fff;
  color: #556773;
  box-shadow: 0 30px 100px rgba(4,20,32,.30);
}

.moody-consent__eyebrow {
  color: var(--moody-mkt-blue);
}

.moody-consent__card h2 {
  max-width: 650px;
  margin: 0;
  color: var(--moody-mkt-navy);
  font-family: Manrope, sans-serif;
  font-size: clamp(31px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.moody-consent__card > div > p,
.moody-consent__view > p {
  max-width: 650px;
  margin: 17px 0 0;
  color: #647681;
  font-size: 12px;
  line-height: 1.75;
}

.moody-consent__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 25px;
}

.moody-consent__actions button,
.moody-consent__skip {
  min-height: 45px;
  padding: 0 19px;
  border-radius: 999px;
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.moody-consent__primary {
  border: 1px solid var(--moody-mkt-blue);
  background: var(--moody-mkt-blue);
  color: #fff;
}

.moody-consent__secondary {
  border: 1px solid rgba(11,34,54,.12);
  background: var(--moody-mkt-soft);
  color: var(--moody-mkt-navy);
}

.moody-consent__link,
.moody-consent__skip {
  border: 0;
  background: transparent;
  color: var(--moody-mkt-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.moody-consent__policy {
  display: inline-block;
  margin-top: 17px;
  color: #6f808b !important;
  font-size: 9px;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.moody-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 12px;
  padding: 16px 17px;
  border: 1px solid rgba(11,34,54,.09);
  border-radius: 17px;
  background: #f8fbfd;
}

.moody-consent__option strong {
  display: block;
  color: var(--moody-mkt-navy);
  font-size: 12px;
}

.moody-consent__option small {
  display: block;
  margin-top: 4px;
  color: #6d7d87;
  font-size: 9px;
  line-height: 1.5;
}

.moody-consent__option input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--moody-mkt-blue);
}

.moody-consent__required {
  color: var(--moody-mkt-blue);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.moody-consent__newsletter-form {
  margin-top: 23px;
  padding: 22px;
  border-radius: 20px;
  background: var(--moody-mkt-soft);
}

.moody-consent .moody-brevo-form p.sib-email-area {
  display: inline-block !important;
  width: calc(100% - 142px) !important;
  vertical-align: top !important;
}

.moody-consent .moody-brevo-form input[type="email"] {
  width: 100% !important;
  max-width: none !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 17px !important;
  border: 1px solid rgba(11,34,54,.12) !important;
  border-radius: 999px !important;
  outline: 0 !important;
  background: #fff !important;
  color: var(--moody-mkt-navy) !important;
  box-shadow: none !important;
  font-family: Manrope, sans-serif !important;
}

.moody-consent .moody-brevo-form input[type="submit"],
.moody-consent .moody-brevo-form button[type="submit"] {
  float: right !important;
  width: 132px !important;
  min-height: 52px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--moody-mkt-blue) !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: Manrope, sans-serif !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.moody-consent .moody-newsletter-consent {
  color: #647681;
}

.moody-consent .moody-newsletter-privacy {
  color: #89969e !important;
}

.moody-consent .moody-newsletter-privacy a {
  color: var(--moody-mkt-blue) !important;
}

.moody-consent__skip {
  margin-top: 10px;
  padding-left: 0;
}

/* Native Moody form used for both the global section and popup. */
.moody-newsletter-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 9px;
}

.moody-newsletter-fields input[type="email"] {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 0 19px;
  border-radius: 999px;
  outline: 0;
  font-family: Manrope, sans-serif;
  font-size: 12px;
}

.moody-global-newsletter .moody-newsletter-fields input[type="email"] {
  border: 1px solid rgba(255,255,255,.19);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.moody-global-newsletter .moody-newsletter-fields input[type="email"]::placeholder {
  color: rgba(255,255,255,.43);
}

.moody-newsletter-fields button {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.moody-global-newsletter .moody-newsletter-fields button {
  background: #fff;
  color: var(--moody-mkt-navy);
}

.moody-consent .moody-newsletter-fields input[type="email"] {
  border: 1px solid rgba(11,34,54,.12);
  background: #fff;
  color: var(--moody-mkt-navy);
}

.moody-consent .moody-newsletter-fields button {
  background: var(--moody-mkt-blue);
  color: #fff;
}

.moody-newsletter-honeypot {
  position: absolute !important;
  left: -100000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.moody-consent-manage {
  position: fixed;
  z-index: 999998;
  left: 14px;
  bottom: 14px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(11,34,54,.12);
  border-radius: 999px;
  background: #fff;
  color: #536672;
  box-shadow: 0 8px 26px rgba(11,34,54,.13);
  font-family: Manrope, sans-serif;
  font-size: 9px;
  font-weight: 750;
  cursor: pointer;
}

body.moody-consent-open {
  overflow: hidden;
}

@media (max-width: 820px) {
  .moody-global-newsletter {
    padding: 58px 18px;
  }

  .moody-newsletter-fields {
    grid-template-columns: 1fr;
  }

  .moody-newsletter-fields button[type="submit"] {
    width: 100%;
  }

  .moody-global-newsletter__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .moody-global-newsletter__copy h2 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .moody-global-newsletter__form {
    padding: 22px 18px;
  }

  .moody-newsletter-fields {
    grid-template-columns: 1fr;
  }

  .moody-global-newsletter .moody-brevo-form p.sib-email-area,
  .moody-consent .moody-brevo-form p.sib-email-area {
    display: block !important;
    width: 100% !important;
  }

  .moody-global-newsletter .moody-brevo-form input[type="submit"],
  .moody-global-newsletter .moody-brevo-form button[type="submit"],
  .moody-consent .moody-brevo-form input[type="submit"],
  .moody-consent .moody-brevo-form button[type="submit"] {
    float: none !important;
    width: 100% !important;
    margin-top: 9px !important;
  }

  .moody-consent {
    padding: 8px;
  }

  .moody-consent__card {
    max-height: calc(100vh - 16px);
    overflow: auto;
    padding: 26px 19px 22px;
    border-radius: 23px;
  }

  .moody-consent__card h2 {
    font-size: 31px;
  }

  .moody-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .moody-consent__actions button {
    width: 100%;
  }

  .moody-consent__newsletter-form {
    padding: 17px;
  }
}

.moody-consent__success-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 0 18px;
  border-radius: 50%;
  background: rgba(2,119,189,.11);
  color: var(--moody-mkt-blue);
  font-size: 26px;
  font-weight: 800;
}

.moody-consent__view[data-consent-view="newsletter"] > .moody-consent__secondary {
  margin-top: 20px;
}
