/* ============================================================
   Fortis Wealth Insights, Adviser Connect
   Self-contained styling. No external fonts, no CDNs, no third
   parties. System font stacks only.
   ============================================================ */

:root{
  --ink:        #1C2620;   /* near-black, warm charcoal-green */
  --ink-soft:   #4B564E;   /* secondary text */
  --paper:      #F7F5F0;   /* warm parchment background */
  --panel:      #FFFFFF;   /* card surface */
  --sand:       #ECE7DA;   /* soft support / hairlines */
  --forest:     #2F6F5E;   /* primary accent, deep growth green */
  --forest-dk:  #234F42;   /* pressed / hover state */
  --gold:       #B8894A;   /* secondary accent, muted brass */
  --error:      #B3432B;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 20px 60px -20px rgba(28, 38, 32, 0.25);
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100%;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Organic ambient backdrop ---------- */
.backdrop{
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.blob{
  position: absolute;
  border-radius: 44% 56% 60% 40% / 45% 40% 60% 55%;
  filter: blur(2px);
  opacity: 0.5;
  animation: drift 26s ease-in-out infinite;
}
.blob-a{
  width: 620px; height: 620px;
  top: -220px; left: -180px;
  background: radial-gradient(circle at 30% 30%, #DCE7D7, #F7F5F0 70%);
}
.blob-b{
  width: 520px; height: 520px;
  bottom: -200px; right: -160px;
  background: radial-gradient(circle at 60% 40%, #EFE3CB, #F7F5F0 70%);
  animation-delay: -9s;
  animation-duration: 32s;
}
.blob-c{
  width: 380px; height: 380px;
  top: 40%; right: 8%;
  background: radial-gradient(circle at 50% 50%, #E4EEE3, transparent 70%);
  animation-delay: -15s;
  animation-duration: 22s;
}
@keyframes drift{
  0%,100%{ transform: translate(0,0) rotate(0deg) scale(1); }
  33%{ transform: translate(20px,-24px) rotate(6deg) scale(1.03); }
  66%{ transform: translate(-16px,18px) rotate(-4deg) scale(0.98); }
}
@media (prefers-reduced-motion: reduce){
  .blob{ animation: none; }
}

/* ---------- Site header / footer (brand chrome) ---------- */
.site-header{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 20px 0;
  text-align: center;
}
.site-header-link{ text-decoration: none; }
.wordmark{
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.wordmark-light{ color: var(--forest); font-weight: 400; }
.site-header-tagline{
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-left: 1px solid var(--sand);
  padding-left: 16px;
}
@media (max-width: 560px){
  .site-header-tagline{ border-left: none; padding-left: 0; }
}

.site-footer{
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8px 20px 40px;
  font-size: 13px;
  color: var(--ink-soft);
}
.site-footer a{ color: var(--forest-dk); text-decoration: none; }
.site-footer a:hover{ text-decoration: underline; }
.site-footer .fine-print{
  max-width: 560px;
  margin: 8px auto 0;
  font-size: 11.5px;
  line-height: 1.6;
  opacity: 0.75;
}

/* ---------- Stage & card ---------- */
.stage{
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card{
  position: relative;
  width: 100%;
  max-width: 620px;
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 56px 48px 48px 76px;
}

/* ---------- Growth-stem progress indicator ---------- */
.stem{
  position: absolute;
  left: 28px;
  top: 56px;
  bottom: 48px;
  width: 8px;
}
.stem svg{
  width: 8px;
  height: 100%;
  overflow: visible;
}
.stem path{
  fill: none;
  stroke: var(--sand);
  stroke-width: 2;
  stroke-linecap: round;
}
.stem path.grown{
  stroke: var(--forest);
  transition: d 0.6s cubic-bezier(.65,0,.35,1);
}
.node{
  position: absolute;
  left: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--panel);
  transition: background 0.4s ease, transform 0.4s ease;
}
.node.on{
  background: var(--forest);
  transform: scale(1.15);
}
.node-0{ top: 0%; }
.node-1{ top: 25%; }
.node-2{ top: 50%; }
.node-3{ top: 75%; }
.node-4{ top: 100%; transform: translateY(-100%); }

@media (max-width: 640px){
  .card{ padding: 40px 24px 40px 24px; }
  .stem{ display: none; }
}

/* ---------- Steps ---------- */
.step{
  display: none;
  animation: rise 0.5s cubic-bezier(.22,1,.36,1);
}
.step.active{ display: block; }

@keyframes rise{
  from{ opacity: 0; transform: translateY(14px); }
  to{ opacity: 1; transform: translateY(0); }
}

.eyebrow{
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.step-num{
  font-family: var(--serif);
  font-size: 13px;
  color: var(--sand);
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  font-weight: 600;
}

.req{
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-dk);
  background: #E8F2ED;
  border-radius: 999px;
  padding: 2px 9px;
  vertical-align: middle;
  margin-left: 6px;
}

.trust-row{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0 0 32px;
  padding: 0;
}
.trust-row li{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}
.trust-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
}

.edu-note{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.display{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 42px;
  line-height: 1.12;
  margin: 0 0 18px;
  color: var(--ink);
}
.display-sm{
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 22px;
  color: var(--ink);
}
.lede{
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 46ch;
}
.hint{
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: -8px 0 14px;
}

@media (max-width: 640px){
  .display{ font-size: 32px; }
  .display-sm{ font-size: 22px; }
}

/* ---------- Fields ---------- */
.field{
  margin-bottom: 26px;
}
.field label{
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 9px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea{
  width: 100%;
  font-family: var(--sans);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
textarea{ resize: vertical; min-height: 96px; font-family: var(--sans); }
input:focus, textarea:focus{
  outline: none;
  border-color: var(--forest);
  background: var(--panel);
}
input.invalid, textarea.invalid{ border-color: var(--error); }

.error{
  display: block;
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
  margin-top: 6px;
}

.other-text{
  margin-top: 12px;
}
.hidden{ display: none !important; }

.phone-group{
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  background: var(--paper);
  background-clip: padding-box;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.phone-group:focus-within{
  border-color: var(--forest);
  background: var(--panel);
}
.phone-prefix{
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--sand);
  border-right: 1.5px solid var(--sand);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  flex-shrink: 0;
}
.phone-group input{
  border: none;
  background: transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  flex: 1;
}
.phone-group input:focus{
  border: none;
  background: transparent;
}

/* ---------- Choice groups (radio / checkbox) ---------- */
.choice-group{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.choice{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  font-size: 15px;
}
.choice:hover{ border-color: var(--forest); }
.choice input{ accent-color: var(--forest); width: 17px; height: 17px; flex-shrink: 0; }
.choice:has(input:checked){
  border-color: var(--forest);
  background: #F1F6F3;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 30px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary{
  background: var(--forest);
  color: #FFFFFF;
  box-shadow: 0 10px 24px -10px rgba(47,111,94,0.55);
}
.btn-primary:hover{ background: var(--forest-dk); transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--ink-soft);
  padding: 14px 8px;
}
.btn-ghost:hover{ color: var(--ink); }

.choice-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-choice{
  flex: 1 1 180px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--sand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.btn-choice:hover{ border-color: var(--forest); background: #F1F6F3; }

.nav-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}
.nav-row-back-only{ justify-content: flex-start; }

/* honeypot, hidden from real users, visible to bots */
.hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---------- Submitting state ---------- */
.card.submitting .step.active{ opacity: 0.6; pointer-events: none; }
