/* ===================== fa-survey shared component =====================
   Used by apply-now.html and every page that embeds the survey inline
   (index.html, free-training-vsl.html, approach.html, reviews.html,
   about.html). Edit here once, every page picks it up. */
/* ===================== fa-survey component ===================== */
/* Self-contained: scoped styles + a single IIFE below that boots every
   .fa-survey on the page. Copy the markup block (and keep the script
   include once per page) to reuse this on another page unmodified. */
.fa-survey{
  border:1px solid #e7e2d8;border-radius:16px;padding:0;
  box-shadow:0 2px 24px rgba(0,0,0,0.06);overflow:hidden;background:#fff;
}
/* Gold glow pulse - triggered on the survey card when an Apply Now click
   scrolls the page to it, so the destination is obvious even mid-scroll.
   Two soft pulses, then settles back to the normal resting shadow. */
.fa-survey.fa-survey-highlight{
  animation:fa-survey-glow 1.2s ease-out 2;
}
@keyframes fa-survey-glow{
  0%{box-shadow:0 2px 24px rgba(0,0,0,0.06),0 0 0 0 rgba(215,185,126,0);}
  30%{box-shadow:0 2px 24px rgba(0,0,0,0.06),0 0 0 6px rgba(215,185,126,0.45);}
  100%{box-shadow:0 2px 24px rgba(0,0,0,0.06),0 0 0 0 rgba(215,185,126,0);}
}
@media (prefers-reduced-motion:reduce){
  .fa-survey.fa-survey-highlight{animation:none;}
}
.fa-trust-row{
  display:flex;align-items:center;justify-content:center;gap:18px;
  flex-wrap:wrap;margin-top:28px;
}
.fa-trust-label{text-align:right;line-height:1.25;}
.fa-trust-label strong{display:block;font-size:13.5px;font-weight:800;}
.fa-trust-label span{font-size:12px;color:#777;}
.fa-trust-avatar-stack{display:flex;justify-content:flex-end;margin-top:6px;}
.fa-trust-avatar-stack img{
  width:22px;height:22px;border-radius:50%;border:2px solid #fff;
  margin-left:-8px;object-fit:cover;box-shadow:0 1px 3px rgba(0,0,0,0.12);
}
.fa-trust-avatar-stack img:first-child{margin-left:0;}
.fa-trust-divider{width:1px;height:44px;background:#e7e2d8;flex-shrink:0;}
.fa-trust-stat{text-align:center;}
.fa-trust-stat .trust-brand{
  display:flex;align-items:center;justify-content:center;gap:6px;
  font-size:12px;font-weight:700;color:#191919;margin-bottom:3px;
}
.fa-trust-stat .trust-icon{
  width:16px;height:16px;background:#00b67a;color:#fff;border-radius:4px;
  display:inline-flex;align-items:center;justify-content:center;font-size:9px;
}
.fa-trust-stat .trust-score{
  font-size:18px;font-weight:700;color:#000;
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.fa-trust-stat .trust-stars{color:#00b67a;font-size:14px;letter-spacing:1px;}
.fa-trust-stat-label{font-size:11px;color:#888;text-transform:uppercase;letter-spacing:0.04em;margin-top:2px;}
@media (max-width:480px){
  .fa-trust-row{gap:10px;margin-top:22px;}
  .fa-trust-label{text-align:left;}
  .fa-trust-avatar-stack{justify-content:flex-start;}
  .fa-trust-avatar-stack img{width:18px;height:18px;margin-left:-7px;}
}
.fa-survey-progress-row{
  display:flex;align-items:center;gap:10px;
  padding:16px 26px 0;
}
.fa-survey-progress{flex:1;height:6px;border-radius:3px;background:#f0ede6;position:relative;overflow:hidden;}
.fa-survey-progress-bar{
  height:100%;border-radius:3px;background:var(--gold);width:0%;
  transition:width 0.35s ease;
}
.fa-survey-progress-pct{
  flex:none;font-size:13px;font-weight:800;color:var(--gold);
  font-variant-numeric:tabular-nums;min-width:34px;text-align:right;
}
.fa-survey-body{padding:18px 26px 26px;}
.fa-survey-step{display:none;}
.fa-survey-step.active{display:block;animation:fa-fade 0.25s ease;}
@keyframes fa-fade{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}

.fa-survey-q{font-size:19px;font-weight:800;margin:0 0 6px;text-wrap:balance;line-height:1.3;}
.fa-survey-hint{font-size:13px;color:#888;margin:0 0 18px;}

.fa-survey-yesno{display:flex;gap:12px;margin-bottom:4px;}
.fa-survey-yesno button{
  flex:1;padding:16px 10px;border-radius:10px;border:1.5px solid #ddd;
  background:#fff;font-family:inherit;font-size:15px;font-weight:700;
  color:#111;cursor:pointer;transition:border-color .15s,background .15s;
}
.fa-survey-yesno button:hover{border-color:var(--gold);}
.fa-survey-yesno button.selected{border-color:var(--gold);background:rgba(215,185,126,0.14);}

.fa-survey textarea,
.fa-survey input[type="text"],
.fa-survey input[type="email"],
.fa-survey input[type="tel"]{
  width:100%;border:1.5px solid #ddd;border-radius:10px;padding:14px 15px;
  font-family:inherit;font-size:16px;color:#111;background:#fff;
  transition:border-color .15s;resize:vertical;
}
.fa-survey textarea{min-height:110px;}
.fa-survey textarea:focus,
.fa-survey input:focus{outline:none;border-color:var(--gold);}
.fa-survey textarea::placeholder,
.fa-survey input::placeholder{color:#aaa;}

.fa-survey-phone-row{display:flex;gap:8px;}
.fa-survey-phone-row input{flex:1;min-width:0;}

.fa-survey-prefix{position:relative;flex:0 0 auto;}
.fa-survey-prefix-btn{
  display:flex;align-items:center;gap:6px;height:100%;
  border:1.5px solid #ddd;border-radius:10px;padding:0 10px;
  font-family:inherit;font-size:15px;background:#fff;color:#111;
  cursor:pointer;transition:border-color .15s;
}
.fa-survey-prefix-btn:hover,
.fa-survey-prefix-btn:focus{outline:none;border-color:var(--gold);}
.fa-survey-prefix-flag{font-size:16px;line-height:1;}
.fa-survey-prefix-code{font-size:15px;}
.fa-survey-prefix-caret{width:9px;flex:none;}

.fa-survey-prefix-panel{
  position:fixed;z-index:1000;
  width:260px;max-width:80vw;background:#fff;border:1.5px solid #ddd;
  border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,0.12);
  overflow:hidden;
}
.fa-survey-prefix-search{
  width:100%;border:none;border-bottom:1px solid #eee;border-radius:0;
  padding:12px 14px;font-family:inherit;font-size:16px;color:#111;
}
.fa-survey-prefix-search:focus{outline:none;border-bottom-color:var(--gold);}
.fa-survey-prefix-list{
  list-style:none;margin:0;padding:6px 0;max-height:240px;overflow-y:auto;
}
.fa-survey-prefix-list li{
  display:flex;align-items:center;gap:10px;padding:9px 14px;
  font-size:14px;color:#111;cursor:pointer;
}
.fa-survey-prefix-list li .fa-survey-prefix-list-flag{font-size:16px;}
.fa-survey-prefix-list li .fa-survey-prefix-list-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.fa-survey-prefix-list li .fa-survey-prefix-list-code{color:#888;font-size:13px;}
.fa-survey-prefix-list li:hover,
.fa-survey-prefix-list li.active{background:rgba(215,185,126,0.14);}
.fa-survey-prefix-list-empty{padding:14px;font-size:13.5px;color:#999;text-align:center;}

.fa-survey-prefix-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,0.45);z-index:999;
  opacity:0;transition:opacity .2s ease;pointer-events:none;
  touch-action:none;overscroll-behavior:none;
}
.fa-survey-prefix-backdrop.show{opacity:1;pointer-events:auto;}

@media (max-width:640px){
  /* On phones the anchored dropdown just fights the keyboard and scroll -
     it has to visibly reposition itself every scroll tick, which is the
     "flies around" jank. A fixed, centered, dimmed modal sidesteps all of
     that. top/transform/max-height are set by JS (positionPrefixPanel),
     keyed off window.visualViewport, so the modal re-centers itself inside
     whatever space is actually visible once the keyboard opens - a plain
     CSS top:50% centers against the full layout height and gets shoved
     half off-screen under the keyboard instead. */
  .fa-survey-prefix-panel{
    position:fixed !important;
    left:clamp(12px,4vw,28px) !important;right:clamp(12px,4vw,28px) !important;
    width:auto !important;max-width:none;
    border-radius:16px;
  }
}

.fa-survey-field{margin-bottom:16px;}
.fa-survey-field:last-child{margin-bottom:0;}
.fa-survey-label{display:block;font-size:12.5px;font-weight:700;color:#555;margin-bottom:6px;}
.fa-survey input.invalid{border-color:#c0392b;}

.fa-survey-nav{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:24px;padding-top:18px;border-top:1px solid #f0ede6;
}
.fa-survey-nav[hidden]{display:none;}
.fa-survey-nav:has(.fa-survey-back[hidden]):has(.fa-survey-next[hidden]){
  display:none;
}
.fa-survey-back{
  background:none;border:none;font-family:inherit;font-size:14px;
  font-weight:700;color:#999;cursor:pointer;padding:8px 4px;
  display:flex;align-items:center;gap:6px;
}
.fa-survey-back:hover{color:#555;}
.fa-survey-back[hidden]{visibility:hidden;}
.fa-survey-next{
  background:#000;color:#fff;border:none;border-radius:9px;
  padding:13px 26px;font-family:inherit;font-size:15px;font-weight:700;
  cursor:pointer;display:flex;align-items:center;gap:8px;
  transition:opacity .15s,background .15s;
}
.fa-survey-next:hover{background:#1a1a1a;}
.fa-survey-next:disabled,.fa-survey-next.fa-survey-next-soft-disabled{opacity:0.35;cursor:not-allowed;}
.fa-survey-next.gold{background:var(--gold);color:#000;}
.fa-survey-next.gold:hover{background:#c9a86a;}

.fa-survey-error{
  font-size:12.5px;color:#c0392b;margin:8px 0 0;display:none;
}
.fa-survey-error.show{display:block;}

.fa-survey-step[data-type="calendly"]{margin:0 -26px -26px;}
.fa-survey-calendly-widget{width:100%;height:1000px;background:#fff;transition:height .2s ease;}
.fa-survey-calendly-widget iframe{background:#fff;}
.fa-survey-calendly-fallback{
  text-align:center;font-size:12.5px;color:#999;padding:0 26px 22px;margin:0;
}
.fa-survey-calendly-fallback a{color:var(--gold);font-weight:700;text-decoration:underline;}
.fa-survey-calendly-loading{
  text-align:center;color:#888;font-size:14px;padding:18px 26px 10px;margin:0;
}
.fa-survey-load-bar-wrap{
  margin:0 26px 14px;height:6px;border-radius:3px;background:#eee;overflow:hidden;
}
.fa-survey-load-bar-wrap.done{display:none;}
.fa-survey-load-bar{
  height:100%;width:0%;border-radius:3px;
  background:linear-gradient(90deg,#c9a668,var(--gold));
  transition:width .25s linear;
}
@media (max-width:480px){
  .fa-survey-body{padding:24px 18px 20px;}
  .fa-survey-q{font-size:16px;margin-bottom:4px;}
  .fa-survey-hint{margin-bottom:10px;}
  .fa-survey-yesno button{padding:12px 10px;}
  .fa-survey-prefix-panel{width:min(80vw,280px);}
}

/* Minimal heading used when the survey is embedded inline on a page (not
   apply-now.html itself, which uses its own page-level h1/.sub swap). */
.fa-embed-wrap{max-width:560px;margin:0 auto;padding:0 20px;}
.fa-embed-eyebrow{
  text-align:center;font-size:11px;font-weight:800;letter-spacing:0.08em;
  text-transform:uppercase;color:var(--gold);margin:0 0 8px;
}
.fa-embed-heading{
  text-align:center;font-size:clamp(22px,4.6vw,28px);font-weight:800;
  margin:0 0 10px;text-wrap:balance;
}
.fa-embed-sub{
  text-align:center;color:#555;font-size:14.5px;max-width:420px;
  margin:0 auto 18px;text-wrap:balance;
}

/* Block copy/paste and image-drag on the survey card, so people can't
   screenshot/lift question text or drag out an avatar image - same spirit
   as the zoom-lock viewport meta tag these pages carry. Text inputs are
   excluded so visitors can still type/select their own answers normally. */
.fa-survey{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.fa-survey input,.fa-survey textarea{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default;}
.fa-survey img{-webkit-user-drag:none;user-drag:none;pointer-events:none;}
