/* PMF Invest Wizard -- all selectors prefixed with .pmfiw- so nothing here can
   collide with theme, page-builder (Uncode/WPBakery), or other plugin styles. */

body.pmfiw-no-scroll { overflow: hidden; }

.pmfiw-overlay {
  position: fixed; inset: 0; background: rgba(11,18,32,.55);
  z-index: 999998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.pmfiw-overlay.pmfiw-open { opacity: 1; pointer-events: auto; }

.pmfiw-section {
  position: fixed; top: 0; right: 0; height: 100%; width: 440px; max-width: 100vw;
  background: #fff; z-index: 999999; box-shadow: -8px 0 40px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0b1220; box-sizing: border-box;
}
.pmfiw-section * { box-sizing: border-box; }
.pmfiw-section.pmfiw-open { transform: translateX(0); }

.pmfiw-card { padding: 32px 26px 40px; position: relative; min-height: 100%; }
.pmfiw-close {
  position: fixed; top: 14px; right: 14px; background: #f1f3f6; border: none;
  width: 34px; height: 34px; border-radius: 50%; font-size: 1.1rem; line-height: 1;
  cursor: pointer; color: #4a5568; z-index: 1000000;
}
.pmfiw-close:hover { background: #e2e8f0; }
.pmfiw-logo { height: 76px; width: auto; display: block; margin: 0 auto 14px; }
.pmfiw-section h2 { text-align: center; margin: 0 0 4px; font-size: 1.3rem; }
.pmfiw-sub { text-align: center; color: #52606d; margin: 0 0 24px; font-size: .92rem; }
.pmfiw-hint { font-weight: 400; color: #5a6472; font-size: .8rem; }

.pmfiw-progress { background: #e2e8f0; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.pmfiw-progress-bar { background: #c9a34e; height: 100%; transition: width .2s; width: 20%; }
.pmfiw-step-count { font-size: .8rem; color: #5a6472; margin: 0 0 20px; text-align: center; }

.pmfiw-q { display: block; font-size: 1.05rem; font-weight: 600; margin: 0 0 14px; }
.pmfiw-field-group { margin-bottom: 18px; }
.pmfiw-field-label { display: block; font-size: .85rem; font-weight: 600; color: #4a5568; margin-bottom: 6px; }
.pmfiw-input { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: 1rem; color: #1a202c; }
.pmfiw-consent { display: flex; gap: 8px; font-size: .85rem; color: #4a5568; align-items: flex-start; margin-top: 4px; }
.pmfiw-confidential-note { font-size: .75rem; color: #5a6472; display: flex; align-items: center; gap: 6px; margin-top: 10px; }

.pmfiw-choice-grid { display: flex; flex-direction: column; gap: 10px; }
.pmfiw-choice-btn {
  text-align: left; padding: 14px 16px; border-radius: 8px; border: 1px solid #cbd5e0;
  background: #fff; cursor: pointer; font-size: 1rem; width: 100%; color: #1a202c; font-family: inherit;
}
.pmfiw-choice-btn.pmfiw-selected { border-color: #c9a34e; background: #fdf6e6; font-weight: 600; }
.pmfiw-two-up { display: flex; flex-direction: column; gap: 20px; margin-bottom: 8px; }

.pmfiw-icon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pmfiw-icon-box {
  border: 1px solid #cbd5e0; border-radius: 10px; background: #fff; padding: 14px 10px;
  text-align: center; cursor: pointer; position: relative;
  transition: border-color .15s, background .15s, transform .1s;
}
.pmfiw-icon-box:hover { border-color: #c9a34e; transform: translateY(-1px); }
.pmfiw-icon-box .pmfiw-ic { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.pmfiw-icon-box .pmfiw-lbl { font-size: .8rem; font-weight: 600; color: #1a202c; }
.pmfiw-icon-box.pmfiw-selected { border-color: #c9a34e; background: #fdf6e6; box-shadow: 0 2px 10px rgba(201,163,78,.25); }
.pmfiw-icon-box.pmfiw-selected::after {
  content: "\2713"; position: absolute; top: -8px; right: -8px; color: #fff; background: #c9a34e;
  font-weight: 800; font-size: 1rem; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

.pmfiw-info-ic { cursor: pointer; color: #c9a34e; font-weight: 700; font-size: .85rem; margin-left: 4px; }
.pmfiw-accredited-info {
  display: none; background: #fdf6e6; border: 1px solid #f0dfa8; border-radius: 8px;
  padding: 10px 12px; font-size: .78rem; color: #4a5568; margin: -4px 0 10px; line-height: 1.5;
}
.pmfiw-accredited-info.pmfiw-open { display: block; }

.pmfiw-error { color: #c53030; font-size: .9rem; }
.pmfiw-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.pmfiw-btn-primary {
  background: #0b1220; color: #fff; border: none; padding: 12px 24px; border-radius: 8px;
  cursor: pointer; font-weight: 600; font-size: 1rem;
}
.pmfiw-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.pmfiw-btn-ghost { background: transparent; border: none; color: #4a5568; cursor: pointer; font-size: 1rem; font-family: inherit; }

.pmfiw-step { display: none; }
.pmfiw-step.active { display: block; }
.pmfiw-thankyou { text-align: center; padding-top: 12px; }

.pmfiw-trigger-btn {
  background: #0b1220; color: #fff; border: none; padding: 14px 28px; font-size: 1rem;
  border-radius: 8px; cursor: pointer; font-weight: 600; font-family: inherit;
}
.pmfiw-trigger-btn:hover { opacity: .9; }

@media (max-width: 768px) {
  .pmfiw-section { width: 100%; height: 100%; }
  .pmfiw-card { padding: 56px 18px 40px; }
  .pmfiw-logo { height: 60px; margin-bottom: 8px; }
  .pmfiw-field-group { margin-bottom: 12px; }
  .pmfiw-q { font-size: 1rem; margin-bottom: 10px; }
  .pmfiw-icon-box { padding: 10px 6px; }
  .pmfiw-icon-box .pmfiw-ic { font-size: 1.4rem; margin-bottom: 4px; }
  .pmfiw-icon-box .pmfiw-lbl { font-size: .72rem; }
  .pmfiw-icon-grid { gap: 8px; }
}

/* ================= Mobile bottom CTA bar ================= */
.pmfiw-mobile-cta-bar { display: none; }
@media (max-width: 768px) {
  .pmfiw-mobile-cta-bar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #0b1220;
    z-index: 999990; box-shadow: 0 -4px 20px rgba(0,0,0,.25);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  }
  .pmfiw-mobile-cta-bar a {
    flex: 1; border: none; background: transparent; color: #fff; font-size: .7rem; font-weight: 600;
    padding: 10px 4px 12px; text-align: center; cursor: pointer; text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
  }
  .pmfiw-mobile-cta-bar .pmfiw-mi { font-size: 1.1rem; }
  .pmfiw-mobile-cta-bar a:not(:last-child) { border-right: 1px solid #1f2a3d; }
  body { padding-bottom: 64px; }
  .pmfiw-chat-bubble { bottom: 74px; }
  .pmfiw-chat-box { bottom: 142px; }
}

/* ================= Floating live-chat widget ================= */
.pmfiw-chat-bubble {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: #c9a34e; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 999991;
}
.pmfiw-chat-box {
  position: fixed; bottom: 92px; right: 24px; width: 330px; max-width: calc(100vw - 32px);
  background: #fff; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.25); overflow: hidden;
  z-index: 999991; display: none; flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #0b1220;
}
.pmfiw-chat-box * { box-sizing: border-box; }
.pmfiw-chat-box.pmfiw-open { display: flex; }
.pmfiw-chat-header { background: #0b1220; color: #fff; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pmfiw-chat-header .pmfiw-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.pmfiw-chat-subhead { background: #f7f8fa; color: #4a5568; font-size: .7rem; padding: 6px 14px; border-bottom: 1px solid #eef0f3; display: flex; align-items: center; gap: 5px; }
.pmfiw-chat-thread { padding: 14px; overflow-y: auto; max-height: 340px; display: flex; flex-direction: column; gap: 10px; }
.pmfiw-bubble { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .87rem; line-height: 1.4; }
.pmfiw-bubble.pmfiw-bot { background: #f1f3f6; color: #1a202c; align-self: flex-start; border-bottom-left-radius: 4px; }
.pmfiw-bubble.pmfiw-user { background: #0b1220; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.pmfiw-bubble.pmfiw-typing { background: #f1f3f6; align-self: flex-start; border-bottom-left-radius: 4px; padding: 12px 16px; display: flex; gap: 4px; align-items: center; }
.pmfiw-bubble.pmfiw-typing span { width: 6px; height: 6px; border-radius: 50%; background: #a0aec0; display: inline-block; animation: pmfiwTypingDot 1.2s infinite ease-in-out; }
.pmfiw-bubble.pmfiw-typing span:nth-child(2) { animation-delay: .2s; }
.pmfiw-bubble.pmfiw-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes pmfiwTypingDot { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.pmfiw-chat-fallback { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.pmfiw-chat-fallback button, .pmfiw-chat-fallback a {
  padding: 10px; border-radius: 8px; border: 1px solid #cbd5e0; background: #fff; cursor: pointer;
  font-size: .85rem; text-align: left; text-decoration: none; color: #1a202c; display: block; font-family: inherit;
}
.pmfiw-chat-fallback button:hover, .pmfiw-chat-fallback a:hover { border-color: #c9a34e; background: #fdf6e6; }
.pmfiw-chat-fallback .pmfiw-ff-primary { border-color: #c9a34e; background: #fdf6e6; font-weight: 600; }
.pmfiw-chat-input-area { padding: 12px 14px; border-top: 1px solid #eef0f3; }
.pmfiw-chat-choices { display: flex; flex-direction: column; gap: 8px; }
.pmfiw-chat-choices button {
  padding: 10px; border-radius: 8px; border: 1px solid #cbd5e0; background: #f7f8fa; cursor: pointer;
  font-size: .85rem; text-align: left; font-family: inherit; width: 100%; color: #1a202c;
}
.pmfiw-chat-choices button:hover { border-color: #c9a34e; background: #fdf6e6; }
.pmfiw-chat-text-row { display: flex; gap: 8px; }
.pmfiw-chat-text-row input { flex: 1; padding: 10px 12px; border: 1px solid #cbd5e0; border-radius: 8px; font-size: .9rem; color: #1a202c; }
.pmfiw-chat-text-row button { background: #0b1220; color: #fff; border: none; padding: 0 16px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .85rem; }
.pmfiw-chat-error { color: #c53030; font-size: .78rem; margin-top: 6px; }

/* ================= Defensive hardening =================
   Some themes ship a global "all buttons are white text" or "all buttons are
   transparent" style that beats the rules above by load order or specificity,
   which silently makes wizard/chat buttons unreadable (white-on-white) and
   distorts the close button into an oval. These !important overrides pin our
   own colors/sizing back down regardless of what the active theme does. */
.pmfiw-trigger-btn, .pmfiw-trigger-btn:link, .pmfiw-trigger-btn:visited, .pmfiw-trigger-btn:hover, .pmfiw-trigger-btn:focus, .pmfiw-trigger-btn:active {
  background-color: #0b1220 !important; background-image: none !important; color: #ffffff !important;
  border: none !important; box-shadow: none !important; opacity: 1 !important;
}
.pmfiw-choice-btn, .pmfiw-choice-btn:link, .pmfiw-choice-btn:visited, .pmfiw-choice-btn:hover, .pmfiw-choice-btn:focus {
  background-color: #ffffff !important; color: #1a202c !important; opacity: 1 !important;
}
.pmfiw-choice-btn.pmfiw-selected { background-color: #fdf6e6 !important; color: #1a202c !important; }
.pmfiw-icon-box .pmfiw-lbl { color: #1a202c !important; opacity: 1 !important; }
.pmfiw-input { color: #1a202c !important; background-color: #ffffff !important; }
.pmfiw-btn-ghost { color: #4a5568 !important; background-color: transparent !important; opacity: 1 !important; }
.pmfiw-chat-subhead { color: #4a5568 !important; background-color: #f7f8fa !important; }
.pmfiw-chat-fallback button, .pmfiw-chat-fallback a,
.pmfiw-chat-fallback button:link, .pmfiw-chat-fallback button:visited, .pmfiw-chat-fallback button:hover,
.pmfiw-chat-fallback a:link, .pmfiw-chat-fallback a:visited, .pmfiw-chat-fallback a:hover {
  color: #1a202c !important; background-color: #ffffff !important; opacity: 1 !important;
}
.pmfiw-chat-fallback .pmfiw-ff-primary, .pmfiw-chat-fallback .pmfiw-ff-primary:hover { background-color: #fdf6e6 !important; }
.pmfiw-chat-choices button, .pmfiw-chat-choices button:link, .pmfiw-chat-choices button:visited, .pmfiw-chat-choices button:hover {
  color: #1a202c !important; background-color: #f7f8fa !important; opacity: 1 !important;
}
.pmfiw-chat-choices button.pmfiw-selected, .pmfiw-chat-choices button.pmfiw-selected:hover {
  color: #1a202c !important; background-color: #fdf6e6 !important; border-color: #c9a34e !important; font-weight: 600 !important; opacity: 1 !important;
}
.pmfiw-chat-choices button.pmfiw-ff-primary, .pmfiw-chat-choices button.pmfiw-ff-primary:hover {
  color: #ffffff !important; background-color: #0b1220 !important; border-color: #0b1220 !important; font-weight: 600 !important; text-align: center !important; margin-top: 2px !important; opacity: 1 !important;
}
.pmfiw-chat-text-row input { color: #1a202c !important; background-color: #ffffff !important; }
.pmfiw-chat-text-row button, .pmfiw-chat-text-row button:link, .pmfiw-chat-text-row button:visited, .pmfiw-chat-text-row button:hover {
  color: #ffffff !important; background-color: #0b1220 !important; opacity: 1 !important;
}
.pmfiw-btn-primary:not(:disabled), .pmfiw-btn-primary:not(:disabled):link, .pmfiw-btn-primary:not(:disabled):visited, .pmfiw-btn-primary:not(:disabled):hover {
  color: #ffffff !important; background-color: #0b1220 !important;
}
.pmfiw-close {
  all: unset !important; position: fixed !important; top: 14px !important; right: 14px !important;
  width: 34px !important; height: 34px !important; min-width: 34px !important; min-height: 34px !important;
  max-width: 34px !important; max-height: 34px !important; box-sizing: border-box !important;
  border-radius: 10px !important; background-color: #f1f3f6 !important; color: #4a5568 !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 1.1rem !important; line-height: 1 !important; cursor: pointer !important;
  z-index: 1000000 !important; padding: 0 !important; margin: 0 !important; border: none !important;
  text-align: center !important;
}
.pmfiw-close:hover { background-color: #e2e8f0 !important; }
.pmfiw-mobile-cta-bar a, .pmfiw-mobile-cta-bar a:link, .pmfiw-mobile-cta-bar a:visited, .pmfiw-mobile-cta-bar a:hover,
.pmfiw-mobile-cta-bar button, .pmfiw-mobile-cta-bar button:link, .pmfiw-mobile-cta-bar button:visited, .pmfiw-mobile-cta-bar button:hover {
  color: #ffffff !important; background-color: transparent !important; opacity: 1 !important;
}
.pmfiw-mobile-cta-bar .pmfiw-mi { color: #ffffff !important; opacity: 1 !important; }
@media screen and (max-width: 768px) {
  .pmfiw-chat-bubble { bottom: 104px !important; }
  .pmfiw-chat-box { bottom: 200px !important; }
}
