/* ================================================================
   FormAssembly Managed Forms — Lee Hybrid
   v2.3.0

   Shell structure:
     .fa-mf-root  (.fa-mf-root--pasted | .fa-mf-root--iframe)
       .fa-mf-panel
         .fa-mf-panel__topbar          ← replaced with navy header
         .fa-mf-panel__inner
           .fa-mf-frame-label          ← "LEE Form" eyebrow
           .fa-mf-frame-heading        ← form title (iframe mode)
           .fa-mf-embed
             .wFormContainer
               .wFormHeader            ← FA native header (hidden — we use our shell)
               .wForm
                 .section > .oneField
                   .label.preField     ← label
                   .inputWrapper       ← input / select / textarea
                   .choices > .oneChoice
                 .actions              ← submit button(s)

   Brand tokens:
     Navy    #1a374e   primary backgrounds, labels, buttons
     Teal    #00beff   accents, focus, active borders
     Sky     #89cceb   secondary blue
     Red     #e8363a   errors, required
     Text    #2a2a2a
     Muted   #5b6b79
   ================================================================ */

/* ── Tokens ── */
.fa-mf-root {
  --fa-mf-navy:      #1a374e;
  --fa-mf-navy-dk:   #122840;
  --fa-mf-teal:      #00beff;
  --fa-mf-sky:       #89cceb;
  --fa-mf-red:       #e8363a;
  --fa-mf-green:     #15472c;
  --fa-mf-text:      #2a2a2a;
  --fa-mf-muted:     #5b6b79;
  --fa-mf-border:    #c8d7e3;
  --fa-mf-bg:        #ffffff;
  --fa-mf-field-bg:  #f8fbfd;

  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--fa-mf-text);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  -webkit-font-smoothing: antialiased;
}

/* ── Card ── */
.fa-mf-root .fa-mf-panel {
  background: var(--fa-mf-bg);
  border: 1px solid #c0cfda;
  border-radius: 0;
  box-shadow:
    0 2px 4px rgba(26,55,78,.05),
    0 8px 28px rgba(26,55,78,.09);
  overflow: hidden;
}

/* ================================================================
   HEADER — replace the thin topbar with a full navy header
   ================================================================ */

/* Kill the old 8px topbar */
.fa-mf-root .fa-mf-panel__topbar {
  display: none;
}

/* The inner panel gets the header treatment */
.fa-mf-root .fa-mf-panel__inner {
  padding: 0;
}

/* Eyebrow + title area built from .fa-mf-frame-label and .fa-mf-frame-heading */
.fa-mf-root .fa-mf-frame-label {
  display: block;
  background: var(--fa-mf-navy);
  padding: 26px 36px 0;
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: rgba(255,255,255,.55);
}

/* In iframe mode the heading sits inside the navy block */
.fa-mf-root .fa-mf-frame-heading {
  background: var(--fa-mf-navy);
  padding: 6px 36px 22px;
  margin: 0;
  font-family: "Marfa", "Georgia", serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1.25;
  /* teal underline */
  box-shadow: inset 0 -3px 0 0 var(--fa-mf-teal);
}

/* In pasted mode, FA's wFormHeader carries the title — restyle it */
.fa-mf-root--pasted .wFormContainer,
.fa-mf-root--pasted .wForm {
  font-family: "Inter", system-ui, sans-serif !important;
}

.fa-mf-root--pasted .wFormHeader {
  background: var(--fa-mf-navy) !important;
  padding: 6px 36px 22px !important;
  margin: 0 !important;
  border-bottom: 3px solid var(--fa-mf-teal) !important;
}
.fa-mf-root--pasted .wFormHeader h1,
.fa-mf-root--pasted .wFormHeader h2,
.fa-mf-root--pasted .wFormHeader .formTitle {
  font-family: "Marfa", "Georgia", serif !important;
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  border: none !important;
  letter-spacing: -.01em !important;
  line-height: 1.25 !important;
}
.fa-mf-root--pasted .wFormHeader p,
.fa-mf-root--pasted .wFormHeader .description {
  color: rgba(255,255,255,.6) !important;
  margin: 0 !important;
  font-weight: 300 !important;
}

/* When wFormHeader is absent, the frame-label alone closes the header block */
.fa-mf-root--pasted .fa-mf-frame-label {
  padding-bottom: 22px;
  box-shadow: inset 0 -3px 0 0 var(--fa-mf-teal);
}

/* ── Form body padding ── */
.fa-mf-root--pasted .fa-mf-embed {
  padding: 28px 36px 8px;
  background: var(--fa-mf-bg);
}

/* ================================================================
   LAYOUT RESET — kill FA's inline widths and floats
   ================================================================ */

.fa-mf-root--pasted .wFormContainer,
.fa-mf-root--pasted .wForm,
.fa-mf-root--pasted .wForm > div,
.fa-mf-root--pasted .section,
.fa-mf-root--pasted .inputWrapper,
.fa-mf-root--pasted form {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  box-sizing: border-box !important;
}

.fa-mf-root--pasted .wFormContainer *,
.fa-mf-root--pasted .wForm *,
.fa-mf-root--pasted form * {
  box-sizing: border-box;
}

/* ── Field rows ── */
/* ================================================================
   SECTION TREATMENT — apply card/bar only to FormAssembly pageSection
   ================================================================ */

.fa-mf-root--pasted .pageSection {
  display: block !important;
  width: 100% !important;
  margin: 0 0 24px !important;
  padding: 18px 18px 4px !important;
  border: 1px solid var(--fa-mf-border) !important;
  border-top: 4px solid var(--fa-mf-teal) !important;
  background: #fbfdff !important;
}

.fa-mf-root--pasted .pageSection > .label.preField,
.fa-mf-root--pasted .pageSection > legend,
.fa-mf-root--pasted .pageSection > h3,
.fa-mf-root--pasted .pageSection > h4 {
  margin-top: 0 !important;
}

.fa-mf-root--pasted .section:not(.pageSection) {
  border: 0 !important;
  border-top: 0 !important;
  background: transparent !important;
}


.fa-mf-root--pasted .section.group,
.fa-mf-root--pasted .oneField {
  margin-bottom: 20px !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  float: none !important;
  width: 100% !important;
  clear: both;
  position: relative;
}

/* Two-column inline groups */
.fa-mf-root--pasted .section.inline.group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  margin-bottom: 4px !important;
}

/* ================================================================
   LABELS — 100% width, navy, uppercase
   ================================================================ */

.fa-mf-root--pasted .section .label.preField,
.fa-mf-root--pasted .section .label.postField,
.fa-mf-root--pasted .section label,
.fa-mf-root--pasted .section legend {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
  padding: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
  margin: 0 0 9px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .75px !important;
  color: var(--fa-mf-navy) !important;
  line-height: 1.35 !important;
}

.fa-mf-root--pasted .reqMark,
.fa-mf-root--pasted .required-label {
  color: var(--fa-mf-teal) !important;
  font-weight: 700 !important;
}

/* ── Input wrapper ── */
.fa-mf-root--pasted .inputWrapper {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ================================================================
   INPUTS, TEXTAREA, SELECT
   Bottom-border focus — teal underline slides in on focus
   ================================================================ */

.fa-mf-root--pasted input[type="text"],
.fa-mf-root--pasted input[type="email"],
.fa-mf-root--pasted input[type="number"],
.fa-mf-root--pasted input[type="tel"],
.fa-mf-root--pasted input[type="date"],
.fa-mf-root--pasted input[type="password"],
.fa-mf-root--pasted input[type="url"],
.fa-mf-root--pasted input[type="search"],
.fa-mf-root--pasted select,
.fa-mf-root--pasted textarea {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 11px 14px !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--fa-mf-text) !important;
  background: var(--fa-mf-bg) !important;
  border: 1px solid var(--fa-mf-border) !important;
  border-bottom: 2px solid var(--fa-mf-border) !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  min-height: unset !important;
  line-height: 1.5 !important;
  letter-spacing: -.1px !important;
  transition: border-color .18s ease, background .18s ease !important;
  float: none !important;
  margin: 0 !important;
}

/* Hover */
.fa-mf-root--pasted input[type="text"]:hover,
.fa-mf-root--pasted input[type="email"]:hover,
.fa-mf-root--pasted input[type="number"]:hover,
.fa-mf-root--pasted input[type="tel"]:hover,
.fa-mf-root--pasted input[type="date"]:hover,
.fa-mf-root--pasted input[type="password"]:hover,
.fa-mf-root--pasted select:hover,
.fa-mf-root--pasted textarea:hover {
  border-color: #adc0ce !important;
  border-bottom-color: #adc0ce !important;
}

/* Focus — teal bottom border */
.fa-mf-root--pasted input[type="text"]:focus,
.fa-mf-root--pasted input[type="email"]:focus,
.fa-mf-root--pasted input[type="number"]:focus,
.fa-mf-root--pasted input[type="tel"]:focus,
.fa-mf-root--pasted input[type="date"]:focus,
.fa-mf-root--pasted input[type="password"]:focus,
.fa-mf-root--pasted input[type="url"]:focus,
.fa-mf-root--pasted select:focus,
.fa-mf-root--pasted textarea:focus {
  border-color: #c8d7e3 !important;
  border-bottom-color: var(--fa-mf-teal) !important;
  box-shadow: 0 2px 0 0 var(--fa-mf-teal) !important;
  background: #fff !important;
}

/* Placeholder */
.fa-mf-root--pasted input::placeholder,
.fa-mf-root--pasted textarea::placeholder {
  color: #a8b8c4 !important;
  font-weight: 300 !important;
  opacity: 1 !important;
}

/* Textarea */
.fa-mf-root--pasted textarea {
  min-height: 120px !important;
  resize: vertical !important;
  line-height: 1.6 !important;
}

/* Select — navy chevron */
.fa-mf-root--pasted select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 38px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%231a374e'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 13px center !important;
  background-size: 11px 7px !important;
  cursor: pointer !important;
}

/* Validation error state */
.fa-mf-root--pasted .oneField.error input,
.fa-mf-root--pasted .oneField.error select,
.fa-mf-root--pasted .oneField.error textarea,
.fa-mf-root--pasted .errFld input,
.fa-mf-root--pasted .errFld select,
.fa-mf-root--pasted .errFld textarea {
  border-bottom-color: var(--fa-mf-red) !important;
  box-shadow: 0 2px 0 0 var(--fa-mf-red) !important;
}

.fa-mf-root--pasted .errMsg,
.fa-mf-root--pasted .error-message {
  display: block !important;
  color: var(--fa-mf-red) !important;
  font-size: .78rem !important;
  font-weight: 600 !important;
  margin-top: 5px !important;
}

/* ================================================================
   RADIO & CHECKBOX — card rows with teal left accent on selection
   ================================================================ */

.fa-mf-root--pasted .choices.vertical,
.fa-mf-root--pasted .choices.horizontal {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

.fa-mf-root--pasted .choices.horizontal {
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

.fa-mf-root--pasted .oneChoice {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 12px 14px !important;
  border: 1px solid var(--fa-mf-border) !important;
  border-left: 3px solid transparent !important;
  border-radius: 0 !important;
  background: var(--fa-mf-field-bg) !important;
  cursor: pointer !important;
  transition: border-color .15s ease, background .15s ease !important;
  box-sizing: border-box !important;
}

.fa-mf-root--pasted .oneChoice:hover {
  border-color: var(--fa-mf-sky) !important;
  border-left-color: var(--fa-mf-sky) !important;
  background: #f4fafd !important;
}

.fa-mf-root--pasted .oneChoice:has(input:checked) {
  border-color: #b8dff0 !important;
  border-left-color: var(--fa-mf-teal) !important;
  background: #f0fbff !important;
}

.fa-mf-root--pasted .oneChoice input[type="radio"],
.fa-mf-root--pasted .oneChoice input[type="checkbox"] {
  width: 17px !important;
  height: 17px !important;
  min-height: unset !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 17px !important;
  accent-color: var(--fa-mf-navy) !important;
  transform: none !important;
  cursor: pointer !important;
}

.fa-mf-root--pasted .oneChoice .label.postField,
.fa-mf-root--pasted .oneChoice label {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 1px 0 0 !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: .82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .7px !important;
  color: var(--fa-mf-navy) !important;
  line-height: 1.45 !important;
  cursor: pointer !important;
}

/* ================================================================
   HINTS
   ================================================================ */

.fa-mf-root--pasted .field-hint,
.fa-mf-root--pasted .hint,
.fa-mf-root--pasted .instructions,
.fa-mf-root--pasted .supportInfo {
  display: block !important;
  font-size: .78rem !important;
  font-style: italic !important;
  line-height: 1.5 !important;
  color: var(--fa-mf-muted) !important;
  margin-top: 5px !important;
}

/* ================================================================
   ACTIONS — submit / next / back
   ================================================================ */

.fa-mf-root--pasted .actions {
  margin-top: 8px !important;
  padding: 20px 36px 32px !important;
  border-top: 1px solid #e4edf3 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  /* pull out of .fa-mf-embed padding */
  margin-left: -36px !important;
  margin-right: -36px !important;
  margin-bottom: -8px !important;
}

/* Primary / submit / next */
.fa-mf-root--pasted input[type="submit"],
.fa-mf-root--pasted .primaryAction,
.fa-mf-root--pasted .wfPageNextButton,
.fa-mf-root--pasted .nextPage {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 150px !important;
  min-height: unset !important;
  padding: .6rem 1.75rem !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  letter-spacing: -.2px !important;
  color: #fff !important;
  background: var(--fa-mf-navy) !important;
  border: 1px solid var(--fa-mf-navy) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  transition: background .15s ease, box-shadow .15s ease !important;
}

.fa-mf-root--pasted input[type="submit"]:hover,
.fa-mf-root--pasted .primaryAction:hover,
.fa-mf-root--pasted .wfPageNextButton:hover,
.fa-mf-root--pasted .nextPage:hover {
  background: var(--fa-mf-navy-dk) !important;
  box-shadow: 0 4px 16px rgba(26,55,78,.22) !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Back / previous */
.fa-mf-root--pasted .wfPagePreviousButton,
.fa-mf-root--pasted .previousPage {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: unset !important;
  padding: .6rem 1.75rem !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: var(--fa-mf-text) !important;
  background: transparent !important;
  border: 1px solid #b5c4ce !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-transform: none !important;
  line-height: 1.4 !important;
  transition: background .15s ease !important;
}
.fa-mf-root--pasted .wfPagePreviousButton:hover,
.fa-mf-root--pasted .previousPage:hover {
  background: var(--fa-mf-field-bg) !important;
  transform: none !important;
  box-shadow: none !important;
}

.fa-mf-root--pasted input[type="submit"]:focus,
.fa-mf-root--pasted .primaryAction:focus,
.fa-mf-root--pasted .wfPageNextButton:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0,190,255,.22) !important;
}

/* ================================================================
   FOOTER / SUPPORT TEXT
   ================================================================ */

.fa-mf-root--pasted .wFormFooter,
.fa-mf-root--pasted .supportInfo {
  padding: 0 36px 16px !important;
  color: var(--fa-mf-muted) !important;
  font-family: "Inter", system-ui, sans-serif !important;
  font-size: .78rem !important;
  line-height: 1.5 !important;
}

/* ================================================================
   CONDITIONAL — hide FA's offstate elements
   ================================================================ */

.fa-mf-root--pasted .offstate { display: none !important; }

/* ================================================================
   IFRAME MODE — minimal chrome, title in navy header
   ================================================================ */

.fa-mf-root--iframe .fa-mf-panel {
  overflow: hidden;
}

.fa-mf-root--iframe .fa-mf-frame-label {
  padding-bottom: 0;
  box-shadow: none;
}

.fa-mf-root--iframe .fa-mf-frame-heading {
  /* already styled above as navy block with teal underline */
}

.fa-mf-iframe-wrap {
  position: relative;
  background: var(--fa-mf-bg);
  border: none;
  overflow: hidden;
}

.fa-mf-iframe {
  width: 100%;
  min-height: 1600px;
  border: 0;
  background: var(--fa-mf-bg);
  display: block;
}

.fa-mf-root--iframe .fa-mf-frame-shell.is-loading .fa-mf-iframe-wrap::after {
  content: "Loading form\2026";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--fa-mf-navy);
  font-size: 14px;
  font-weight: 600;
  background: rgba(255,255,255,.96);
  z-index: 3;
}

/* ================================================================
   ERROR STATE
   ================================================================ */

.fa-mf-error {
  padding: 14px 18px;
  background: #fff0f0;
  color: var(--fa-mf-red);
  border-left: 3px solid var(--fa-mf-red);
  font-size: .875rem;
  font-weight: 600;
  border-radius: 0;
}

/* ================================================================
   SHELL COPY — frame-copy / p / ul / li in the panel
   ================================================================ */

.fa-mf-root .fa-mf-frame-copy,
.fa-mf-root p,
.fa-mf-root ul,
.fa-mf-root li {
  font-weight: 400;
  letter-spacing: -.15px;
  line-height: 1.55;
}

.fa-mf-root h2,
.fa-mf-root h3,
.fa-mf-root h4 {
  font-family: "Marfa", "Georgia", serif;
  color: var(--fa-mf-navy);
  margin: 0 0 .65rem;
  padding: 0;
}

/* ================================================================
   GLOBAL LABEL WIDTH — beats FA's inline pixel widths + floats
   ================================================================ */

.fa-mf-root .wFormContainer label,
.fa-mf-root .wFormContainer legend,
.fa-mf-root .wFormContainer .label,
.fa-mf-root .wFormContainer .preField,
.fa-mf-root .wFormContainer .postField,
.fa-mf-root .wFormContainer .label.preField,
.fa-mf-root .wFormContainer .label.postField,
.fa-mf-root .wFormContainer .oneField > label,
.fa-mf-root .wFormContainer fieldset > legend,
.fa-mf-root .wFormContainer .inlineLabel,
.fa-mf-root--pasted label,
.fa-mf-root--pasted legend,
.fa-mf-root--pasted .label,
.fa-mf-root--pasted .preField,
.fa-mf-root--pasted .label.preField,
.fa-mf-root--pasted .label.postField,
.fa-mf-root--pasted .oneField > label,
.fa-mf-root--pasted fieldset > legend {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
  padding-right: 0 !important;
}

/* Exception: choice labels stay inline */
.fa-mf-root--pasted .oneChoice label,
.fa-mf-root--pasted .oneChoice .label.postField {
  display: inline !important;
  width: auto !important;
  float: none !important;
  clear: none !important;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 600px) {
  .fa-mf-root .fa-mf-frame-label           { padding: 22px 20px 0; }
  .fa-mf-root .fa-mf-frame-heading         { padding: 6px 20px 20px; }
  .fa-mf-root--pasted .wFormHeader         { padding: 6px 20px 20px !important; }
  .fa-mf-root--pasted .fa-mf-embed         { padding: 20px 20px 8px; }
  .fa-mf-root--pasted .actions             {
    padding: 16px 20px 24px !important;
    margin-left: -20px !important;
    margin-right: -20px !important;
    flex-direction: column-reverse !important;
  }
  .fa-mf-root--pasted input[type="submit"],
  .fa-mf-root--pasted .primaryAction,
  .fa-mf-root--pasted .wfPageNextButton,
  .fa-mf-root--pasted .wfPagePreviousButton,
  .fa-mf-root--pasted .nextPage,
  .fa-mf-root--pasted .previousPage        { width: 100% !important; min-width: unset !important; }
  .fa-mf-root--pasted .section.inline.group { grid-template-columns: 1fr; gap: 0; }
  .fa-mf-iframe                             { min-height: 1750px; }
}


@media (max-width: 767px) {
  .fa-mf-root--pasted .pageSection {
    padding: 14px 14px 2px !important;
  }
}
