/* ============================================================================
   Invest flow pop-ups (invest form, profile selection, Reg A options, resume,
   DOB/SSN, soft commit). Ported from NV Live r2272, where it is the second half
   of overrides.scss ("MODAL SHELL POLISH" onwards). Kept as its own file on
   Test because overrides.scss has unrelated uncommitted work. Loaded by
   Views/Partials/Offering.cshtml after offering-open-v2.css.
   ============================================================================ */

   MODAL SHELL POLISH
   Universal upgrades to MagnificPopup-driven .white-popup-block modals so
   offering page popups (invest flow, profile gating, accreditation, soft
   commit, document signing, etc.) inherit a premium chrome consistent with
   the offering page cards.
   ============================================================================ */
.white-popup-block {
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35), 0 8px 24px rgba(15, 23, 42, 0.2) !important;
  overflow: hidden;
  position: relative;
}

/* Backdrop: rgba (not opacity-based) so backdrop-filter renders at full
   strength without being dimmed. */
.mfp-bg {
  background: rgba(15, 23, 42, 0.55) !important;
  opacity: 1 !important;
}

.mfp-bg.mfp-ready {
  opacity: 1 !important;
}

@supports (backdrop-filter: blur(6px)) {
  .mfp-bg {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}
/* NOTE: Tried locking html scroll while a modal is open (to keep the
   absolute-positioned .mfp-bg / .mfp-wrap from sliding off-screen on page
   scroll). Reverted because it prevented wheel-scrolling inside tall
   modals like investPopup. The body-transform-vs-fixed-positioning issue
   from uSkinned is the actual root cause; until that's solved, we accept
   that the backdrop may visually shift when the user scrolls the page. */
@media (prefers-reduced-motion: no-preference) {
  .mfp-zoom-in .white-popup-block,
  .mfp-fade .white-popup-block {
    transition: opacity 220ms ease-out, transform 220ms ease-out;
  }
  .mfp-bg.mfp-fade {
    transition: opacity 220ms ease-out;
  }
  .white-popup-block {
    animation: nvModalIn 240ms ease-out;
  }
  @keyframes nvModalIn {
    from {
      opacity: 0;
      transform: translateY(6px) scale(0.985);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }
}
.white-popup-block > h1,
.white-popup-block > h2,
.white-popup-block > h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 0 1rem !important;
  line-height: 1.25 !important;
}

/* Higher-specificity selectors (`.mfp-content .mfp-close`) so we beat an
   inline `.mfp-close { display: none !important }` rule shipped from
   Views/Partials/RegAInvestmentOptions.cshtml - that one targets just
   `.mfp-close` with one class, this one has two classes. */
.mfp-content .mfp-close,
.mfp-content button.mfp-close,
.white-popup-block .closeButton {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  color: #475569 !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  cursor: pointer !important;
  text-align: center !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  z-index: 1000001 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* For modals that don't ship their own .closeButton element, MagnificPopup
   inserts .mfp-close which uses the same chrome above. If a modal already
   has its own .closeButton inside .white-popup-block, hide MP's duplicate. */
.white-popup-block:has(.closeButton) ~ .mfp-close,
.mfp-content .white-popup-block:has(.closeButton) .mfp-close {
  display: none !important;
}

.mfp-content .mfp-close:hover,
.mfp-content button.mfp-close:hover,
.white-popup-block .closeButton:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.mfp-content .mfp-close:active,
.mfp-content button.mfp-close:active,
.white-popup-block .closeButton:active {
  transform: scale(0.94);
}

/* The legacy `.closeButton::after` rule renders an X (Ionicons + 45deg
   rotation) but its absolute positioning (top:10px, left:0) was tuned to
   the old close-button dimensions. Re-center it inside the new 36x36
   circular pill while preserving the 45deg rotation. */
.white-popup-block .closeButton::after {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  font-size: 24px !important;
}

@media (max-width: 575.98px) {
  .mfp-container {
    padding: 16px !important;
  }
  .white-popup-block {
    border-radius: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .mfp-close,
  .white-popup-block .closeButton {
    top: 6px !important;
    right: 6px !important;
  }
}
/* ============================================================================
   INVEST POPUP REDESIGN (2026-05-20)
   Lift the offering page's design language into the invest modal:
   - Light gradient header band (matches offering hero), gold accent under title
   - Share class cards in clean offering-card chrome (12px radius, soft border,
     hover lift) instead of legacy chunky 3px-bordered gradient cards
   - Selected share class card uses brand navy with white text
   - Form inputs styled to match Returns Calculator (rounded pill, focus state)
   Scoped to #investPopup so we don't disturb other modals during the pass.
   ============================================================================ */
#investPopup {
  /* Override inline padding: 0 + sharp top corners with our radius */
  border-radius: 16px !important;
}

/* Header band: replace dark `.c2-bg` h2 with a clean gradient + gold accent. */
#investPopup > h2.c2-bg {
  background: linear-gradient(135deg, #f7f9fc 0%, #eef2f7 100%) !important;
  color: #1f2937 !important;
  padding: 28px 56px 24px !important;
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  border-radius: 16px 16px 0 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  position: relative;
  margin: 0 !important;
}

#investPopup > h2.c2-bg #investPopupMainHeading {
  display: inline-block;
  margin-bottom: 4px;
}

#investPopup > h2.c2-bg > span:nth-of-type(2) {
  display: block;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.01em;
}

/* Share class cards: offering-card style. Soft white, subtle border, hover
   lift, brand navy when selected. */
#investPopup #selectShareClass {
  margin: 28px 32px 12px !important;
  padding: 0 !important;
}

#investPopup #selectShareClass > h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 0 20px !important;
  text-align: center !important;
}

#investPopup .share-class-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 24px !important;
  width: 260px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

#investPopup .share-class-card:not(.disabled):hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  border-color: #cbd5e1 !important;
}

#investPopup .share-class-card.disabled {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  box-shadow: none !important;
  opacity: 0.55 !important;
}

/* Share class name */
#investPopup .share-class-card h4 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  letter-spacing: -0.005em;
  margin: 0 0 16px !important;
}

/* Share class minimum investment block */
#investPopup .share-class-card > div:nth-of-type(2) > div:first-child {
  font-size: 28px !important;
  font-weight: 700 !important;
  color: #1d3559 !important;
  line-height: 1.1 !important;
  margin-bottom: 4px !important;
  font-variant-numeric: tabular-nums;
}

#investPopup .share-class-card > div:nth-of-type(2) > div:nth-child(2) {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

/* Selected indicator: hidden by default, brand navy + check when selected */
#investPopup .share-class-card .selected-indicator {
  background: #e2e8f0 !important;
  color: transparent !important;
  width: 22px !important;
  height: 22px !important;
  top: 14px !important;
  right: 14px !important;
  opacity: 0 !important;
  transition: opacity 0.15s ease, background 0.15s ease;
}

#investPopup .share-class-card.selected,
#investPopup .share-class-card:has(input[type=radio]:checked) {
  border-color: #1d3559 !important;
  box-shadow: 0 0 0 3px rgba(29, 53, 89, 0.12), 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

#investPopup .share-class-card.selected .selected-indicator,
#investPopup .share-class-card:has(input[type=radio]:checked) .selected-indicator {
  background: #1d3559 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Legacy CSS makes every child of .share-class-card.selected white text
   (designed for a dark-fill selected state). Our new selected state is a
   white card with navy outline, so keep the text dark. */
#investPopup .share-class-card.selected,
#investPopup .share-class-card.selected *,
#investPopup .share-class-card:has(input[type=radio]:checked),
#investPopup .share-class-card:has(input[type=radio]:checked) * {
  color: #1f2937 !important;
}

#investPopup .share-class-card.selected .selected-indicator,
#investPopup .share-class-card:has(input[type=radio]:checked) .selected-indicator {
  color: #ffffff !important;
}

#investPopup .share-class-card.selected > div:nth-of-type(2) > div:first-child,
#investPopup .share-class-card:has(input[type=radio]:checked) > div:nth-of-type(2) > div:first-child {
  color: #1d3559 !important;
}

/* Metric pills inside share class card */
#investPopup .share-class-card .metric-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
  text-align: center;
}

#investPopup .share-class-card .metric-card .metric-value {
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}

#investPopup .share-class-card .metric-card .metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Banners (approved wait-list / soft commit / impersonate). Tighter, less
   1990s-yellow, consistent rhythm. */
#investPopup #approvedWaitListNotice {
  margin: 16px 32px 0 !important;
  border-radius: 10px !important;
}

#investPopup #softCommitInvestNotice {
  margin: 16px 32px 0 !important;
  border-radius: 10px !important;
  border-left-color: #1d3559 !important;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
  color: #0f172a !important;
}

#investPopup #softCommitInvestNotice i {
  color: #1d3559 !important;
}

#investPopup > p.c5-bg {
  margin: 16px 32px 0 !important;
  border-radius: 10px !important;
}

/* Amount input: same look as the Returns Calculator amount input */
#investPopup #amountContainer {
  margin: 24px 32px 8px !important;
  padding: 0 !important;
}

#investPopup #amountContainer .control-label {
  display: block !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
}

#investPopup #amountContainer > .form-group {
  width: 100% !important;
}

#investPopup #amount {
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 16px 12px 36px !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  height: auto !important;
  box-shadow: none !important;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#investPopup #amount:focus {
  border-color: #1d3559 !important;
  background: #ffffff !important;
  outline: none !important;
}

#investPopup #amountContainer > .form-group > span:first-of-type {
  font-size: 22px !important;
  color: #64748b !important;
  top: 12px !important;
  left: 14px !important;
  font-weight: 600 !important;
}

/* Payment method section: tighten heading, restyle radio as a clean
   inline label, more breathing room. */
#investPopup #selectPaymentMethod {
  margin: 16px 32px 0 !important;
  padding: 0 !important;
}

#investPopup #selectPaymentMethod > p {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  margin: 0 0 10px !important;
}

#investPopup #selectPaymentMethod label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#investPopup #selectPaymentMethod label:has(input:checked) {
  border-color: #1d3559;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 53, 89, 0.1);
}

#investPopup #selectPaymentMethod input[type=radio] {
  width: 18px;
  height: 18px;
  accent-color: #1d3559;
  margin: 0;
  /* Bootstrap 4.3.1 globally clips input[type=radio] to rect(0,0,0,0),
     which hides the native checked dot. Undo that inside the invest
     popup so accent-color can paint the filled circle. */
  position: static !important;
  clip: auto !important;
  pointer-events: auto !important;
}

/* ACH agreement scroll box: rounded, soft border, custom scrollbar, more
   readable padding. */
#investPopup #divAchAgreement {
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  background: #f8fafc !important;
  padding: 16px 20px !important;
  margin: 14px 32px 20px !important;
  max-height: 220px !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.25) transparent;
}

#investPopup #divAchAgreement::-webkit-scrollbar {
  width: 8px;
}

#investPopup #divAchAgreement::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.25);
  border-radius: 4px;
}

#investPopup #divAchAgreement p {
  margin-bottom: 10px;
}

#investPopup #divAchAgreement p:last-child {
  margin-bottom: 0;
}

#investPopup #divAchAgreement strong {
  color: #1f2937;
}

/* Bank account form fields: match the offering page form patterns */
#investPopup #achBankInfo {
  padding: 0 32px;
}

#investPopup #achBankInfo .form-control,
#investPopup #achBankInfo select.form-control {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  height: auto !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#investPopup #achBankInfo .form-control:focus,
#investPopup #achBankInfo select.form-control:focus {
  border-color: #1d3559 !important;
  background: #ffffff !important;
  outline: none !important;
}

#investPopup #achBankInfo .control-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

/* ACH terms agreement checkbox row: cleaner card, softer background */
#investPopup .investCheckbox,
#investPopup .wirecheckbox {
  background: linear-gradient(135deg, #fefce8 0%, #fef3c7 100%);
  border-left: 3px solid #c9a44a;
  border-radius: 10px;
  padding: 14px 16px !important;
  margin: 16px 32px 20px !important;
}

#investPopup .investCheckbox label,
#investPopup .wirecheckbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

#investPopup .investCheckbox input[type=checkbox],
#investPopup .wirecheckbox input[type=checkbox] {
  transform: scale(1.4) !important;
  margin-top: 6px !important;
  accent-color: #1d3559 !important;
}

/* Field validation messages: uSkinned globally sets .field-validation-error
   to white text on a pink chip background. Strip the chip and render as
   plain red text underneath the field so the form doesn't look noisy. */
.white-popup-block .field-validation-error {
  color: #dc2626 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: block;
  margin-top: 4px !important;
  line-height: 1.4 !important;
}

/* The bigger "There was an error" alert keeps its callout look. */
.white-popup-block .alert-danger {
  color: #991b1b !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin: 12px 32px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
}

.white-popup-block .alert-danger pre {
  background: rgba(220, 38, 38, 0.06);
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  color: #7f1d1d;
  margin-top: 6px;
}

/* Submit / Print / Cancel buttons at the bottom of invest popup */
#investPopup .actions {
  padding: 8px 32px 32px !important;
  margin: 0 !important;
  width: auto !important;
  display: flex !important;
  justify-content: center !important;
  gap: 12px !important;
}

#investPopup .actions .btn {
  flex: 1 1 auto !important;
  max-width: 320px !important;
  padding: 14px 22px !important;
  border-radius: 10px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.25) !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease !important;
}

#investPopup .actions .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 53, 89, 0.35) !important;
}

#investPopup .actions .btn:active {
  transform: scale(0.98);
}

/* Print button is secondary action - outlined navy instead of filled. */
#investPopup #printPopup {
  background: #ffffff !important;
  color: #1d3559 !important;
  border: 2px solid #1d3559 !important;
  box-shadow: none !important;
}

#investPopup #printPopup:hover {
  background: #f1f5f9 !important;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.15) !important;
}

/* Wire Transfer radio: match the ACH pill style above */
#investPopup #pWireDetails {
  margin: 0 32px 16px !important;
  padding: 0 !important;
}

#investPopup #pWireDetails > label:first-of-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 12px;
}

#investPopup #pWireDetails > label:first-of-type:has(input:checked) {
  border-color: #1d3559;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(29, 53, 89, 0.1);
}

#investPopup #pWireDetails input[type=radio] {
  width: 18px;
  height: 18px;
  accent-color: #1d3559;
  margin: 0;
  /* See note above re: Bootstrap 4.3.1 clip rule on input[type=radio]. */
  position: static !important;
  clip: auto !important;
  pointer-events: auto !important;
}

#investPopup #pWireDetails > label:first-of-type span:last-child {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

#investPopup #divWireBankingDetails {
  margin: 12px 0 16px;
}

/* Conditional non-wire/non-ach instructions banner (Reg A) - tighten gold */
#investPopup #conditionalNonWireOrAchInstructions {
  margin: 16px 32px !important;
  padding: 12px 16px !important;
  border-radius: 10px !important;
  border-left: 4px solid #c9a44a !important;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%) !important;
  color: #713f12 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* DOB / SSN alert modal: was bare HTML checkboxes + browser-default
   Submit. Restyle to match the rest of the modal language. */
#dateofbirthssnAlert > p,
#dateofbirthssnAlert > h2 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin: 0 0 8px !important;
}

#dateofbirthssnAlert > p:not(:first-child) {
  margin-top: 22px !important;
}

#dateofbirthssnAlert label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #1f2937;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#dateofbirthssnAlert label:hover {
  border-color: #cbd5e1;
}

#dateofbirthssnAlert input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #1d3559;
  margin: 0;
}

#dateofbirthssnAlert input[type=submit],
#dateofbirthssnAlert button:not(.mfp-close) {
  margin-top: 20px !important;
  background: linear-gradient(135deg, #2c4a6b 0%, #1d3559 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.25) !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

#dateofbirthssnAlert input[type=submit]:hover,
#dateofbirthssnAlert button:not(.mfp-close):hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 53, 89, 0.35) !important;
}

/* Reg A welcome header: when the JS hasn't populated the user's name,
   we don't want to render "Hello, ! Welcome to NV REIT!" with an empty
   gap. Comma is now provided by CSS only when #profileName has content. */
#regAinvestPopup #profileName:not(:empty)::before {
  content: ", ";
}

/* Resume Investment modal: when the JS hasn't populated offering name or
   "last updated" timestamp, hide the orphaned punctuation / blank line. */
#resumeInvestmentModal p:has(#resumeLastUpdated:empty) {
  display: none !important;
}

#resumeInvestmentModal #resumeOfferingName:empty::after {
  content: "this offering";
  color: #94a3b8;
  font-style: italic;
  font-weight: 400;
}

/* Invest popup impersonate banner: hide the whole banner if no profile
   name was populated (avoids "impersonating 's profile."). */
#investPopup > p.c5-bg:has(#impersonateInvestorsProfileName:empty) {
  display: none !important;
}

/* ----- Shared form-input polish across all modals -----
   The redesign applied this to #investPopup inputs explicitly; broadening
   to every .white-popup-block input/select/textarea so secondary modals
   (regAAutoInvestOption bank form, softCommit, profile-related popups,
   etc.) share the same chrome. */
.white-popup-block input.form-control,
.white-popup-block input[type=text]:not([id=amount]):not([id=customAmount]),
.white-popup-block input[type=email],
.white-popup-block input[type=tel],
.white-popup-block input[type=number],
.white-popup-block select.form-control,
.white-popup-block select:not(.mfp-close):not([id*=payment]),
.white-popup-block textarea.form-control {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  height: auto !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.white-popup-block input.form-control:focus,
.white-popup-block input[type=text]:not([id=amount]):not([id=customAmount]):focus,
.white-popup-block input[type=email]:focus,
.white-popup-block input[type=tel]:focus,
.white-popup-block input[type=number]:focus,
.white-popup-block select.form-control:focus,
.white-popup-block select:not(.mfp-close):not([id*=payment]):focus,
.white-popup-block textarea.form-control:focus {
  border-color: #1d3559 !important;
  background: #ffffff !important;
  outline: none !important;
}

/* Form labels in modals: uppercase muted caps style like the rest of the
   redesign. Exclude .control-label inside the invest popup which already
   has its own scoped styling. */
.white-popup-block label.control-label,
.white-popup-block:not(#investPopup) label:not(:has(input[type=checkbox])):not(:has(input[type=radio])) {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
  display: block !important;
}

/* Reg A "Invest Now" buttons (one per column): match the navy gradient
   button style from the rest of the redesign. */
#regAinvestPopup .btn.invest-offering-btn,
#regAinvestPopup button.invest-offering-btn {
  background: linear-gradient(135deg, #2c4a6b 0%, #1d3559 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 22px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.25) !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

#regAinvestPopup .btn.invest-offering-btn:hover,
#regAinvestPopup button.invest-offering-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 53, 89, 0.35) !important;
}

/* Select dropdowns inside invest popup: same look as the form inputs */
#investPopup select.form-control {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%2364748b' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px !important;
  padding-right: 36px !important;
  cursor: pointer;
}

/* ============================================================================
   UNIVERSAL MODAL HEADER (resumeInvest, completeProfile, softCommit, etc).
   Center the first heading and give it consistent spacing. Gold accent
   line was removed per feedback - looked orphaned next to small modal titles.
   ============================================================================ */
.white-popup-block:not(#investPopup) > h1:first-of-type,
.white-popup-block:not(#investPopup) > h2:first-of-type {
  margin-bottom: 18px !important;
  text-align: center;
}

/* Soft Commit modal: tighten typography + form fields */
#softCommitModal h2:first-of-type {
  font-size: 1.5rem !important;
}

#softCommitModal .form-control,
#softCommitModal select {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
  color: #1f2937 !important;
  box-shadow: none !important;
  height: auto !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}

#softCommitModal .form-control:focus,
#softCommitModal select:focus {
  border-color: #1d3559 !important;
  background: #ffffff !important;
  outline: none !important;
}

#softCommitModal label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 6px !important;
}

#softCommitModal button[type=submit] {
  background: linear-gradient(135deg, #2c4a6b 0%, #1d3559 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 32px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.25) !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

#softCommitModal button[type=submit]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 53, 89, 0.35) !important;
}

/* ============================================================================
   regAAutoInvestOption v2: stacked-row "Choose Your Investment Style" picker.
   Slate accent (#677A92) matches the existing popup chrome since site-wide
   --c1-link CSS var resolves to white on this codebase.
   ============================================================================ */
#regAAutoInvestOption {
  /* Match SubmitAutoInvest + regAOptionSubmit to the navy gradient CTA used
     by other redesigned popups (dob-tin, softCommit, regAinvest invest-now).
     The legacy uSkinned <span style="width:100%"> trick pushed text off-center
     when combined with display: flex; we drop both. */
}
#regAAutoInvestOption .investment-style-rows {
  max-width: 600px;
  margin: 0 auto;
}
#regAAutoInvestOption .investment-style-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #ffffff;
  border: 2px solid #dee2e6;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 14px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
#regAAutoInvestOption .investment-style-row:hover {
  border-color: #677A92;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}
#regAAutoInvestOption .investment-style-row .row-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: rgba(103, 122, 146, 0.12);
  color: #677A92;
  border-radius: 12px;
}
#regAAutoInvestOption .investment-style-row .row-icon i {
  font-size: 22px;
}
#regAAutoInvestOption .investment-style-row .row-content {
  flex: 1;
  padding-right: 36px;
}
#regAAutoInvestOption .investment-style-row .row-content .row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
#regAAutoInvestOption .investment-style-row .row-content .row-header h4 {
  margin: 0;
  color: #1f2937;
  font-size: 18px;
  font-weight: 700;
}
#regAAutoInvestOption .investment-style-row .row-content .row-header .row-price {
  color: #677A92;
  font-weight: 700;
  font-size: 15px;
}
#regAAutoInvestOption .investment-style-row .row-content ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  color: #555;
  line-height: 1.55;
}
#regAAutoInvestOption .investment-style-row .row-selected-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 22px;
  height: 22px;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
#regAAutoInvestOption .investment-style-row.is-selected {
  border-color: #677A92;
  background: rgba(103, 122, 146, 0.05);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
#regAAutoInvestOption .investment-style-row.is-selected .row-selected-indicator {
  border-color: #677A92;
  background: #677A92;
  color: #ffffff;
}
#regAAutoInvestOption .regAAutoInvest-cta {
  display: block;
  width: 60%;
  max-width: 360px;
  margin: 25px auto 15px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, #2c4a6b 0%, #1d3559 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.25) !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
#regAAutoInvestOption .regAAutoInvest-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 53, 89, 0.35) !important;
}

/* ============================================================================
   pendingInvestmentNotice: inline soft callout in the right rail above the
   INVEST NOW button. Replaces the auto-popped resumeInvestmentModal so a
   returning investor can browse the offering without a modal interruption.
   ============================================================================ */
.pending-invest-notice {
  text-align: left;
  margin: 0 auto 16px;
  width: 80%;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  border-left: 4px solid #677A92;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.pending-invest-notice .pending-invest-notice-body {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.pending-invest-notice .pending-invest-notice-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(103, 122, 146, 0.15);
  color: #677A92;
  border-radius: 50%;
  font-size: 14px;
}
.pending-invest-notice .pending-invest-notice-text {
  flex: 1;
  line-height: 1.4;
}
.pending-invest-notice .pending-invest-notice-text strong {
  display: block;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
}
.pending-invest-notice .pending-invest-notice-meta {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
}
.pending-invest-notice .pending-invest-notice-actions {
  display: flex;
  gap: 8px;
  justify-content: stretch;
}
.pending-invest-notice .pending-invest-continue,
.pending-invest-notice .pending-invest-reset {
  flex: 1;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pending-invest-notice .pending-invest-continue {
  background: #677A92;
  color: #ffffff;
  border: 1px solid #677A92;
}
.pending-invest-notice .pending-invest-continue:hover {
  background: #1d3559;
  border-color: #1d3559;
}
.pending-invest-notice .pending-invest-reset {
  background: #ffffff;
  color: #64748b;
  border: 1px solid #cbd5e1;
}
.pending-invest-notice .pending-invest-reset:hover {
  border-color: #94a3b8;
  color: #475569;
}

/* On mobile single-column stack, the notice can span the same width as the
   surrounding cards so the rail layout doesn't look pinched. */
@media (max-width: 991.98px) {
  .pending-invest-notice {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }
}
/* ============================================================================
   resumeInvestmentModal v2: primary "Continue Investment" gets the navy
   gradient CTA; "Start Fresh" stays as a quieter outlined secondary.
   ============================================================================ */
#resumeInvestmentModal .resume-invest-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
#resumeInvestmentModal .resume-invest-primary {
  min-width: 200px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #2c4a6b 0%, #1d3559 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(29, 53, 89, 0.25) !important;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
#resumeInvestmentModal .resume-invest-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 53, 89, 0.35) !important;
}
#resumeInvestmentModal .resume-invest-secondary {
  min-width: 160px;
  padding: 12px 22px;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  color: #475569 !important;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease;
}
#resumeInvestmentModal .resume-invest-secondary:hover {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
}

/* ============================================================================
   dateofbirthssnAlert v2: slate header banner + question cards + slate CTA.
   ============================================================================ */
#dateofbirthssnAlert .dob-tin-body {
  padding: 24px 28px 20px;
}
#dateofbirthssnAlert .dob-tin-intro {
  text-align: center;
  color: #555;
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.5;
}
#dateofbirthssnAlert .dob-tin-question {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
#dateofbirthssnAlert .dob-tin-question h4 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}
#dateofbirthssnAlert .dob-tin-question .required-marker {
  color: #d33;
  margin-left: 4px;
}
#dateofbirthssnAlert .dob-tin-question label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}
#dateofbirthssnAlert .dob-tin-question label input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: #677A92;
  cursor: pointer;
  flex-shrink: 0;
}
#dateofbirthssnAlert .dob-tin-submit {
  display: block;
  width: 60%;
  max-width: 320px;
  margin: 20px auto 8px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* ============================================================================
   Cap tall offering-flow popups to viewport height so they always fit
   centered, with internal scrolling instead of pushing the bottom off-screen.
   Sticky popup headers stay pinned at the top of the modal scroll container.
   ============================================================================ */
#regAAutoInvestOption,
#investPopup,
#regAinvestPopup,
#profilePopup,
#questionaireAboutNonIndividual,
#dateofbirthssnAlert,
#resumeInvestmentModal,
#profileSubmissionDiv,
#regDDocumentPopup,
#autoInvestPopup {
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  /* Thinner scrollbar so it doesn't compete with content. */
  scrollbar-width: thin;
  scrollbar-color: rgba(103, 122, 146, 0.4) transparent;
}
#regAAutoInvestOption::-webkit-scrollbar,
#investPopup::-webkit-scrollbar,
#regAinvestPopup::-webkit-scrollbar,
#profilePopup::-webkit-scrollbar,
#questionaireAboutNonIndividual::-webkit-scrollbar,
#dateofbirthssnAlert::-webkit-scrollbar,
#resumeInvestmentModal::-webkit-scrollbar,
#profileSubmissionDiv::-webkit-scrollbar,
#regDDocumentPopup::-webkit-scrollbar,
#autoInvestPopup::-webkit-scrollbar {
  width: 8px;
}
#regAAutoInvestOption::-webkit-scrollbar-track,
#investPopup::-webkit-scrollbar-track,
#regAinvestPopup::-webkit-scrollbar-track,
#profilePopup::-webkit-scrollbar-track,
#questionaireAboutNonIndividual::-webkit-scrollbar-track,
#dateofbirthssnAlert::-webkit-scrollbar-track,
#resumeInvestmentModal::-webkit-scrollbar-track,
#profileSubmissionDiv::-webkit-scrollbar-track,
#regDDocumentPopup::-webkit-scrollbar-track,
#autoInvestPopup::-webkit-scrollbar-track {
  background: transparent;
}
#regAAutoInvestOption::-webkit-scrollbar-thumb,
#investPopup::-webkit-scrollbar-thumb,
#regAinvestPopup::-webkit-scrollbar-thumb,
#profilePopup::-webkit-scrollbar-thumb,
#questionaireAboutNonIndividual::-webkit-scrollbar-thumb,
#dateofbirthssnAlert::-webkit-scrollbar-thumb,
#resumeInvestmentModal::-webkit-scrollbar-thumb,
#profileSubmissionDiv::-webkit-scrollbar-thumb,
#regDDocumentPopup::-webkit-scrollbar-thumb,
#autoInvestPopup::-webkit-scrollbar-thumb {
  background: rgba(103, 122, 146, 0.35);
  border-radius: 4px;
}
#regAAutoInvestOption::-webkit-scrollbar-thumb:hover,
#investPopup::-webkit-scrollbar-thumb:hover,
#regAinvestPopup::-webkit-scrollbar-thumb:hover,
#profilePopup::-webkit-scrollbar-thumb:hover,
#questionaireAboutNonIndividual::-webkit-scrollbar-thumb:hover,
#dateofbirthssnAlert::-webkit-scrollbar-thumb:hover,
#resumeInvestmentModal::-webkit-scrollbar-thumb:hover,
#profileSubmissionDiv::-webkit-scrollbar-thumb:hover,
#regDDocumentPopup::-webkit-scrollbar-thumb:hover,
#autoInvestPopup::-webkit-scrollbar-thumb:hover {
  background: rgba(103, 122, 146, 0.55);
}

/* True vertical centering for Magnific Popup. With the popups above capped
   at 90vh, they always fit; flexbox on the container puts them in the
   middle of the viewport rather than top-anchored. */
.mfp-container {
  padding: 20px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.mfp-container::before {
  display: none !important;
}

.mfp-content {
  margin: 0 auto;
}


/* ============================================================================
   Dark mode (NV Test only; Live has no dark theme). The block above assumes a
   white pop-up, but the dark skin paints .white-popup-block #18222f, so its
   white bands, fields and cards glared and its dark headings vanished. Same
   palette as the site-wide nav and offering page: panel #18222f, raised
   #1f2b3a, field #0f1722, text #e7ecf2, muted #9aa7b5.
   ============================================================================ */
html:root[data-theme=dark] .mfp-content .white-popup-block {
  background: #18222f !important;
  color: #e7ecf2;
}
html:root[data-theme=dark] .mfp-content .white-popup-block :is(h1, h2, h3, h4, h5) {
  color: #e7ecf2 !important;
}
/* Header bands */
html:root[data-theme=dark] .mfp-content .white-popup-block > h2,
html:root[data-theme=dark] #investPopup > h2.c2-bg {
  background: linear-gradient(135deg, #1f2b3a 0%, #18222f 100%) !important;
  color: #e7ecf2 !important;
  border-bottom: 1px solid rgba(231, 236, 242, 0.1) !important;
}
html:root[data-theme=dark] #investPopup > h2.c2-bg > span:nth-of-type(2),
html:root[data-theme=dark] #investPopup > h2.c2-bg #investorProfileName {
  color: #9aa7b5 !important;
}
/* Blocks the light design paints white */
html:root[data-theme=dark] .mfp-content .white-popup-block .form-group {
  background: transparent !important;
}
/* The amount row is sticky under the header, so it needs a solid fill to
   cover the form scrolling beneath it. */
html:root[data-theme=dark] #investPopup #amountContainer {
  background: #18222f !important;
}
/* Fields */
html:root[data-theme=dark] .mfp-content .white-popup-block :is(input.form-control, select.form-control, textarea.form-control, input[type=text], input[type=number], input[type=email], input[type=tel], input[type=date], select, textarea) {
  background: #0f1722 !important;
  color: #e7ecf2 !important;
  border-color: rgba(231, 236, 242, 0.18) !important;
}
html:root[data-theme=dark] .mfp-content .white-popup-block :is(input, textarea)::placeholder {
  color: #6f7d8d !important;
}
html:root[data-theme=dark] .mfp-content .white-popup-block :is(input.form-control, select.form-control, textarea.form-control):focus {
  border-color: #8cc158 !important;
  box-shadow: 0 0 0 3px rgba(140, 193, 88, 0.18) !important;
}
html:root[data-theme=dark] .mfp-content .white-popup-block :is(label.control-label, .control-label) {
  color: #9aa7b5 !important;
}
/* Radios: draw the native control light so an unchecked one reads as empty
   (dark colour-scheme fills it grey, which looked selected). */
html:root[data-theme=dark] .mfp-content .white-popup-block input[type=radio],
html:root[data-theme=dark] .mfp-content .white-popup-block input[type=checkbox] {
  color-scheme: light;
}
/* ACH / Wire choice pills */
html:root[data-theme=dark] #investPopup :is(#selectPaymentMethod, #pWireDetails) label {
  background: #1f2b3a !important;
  border-color: rgba(231, 236, 242, 0.18) !important;
  color: #e7ecf2 !important;
}
html:root[data-theme=dark] #investPopup :is(#selectPaymentMethod, #pWireDetails) label:has(input:checked) {
  border-color: #8cc158 !important;
  box-shadow: 0 0 0 3px rgba(140, 193, 88, 0.18) !important;
}
html:root[data-theme=dark] #investPopup #selectPaymentMethod > p {
  color: #9aa7b5 !important;
}
/* ACH agreement box and the acknowledgement row */
html:root[data-theme=dark] #investPopup #divAchAgreement {
  background: #1f2b3a !important;
  border-color: rgba(231, 236, 242, 0.14) !important;
  color: #c3ccd6 !important;
  scrollbar-color: rgba(231, 236, 242, 0.25) transparent;
}
html:root[data-theme=dark] #investPopup #divAchAgreement :is(p, li, b, strong) {
  color: #c3ccd6 !important;
}
html:root[data-theme=dark] #investPopup #divAchAgreement a {
  color: #8cc158 !important;
}
html:root[data-theme=dark] #investPopup #divAch .row > .col.pl-4,
html:root[data-theme=dark] #investPopup .achcheckbox {
  background: #1f2b3a !important;
  color: #e7ecf2 !important;
}
html:root[data-theme=dark] #investPopup .achcheckbox :is(label, span) {
  color: #e7ecf2 !important;
}
html:root[data-theme=dark] .mfp-content .white-popup-block span[style*="color: red"],
html:root[data-theme=dark] .mfp-content .white-popup-block .text-danger {
  color: #f97066 !important;
}
/* Share class cards (unselected; the selected card keeps its navy fill) */
html:root[data-theme=dark] #investPopup .share-class-card:not(:has(input[type=radio]:checked)) {
  background: #1f2b3a !important;
  border-color: rgba(231, 236, 242, 0.14) !important;
  color: #e7ecf2 !important;
}
html:root[data-theme=dark] #investPopup .share-class-card:not(:has(input[type=radio]:checked)) * {
  color: inherit;
}
/* Reg A "Choose your investment style" rows */
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row {
  background: #1f2b3a;
  border-color: rgba(231, 236, 242, 0.14);
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row:hover,
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row.is-selected {
  border-color: #8cc158;
  background: rgba(140, 193, 88, 0.08);
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row .row-icon {
  background: rgba(231, 236, 242, 0.06);
  color: #e7ecf2;
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row .row-content .row-header h4 {
  color: #e7ecf2 !important;
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row .row-content .row-header .row-price {
  color: #9aa7b5;
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row .row-content ul {
  color: #c3ccd6;
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row .row-selected-indicator {
  background: #18222f;
  border-color: rgba(231, 236, 242, 0.3);
}
html:root[data-theme=dark] #regAAutoInvestOption .investment-style-row.is-selected .row-selected-indicator {
  background: #8cc158;
  border-color: #8cc158;
  color: #0f1722;
}
/* Fields the light design targets by ID (beat those on specificity) */
html:root[data-theme=dark] #investPopup :is(#amount, #achBankInfo .form-control, #achBankInfo select.form-control),
html:root[data-theme=dark] #softCommitModal select {
  background: #0f1722 !important;
  color: #e7ecf2 !important;
  border-color: rgba(231, 236, 242, 0.18) !important;
}
html:root[data-theme=dark] #investPopup #amount:focus {
  background: #0f1722 !important;
  border-color: #8cc158 !important;
}
html:root[data-theme=dark] .mfp-content .white-popup-block input[type=radio] {
  accent-color: #6ca437;
}
html:root[data-theme=dark] #investPopup #divAchAgreement strong {
  color: #e7ecf2 !important;
}
html:root[data-theme=dark] #investPopup .share-class-card .metric-card {
  background: rgba(231, 236, 242, 0.06);
}
html:root[data-theme=dark] #dateofbirthssnAlert label {
  background: #1f2b3a;
  border-color: rgba(231, 236, 242, 0.14);
  color: #e7ecf2;
}
/* Muted text the light design sets in slate (#64748b), too dim on the panel */
html:root[data-theme=dark] #investPopup :is(#amountContainer .control-label, #amountContainer > .form-group > span:first-of-type, #selectPaymentMethod > p, #achBankInfo .control-label, #pWireDetails > label:first-of-type span:last-child, .share-class-card .metric-card .metric-label),
html:root[data-theme=dark] #softCommitModal label,
html:root[data-theme=dark] .white-popup-block:not(#investPopup) label:not(:has(input[type=checkbox])):not(:has(input[type=radio])) {
  color: #9aa7b5 !important;
}
/* "Pick up where you left off" notice in the invest card */
html:root[data-theme=dark] .pending-invest-notice {
  background: #1f2b3a;
  border-color: rgba(231, 236, 242, 0.14);
  border-left-color: #8cc158;
}
html:root[data-theme=dark] .pending-invest-notice .pending-invest-notice-icon {
  background: rgba(140, 193, 88, 0.14);
  color: #8cc158;
}
html:root[data-theme=dark] .pending-invest-notice .pending-invest-notice-text strong {
  color: #e7ecf2;
}
html:root[data-theme=dark] .pending-invest-notice .pending-invest-notice-meta {
  color: #9aa7b5;
}
html:root[data-theme=dark] .pending-invest-notice .pending-invest-reset {
  background: transparent;
  color: #c3ccd6;
  border-color: rgba(231, 236, 242, 0.22);
}
html:root[data-theme=dark] .pending-invest-notice .pending-invest-reset:hover {
  color: #e7ecf2;
  border-color: rgba(231, 236, 242, 0.4);
}
html:root[data-theme=dark] #investPopup :is(#selectPaymentMethod, #pWireDetails) input[type=radio] {
  accent-color: #6ca437;
}
/* Inline greys in the pop-up markup (descriptions, help text) */
html:root[data-theme=dark] .mfp-content .white-popup-block :is([style*="color: #555"], [style*="color:#555"], [style*="color: #666"], [style*="color:#666"], [style*="color: #333"], [style*="color:#333"], [style*="color: #444"], [style*="color:#444"]) {
  color: #c3ccd6 !important;
}
