:root {
  --ftb-ae-navy: #12345b;
  --ftb-ae-navy-dark: #0b2747;
  --ftb-ae-orange: #ff6b35;
  --ftb-ae-orange-dark: #d94c18;
  --ftb-ae-ink: #172033;
  --ftb-ae-muted: #526176;
  --ftb-ae-line: #d9e2ec;
  --ftb-ae-soft: #f4f8fc;
}

/* Once the assisted-engagement layer is active, suppress the complete legacy
   inline help banner so its empty shell/icon cannot flash during step swaps. */
body.ftb-ae-enabled #wizard-v2-mount .need-help-banner { display: none !important; }

.ftb-ae-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto 14px;
  padding: 13px 16px;
  max-width: 900px;
  border: 1px solid #bfd3e6;
  border-left: 4px solid var(--ftb-ae-orange);
  border-radius: 12px;
  background: linear-gradient(100deg, #f7fbff 0%, #fff 72%);
  box-shadow: 0 2px 10px rgba(18, 52, 91, .07);
  color: var(--ftb-ae-ink);
  font-family: 'General Sans', system-ui, sans-serif;
}

.ftb-ae-banner-copy { min-width: 0; }
.ftb-ae-banner-title { margin: 0 0 3px; font-size: 15px; font-weight: 750; line-height: 1.25; }
.ftb-ae-banner-body { margin: 0; color: var(--ftb-ae-muted); font-size: 13px; line-height: 1.4; }
.ftb-ae-banner-actions,
.ftb-ae-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; }

.ftb-ae-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ftb-ae-navy);
  border-radius: 8px;
  background: #fff;
  color: var(--ftb-ae-navy);
  font: 700 13px/1.2 'General Sans', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.ftb-ae-button:hover { background: #edf5fc; color: var(--ftb-ae-navy-dark); }
.ftb-ae-button:focus-visible,
.ftb-ae-close:focus-visible,
.ftb-ae-field:focus-visible {
  outline: 3px solid rgba(255, 107, 53, .35);
  outline-offset: 2px;
}
.ftb-ae-button-primary { border-color: var(--ftb-ae-orange); background: var(--ftb-ae-orange); color: #fff; }
.ftb-ae-button-primary:hover { border-color: var(--ftb-ae-orange-dark); background: var(--ftb-ae-orange-dark); color: #fff; }
.ftb-ae-button-quiet { border-color: #afc0d2; }
[hidden].ftb-ae-button { display: none !important; }

.ftb-ae-results-review {
  margin: 14px 0 16px;
  padding: 18px;
  border: 1px solid #bfd3e6;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff7ff 0%, #fff 70%);
  box-shadow: 0 3px 14px rgba(18, 52, 91, .08);
  font-family: 'General Sans', system-ui, sans-serif;
}
.ftb-ae-results-review h3 { margin: 0 0 7px; color: var(--ftb-ae-navy-dark); font-size: 20px; line-height: 1.25; }
.ftb-ae-results-review p { margin: 0 0 14px; color: var(--ftb-ae-muted); font-size: 14px; line-height: 1.55; }

.ftb-ae-support-number {
  margin: 0 0 12px;
  color: var(--ftb-ae-navy-dark);
  font-size: 14px;
}

.ftb-ae-purchase-reminder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -2px 0 16px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fffaf3;
  font-family: 'General Sans', system-ui, sans-serif;
}
.ftb-ae-purchase-reminder h4 { margin: 0 0 2px; color: #8a3514; font-size: 14px; line-height: 1.3; }
.ftb-ae-purchase-reminder p { margin: 0; color: #6d4b3c; font-size: 12.5px; line-height: 1.4; }

.ftb-ae-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: rgba(9, 25, 44, .48);
  opacity: 0;
  transition: opacity .2s ease;
}
.ftb-ae-backdrop[data-open="true"] { opacity: 1; }

.ftb-ae-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  width: min(440px, 94vw);
  height: 100dvh;
  background: #fff;
  box-shadow: -16px 0 48px rgba(9, 25, 44, .24);
  transform: translateX(105%);
  transition: transform .24s ease;
  font-family: 'General Sans', system-ui, sans-serif;
}
.ftb-ae-panel[data-open="true"] { transform: translateX(0); }
.ftb-ae-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 22px 15px; border-bottom: 1px solid var(--ftb-ae-line); }
.ftb-ae-eyebrow { margin: 0 0 5px; color: var(--ftb-ae-orange-dark); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ftb-ae-panel-title { margin: 0; color: var(--ftb-ae-navy-dark); font-size: 24px; line-height: 1.15; }
.ftb-ae-close { width: 44px; height: 44px; flex: 0 0 44px; border: 1px solid var(--ftb-ae-line); border-radius: 50%; background: #fff; color: var(--ftb-ae-ink); font-size: 24px; line-height: 1; cursor: pointer; }
.ftb-ae-panel-body { overflow-y: auto; padding: 20px 22px 28px; }
.ftb-ae-intro { margin: 0 0 18px; color: var(--ftb-ae-muted); font-size: 14px; line-height: 1.55; }
.ftb-ae-dev-note { margin: 0 0 18px; padding: 10px 12px; border: 1px solid #a7d7c5; border-radius: 8px; background: #effbf5; color: #175c43; font-size: 12px; line-height: 1.45; }
.ftb-ae-action-stack { display: grid; gap: 10px; margin-bottom: 22px; }
.ftb-ae-action-stack .ftb-ae-button { width: 100%; }
.ftb-ae-form { display: grid; gap: 13px; padding-top: 20px; border-top: 1px solid var(--ftb-ae-line); }
.ftb-ae-form[hidden] { display: none; }
.ftb-ae-form h3 { margin: 0; color: var(--ftb-ae-navy-dark); font-size: 18px; }
.ftb-ae-label { display: grid; gap: 6px; color: var(--ftb-ae-ink); font-size: 13px; font-weight: 700; }
.ftb-ae-label span { color: var(--ftb-ae-muted); font-weight: 500; }
.ftb-ae-field { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid #afc0d2; border-radius: 8px; background: #fff; color: var(--ftb-ae-ink); font: 400 15px/1.35 system-ui, sans-serif; }
textarea.ftb-ae-field { min-height: 92px; resize: vertical; }
.ftb-ae-status { min-height: 20px; margin: 0; color: #175c43; font-size: 13px; line-height: 1.4; }
.ftb-ae-panel-open { overflow: hidden; }

@media (max-width: 680px) {
  .ftb-ae-banner { align-items: flex-start; margin: 0 12px 12px; padding: 12px; }
  .ftb-ae-banner-actions { flex-direction: column; width: 112px; }
  .ftb-ae-banner-actions .ftb-ae-button { width: 100%; padding-inline: 9px; }
  .ftb-ae-results-review { margin-inline: 0; padding: 16px; }
  .ftb-ae-results-review h3 { font-size: 18px; }
  .ftb-ae-actions { display: grid; grid-template-columns: 1fr; }
  .ftb-ae-purchase-reminder { align-items: flex-start; flex-direction: column; }
  .ftb-ae-purchase-reminder .ftb-ae-button { width: 100%; }
  .ftb-ae-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(92dvh, 760px);
    border-radius: 20px 20px 0 0;
    transform: translateY(105%);
  }
  .ftb-ae-panel[data-open="true"] { transform: translateY(0); }
  .ftb-ae-panel-header { padding: 18px 18px 13px; }
  .ftb-ae-panel-title { font-size: 21px; }
  .ftb-ae-panel-body { padding: 17px 18px 24px; }
}

/* Review helper: the dev-only mobile link can show the responsive treatment on desktop. */
.ftb-ae-force-mobile .ftb-ae-banner { align-items: flex-start; margin: 0 12px 12px; padding: 12px; }
.ftb-ae-force-mobile .ftb-ae-banner-actions { flex-direction: column; width: 112px; }
.ftb-ae-force-mobile .ftb-ae-banner-actions .ftb-ae-button { width: 100%; padding-inline: 9px; }
.ftb-ae-force-mobile .ftb-ae-results-review { margin-inline: 0; padding: 16px; }
.ftb-ae-force-mobile .ftb-ae-results-review h3 { font-size: 18px; }
.ftb-ae-force-mobile .ftb-ae-actions { display: grid; grid-template-columns: 1fr; }
.ftb-ae-force-mobile .ftb-ae-purchase-reminder { align-items: flex-start; flex-direction: column; }
.ftb-ae-force-mobile .ftb-ae-purchase-reminder .ftb-ae-button { width: 100%; }
.ftb-ae-force-mobile .ftb-ae-panel {
  top: auto;
  bottom: 0;
  width: min(100%, 680px);
  left: 50%;
  right: auto;
  height: min(92dvh, 760px);
  border-radius: 20px 20px 0 0;
  transform: translate(-50%, 105%);
}
.ftb-ae-force-mobile .ftb-ae-panel[data-open="true"] { transform: translate(-50%, 0); }
.ftb-ae-force-mobile .ftb-ae-panel-header { padding: 18px 18px 13px; }
.ftb-ae-force-mobile .ftb-ae-panel-title { font-size: 21px; }
.ftb-ae-force-mobile .ftb-ae-panel-body { padding: 17px 18px 24px; }

@media (prefers-reduced-motion: reduce) {
  .ftb-ae-panel,
  .ftb-ae-backdrop { transition: none; }
}


/* Explicit choice between human callback and face-to-face Google Meet. */
.ftb-ae-contact-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.9rem 0 0.65rem;
}
@media (max-width: 520px) {
  .ftb-ae-contact-choice { grid-template-columns: 1fr; }
}
