/**
 * Step form (type 5) embed — version >= 9 host only (#formcolourid + legacy-form.css).
 * Keep separate from legacy-form.css so regular embed forms keep main branch design.
 */

/* Progress steps + field sections: full width — never a left column inside `.mip-v3-form` / `.mip-form` flex grid */
.mip-step-form-header,
.mip-step-sections,
.mip-v3-form>.mip-step-form-header,
.mip-v3-form>.mip-step-sections,
.mip-form>.mip-step-sections,
.mip-step-form-nav,
.mip-v3-form>.mip-step-form-nav,
.mip-step-confirm-page,
#formcolourid .mip-step-form-header,
#formcolourid .mip-step-sections,
#formcolourid .mip-step-confirm-page,
#sectionDynamicFormShow .mip-step-form-header,
#sectionDynamicFormShow .mip-step-sections,
.form-inner-wrapper .mip-step-form-header,
.form-inner-wrapper .mip-step-sections {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Platform nav is hidden when saved HTML provides per-step buttons — respect inline display:none */
.mip-step-form-nav[style*="display:none"],
.mip-step-form-nav[style*="display: none"],
.mip-v3-form>.mip-step-form-nav[style*="display:none"],
.mip-v3-form>.mip-step-form-nav[style*="display: none"],
#formcolourid .mip-step-form-nav[style*="display:none"],
#formcolourid .mip-step-form-nav[style*="display: none"] {
  display: none !important;
  flex: 0 0 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

.mip-step-form-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* Step nav row buttons — layout only; colours come from builder inline styles */
.mip-step-nav-row .btn_mailmag_basicinfo02,
.mip-step-nav-row button,
.mip-step-nav-row input[type="button"],
.mip-step-nav-row input[type="submit"],
#sectionDynamicFormShow .mip-step-nav-row .btn_mailmag_basicinfo02,
#sectionDynamicFormShow .mip-step-nav-row button,
.form-inner-wrapper .mip-step-nav-row .btn_mailmag_basicinfo02,
.form-inner-wrapper .mip-step-nav-row button {
  padding: 5px !important;
  min-width: 130px !important;
  min-height: 40px !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  width: auto !important;
  max-width: none !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* Email domain suggestion — match direct form (override legacy-form .form-inner-wrapper button) */
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-email-domain-panel {
  background: #fff !important;
  border: 1px solid #d0d0d0 !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-email-domain-panel .mip-email-domain-options {
  max-height: 220px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-email-domain-panel button.mip-email-domain-option {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #1a73e8 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-email-domain-panel button.mip-email-domain-option:hover,
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-email-domain-panel button.mip-email-domain-option:focus {
  background: #e8f4fc !important;
  background-color: #e8f4fc !important;
  color: #1a73e8 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Step nav cancel removed — hide legacy saved HTML */
.mip-step-nav-row .mip-step-cancel-btn,
.mip-step-nav-row .mip-step-draft-btn,
.mip-step-nav-row #btnStepCancel,
.mip-step-nav-row #btnStepDraft,
.mip-step-nav-row [name="btnStepCancel"],
.mip-step-nav-row [name="btnStepDraft"] {
  display: none !important;
}

/* Step sections: nav row sits outside field grid */
.mip-step-section,
.mip-step-sections>.mip-step-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  gap: 16px 2%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pre-runtime: hide inactive steps before step-form-runtime.js initializes */
.mip-step-section[data-step-active="0"] {
  display: none !important;
}

.mip-step-sections:not([data-mip-step-ready="1"]) .mip-step-section:not([data-step-index="0"]) {
  display: none !important;
}

/* Pre-runtime: hide all step nav buttons until runtime shows the active step controls */
.mip-step-sections:not([data-mip-step-ready="1"]) .mip-step-nav-row button,
.mip-step-sections:not([data-mip-step-ready="1"]) .mip-step-nav-row input[type="button"],
.mip-step-sections:not([data-mip-step-ready="1"]) .mip-step-nav-row input[type="submit"],
.mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-step-nav-row button,
.mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-step-nav-row input[type="button"],
.mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-step-nav-row input[type="submit"],
.mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-step-form-nav {
  display: none !important;
}

.mip-step-sections:not([data-mip-step-ready="1"]) ~ .form_btn_wrapper,
.mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-v3-button-wrapper,
.mip-step-sections:not([data-mip-step-ready="1"]) ~ .dfltbt,
#formcolourid .mip-step-sections:not([data-mip-step-ready="1"]) ~ .form_btn_wrapper,
#formcolourid .mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-v3-button-wrapper,
#formcolourid .mip-step-sections:not([data-mip-step-ready="1"]) ~ .dfltbt,
#sectionDynamicFormShow .mip-step-sections:not([data-mip-step-ready="1"]) ~ .form_btn_wrapper,
#sectionDynamicFormShow .mip-step-sections:not([data-mip-step-ready="1"]) ~ .mip-v3-button-wrapper,
#sectionDynamicFormShow .mip-step-sections:not([data-mip-step-ready="1"]) ~ .dfltbt {
  display: none !important;
}

.mip-step-section-title {
  margin: 0 0 12px;
  font-weight: 700;
}

.mip-step-nav-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 16px 0 8px;
  width: 100%;
}

.mip-step-sections+.mip-step-nav-row {
  margin-top: 8px;
}

/* Progress header */
.mip-step-form-header {
  padding: 14px 22px 10px;
  background: #fff;
}

.mip-step-form-progress-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mip-step-form-progress-line {
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: #d8d8d8;
}

.mip-step-form-progress-line.completed {
  background: #98d6ca;
}

.mip-step-form-progress-circle {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #d3d3d3;
  background: #f3f3f3;
  color: #6f6f6f;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mip-step-form-progress-circle.active {
  border-color: #65c4ad;
  background: #e6f7f2;
  color: #1f8f74;
}

.mip-step-form-progress-circle.completed {
  border-color: #65c4ad;
  background: #65c4ad;
  color: #fff;
}

.mip-step-form-progress-label {
  font-size: 13px;
  color: #6f6f6f;
  text-align: center;
}

/* Mobile: hide circle step indicator, show fixed bottom progress bar */
.mip-step-form-progress-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .mip-step-form-header {
    padding: 0;
    background: transparent;
  }

  .mip-step-form-progress {
    display: none !important;
  }

  .mip-step-form-progress-mobile {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    box-sizing: border-box;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #e8f3ef;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  }

  .mip-step-form-progress-mobile-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  .mip-step-form-progress-mobile-count {
    flex: 0 0 auto;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    color: #4d4d4d;
    white-space: nowrap;
  }

  .mip-step-form-progress-mobile-track {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
  }

  .mip-step-form-progress-mobile-fill {
    height: 100%;
    border-radius: 999px;
    background: #66b2a2;
    transition: width 0.25s ease;
  }

  .mip-step-nav-row {
    padding-bottom: 30px;
  }

  .mip-step-confirm-nav {
    padding-bottom: 30px;
  }
}

/* Confirm page — summary stacked above nav (not beside) */
.mip-step-confirm-page {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  padding: 0 22px 22px;
  box-sizing: border-box;
}

.mip-step-confirm-page>.mip-step-confirm-body,
.mip-step-confirm-page>.mip-step-confirm-nav {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.mip-step-confirm-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mip-step-confirm-section {
  border-radius: 4px;
  padding: 10px 12px;
}

form[data-mip-confirm-active] .mip-step-sections,
.mip-step-sections[data-mip-confirm-all-steps="1"] {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

form[data-mip-confirm-active] .mip-step-section,
.mip-step-sections[data-mip-confirm-all-steps="1"] .mip-step-section {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-content: flex-start !important;
  gap: 8px 2% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

form[data-mip-confirm-active] .mip-step-section.mip-step-confirm-section {
  border-radius: 4px;
  padding: 10px;
  box-sizing: border-box;
}

/* Step form confirm: LINE block hidden via applyLineConfirmPageVisibility; links stay non-clickable if visible */
form[data-mip-confirm-active] .mip-step-sections a.click-link,
form[data-mip-confirm-active] .mip-step-section a.click-link {
  cursor: default !important;
  pointer-events: none !important;
}

form[data-mip-confirm-active] .mip-step-confirm-section--flat {
  margin-bottom: 0;
  padding-bottom: 0;
}

form[data-mip-confirm-active] .mip-step-sections>.mip-step-confirm-section-header,
.mip-step-sections[data-mip-confirm-all-steps="1"]>.mip-step-confirm-section-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

form[data-mip-confirm-active] .mip-step-confirm-section-header {
  margin-bottom: 6px;
}

.mip-step-confirm-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.mip-step-confirm-section-title {
  margin: 0;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.mip-step-confirm-section-rule {
  flex: 1 1 auto;
  height: 1px;
  min-width: 16px;
  background-color: #d8d8d8;
}

/* Confirm page edit — override legacy-form .form-inner-wrapper button teal submit style */
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-step-confirm-edit,
form[data-mip-confirm-active] .mip-step-confirm-edit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex-shrink: 0 !important;
  min-width: 85px !important;
  width: auto !important;
  max-width: none !important;
  height: 33px !important;
  min-height: 33px !important;
  padding: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  text-transform: capitalize !important;
  cursor: pointer !important;
  background-color: #fff !important;
  color: #138b67 !important;
  border: 1px solid #138b67 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper) .mip-step-confirm-edit:hover,
form[data-mip-confirm-active] .mip-step-confirm-edit:hover {
  background-color: #138b67 !important;
  color: #fff !important;
}

.mip-step-confirm-edit-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.mip-step-confirm-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mip-step-confirm-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #727171;
  margin-bottom: 2px;
}

.mip-step-confirm-field-value {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.mip-step-confirm-field-value--multiline {
  white-space: pre-wrap;
}

.mip-step-confirm-empty {
  margin: 0;
  color: #999;
  font-size: 13px;
}

/* Confirm page only: tighten legacy field margins so less scrolling is needed */
form[data-mip-confirm-active] .form-group,
form[data-mip-confirm-active] .mip-item,
form[data-mip-confirm-active] .mip-item .mulclas,
form[data-mip-confirm-active] .mulclas {
  margin-bottom: 6px !important;
}

.mip-step-confirm-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.mip-step-confirm-nav button {
  padding: 5px 16px;
  min-width: 130px;
  min-height: 40px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#formcolourid .mip-step-confirm-page,
#sectionDynamicFormShow .mip-step-confirm-page {
  display: none;
}

#formcolourid .mip-step-confirm-page[style*="display: block"],
#formcolourid .mip-step-confirm-page[style*="display: flex"],
#formcolourid .mip-step-confirm-page.mip-step-confirm-page--visible,
#sectionDynamicFormShow .mip-step-confirm-page[style*="display: block"],
#sectionDynamicFormShow .mip-step-confirm-page[style*="display: flex"],
#sectionDynamicFormShow .mip-step-confirm-page.mip-step-confirm-page--visible {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
}

/* Step form only: fixed-size custom checkbox/radio (matches builder preview) */
.mip-step-sections .mulclas>p,
.mip-step-section .mulclas>p,
.mip-step-confirm-page .mulclas>p {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

.mip-step-sections input[type="checkbox"].checkin.newfrmcheckbox,
.mip-step-section input[type="checkbox"].checkin.newfrmcheckbox,
.mip-step-confirm-page input[type="checkbox"].checkin.newfrmcheckbox,
.mip-step-sections input[type="radio"].checkin.newfrmradio,
.mip-step-section input[type="radio"].checkin.newfrmradio,
.mip-step-confirm-page input[type="radio"].checkin.newfrmradio,
.mip-step-sections input[type="radio"].add-radio.newfrmradio,
.mip-step-section input[type="radio"].add-radio.newfrmradio,
.mip-step-confirm-page input[type="radio"].add-radio.newfrmradio {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-content: center !important;
  vertical-align: middle !important;
  border: 2px solid #C3C3C3 !important;
  background-color: #FFFFFF !important;
}

.mip-step-sections input[type="checkbox"].checkin.newfrmcheckbox,
.mip-step-section input[type="checkbox"].checkin.newfrmcheckbox,
.mip-step-confirm-page input[type="checkbox"].checkin.newfrmcheckbox {
  border-radius: 4px !important;
}

.mip-step-sections input[type="radio"].checkin.newfrmradio,
.mip-step-section input[type="radio"].checkin.newfrmradio,
.mip-step-confirm-page input[type="radio"].checkin.newfrmradio,
.mip-step-sections input[type="radio"].add-radio.newfrmradio,
.mip-step-section input[type="radio"].add-radio.newfrmradio,
.mip-step-confirm-page input[type="radio"].add-radio.newfrmradio {
  border-radius: 50% !important;
}

.mip-step-sections input[type="checkbox"].checkin.newfrmcheckbox:checked,
.mip-step-section input[type="checkbox"].checkin.newfrmcheckbox:checked,
.mip-step-confirm-page input[type="checkbox"].checkin.newfrmcheckbox:checked,
.mip-step-sections input[type="checkbox"].checkin.newfrmcheckbox:indeterminate,
.mip-step-section input[type="checkbox"].checkin.newfrmcheckbox:indeterminate,
.mip-step-confirm-page input[type="checkbox"].checkin.newfrmcheckbox:indeterminate {
  background-color: #138B67 !important;
  border-color: #138B67 !important;
}

.mip-step-sections input[type="radio"].checkin.newfrmradio:checked,
.mip-step-section input[type="radio"].checkin.newfrmradio:checked,
.mip-step-confirm-page input[type="radio"].checkin.newfrmradio:checked,
.mip-step-sections input[type="radio"].add-radio.newfrmradio:checked,
.mip-step-section input[type="radio"].add-radio.newfrmradio:checked,
.mip-step-confirm-page input[type="radio"].add-radio.newfrmradio:checked {
  border-color: #138B67 !important;
}

.mip-step-sections input[type="checkbox"].checkin.newfrmcheckbox+label,
.mip-step-section input[type="checkbox"].checkin.newfrmcheckbox+label,
.mip-step-confirm-page input[type="checkbox"].checkin.newfrmcheckbox+label,
.mip-step-sections input[type="radio"].checkin.newfrmradio+label,
.mip-step-section input[type="radio"].checkin.newfrmradio+label,
.mip-step-confirm-page input[type="radio"].checkin.newfrmradio+label,
.mip-step-sections input[type="radio"].add-radio.newfrmradio+label,
.mip-step-section input[type="radio"].add-radio.newfrmradio+label,
.mip-step-confirm-page input[type="radio"].add-radio.newfrmradio+label {
  background: none !important;
  background-image: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
  height: auto !important;
  line-height: inherit !important;
  flex: 0 1 auto !important;
}

/* Step form confirm: muted grey checkbox/radio (matches dynamic form confirm) */
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm,
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm,
form[data-mip-confirm-active] input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm {
  -webkit-appearance: none !important;
  appearance: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
  cursor: default !important;
  width: 20px !important;
  min-width: 20px !important;
  max-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  flex: 0 0 20px !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: inline-grid !important;
  place-content: center !important;
  vertical-align: middle !important;
  border: 2px solid #dbdbdb !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: none !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm {
  border-radius: 4px !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm,
form[data-mip-confirm-active] input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm {
  border-radius: 50% !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:checked,
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:indeterminate,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:checked,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:indeterminate {
  background-color: #dbdbdb !important;
  border-color: #dbdbdb !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:checked::before,
:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:indeterminate::before,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:checked::before,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:indeterminate::before {
  border-left-color: #ffffff !important;
  border-bottom-color: #ffffff !important;
  transform: rotate(-45deg) scale(1) !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:indeterminate::before,
form[data-mip-confirm-active] input[type="checkbox"]:is(.checkin.newfrmcheckbox, .newfrmcheckbox).disablefrm:indeterminate::before {
  background-color: #ffffff !important;
  border: 0 !important;
  width: 10px !important;
  height: 2px !important;
  transform: scale(1) !important;
  margin-top: 0 !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm:checked,
form[data-mip-confirm-active] input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm:checked {
  border-color: #dbdbdb !important;
}

:is(#formcolourid, #sectionDynamicFormShow, .form-inner-wrapper, .mip-v3-form, #forms)
  input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm:checked::after,
form[data-mip-confirm-active] input[type="radio"]:is(.checkin.newfrmradio, .add-radio.newfrmradio, .newfrmradio).disablefrm:checked::after {
  background-color: #dbdbdb !important;
  transform: scale(1.2) !important;
}

/* Step form confirm: remove blue autofill/selection background on locked fields */
:is(#formcolourid, #sectionDynamicFormShow) form[data-mip-confirm-active] :is(.mip-step-section, .mip-step-sections) :is(input.disablefrm:not([type=checkbox]):not([type=radio]),
  textarea.disablefrm) {
  background: transparent !important;
  background-color: transparent !important;
}

:is(#formcolourid, #sectionDynamicFormShow) form[data-mip-confirm-active] :is(.mip-step-section, .mip-step-sections) input.disablefrm:not([type=checkbox]):not([type=radio]):is( :-webkit-autofill,
  :-webkit-autofill:hover,
  :-webkit-autofill:focus,
  :-webkit-autofill:active,
  :-internal-autofill-selected) {
  -webkit-box-shadow: 0 0 0 1000px rgb(255 255 255 / 0%) inset !important;
  box-shadow: 0 0 0 1000px rgb(255 255 255 / 0%) inset !important;
  background: transparent !important;
  background-color: transparent !important;
  -webkit-text-fill-color: #111010 !important;
}

:is(#formcolourid, #sectionDynamicFormShow) form[data-mip-confirm-active] :is(.mip-step-section, .mip-step-sections) :is(input.disablefrm:not([type=checkbox]):not([type=radio]),
  textarea.disablefrm)::selection {
  background: transparent !important;
  background-color: transparent !important;
}

.mip-step-confirm-section label span {
  display: none !important;
}