/* ============================================================================
   MailerLite newsletter form — /newsletter/ ONLY
   ============================================================================
   Loaded conditionally from functions.php (is_page('newsletter')), the same
   page-scoped pattern as the Leaflet assets on /neighborhoods/map/. No other
   page pays for this file.

   Form: MailerLite mlb2-44608327 (account 2548304, Name + Email + reCAPTCHA).
   Markup lives in page-newsletter.php.

   TWO PARTS:
     PART A — MailerLite's shipped CSS, kept as the base so the form still
              works if Scout adds a field in the MailerLite dashboard.
              Three changes from what MailerLite emitted:
                1. `.sr-only` and `.g-recaptcha` were BARE global selectors in
                   MailerLite's output — both are now scoped to #mlb2-44608327
                   so a third-party embed can't define site-wide utility
                   classes the theme might later collide with.
                2. `.g-recaptcha { height: ; }` was an invalid declaration in
                   MailerLite's output — removed.
                3. `.ml-subscribe-close` dropped (popup-only; this is embedForm).
     PART B — Scout restyle. Overrides MailerLite's black/Open Sans defaults
              with the site's red + DM Sans. Every selector is prefixed with
              #mlb2-44608327 so nothing here can reach the rest of the page.

   ⚠️ EVERY selector in this file starts with #mlb2-44608327. If you add a rule,
   keep it that way — the scoping is the contract that lets a vendor stylesheet
   live in the theme safely.
   ========================================================================= */


/* ==========================================================================
   PART A — MailerLite base (vendor)
   ========================================================================== */

/* LOADER */
#mlb2-44608327 .ml-form-embedSubmitLoad {
  display: inline-block;
  width: 20px;
  height: 20px;
}

#mlb2-44608327 .g-recaptcha {
  transform: scale(1);
  -webkit-transform: scale(1);
  transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
}

#mlb2-44608327 .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

#mlb2-44608327 .ml-form-embedSubmitLoad:after {
  content: " ";
  display: block;
  width: 11px;
  height: 11px;
  margin: 1px;
  border-radius: 50%;
  border: 4px solid #fff;
  border-color: #ffffff #ffffff #ffffff transparent;
  animation: ml-form-embedSubmitLoad 1.2s linear infinite;
}
@keyframes ml-form-embedSubmitLoad {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#mlb2-44608327.ml-form-embedContainer {
  box-sizing: border-box;
  display: table;
  margin: 0 auto;
  position: static;
  width: 100% !important;
}
#mlb2-44608327.ml-form-embedContainer h4,
#mlb2-44608327.ml-form-embedContainer p,
#mlb2-44608327.ml-form-embedContainer span,
#mlb2-44608327.ml-form-embedContainer button {
  text-transform: none !important;
  letter-spacing: normal !important;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper {
  background-color: #f6f6f6;
  border-width: 0px;
  border-color: transparent;
  border-radius: 4px;
  border-style: solid;
  box-sizing: border-box;
  display: inline-block !important;
  margin: 0;
  padding: 0;
  position: relative;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper.embedForm { max-width: 400px; width: 100%; }
#mlb2-44608327.ml-form-embedContainer .ml-form-align-left { text-align: left; }
#mlb2-44608327.ml-form-embedContainer .ml-form-align-center { text-align: center; }
#mlb2-44608327.ml-form-embedContainer .ml-form-align-default { display: table-cell !important; vertical-align: middle !important; text-align: center !important; }
#mlb2-44608327.ml-form-embedContainer .ml-form-align-right { text-align: right; }

#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
  padding: 20px 20px 0 20px;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent {
  text-align: left;
  margin: 0 0 20px 0;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent h4,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
  color: #000000;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 10px 0;
  text-align: left;
  word-break: break-word;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent p,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
  color: #000000;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0 0 10px 0;
  text-align: left;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent p a,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p a {
  color: #000000;
  text-decoration: underline;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedContent p:last-child,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p:last-child {
  margin: 0;
}

#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-block-form .ml-field-group {
  text-align: left !important;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-block-form .ml-field-group label {
  margin-bottom: 5px;
  color: #333333;
  font-size: 14px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
  display: inline-block;
  line-height: 20px;
}

#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody form {
  margin: 0;
  width: 100%;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent {
  margin: 0 0 20px 0;
  width: 100%;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow {
  margin: 0 0 10px 0;
  width: 100%;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow.ml-last-item {
  margin: 0;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow textarea {
  background-color: #ffffff !important;
  color: #333333 !important;
  border-color: #cccccc;
  border-radius: 4px !important;
  border-style: solid !important;
  border-width: 1px !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  height: auto;
  line-height: 21px !important;
  margin: 0;
  padding: 10px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .custom-select {
  background-color: #ffffff !important;
  color: #333333 !important;
  border-color: #cccccc;
  border-radius: 4px !important;
  border-style: solid !important;
  border-width: 1px !important;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 14px !important;
  line-height: 20px !important;
  margin: 0;
  padding: 10px 28px 10px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  background: url('https://assets.mlcdn.com/ml/images/default/dropdown.svg') no-repeat right .75rem center/8px 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  margin: 0 0 20px 0;
  float: left;
  width: 100%;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
  background-color: #000000 !important;
  border: none !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  cursor: pointer;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 21px !important;
  height: auto;
  padding: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button.loading {
  display: none;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
  background-color: #333333 !important;
}

/* Privacy-policy / permissions block */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions {
  text-align: left;
  float: left;
  width: 100%;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent {
  margin: 0 0 15px 0;
  text-align: left;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p {
  color: #000000;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 22px;
  margin: 0 0 10px 0;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p a {
  color: #000000;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p:last-child {
  margin: 0;
}

/* reCAPTCHA */
#mlb2-44608327 .ml-form-recaptcha {
  margin-bottom: 20px;
}
#mlb2-44608327 .ml-form-recaptcha.ml-error iframe {
  border: solid 1px #ff0000;
}
@media screen and (max-width: 480px) {
  #mlb2-44608327 .ml-form-recaptcha { width: 220px !important; }
  #mlb2-44608327 .g-recaptcha {
    transform: scale(0.78);
    -webkit-transform: scale(0.78);
    transform-origin: 0 0;
    -webkit-transform-origin: 0 0;
  }
}

/* Validation error states — injected by webforms.min.js at submit time */
#mlb2-44608327 .ml-error input,
#mlb2-44608327 .ml-error textarea,
#mlb2-44608327 .ml-error select {
  border-color: red !important;
}
#mlb2-44608327 .ml-error .label-description,
#mlb2-44608327 .ml-error .label-description p,
#mlb2-44608327 .ml-error .label-description p a,
#mlb2-44608327 .ml-error label:first-child {
  color: #ff0000 !important;
}


/* ==========================================================================
   PART B — Scout restyle (scoped overrides)
   --------------------------------------------------------------------------
   MailerLite default          →  Scout site value
     button #000000 / #333333  →  var(--red) #B91C1C / var(--red-mid) #991B1B
     'Open Sans'               →  'DM Sans', system-ui, sans-serif
     input/button 14px         →  17px (55+ floor, matches body)
     border #cccccc, radius 4px → #e8e5e0 1.5px, radius 6px (.form-field)
     wrapper #f6f6f6, 400px    →  transparent, full width of .contact-form-card

   Selectors mirror MailerLite's full chain because their base rules carry
   !important — a shorter selector would lose.
   ========================================================================== */

/* Wrapper — drop the grey card-in-a-card and the 400px cap; the form sits
   inside .contact-form-card, which already supplies background and padding. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper.embedForm {
  background-color: transparent;
  border-radius: 0;
  display: block !important;
  max-width: 100%;
  width: 100%;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody {
  padding: 0;
}

/* Field labels — visible, above the input (ux-55-plus.md: placeholder-only
   labels disappear on typing and fail this audience). */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-block-form .ml-field-group label {
  color: #1a1a1a;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* Field rows — more air between the two fields than MailerLite's 10px. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow {
  margin: 0 0 18px 0;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-formContent {
  margin: 0 0 22px 0;
}

/* Inputs — match .form-field input in style.css, at the 17px body size. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow textarea,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .custom-select {
  border-color: #e8e5e0 !important;
  border-radius: 6px !important;
  border-width: 1.5px !important;
  color: #1a1a1a !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 1.0625rem !important;
  line-height: 1.5 !important;
  min-height: 48px;
  padding: 12px 14px !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow textarea:focus,
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow .custom-select:focus {
  border-color: #B91C1C !important;
  box-shadow: 0 0 0 3px rgba(185,28,28,0.1);
  outline: none;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input:focus-visible {
  outline: 2px solid #B91C1C;
  outline-offset: 2px;
}
/* Placeholder muted so it reads as a hint, not as entered text — the visible
   label above carries the field name. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-fieldRow input::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

/* Submit button — .btn / .btn-red from style.css, at a 52px tap target. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button {
  background-color: #B91C1C !important;
  border-radius: 6px !important;
  color: #ffffff !important;
  font-family: 'DM Sans', system-ui, sans-serif !important;
  font-size: 1.0625rem !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  min-height: 52px;
  padding: 14px 26px !important;
  transition: background-color 0.15s;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:hover {
  background-color: #991B1B !important;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit button:focus-visible {
  outline: 2px solid #B91C1C;
  outline-offset: 3px;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  margin: 0;
}

/* Privacy line — MailerLite's 12px is below the readability floor. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p {
  color: #6b6b6b;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent.privacy-policy p a {
  color: #B91C1C;
  text-decoration: underline;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions .ml-form-embedPermissionsContent {
  margin: 0 0 20px 0;
}

/* Success state — Lora heading + DM Sans body, matching the rest of the site. */
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent {
  margin: 0;
  text-align: center;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent h4 {
  color: #1a1a1a;
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 10px 0;
  text-align: center;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-successBody .ml-form-successContent p {
  color: #1a1a1a;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: center;
}

/* reCAPTCHA sits in a float:left wrapper; clear it so the button never
   overlaps the widget at narrow widths. */
#mlb2-44608327 .ml-form-recaptcha {
  float: none !important;
  margin: 0 0 22px 0;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedPermissions {
  float: none;
}
#mlb2-44608327.ml-form-embedContainer .ml-form-embedWrapper .ml-form-embedBody .ml-form-embedSubmit {
  float: none;
}
