/* msus-core: the mieux referral form ([msus_referral_form]) set in the brand, P3.8 (Blueprint Architecture §3).
   Source: design/get-free-medical-supplies.html, the "body #mw" rules. White ground, Navy Ink labels, Manrope and
   Inter, Steel 52 px fields, Deep Sky focus and tiles (--b stays Deep Sky: it drives the tile borders and the focus
   ring), and a Deep Ochre submit, the page's one ochre button. Every selector starts with "body #mw", which outranks
   the widget's own "#mw" rules, so load order does not matter. The form's markup, field names, codes, script,
   endpoint and payload are untouched: only CSS custom properties and existing classes and ids are restyled. */

body #mw { --b: var(--msus-deep-sky); --t: var(--msus-navy-ink); --m: var(--msus-navy-ink); --ln: var(--msus-steel); --bg: var(--msus-white); --sk: var(--msus-sky-tint); --er: var(--msus-error); box-sizing: border-box; max-width: var(--msus-form-max); margin: 0; background-color: var(--msus-white); color: var(--msus-navy-ink); font-family: var(--msus-font-text); font-size: 16px; font-weight: 400; line-height: 1.5; }
body #mw *, body #mw *::before, body #mw *::after { box-sizing: inherit; }
body #mw h3 { margin: var(--msus-space-48) 0 var(--msus-space-16); padding: 0; border: 0; font-family: var(--msus-font-head); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--msus-navy-ink); }
body #mw h3:first-of-type { margin-top: 0; }
/* 1.5.16 (Nov 2 form): the tile groups are fieldset > legend > h3. No default fieldset border, padding or min-width; the
   heading keeps the 48 px above it that the other h3 have (a legend's margin does not collapse, so the .r above it gives up 24). */
body #mw fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
body #mw legend { float: none; width: 100%; margin: 0; padding: 0; }
body #mw legend > h3, body #mw legend > h3:first-of-type { margin: var(--msus-space-48) 0 var(--msus-space-16); }
body #mw .r + fieldset { margin-top: calc(-1 * var(--msus-space-24)); }
body #mw label.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body #mw label { display: block; margin: 0 0 var(--msus-space-8); font-family: var(--msus-font-text); font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--msus-navy-ink); }
body #mw .req::after { content: " *"; color: var(--msus-navy-ink); }
body #mw input, body #mw select, body #mw textarea { display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 16px; border: 1px solid var(--msus-steel); border-radius: 0; background-color: var(--msus-white); color: var(--msus-navy-ink); font-family: var(--msus-font-text); font-size: 16px; line-height: 1.4; }
body #mw select { appearance: none; padding-right: 48px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1.5 1.5 8 8l6.5-6.5' fill='none' stroke='%233D4252' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; background-size: 16px 10px; }
body #mw textarea { min-height: 144px; resize: vertical; }
body #mw input:focus, body #mw select:focus, body #mw textarea:focus { border-color: var(--msus-steel); outline: var(--msus-focus-width) solid var(--msus-deep-sky); outline-offset: var(--msus-focus-offset); }
body #mw .r { display: flex; flex-wrap: wrap; gap: var(--msus-space-16) var(--msus-space-24); margin-bottom: var(--msus-space-24); }
body #mw .c { flex: 1 1 240px; min-width: 0; }
body #mw .c.h { flex: 1 1 100%; }
body #mw .g { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: var(--msus-space-12); }
body #mw .k { display: flex; align-items: center; gap: var(--msus-space-12); min-height: 56px; margin: 0; padding: 12px 16px; border: 1px solid var(--msus-steel); border-radius: 0; background-color: var(--msus-white); color: var(--msus-navy-ink); font-size: 16px; font-weight: 600; line-height: 1.3; cursor: pointer; }
body #mw .k:hover { border-color: var(--msus-deep-sky); }
body #mw .k.on { border-color: var(--msus-deep-sky); background-color: var(--msus-sky-tint); }
body #mw .k input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 0; padding: 0; accent-color: var(--msus-deep-sky); }
body #mw .d { margin-top: var(--msus-space-12); padding: var(--msus-space-16); border: 0; border-radius: 0; background-color: var(--msus-sky-tint); }
body #mw .d .nm { margin-bottom: var(--msus-space-12); font-family: var(--msus-font-head); font-weight: 700; font-size: 16px; }
body #mw .e { border: 2px solid var(--msus-error); padding: 11px 15px; }
body #mw .em { display: none; margin-top: var(--msus-space-8); color: var(--msus-error); font-size: 14px; font-weight: 600; line-height: 1.4; }
body #mw .em.on { display: flex; gap: var(--msus-space-8); }
body #mw .em.on::before, body #mw #al.on::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.5' fill='none' stroke='%23B42318' stroke-width='2'/%3E%3Cpath d='M10 5.5v5.5' stroke='%23B42318' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.2' r='1.2' fill='%23B42318'/%3E%3C/svg%3E") center / 18px 18px no-repeat; }
body #mw #al { display: none; margin-bottom: var(--msus-space-24); padding: var(--msus-space-16) var(--msus-space-24); border: 2px solid var(--msus-error); border-radius: 0; background-color: var(--msus-white); color: var(--msus-navy-ink); font-size: 16px; }
body #mw #al.on { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: var(--msus-space-12); }
body #mw #al.on > ul { grid-column: 2; } /* the list beside the icon, under its heading (1.3.6, P3.16 X-06) */
body #mw #al ul, body #mw #sm ul { margin: var(--msus-space-8) 0 0; padding-left: 20px; }
body #mw #sm { display: none; margin-top: var(--msus-space-24); padding: var(--msus-space-16) var(--msus-space-24); border: 0; border-radius: 0; background-color: var(--msus-sky-tint); color: var(--msus-navy-ink); font-size: 16px; }
body #mw #sm.on { display: block; }
body #mw #go { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 240px; min-height: 56px; margin-top: var(--msus-space-32); padding: 0 var(--msus-space-32); border: 0; border-radius: var(--msus-radius-round); background-color: var(--msus-deep-ochre); color: var(--msus-white); font-family: var(--msus-font-text); font-size: var(--msus-type-control); font-weight: 600; line-height: 1.2; cursor: pointer; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
body #mw #go:hover { background-color: var(--msus-deep-ochre-pressed); color: var(--msus-white); }
body #mw #go:active { background-color: var(--msus-deep-ochre-pressed); transform: scale(var(--msus-press-scale)); }
body #mw #go:disabled { opacity: 0.6; cursor: default; }
body #mw #go:focus-visible { outline: var(--msus-focus-width) solid var(--msus-deep-sky); outline-offset: var(--msus-focus-offset); }
body #mw #hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
body #mw #wait, body #mw #ok { display: none; padding: var(--msus-space-48) var(--msus-space-24); text-align: center; }
body #mw #wait.on, body #mw #ok.on { display: block; }
body #mw #wait p, body #mw #ok p { margin: 0; font-size: 18px; line-height: 1.5; color: var(--msus-navy-ink); }
body #mw #ok h2 { margin: 0 0 var(--msus-space-8); font-family: var(--msus-font-head); font-weight: 700; font-size: 28px; line-height: 1.2; color: var(--msus-navy-ink); }

@media (max-width: 1119px) {
  body #mw { max-width: none; }
}

@media (max-width: 479px) {
  body #mw .g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #mw .k { padding: 12px; }
  body #mw #go { width: 100%; min-width: 0; min-height: 52px; padding: 0 var(--msus-space-24); }
}
