/* ===========================================================================
 * cdeal-contact-widget.css — styles for the floating "Message us" widget.
 *
 * NEW stylesheet (2026-12-01). Every selector is scoped to #cdealContact… or
 * .cdealContact-… — it styles nothing that the widget did not create (that
 * includes the two footer items the widget adds: .cdealContact-footerItem and
 * .cdealContact-credit) — WITH ONE DELIBERATE EXCEPTION: the "NAV FIT" section
 * below, which restyles the pages' existing top nav by owner ruling.
 * Colors come only from the site's existing variables (--bg --card --gold
 * --mint --text --muted), with the dark-theme values as fallbacks.
 *
 * Layering: 1990 — above page content and the sticky nav, BELOW Ask CDeal
 * (1998/1999), the analyzer modal overlays (2000) and toasts (9000+).
 * Placement: bottom-LEFT at every width. Ask CDeal owns bottom-right.
 * =========================================================================== */

#cdealContactHost{font-family:inherit;}
#cdealContactHost *,#cdealContactHost *::before,#cdealContactHost *::after{box-sizing:border-box;}

#cdealContactLauncher{
  position:fixed;left:16px;bottom:16px;z-index:1990;
  display:flex;align-items:center;gap:8px;
  height:44px;padding:0 16px;margin:0;
  border-radius:999px;border:1px solid var(--gold,#facc15);
  background:var(--card,#064e3b);color:var(--text,#f0fdf4);
  font-family:inherit;font-size:14px;font-weight:600;line-height:1;letter-spacing:normal;text-transform:none;
  cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.35);
  transition:transform .18s ease,box-shadow .18s ease;
  -webkit-tap-highlight-color:transparent;
}
#cdealContactLauncher:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(0,0,0,.42);}
#cdealContactLauncher:focus-visible,
#cdealContactPanel .cdealContact-close:focus-visible,
#cdealContactPanel .cdealContact-send:focus-visible{outline:2px solid var(--gold,#facc15);outline-offset:2px;}
#cdealContactLauncher .cdealContact-icon{flex:0 0 auto;fill:none;stroke:var(--gold,#facc15);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}

/* Ask CDeal's panel / bottom sheet is over this corner: step aside. */
#cdealContactHost.cdealContact-yield #cdealContactLauncher{visibility:hidden;pointer-events:none;}

#cdealContactPanel{
  position:fixed;left:16px;bottom:72px;z-index:1990;
  width:340px;max-width:calc(100vw - 32px);
  max-height:calc(100vh - 96px);max-height:calc(100dvh - 96px);
  overflow-y:auto;overscroll-behavior:contain;
  background:var(--card,#064e3b);color:var(--text,#f0fdf4);
  border:1px solid var(--gold,#facc15);border-radius:14px;
  box-shadow:0 10px 36px rgba(0,0,0,.45);
  padding:14px 16px 16px;
  font-size:14px;line-height:1.5;text-align:left;
}
#cdealContactPanel[hidden]{display:none;}

#cdealContactPanel .cdealContact-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;}
#cdealContactPanel .cdealContact-title{font-size:16px;font-weight:700;color:var(--gold,#facc15);margin:0;}
#cdealContactPanel .cdealContact-close{
  width:44px;height:44px;margin:-10px -12px -10px 0;padding:0;
  background:transparent;border:none;border-radius:8px;
  color:var(--text,#f0fdf4);font-family:inherit;font-size:24px;line-height:1;cursor:pointer;
}

#cdealContactPanel form{margin:0;padding:0;}
#cdealContactPanel .cdealContact-field{margin:0 0 10px;}
#cdealContactPanel .cdealContact-label{display:block;margin:0 0 4px;font-size:13px;font-weight:600;color:var(--muted,#6ee7b7);letter-spacing:normal;text-transform:none;}
#cdealContactPanel .cdealContact-optional{font-weight:400;}
#cdealContactPanel .cdealContact-input{
  display:block;width:100%;margin:0;padding:10px 12px;
  background:var(--bg,#022c22);color:var(--text,#f0fdf4);
  border:1px solid var(--muted,#6ee7b7);border-radius:8px;
  font-family:inherit;font-size:16px !important;line-height:1.4;
  -webkit-appearance:none;appearance:none;
}
#cdealContactPanel textarea.cdealContact-input{resize:vertical;min-height:88px;}
#cdealContactPanel .cdealContact-input:focus{outline:none;border-color:var(--gold,#facc15);box-shadow:0 0 0 2px var(--gold,#facc15);}
#cdealContactPanel .cdealContact-input[aria-invalid="true"]{border-color:var(--gold,#facc15);}

/* Calm inline guidance: names the missing field, sits right under it. */
#cdealContactPanel .cdealContact-error{font-size:13px;color:var(--text,#f0fdf4);}
#cdealContactPanel .cdealContact-error:not(:empty){margin-top:5px;padding-left:8px;border-left:3px solid var(--gold,#facc15);}
#cdealContactPanel .cdealContact-status{font-size:13px;color:var(--text,#f0fdf4);overflow-wrap:anywhere;}
#cdealContactPanel .cdealContact-status:not(:empty){margin:0 0 10px;padding-left:8px;border-left:3px solid var(--gold,#facc15);}

/* Honeypot: off-screen, never visible, never focusable. */
#cdealContactPanel .cdealContact-trap{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;}

/* Gold CTA. The label uses the brand's dark green (the dark-theme --bg value)
   as a fixed color so it stays readable on gold in light mode too, where
   --bg itself turns white. */
#cdealContactPanel .cdealContact-send{
  display:block;width:100%;min-height:44px;margin:4px 0 0;padding:0 16px;
  background:var(--gold,#facc15);color:#022c22;
  border:none;border-radius:999px;
  font-family:inherit;font-size:15px;font-weight:700;cursor:pointer;
}
#cdealContactPanel .cdealContact-send:disabled{opacity:.6;cursor:default;}

#cdealContactPanel .cdealContact-consent{margin:10px 0 0;padding:0;font-size:12px;line-height:1.5;color:var(--muted,#6ee7b7);text-align:center;}
#cdealContactPanel .cdealContact-again{
  display:inline-block;min-height:44px;margin:4px 0 0;padding:0;
  background:transparent;border:none;
  color:var(--gold,#facc15);font-family:inherit;font-size:14px;font-weight:600;
  text-decoration:underline;cursor:pointer;
}
#cdealContactPanel .cdealContact-again:focus-visible{outline:2px solid var(--gold,#facc15);outline-offset:2px;}

#cdealContactPanel .cdealContact-success{padding:8px 0 4px;font-size:15px;color:var(--text,#f0fdf4);outline:none;}

/* Phones and tablets: Ask CDeal's launcher + advisor figure stand at the
   bottom-right up to ~116px. The panel opens ABOVE that band so it can never
   cover them; the launcher stays bottom-left. */
@media (max-width:768px){
  #cdealContactPanel{
    left:12px;right:12px;bottom:128px;width:auto;max-width:none;
    max-height:calc(100vh - 144px);max-height:calc(100dvh - 144px);
  }
}

/* ===========================================================================
 * NAV FIT — owner-approved 12/1, restyles existing nav
 *
 * THE ONE PLACE this stylesheet styles something the widget did not create.
 * Owner ruling 2026-12-01 ("Option H"). It exists so the "Contact" link the
 * widget adds to the top nav fits on ONE row from 769px up, on all 32 pages.
 * Measured first: before this, the nav had no room for an 8th item and was
 * already wrapping "Sign in" / "Start Here" onto two lines at 1024px and
 * running off-screen below ~960px.
 *
 * No page's own CSS is edited. These rules override the pages' inline nav
 * rules from here — hence `nav …` selectors and !important. They apply to the
 * DESKTOP BAR ONLY (min-width:769px); the mobile drawer (<=768px) is untouched.
 * They reach only the 32 pages that load this stylesheet.
 *
 *   769px+      tighter spacing, links 13px, labels never wrap
 *   769-1279px  logo tagline hidden (most pages already hide it <=900px)
 *   769-960px   compact: logo mark only (wordmark hidden), links 12px
 *
 * If a nav link is ever added, renamed or lengthened on a page, RE-MEASURE:
 * the fit at 769-1100px has little slack.
 * =========================================================================== */
@media (min-width:769px){
  nav{padding-left:1.25rem !important;padding-right:1.25rem !important;}
  nav .nav-links{gap:2px !important;}
  nav .nav-links > a{padding-left:9px !important;padding-right:9px !important;}
  nav .nav-links .nav-toggle{padding-left:10px !important;padding-right:10px !important;}
  nav .nav-links .nav-analyzers-btn{padding-left:6px !important;padding-right:6px !important;}
  nav .nav-links > a,
  nav .nav-links .nav-analyzers-btn,
  nav .nav-links .nav-toggle{font-size:13px !important;white-space:nowrap !important;}
}
@media (min-width:769px) and (max-width:1279px){
  nav .logo-sub{display:none !important;}
}
@media (min-width:769px) and (max-width:960px){
  nav{padding-left:.75rem !important;padding-right:.75rem !important;}
  nav .logo-text{display:none !important;}
  nav .nav-links{gap:0 !important;}
  nav .nav-links > a{padding-left:6px !important;padding-right:6px !important;font-size:12px !important;}
  nav .nav-links .nav-analyzers-btn,
  nav .nav-links .nav-toggle{font-size:12px !important;padding-left:6px !important;padding-right:6px !important;}
}
/* ── end NAV FIT ─────────────────────────────────────────────────────────── */

/* Footer credit (added at runtime as the last line of the page footer).
   Small and muted, using the site's own --muted colour. On phones it carries
   bottom padding so it sits ABOVE the floating buttons at the very end of the
   page instead of underneath them. */
.cdealContact-credit{
  margin:12px 0 0;padding:0;
  font-size:11px;line-height:1.5;font-weight:400;letter-spacing:normal;text-transform:none;
  color:var(--muted,#6ee7b7);opacity:.8;text-align:center;
}
.cdealContact-credit a{color:inherit;text-decoration:underline;}
.cdealContact-credit a:focus-visible{outline:2px solid var(--gold,#facc15);outline-offset:2px;}
@media (max-width:768px){
  .cdealContact-credit{padding-bottom:52px;}
}

@media (prefers-reduced-motion:reduce){
  #cdealContactLauncher{transition:none;}
  #cdealContactLauncher:hover{transform:none;}
}

/* Never in a printed report or PDF. */
@media print{
  #cdealContactHost,
  #cdealContactNav,
  .cdealContact-footerItem,
  .cdealContact-credit{display:none !important;}
}
