/* ─────────────────────────────────────────────────────────────
   Floating Support button + panel
   Used on the client fact-find for "Need help? Email support"
   ───────────────────────────────────────────────────────────── */

.support-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue, #1B3058);
  color: white;
  border: none;
  box-shadow: 0 8px 24px rgba(27,48,88, .35), 0 2px 6px rgba(63,74,54,.18);
  cursor: pointer;
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s cubic-bezier(.2,.7,.3,1.3), background .15s, box-shadow .15s;
}
.support-fab:hover {
  background: var(--navy, #1B3058);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px rgba(63,74,54, .4);
}
.support-fab:active { transform: translateY(0) scale(.98); }
.support-fab:focus-visible {
  outline: 3px solid rgba(128,143,114, .55);
  outline-offset: 3px;
}
.support-fab.open {
  background: var(--navy, #1B3058);
}

/* ─── Support panel (anchored bottom-right above fab) ─── */
.support-panel {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(63,74,54, .28), 0 4px 12px rgba(63,74,54,.12);
  z-index: 8499;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: supportPop .22s cubic-bezier(.2, .7, .3, 1.05);
  transform-origin: bottom right;
}
@keyframes supportPop {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.support-head {
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, var(--navy, #1B3058) 0%, var(--blue, #1B3058) 100%);
  color: white;
}
.support-head .eyebrow {
  color: rgba(255,255,255,.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.support-head h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  line-height: 1.2;
}
.support-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255,255,255,.82);
}

.support-body {
  padding: 14px 20px 8px;
  overflow-y: auto;
  flex: 1;
}
.support-field {
  display: block;
  margin-bottom: 10px;
}
.support-field > span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy, #1B3058);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.support-field input,
.support-field textarea {
  width: 100%;
  border: 1.5px solid var(--line, #DDD8C6);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink, #2C2C2C);
  background: white;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
  resize: none;
}
.support-field input:focus,
.support-field textarea:focus {
  outline: none;
  border-color: var(--blue, #1B3058);
  box-shadow: 0 0 0 3px rgba(27,48,88, .12);
}
.support-field textarea { resize: vertical; min-height: 80px; }

.support-meta {
  font-size: 11px;
  color: var(--ink-muted, #6E6A5F);
  line-height: 1.45;
  padding: 6px 0 4px;
}

.support-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line, #DDD8C6);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: var(--off-white, #FAF8F2);
}

.support-direct {
  padding: 10px 20px 14px;
  font-size: 11.5px;
  text-align: center;
  color: var(--ink-muted, #6E6A5F);
  background: var(--off-white, #FAF8F2);
  border-top: 1px solid var(--line, #DDD8C6);
}
.support-direct a {
  color: var(--blue, #1B3058);
  font-weight: 700;
  text-decoration: none;
}
.support-direct a:hover { text-decoration: underline; }

/* ─── Mobile ─── */
@media (max-width: 480px) {
  .support-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .support-panel {
    bottom: 80px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
  .support-head { padding: 16px 18px 12px; }
  .support-head h3 { font-size: 16px; }
  .support-body { padding: 12px 18px 6px; }
  .support-foot { padding: 10px 18px; }
}

/* ─── Print: hide entirely ─── */
@media print {
  .support-fab, .support-panel { display: none !important; }
}
