/* Embedded [nri_request_form] — premium app shell (mobile) + glass modal (desktop) */

html.nri-embed-form-lock,
html.nri-embed-form-lock body {
  overflow: hidden !important;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* While the embed is open, hide the theme page so only the app shell is visible. */
html.nri-embed-form-lock body > *:not(.nri-embed-form-host),
html.nri-embed-form-lock body > *:not(.nri-embed-form-host) * {
  visibility: hidden !important;
  pointer-events: none !important;
}

html.nri-embed-form-lock .nri-embed-form-host {
  visibility: visible !important;
  pointer-events: auto !important;
}

html.nri-embed-form-lock .nri-embed-form-host * {
  visibility: visible;
  pointer-events: auto;
}

html.nri-embed-form-lock {
  overscroll-behavior: none;
}

.nri-embed-form-apphead {
  display: none;
}

.nri-embed-form-actionbar {
  display: none;
}

.nri-embed-form-actionbar:empty {
  display: none;
}

.nri-embed-form-anchor {
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.nri-embed-form-host {
  --emb-brand: #4f46e5;
  --emb-brand-d: #14145a;
  --emb-ink: #0f172a;
  --emb-muted: #64748b;
  --emb-line: #e2e8f0;
  --emb-ease: cubic-bezier(0.22, 0.9, 0.3, 1);
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.28s var(--emb-ease);
}

.nri-embed-form-host.is-open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.nri-embed-form-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.28s var(--emb-ease);
}

.nri-embed-form-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f3f6fc;
  box-sizing: border-box;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.38s var(--emb-ease), opacity 0.32s var(--emb-ease), box-shadow 0.32s var(--emb-ease);
}

.nri-embed-form-host.is-open .nri-embed-form-panel {
  transform: none;
  opacity: 1;
}

/* ── App chrome header ── */
.nri-embed-form-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  padding: max(14px, env(safe-area-inset-top, 0px)) 18px 14px;
  background: linear-gradient(135deg, #14145a 0%, #3730a3 52%, #6d28d9 115%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px -8px rgba(20, 20, 90, 0.55);
  position: relative;
  overflow: hidden;
}

.nri-embed-form-topbar::after {
  content: "";
  position: absolute;
  right: -24px;
  top: -48px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
}

.nri-embed-form-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.nri-embed-form-mark {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
}

.nri-embed-form-mark svg {
  width: 22px;
  height: 22px;
  display: block;
}

.nri-embed-form-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nri-embed-form-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nri-embed-form-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.nri-embed-form-close {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.15s var(--emb-ease);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.nri-embed-form-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nri-embed-form-close:active {
  transform: scale(0.96);
}

/* ── Scroll body with subtle mesh ── */
.nri-embed-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(79, 70, 229, 0.08), rgba(79, 70, 229, 0) 70%),
    radial-gradient(40% 30% at 100% 20%, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0) 70%),
    linear-gradient(180deg, #f8fafc 0%, #eef2ff 48%, #f8fafc 100%);
}

.nri-embed-form-host .nri-embed-form-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 18px 32px;
  position: relative;
}

.nri-embed-form-host .nri-embed-form-inner::before {
  content: none;
}

.nri-embed-form-host .nri-embed-form-hero {
  padding: 8px 0 18px;
  text-align: center;
}

.nri-embed-form-host .nri-embed-form-hero h1 {
  font-size: clamp(22px, 4.5vw, 30px);
}

.nri-embed-form-host .nri-embed-form-hero p {
  font-size: 14px;
}

.nri-embed-form-host .nri-wizard-wrap {
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 16px 40px -12px rgba(30, 41, 120, 0.22),
    0 32px 64px -24px rgba(30, 41, 120, 0.18);
}

.nri-embed-form-host .nri-form-foot {
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* ── Wizard fields inside shell (standalone + embed; works without nri-style.css) ── */
.nri-embed-form-host .nri-wizard-form {
  --f-ink: #0f172a;
  --f-body: #475569;
  --f-mute: #64748b;
  --f-line: #e2e8f0;
  --f-fill: #f8fafc;
  --f-brand: #4f46e5;
  --f-brand-d: #1a1a6e;
  --f-brand-soft: #eef2ff;
  --f-err: #dc2626;
  --f-err-soft: #fef2f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--f-ink);
}

.nri-embed-form-host .nri-sl-step-heading,
.nri-embed-form-host .nri-step-head {
  display: none !important;
}

.nri-embed-form-host .nri-wizard-step {
  padding: 16px 18px 8px;
}

.nri-embed-form-host .nri-step-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}

@media (min-width: 768px) {
  .nri-embed-form-host .nri-step-fields {
    grid-template-columns: 1fr 1fr;
  }

  .nri-embed-form-host .nri-field-full {
    grid-column: 1 / -1;
  }
}

.nri-embed-form-host .nri-wizard-form .nri-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
  position: relative;
}

.nri-embed-form-host .nri-wizard-form .nri-field > label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--f-ink);
}

.nri-embed-form-host .nri-wizard-form .nri-req {
  color: var(--f-err);
  font-weight: 800;
}

.nri-embed-form-host .nri-wizard-form .nri-opt {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #94a3b8;
  background: var(--f-fill);
  border: 1px solid var(--f-line);
  padding: 1px 7px;
  border-radius: 999px;
}

.nri-embed-form-host .nri-wizard-form .nri-field input[type="text"],
.nri-embed-form-host .nri-wizard-form .nri-field input[type="email"],
.nri-embed-form-host .nri-wizard-form .nri-field input[type="tel"],
.nri-embed-form-host .nri-wizard-form .nri-field input[type="number"],
.nri-embed-form-host .nri-wizard-form .nri-field select,
.nri-embed-form-host .nri-wizard-form .nri-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 15px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--f-ink) !important;
  background-color: var(--f-fill) !important;
  border: 1.5px solid var(--f-line) !important;
  border-radius: 12px;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.nri-embed-form-host .nri-wizard-form .nri-field textarea {
  min-height: 104px;
  resize: vertical;
}

.nri-embed-form-host .nri-wizard-form .nri-field input:focus,
.nri-embed-form-host .nri-wizard-form .nri-field select:focus,
.nri-embed-form-host .nri-wizard-form .nri-field textarea:focus {
  background-color: #fff;
  border-color: var(--f-brand);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.14);
  outline: none;
}

.nri-embed-form-host .nri-wizard-form .nri-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.nri-embed-form-host .nri-wizard-form .nri-ft-email input,
.nri-embed-form-host .nri-wizard-form .nri-ft-number input,
.nri-embed-form-host .nri-wizard-form .nri-ft-searchable .nri-sf-input {
  padding-left: 44px;
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 18px;
}

.nri-embed-form-host .nri-wizard-form .nri-ft-searchable .nri-sf-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
}

.nri-embed-form-host .nri-wizard-form .nri-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nri-embed-form-host .nri-wizard-form .nri-radio-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 16px 11px 14px;
  border: 1.5px solid var(--f-line);
  border-radius: 12px;
  background: var(--f-fill);
  font-size: 14px;
  font-weight: 600;
  color: var(--f-body);
  cursor: pointer;
  min-height: 46px;
}

.nri-embed-form-host .nri-wizard-form .nri-radio-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  flex: 0 0 auto;
  accent-color: var(--f-brand);
}

.nri-embed-form-host .nri-wizard-form .nri-radio-opt:has(input:checked) {
  border-color: var(--f-brand);
  background: var(--f-brand-soft);
  color: var(--f-brand-d);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.nri-embed-form-host .nri-wizard-form .nri-dropzone {
  border: 2px dashed #c7d2fe;
  border-radius: 16px;
  background: linear-gradient(180deg, #fafaff, var(--f-brand-soft));
}

.nri-embed-form-host .nri-wizard-form .nri-step-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--f-line);
}

.nri-embed-form-host .nri-wizard-form .nri-sl-btn-next,
.nri-embed-form-host .nri-wizard-form .nri-sl-btn-submit,
.nri-embed-form-host .nri-wizard-form .nri-btn-primary {
  color: #fff;
  border: none;
  background: linear-gradient(135deg, var(--f-brand-d) 0%, var(--f-brand) 70%, #6d5ff5 100%);
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.6);
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.nri-embed-form-host .nri-wizard-form .nri-sl-btn-back,
.nri-embed-form-host .nri-wizard-form .nri-btn-ghost,
.nri-embed-form-host .nri-wizard-form .nri-wizard-prev {
  background: #fff;
  border: 1.5px solid var(--f-line);
  color: var(--f-body);
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: auto;
}

.nri-embed-form-host .nri-embed-form-actionbar .nri-sl-btn-next,
.nri-embed-form-host .nri-embed-form-actionbar .nri-sl-btn-submit,
.nri-embed-form-host .nri-embed-form-actionbar .nri-wizard-next,
.nri-embed-form-host .nri-embed-form-actionbar .nri-cta {
  flex: 1 1 auto;
  min-height: 52px;
  font-size: 16px;
}

.nri-embed-form-host .nri-embed-form-actionbar .nri-sl-btn-back,
.nri-embed-form-host .nri-embed-form-actionbar .nri-wizard-prev {
  flex: 0 0 auto;
  min-height: 52px;
}

/* ── Mobile: dedicated full-screen app (not responsive webpage) ── */
@media (max-width: 767px) {
  .nri-embed-form-host {
    --nri-kb-inset: 0px;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
  }

  .nri-embed-form-host .nri-embed-form-backdrop {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  .nri-embed-form-host .nri-embed-form-panel {
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: -webkit-fill-available;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    transform: none;
  }

  /* Slim system bar: logo + close only (step context lives in app head). */
  .nri-embed-form-host .nri-embed-form-topbar {
    flex-shrink: 0;
    min-height: 48px;
    padding: max(8px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px));
    background: #14145a;
    box-shadow: none;
  }

  .nri-embed-form-host .nri-embed-form-topbar::after {
    display: none;
  }

  .nri-embed-form-host .nri-embed-form-brand-text {
    display: none;
  }

  .nri-embed-form-host .nri-embed-form-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nri-embed-form-host .nri-embed-form-close {
    width: 40px;
    height: 40px;
  }

  .nri-embed-form-host.nri-embed-app-mode .nri-embed-form-apphead {
    display: block;
    flex-shrink: 0;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) 14px max(16px, env(safe-area-inset-right, 0px));
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
  }

  .nri-embed-form-host .nri-embed-app-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
  }

  .nri-embed-form-host .nri-embed-app-title {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
  }

  .nri-embed-form-host .nri-embed-app-progress {
    height: 4px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
  }

  .nri-embed-form-host .nri-embed-app-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    transition: width 0.28s cubic-bezier(0.22, 0.9, 0.3, 1);
  }

  .nri-embed-form-host .nri-embed-form-scroll {
    flex: 1 1 0;
    min-height: 0;
    height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding: 0;
    background: #f8fafc;
    position: relative;
    z-index: 1;
    transform: translateZ(0);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .nri-embed-form-host .nri-embed-form-scroll::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .nri-embed-form-host .nri-embed-form-scroll .nri-field label,
  .nri-embed-form-host .nri-embed-form-scroll .nri-step-fields,
  .nri-embed-form-host .nri-embed-form-scroll .nri-wizard-step {
    touch-action: pan-y;
  }

  .nri-embed-form-host.nri-embed-app-mode .nri-embed-form-actionbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px max(16px, env(safe-area-inset-left, 0px)) calc(12px + env(safe-area-inset-bottom, 0px) + var(--nri-kb-inset, 0px)) max(16px, env(safe-area-inset-right, 0px));
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 24px -8px rgba(15, 23, 42, 0.12);
  }

  .nri-embed-form-host.nri-embed-app-mode .nri-embed-form-actionbar .nri-step-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
  }

  .nri-embed-form-host .nri-embed-form-hero,
  .nri-embed-form-host .nri-form-foot,
  .nri-embed-form-host .nri-progress-track,
  .nri-embed-form-host .nri-steps-bar {
    display: none !important;
  }

  .nri-embed-form-host .nri-embed-form-inner,
  .nri-embed-form-host .nri-form-page {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .nri-embed-form-host .nri-form-page::before {
    display: none !important;
  }

  .nri-embed-form-host .nri-wizard-wrap {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }

  .nri-embed-form-host .nri-wizard-step {
    padding: 16px max(16px, env(safe-area-inset-left, 0px)) 20px max(16px, env(safe-area-inset-right, 0px));
    animation: none !important;
  }

  .nri-embed-form-host .nri-step-head,
  .nri-embed-form-host .nri-step-nav-slot,
  .nri-embed-form-host .nri-sl-step-heading {
    display: none !important;
  }

  /* Hide step footer nav only while it lives inside the step — not when mounted in the action bar */
  .nri-embed-form-host.nri-embed-app-mode .nri-wizard-step .nri-sl-nav,
  .nri-embed-form-host.nri-embed-app-mode .nri-wizard-step .nri-step-nav {
    display: none !important;
  }

  .nri-embed-form-host.nri-embed-app-mode .nri-embed-form-actionbar .nri-step-nav,
  .nri-embed-form-host.nri-embed-app-mode .nri-embed-form-actionbar .nri-sl-nav {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
  }

  .nri-embed-form-host .nri-step-fields {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field {
    margin-bottom: 16px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field input[type="text"],
  .nri-embed-form-host .nri-wizard-form .nri-field input[type="email"],
  .nri-embed-form-host .nri-wizard-form .nri-field input[type="tel"],
  .nri-embed-form-host .nri-wizard-form .nri-field input[type="number"],
  .nri-embed-form-host .nri-wizard-form .nri-field select,
  .nri-embed-form-host .nri-wizard-form .nri-field textarea {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    color: #0f172a !important;
  }

  .nri-embed-form-host .nri-wizard-form .nri-radio-opt {
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
  }

  .nri-embed-form-host .nri-embed-form-actionbar .nri-wizard-prev {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 12px;
  }

  .nri-embed-form-host .nri-embed-form-actionbar .nri-wizard-next,
  .nri-embed-form-host .nri-embed-form-actionbar .nri-cta,
  .nri-embed-form-host .nri-embed-form-actionbar .nri-sl-btn-next,
  .nri-embed-form-host .nri-embed-form-actionbar .nri-sl-btn-submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 52px;
    min-width: 120px;
    width: auto;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    color: #fff !important;
    border: none !important;
    background: linear-gradient(135deg, #14145a 0%, #4f46e5 75%, #6d5ff5 100%) !important;
    box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.55) !important;
  }

  .nri-embed-form-host .nri-embed-form-actionbar .nri-wizard-prev,
  .nri-embed-form-host .nri-embed-form-actionbar .nri-sl-btn-back {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
  }

  .nri-embed-form-host .nri-step-notice {
    margin: 0 0 12px;
    border-radius: 10px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-sf-dropdown {
    max-height: min(240px, 40vh);
  }

  .nri-embed-form-host .nri-wizard-step[style*="display: none"],
  .nri-embed-form-host .nri-wizard-step[style*="display:none"] {
    display: none !important;
  }
}

/* ── Desktop: compact modal (fits typical laptop viewport, minimal scroll) ── */
@media (min-width: 768px) {
  .nri-embed-form-host {
    align-items: center;
    padding: 16px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nri-embed-form-panel {
    width: min(920px, 100%);
    max-height: none;
    height: auto;
    flex: 0 0 auto;
    margin: auto;
    border-radius: 20px;
    overflow: visible;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.12),
      0 32px 80px -16px rgba(15, 23, 42, 0.45),
      0 12px 32px -12px rgba(79, 70, 229, 0.25);
  }

  .nri-embed-form-topbar {
    border-radius: 20px 20px 0 0;
    padding: 10px 16px;
  }

  .nri-embed-form-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nri-embed-form-close {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  /* Header already carries context — drop duplicate hero/footer in modal */
  .nri-embed-form-host .nri-embed-form-hero,
  .nri-embed-form-host .nri-form-foot {
    display: none !important;
  }

  .nri-embed-form-scroll {
    overflow: visible;
    flex: 0 0 auto;
    background: #f8fafc;
  }

  .nri-embed-form-host .nri-embed-form-inner {
    max-width: none;
    padding: 12px 14px 14px;
  }

  .nri-embed-form-host .nri-wizard-wrap {
    border-radius: 16px;
    box-shadow: 0 8px 28px -10px rgba(30, 41, 120, 0.18);
  }

  .nri-embed-form-host .nri-steps-bar {
    padding: 10px 16px 8px;
  }

  .nri-embed-form-host .nri-step-dot {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .nri-embed-form-host .nri-step-label {
    font-size: 10px;
  }

  .nri-embed-form-host .nri-step-line {
    margin-bottom: 16px;
  }

  .nri-embed-form-host .nri-wizard-step {
    padding: 14px 18px 12px;
    animation: none;
  }

  .nri-embed-form-host .nri-step-head {
    margin: 0 0 10px;
  }

  .nri-embed-form-host .nri-step-kicker {
    display: none;
  }

  .nri-embed-form-host .nri-step-title {
    font-size: 17px;
    margin: 0;
  }

  .nri-embed-form-host .nri-step-sub {
    font-size: 12px;
    margin: 2px 0 0;
    line-height: 1.35;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field {
    margin-bottom: 10px;
    gap: 4px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field > label {
    font-size: 12px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field input[type="text"],
  .nri-embed-form-host .nri-wizard-form .nri-field input[type="email"],
  .nri-embed-form-host .nri-wizard-form .nri-field input[type="tel"],
  .nri-embed-form-host .nri-wizard-form .nri-field input[type="number"],
  .nri-embed-form-host .nri-wizard-form .nri-field select,
  .nri-embed-form-host .nri-wizard-form .nri-field textarea {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field textarea {
    min-height: 72px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-email input[type="email"],
  .nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-number input[type="number"],
  .nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-searchable .nri-sf-input {
    padding-left: 40px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-phone-wrap select.nri-phone-code {
    min-height: 40px;
    width: 108px !important;
  }

  .nri-embed-form-host .nri-wizard-form .nri-radio-opt {
    min-height: 40px;
    padding: 8px 12px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-dropzone .nri-dz-inner {
    padding: 16px 14px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-dz-icon {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 6px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-step-nav {
    margin-top: 12px;
    padding-top: 12px;
  }

  .nri-embed-form-host .nri-wizard-form .nri-btn {
    min-height: 42px;
    padding: 8px 18px;
    font-size: 14px;
  }

  .nri-embed-form-host .nri-step-fields {
    gap: 0 14px;
  }
}

/* Very short viewports: allow host-level scroll (wheel works on overlay) */
@media (min-width: 768px) and (max-height: 720px) {
  .nri-embed-form-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 56px);
  }
}

/* ── Client dashboard New Request (desktop: in-page; mobile: same app shell) ── */
.nri-app-new-request-wrap {
  margin: 0;
}

.nri-embed-form-host--dashboard {
  position: relative;
  inset: auto;
  z-index: 2;
  display: block;
  height: auto;
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.nri-embed-form-host--dashboard .nri-embed-form-backdrop {
  display: none;
}

.nri-embed-form-host--dashboard:not(.nri-embed-app-mode) .nri-embed-form-panel {
  position: relative;
  transform: none;
  opacity: 1;
  visibility: visible;
  height: auto;
  max-height: none;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 28px -12px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.nri-embed-form-host--dashboard:not(.nri-embed-app-mode) .nri-embed-form-apphead,
.nri-embed-form-host--dashboard:not(.nri-embed-app-mode) .nri-embed-form-actionbar {
  display: none !important;
}

.nri-embed-form-host--dashboard:not(.nri-embed-app-mode) .nri-embed-form-topbar {
  border-radius: 16px 16px 0 0;
}

@media (max-width: 767px) {
  .nri-app-new-request-wrap .nri-app-newreq-hint {
    display: none !important;
  }

  .nri-embed-form-host--dashboard.nri-embed-app-mode {
    position: fixed;
    inset: 0;
    z-index: 999999;
  }
}

/* ── [nri_standalone_form]: inline card + interaction-activated shell ── */
.nri-embed-form-host--standalone:not(.is-open) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

.nri-sl-outer--active-shell .nri-sl-card {
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

.nri-sl-outer,
.nri-sl-outer *,
.nri-sl-outer *::before,
.nri-sl-outer *::after {
  box-sizing: border-box;
}

@media (max-width: 767px) {
  .nri-sl-fields.nri-step-fields {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nri-embed-form-host,
  .nri-embed-form-panel,
  .nri-embed-form-backdrop,
  .nri-embed-form-close {
    transition: none !important;
  }

  .nri-embed-form-host.is-open .nri-embed-form-panel {
    transform: none;
  }
}

/* Icon fields (email / number / searchable): keep the text clear of the leading icon.
   The shell's generic input padding above would otherwise reset padding-left and let the placeholder run under the icon. */
.nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-email input[type="email"],
.nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-number input[type="number"],
.nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-searchable .nri-sf-input {
  padding-left: 44px;
  background-repeat: no-repeat;
  background-position: 15px center;
  background-size: 18px;
}
@media (max-width: 767px) {
  .nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-email input[type="email"],
  .nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-number input[type="number"],
  .nri-embed-form-host .nri-wizard-form .nri-field.nri-ft-searchable .nri-sf-input {
    padding-left: 44px;
  }
}

/* Search dropdowns (University, etc.) must never be clipped by the wizard card inside the pop-up / app shell. */
.nri-embed-form-host .nri-wizard-wrap{overflow:visible!important}
.nri-embed-form-host .nri-search-field:focus-within{z-index:600}
