/* The Signature Plan — styles.css */
:root{
  --navy:#02447c;
  --sky:#79bde8;
  --ink:#0b1220;
  --muted:#4b5563;
  --line:rgba(2,68,124,.18);
  --soft:rgba(121,189,232,.10);
  --bg:#f6f8fb;
  --shadow:0 14px 38px rgba(11,18,32,0.06);

  /* Cart green */
  --cart:#0f766e;         /* teal-green */
  --cartSoft:rgba(15,118,110,.10);
  --cartLine:rgba(15,118,110,.25);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
}

a{color:var(--navy);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1160px;margin:0 auto;padding:0 18px}

/* Screen-reader only */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


/* Skip link */
.skip-link{
  position:absolute;left:-999px;top:auto;width:1px;height:1px;overflow:hidden;
}
.skip-link:focus{
  left:18px;top:18px;width:auto;height:auto;
  background:#fff;padding:10px 12px;border-radius:12px;
  box-shadow:var(--shadow);z-index:1000;
}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:60;
  background:rgba(246,248,251,.92);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(2,68,124,.10);
}
.topbar__inner{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:10px 0;
}
.brand{display:flex;align-items:center;gap:12px}
.brand__logo{height:34px;width:auto;display:block}
.topbar__actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

/* Scroll progress */
.scrollProgress{
  position:sticky;top:58px;
  z-index:55;height:4px;background:rgba(2,68,124,.06);
}
.scrollProgress__bar{height:4px;width:0;background:var(--navy)}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border:1px solid rgba(2,68,124,.22);
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
  background:#fff;
  color:var(--navy);
  box-shadow: 0 10px 22px rgba(11,18,32,0.05);
  transition: transform .1s ease, filter .2s ease, background .2s ease;
  font-size:14px; line-height:1;
}

/* Button icon (play indicator) */
.btn__icon{
  width: 1em;
  height: 1em;
  margin-right: .45em;
  display: inline-block;
  vertical-align: -0.12em;
  fill: currentColor;
}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}

.btn--primary{background:var(--navy);color:#fff;border-color:rgba(2,68,124,.40)}
.btn--primary:hover{filter:brightness(1.05)}
.btn--risk{background:linear-gradient(135deg, var(--navy), #03355f);color:#fff;border-color:rgba(121,189,232,.55);box-shadow:0 14px 28px rgba(2,68,124,.18), 0 0 0 4px rgba(121,189,232,.10)}
.btn--risk:hover{filter:brightness(1.06);transform:translateY(-1px)}

.btn--outline{background:#fff;color:var(--navy);border-color:var(--line)}
.btn--outline:hover{background:rgba(121,189,232,.10)}
.btn--ghost{background:transparent;border-color:transparent;box-shadow:none}
.btn--ghost:hover{background:rgba(121,189,232,.12);border-color:rgba(2,68,124,.10)}
.btn--danger{background:#fff;border-color:rgba(220,38,38,.35);color:#b91c1c}
.btn--danger:hover{background:rgba(220,38,38,.06)}
.btn--sm{padding:10px 12px;font-size:13px;border-radius:12px;box-shadow:none}

/* Hero */
.hero{
  background:linear-gradient(180deg, rgba(121,189,232,.22), rgba(255,255,255,0));
  padding: 26px 0 12px;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:start;
}
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
}
.badge{
  display:inline-flex;align-items:center;
  border:1px solid var(--line);
  border-radius:999px;
  padding:7px 12px;
  background:rgba(255,255,255,.85);
  font-weight:900;
  font-size:12px;
  color:var(--navy);
  margin:0 0 10px;
}

.hero__titleLockup{
  display:flex;
  align-items:flex-end;
  gap:12px;
  flex-wrap:wrap;
  margin:8px 0 8px;
}
.hero__logo{
  height:68px;
  width:auto;
  max-width:min(720px, 100%);
  display:block;
  filter: drop-shadow(0 10px 18px rgba(11,18,32,0.10));
}
@media (max-width: 520px){
  .hero__logo{height:56px}
}

.hero h1{margin:8px 0 8px;font-size:36px;letter-spacing:-.02em}
.hero__sub{margin:0 0 14px;color:var(--muted);max-width:80ch}

.heroForm{
  background: rgba(255,255,255,.92);
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--shadow);
  margin: 10px 0 14px;
}

/* Advisor card */
.advisorCard{display:flex;gap:14px;align-items:flex-start}
.advisorCard__name{font-weight:950;font-size:18px;color:var(--navy);margin-bottom:4px}
.advisorCard__line{color:var(--muted);font-size:13.5px;line-height:1.35;margin:2px 0}
.advisorCard__line a{font-weight:800}
.dot{opacity:.6;margin:0 6px}
.advisorCard__cta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}

/* Bars */
.actionBar{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding-top:12px;
  border-top:1px solid rgba(2,68,124,.10);
}
.uploadBar{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding:12px;
  border:1px dashed rgba(2,68,124,.22);
  background:rgba(121,189,232,.06);
  border-radius:16px;
}
.uploadBar__link{font-weight:950}
.uploadBar__right{display:flex;gap:10px;flex-wrap:wrap;align-items:center}

.hero__tools{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:12px}
.search{display:block;flex:1;min-width:240px}
.search__label{display:block;font-size:12px;font-weight:900;color:var(--navy);margin-bottom:6px}
.search input{
  width:100%;
  border:1px solid rgba(2,68,124,.20);
  border-radius:14px;
  padding:11px 12px;
  background:#fff;
  font-size:14px;
  outline:none;
}
.search input:focus{
  border-color: rgba(121,189,232,.9);
  box-shadow: 0 0 0 4px rgba(121,189,232,.18);
}

/* Hero art */
.heroArt{max-width:420px;justify-self:end}
@media (max-width: 980px){
  .heroArt{max-width:none;justify-self:stretch}
}
.heroArt__card{
  background:#fff;
  border:1px solid rgba(2,68,124,.16);
  border-radius:22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  padding:16px;
  animation: heroFloat 7s ease-in-out infinite;
}
.heroArt__img{
  width:100%;
  height:auto;
  display:block;
  transform: scale(.88);
  transform-origin:center;
}
@keyframes heroFloat{
  0%,100%{transform: translateY(0)}
  50%{transform: translateY(-10px)}
}
.heroArt__caption{margin:10px 4px 0;color:var(--muted);font-size:13px}

/* Sections */
.section{padding:24px 0}
.section__head{display:flex;flex-direction:column;gap:6px}
.section__head h2{margin:0;font-size:22px}
.section__sub{margin:0;color:var(--muted);max-width:95ch}

/* Menu grid */
.menuGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
/* Wide grid (3–4 across on desktop) */
.menuGrid--wide{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px){
  .menuGrid--wide{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
@media (max-width: 780px){
  .menuGrid--wide{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
@media (max-width: 520px){
  .menuGrid--wide{grid-template-columns:1fr;}
}

/* Menu cards */
.menuCard{
  background:#fff;
  border:1px solid rgba(2,68,124,.16);
  border-radius:22px;
  overflow:hidden;
  box-shadow: var(--shadow);
  cursor:pointer;
  outline:none;
}
.menuCard:focus{box-shadow: 0 0 0 4px rgba(121,189,232,.22), var(--shadow)}
.menuCard--selected{border-color: rgba(2,68,124,.40)}
.menuCard__media{height:140px;background:rgba(121,189,232,.10)}
.menuCard__img{width:100%;height:100%;object-fit:cover;display:block}
.menuCard__body{padding:14px;display:flex;flex-direction:column;gap:10px}
.menuCard__title{margin:0;font-size:16px;color:var(--navy);font-weight:950}
.menuCard__desc{margin:0;color:var(--muted);font-size:13.5px;line-height:1.45}
.menuCard__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:auto}

/* Panel (My Selections) */
.panel{
  background:#fff;
  border:1px solid rgba(2,68,124,.16);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
  margin-top:16px;
}
.panel__head{
  padding:14px;
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  border-bottom:1px solid rgba(2,68,124,.10);
}
.panel__head h3{margin:0;font-size:16px;color:var(--navy)}
.panel__count{font-weight:950;color:var(--navy);font-size:13px}
.panel__hint{
  margin:0;
  padding:10px 14px 0;
  font-size:13px;
  color:#065f46;
}
.empty{
  border:1px dashed rgba(2,68,124,.24);
  background:rgba(121,189,232,.06);
  border-radius:18px;
  padding:14px;
  margin:0 0 12px;
  color:var(--muted);
}
.panel__body{padding:14px}

/* Cart styling */
.panel--cart{border-color:var(--cartLine)}
.panel__head--cart{
  background:linear-gradient(180deg, var(--cartSoft), rgba(255,255,255,0));
  border-bottom:1px solid var(--cartLine);
}
.panel__head--cart h3{color:var(--cart)}
.panel__head--cart .panel__count{color:var(--cart)}

/* Client box */
.cartClient{
  border:1px solid var(--cartLine);
  background:var(--cartSoft);
  border-radius:18px;
  padding:12px;
  margin:14px;
  box-shadow: 0 10px 22px rgba(11,18,32,0.04);
}
.cartClient__title{
  font-weight:950;
  color:var(--cart);
  margin-bottom:10px;
}
.cartClient__grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
@media (max-width: 720px){
  .cartClient__grid{grid-template-columns:1fr}
}
.field--span2{grid-column:1 / -1}

/* Selected list */
.selList{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.selItem{
  border:1px solid rgba(2,68,124,.12);
  border-radius:18px;
  padding:12px;
  background:rgba(246,248,251,.55);
}
.selItem__title{margin:0;font-weight:950;color:var(--ink)}
.selItem__links{margin-top:8px;display:flex;gap:12px;flex-wrap:wrap;align-items:center;color:var(--muted);font-size:13px}
.selItem__links a{color:var(--navy);font-weight:800}

/* Notes + actions */
.field{display:block}
.field__label{display:block;font-size:12px;font-weight:900;color:var(--navy);margin-bottom:6px}
.field textarea, .field input{
  width:100%;
  border:1px solid rgba(2,68,124,.20);
  border-radius:12px;
  padding:10px 12px;
  background:#fff;
  font-size:14px;
  color:var(--ink);
  outline:none;
}
.field textarea{resize:vertical}
.field textarea:focus, .field input:focus{
  border-color: rgba(121,189,232,.9);
  box-shadow: 0 0 0 4px rgba(121,189,232,.18);
}
.panel__actions{margin-top:12px}
.panel__btnRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.panel__btnRow--wide{
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
@media (max-width: 980px){
  .panel__btnRow--wide{grid-template-columns: 1fr 1fr;}
}
@media (max-width: 520px){
  .panel__btnRow, .panel__btnRow--wide{grid-template-columns:1fr}
}
.panel__notes{margin-top:12px}
.miniNote{margin:10px 0 0;font-size:12px;color:var(--muted)}

/* Avatar */
.avatar{
  width:92px;height:92px;border-radius:18px;
  border:1px solid rgba(2,68,124,.14);
  box-shadow: 0 10px 22px rgba(11,18,32,0.06);
  overflow:hidden;
  background:rgba(2,68,124,.06);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.avatar__img{width:100%;height:100%;object-fit:cover;display:none}
.avatar__initials{
  font-weight:950;
  color:var(--navy);
  letter-spacing:.04em;
}

/* Disclosure */
.disclosure{
  margin-top:14px;
  background:#fff;
  border:1px solid rgba(2,68,124,.16);
  border-radius:18px;
  padding:14px;
  box-shadow: var(--shadow);
}
.disclosure p{margin:0 0 10px;color:var(--muted);line-height:1.5}
.disclosure p:last-child{margin-bottom:0}
.disclosure__address{margin-top:10px;font-size:13px}
.muted{color:var(--muted)}

/* Modal */
.modal{position:fixed;inset:0;display:block;z-index:80}
.modal[aria-hidden="true"]{display:none}
.modal__backdrop{position:absolute;inset:0;background:rgba(11,18,32,.55)}
.modal__panel{
  position:relative;
  width:min(900px, calc(100% - 26px));
  margin: 40px auto;
  background:#fff;
  border-radius:22px;
  border:1px solid rgba(2,68,124,.18);
  box-shadow: 0 30px 80px rgba(0,0,0,.20);
  overflow:hidden;
}
.modal__top{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 14px;
  border-bottom:1px solid rgba(2,68,124,.12);
}
.modal__top h3{margin:0}
.iconBtn{
  border:1px solid rgba(2,68,124,.18);
  background:#fff;
  border-radius:12px;
  width:38px;height:38px;
  cursor:pointer;
  font-weight:950;
}
.iconBtn:hover{background:rgba(121,189,232,.10)}
.modal__body{padding:14px;display:flex;flex-direction:column;gap:10px}
.modal__actions{padding:14px;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;border-top:1px solid rgba(2,68,124,.12)}

/* Service modal content */
.serviceModal__grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 900px){
  .serviceModal__grid{grid-template-columns:1fr}
}
.serviceModal__media{
  border:1px solid rgba(2,68,124,.12);
  border-radius:18px;
  overflow:hidden;
  background:rgba(121,189,232,.06);
}
.serviceModal__media img{width:100%;height:auto;display:block}
.serviceModal__bullets{margin:0;padding-left:18px;color:var(--muted)}

.videoEmbed{
  width:100%;
  aspect-ratio:16/9;
  border-radius:14px;
  overflow:hidden;
  background:#000;
}
.videoEmbed__frame, .videoEmbed video{width:100%;height:100%;display:block;border:0}

/* Footer */
.footer{padding:18px 0}
.footer__inner{
  display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;
  color:var(--muted);
}
.footer__left{display:flex;gap:10px;align-items:center}
.sep{opacity:.5}

/* Mobile: add a touch more space left of the logo */
@media (max-width: 520px){
  .brand{padding-left:8px}
}



/* =======================
   Risk Tolerance (rt)
======================= */
.rt{ padding:34px 0; }
.rt .wrap{ width:min(1180px,calc(100% - 32px)); margin:0 auto; }
.rt__head{ margin-bottom:14px; }
.rt__sub{ max-width:78ch; }
.rt__grid{ display:grid; grid-template-columns:1.6fr .9fr; gap:14px; align-items:start; }
.rt__card{ padding:14px; }
.rt__side{ padding:14px; position:sticky; top:18px; }

.rt__q{ border:1px solid rgba(14,23,38,.10); background:rgba(255,255,255,.70); border-radius:14px; padding:12px; display:grid; gap:10px; margin-bottom:12px; }
.rt__qtitle{ font-weight:800; letter-spacing:-.01em; }

.rt__opt{ display:flex; align-items:flex-start; justify-content:flex-start; gap:10px; width:100%; }
.rt__opt input{ width:auto; margin-top:3px; flex:0 0 auto; }
.rt__text{ flex:0 0 auto; min-width:220px; line-height:1.35; }
.rt__score{ margin-left:auto; color:rgba(14,23,38,.58); font-weight:800; padding-left:10px; }

.rt__opt--portfolio{ align-items:center; }
.rt__barWrap{ flex:1 1 auto; max-width:420px; display:flex; flex-direction:column; gap:4px; margin-left:8px; }
.rt__bar{ display:flex; width:100%; height:12px; border-radius:999px; overflow:hidden; border:1px solid rgba(14,23,38,.14); background:rgba(14,23,38,.06); }
.rt__neg{ background:#b00020; }
.rt__pos{ background:#111; }
.rt__barLabels{ display:flex; justify-content:space-between; font-size:.80rem; color:rgba(14,23,38,.72); line-height:1.1; }

.rt__scoreGrid{ display:grid; grid-template-columns:1fr; gap:10px; }
.rt__scoreBox{ border-radius:16px; border:1px solid rgba(31,138,93,.18); background:rgba(31,138,93,.06); padding:12px; }
.rt__scoreLabel{ color:rgba(14,23,38,.62); font-weight:750; font-size:.92rem; }
.rt__scoreValue{ font-weight:900; font-size:1.35rem; }

.rt__actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.rt__note{ margin-top:10px; }
.rt__details{ margin-top:10px; border:1px solid rgba(14,23,38,.10); border-radius:14px; padding:10px 12px; background:rgba(255,255,255,.70); }
.rt__details summary{ font-weight:800; cursor:pointer; }

@media (max-width:980px){
  .rt__grid{ grid-template-columns:1fr; }
  .rt__side{ position:relative; top:auto; }
  .rt__opt{ flex-wrap:wrap; }
  .rt__text{ min-width:0; flex:1 1 100%; }
  .rt__barWrap{ max-width:none; width:100%; margin-left:0; }
  .rt__score{ margin-left:0; }
}


/* Video button icon */
.btn--video{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
}
.iconPlay{
  width: .95em;
  height: .95em;
  display:inline-block;
  position:relative;
}
.iconPlay::before{
  content:"";
  display:block;
  width:0;height:0;
  border-left:.62em solid currentColor;
  border-top:.42em solid transparent;
  border-bottom:.42em solid transparent;
  transform: translateX(.08em);
}
.iconPlay--light{ color:#fff; }

/* Make video-style outline buttons a bit more prominent */
.btn--outline.btn--video{
  border-width:2px;
  box-shadow: 0 6px 16px rgba(2,68,124,.12);
}
.btn--outline.btn--video:hover{
  transform: translateY(-1px);
}



/* ==============================
   Modal scrolling (Fix)
   Ensures long forms scroll inside the modal,
   not behind it.
================================ */
.modal__panel{
  max-height: calc(100vh - 80px);
  display:flex;
  flex-direction:column;
}
.modal__body{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 520px){
  .modal__panel{margin:18px auto; max-height: calc(100vh - 36px);}
}

/* -----------------------------
   Fact Finder modal + summary
------------------------------*/
.modal--wide .modal__panel{max-width:1080px}
.ffForm{display:grid;gap:14px}
.ffGrid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ffCols{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ffPanel{border:1px solid rgba(2,68,124,.14);border-radius:16px;padding:12px;background:rgba(255,255,255,.6)}
.ffPanel legend{font-weight:800;color:#012b55;padding:0 6px}
.ffBlock{border:1px solid rgba(2,68,124,.12);border-radius:16px;padding:12px;background:rgba(2,68,124,.04)}
.ffBlock__title{font-weight:800;margin-bottom:8px;color:#012b55}
.ffChips{display:flex;flex-wrap:wrap;gap:8px}
.ffChips .chip{display:inline-flex;gap:8px;align-items:center;padding:8px 10px;border-radius:999px;border:1px solid rgba(2,68,124,.16);background:rgba(2,68,124,.05);font-weight:650}
.ffChips .chip input{width:auto}
.ffSubcard{border:1px solid rgba(2,68,124,.12);border-radius:16px;padding:12px;background:rgba(2,68,124,.03)}
.ffSubhead{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.ffTable{display:grid;gap:8px;overflow:auto}
.ffRow{display:grid;grid-template-columns:repeat(3,1fr) 54px;gap:8px;align-items:center;min-width:760px}
.ffRow--inv{grid-template-columns:1.25fr 1fr 1fr;min-width:520px}
.ffRow--head{font-weight:800;color:rgba(11,18,32,.72)}
.ffActions{display:flex;justify-content:center}
.iconBtn--sm{width:36px;height:36px;border-radius:12px}
.ffCard{border:1px solid rgba(2,68,124,.14);border-radius:18px;padding:12px;background:#fff}
.ffQ{border:1px solid rgba(2,68,124,.12);border-radius:16px;padding:12px;background:rgba(2,68,124,.03);margin-top:10px}
.ffQ__title{font-weight:800;margin-bottom:8px}
.ffOpt{display:flex;gap:10px;align-items:flex-start;padding:6px 0}
.ffOpt input{width:auto;margin-top:3px}
.ffOpt span{flex:1}
.ffOpt em{font-style:normal;font-weight:800;color:rgba(11,18,32,.55)}
.ffScore{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.ffScore__box{border:1px solid rgba(2,68,124,.14);border-radius:16px;background:rgba(2,68,124,.03);padding:12px}
.ffScore__label{color:rgba(11,18,32,.65);font-weight:700;font-size:.92rem}
.ffScore__value{font-weight:900;font-size:1.3rem}
.ffInlineNotice{padding:10px 12px;border-radius:14px;border:1px solid rgba(2,68,124,.12);background:rgba(255,255,255,.7)}
.ffSummary{margin-bottom:12px}
.ffSummaryCard{border:1px solid rgba(2,68,124,.16);border-radius:16px;padding:12px;background:rgba(255,255,255,.75)}
.ffSummaryTop{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.ffSummaryTitle{font-weight:900;color:#012b55}
.ffSummaryMeta{color:rgba(11,18,32,.62);font-size:.92rem;margin-top:2px}
.ffSummaryActions{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width: 980px){
  .ffGrid2,.ffCols{grid-template-columns:1fr}
}


/* --- Fact Finder modal scrolling safeguard --- */
#factfinderModal .modal__panel{max-height:calc(100vh - 24px); display:flex; flex-direction:column; overflow:hidden;}
#factfinderModal .modal__body{flex:1 1 auto; overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; padding-bottom:24px;}

/* --- Risk Tolerance layout (readable rows) --- */
#factfinderModal .ffRisk{display:grid; gap:14px; margin-top:10px;}
#factfinderModal .ffQ{border:1px solid rgba(14,23,38,.10); background:rgba(14,23,38,.02); border-radius:14px; padding:12px;}
#factfinderModal .ffQTitle{font-weight:800; margin-bottom:10px;}
#factfinderModal .ffOpt{display:flex; align-items:flex-start; gap:10px; padding:10px 10px; border-radius:12px; border:1px solid rgba(14,23,38,.10); background:#fff; margin:8px 0;}
#factfinderModal .ffOpt input{margin-top:3px; flex:0 0 auto;}
#factfinderModal .ffOpt span{flex:1 1 auto; line-height:1.35;}
#factfinderModal .ffOpt em{flex:0 0 auto; font-style:normal; font-weight:800; opacity:.75; margin-left:8px;}
#factfinderModal .ffOpt:hover{background:rgba(123,187,233,.10);}

#factfinderModal .ffScore{display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px;}
#factfinderModal .ffScoreBox{border-radius:14px; border:1px solid rgba(14,23,38,.10); background:rgba(123,187,233,.10); padding:12px;}
#factfinderModal .ffScoreLabel{font-weight:700; opacity:.8; font-size:.92rem;}
#factfinderModal .ffScoreValue{font-weight:900; font-size:1.25rem; margin-top:2px;}

@media (max-width: 700px){
  #factfinderModal .ffScore{grid-template-columns:1fr;}
  #factfinderModal .ffOpt{padding:12px;}
}

/* === MOBILE POLISH: Header + CTAs centered, equal width, no shadows === */
@media (max-width: 720px){
  /* Remove button shadows on mobile */
  .btn{ box-shadow:none !important; }

  /* Header: stack + center */
  .topbar__inner{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:12px 0;
  }
  .brand{ width:100%; justify-content:center; }
  .topbar__actions{ width:100%; justify-content:center; }
  .topbar__actions .btn{
    width:min(320px, 100%);
  }

  /* Advisor card: center contents */
  .advisorCard{ flex-direction:column; align-items:center; text-align:center; }
  .advisorCard__body{ width:100%; }
  .advisorCard__line{ justify-content:center; }

  /* Advisor buttons: equal size, centered */
  .advisorCard__cta{
    width:100%;
    justify-content:center;
  }
  .advisorCard__cta .btn{
    flex: 1 1 140px;
    max-width: 170px;
    width: 170px; /* keeps Call/Email same width */
  }

  /* Action + upload bars: center buttons */
  .actionBar{
    justify-content:center;
  }
  .uploadBar{
    justify-content:center;
    text-align:center;
  }
  .uploadBar__right{
    width:100%;
    justify-content:center;
  }
  .uploadBar__right .btn{
    width:min(320px,100%);
  }
}

/* === MOBILE: Make ALL advisor-area buttons same width + centered === */
@media (max-width: 980px){
  /* remove shadows on mobile for all buttons in advisor module */
  .advisorCard .btn,
  .actionBar .btn,
  .uploadBar .btn,
  .uploadBar__link{ box-shadow: none !important; }

  /* Call / Email stack and match width */
  .advisorCard__cta{ flex-direction: column; align-items: center; }
  .advisorCard__cta .btn{
    width: min(320px, 100%);
    max-width: none;
    flex: 0 0 auto;
  }

  /* Resource buttons stack and match width */
  .actionBar{ flex-direction: column; align-items: center; }
  .actionBar .btn{ width: min(320px, 100%); }

  /* Risk + upload buttons stack and match width */
  .uploadBar{ flex-direction: column; align-items: center; gap: 10px; }
  .uploadBar__link{ width: min(320px, 100%); }
  .uploadBar__right{ flex-direction: column; align-items: center; gap: 10px; }
  .uploadBar__right .btn{ width: min(320px, 100%); }
}
