/* East Coast CAD site agent — local ECCnew Blueprint (cyan, not signal red) */
#ecc-agent-root {
  --ecc-bg: #061018;
  --ecc-bg-2: #0a1822;
  --ecc-bg-3: #0e2030;
  --ecc-line: rgba(244, 241, 234, 0.12);
  --ecc-text: #f4f1ea;
  --ecc-muted: #9a948c;
  --ecc-accent: #2eb5e0;
  --ecc-accent-2: #6ed4f5;
  --ecc-accent-3: #1a8fb8;
  --ecc-cyan: #2eb5e0;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  width: auto;
  height: auto;
  pointer-events: none;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ecc-text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

#ecc-agent-root *,
#ecc-agent-root *::before,
#ecc-agent-root *::after {
  box-sizing: border-box;
}

#ecc-agent-root .ecc-hit {
  pointer-events: auto;
}

#ecc-agent-root iframe.ecc-hs-sink {
  position: absolute;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: 0;
  border: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

#ecc-agent-root .ecc-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(46, 181, 224, 0.35);
  border-radius: 50%;
  background: linear-gradient(#0a1822 0%, #061018 100%);
  color: var(--ecc-text);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(46, 181, 224, 0.4),
    0 10px 28px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(46, 181, 224, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#ecc-agent-root .ecc-launcher:hover,
#ecc-agent-root .ecc-launcher:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(110, 212, 245, 0.6),
    0 12px 32px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(46, 181, 224, 0.45);
  outline: none;
}

#ecc-agent-root .ecc-launcher svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ecc-agent-root.is-open .ecc-launcher {
  display: none;
}

#ecc-agent-root .ecc-panel {
  display: none;
  flex-direction: column;
  width: min(372px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 36px));
  overflow: hidden;
  border: 1px solid var(--ecc-line);
  border-radius: 16px;
  background: var(--ecc-bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

#ecc-agent-root.is-open .ecc-panel {
  display: flex;
}

#ecc-agent-root .ecc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--ecc-line);
  background: linear-gradient(180deg, #0a1822 0%, #061018 100%);
}

#ecc-agent-root .ecc-brand {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

#ecc-agent-root .ecc-sub {
  display: none;
}

#ecc-agent-root .ecc-phone {
  color: var(--ecc-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 241, 234, 0.25);
}

#ecc-agent-root .ecc-phone:hover,
#ecc-agent-root .ecc-phone:focus-visible {
  color: #fff;
  border-bottom-color: var(--ecc-accent-2);
  outline: none;
}

#ecc-agent-root .ecc-close {
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--ecc-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ecc-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#ecc-agent-root .ecc-close:hover,
#ecc-agent-root .ecc-close:focus-visible {
  border-color: rgba(46, 181, 224, 0.45);
  outline: none;
}

#ecc-agent-root .ecc-log {
  flex: 1 1 auto;
  min-height: 220px;
  overflow: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ecc-bg);
}

#ecc-agent-root .ecc-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13.5px;
}

#ecc-agent-root .ecc-msg p {
  margin: 0 0 8px;
}

#ecc-agent-root .ecc-msg p:last-child {
  margin-bottom: 0;
}

#ecc-agent-root .ecc-msg a {
  color: var(--ecc-cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}

#ecc-agent-root .ecc-msg-bot {
  align-self: flex-start;
  background: var(--ecc-bg-2);
  border: 1px solid var(--ecc-line);
  color: var(--ecc-text);
}

#ecc-agent-root .ecc-msg-user {
  align-self: flex-end;
  background: #07202b;
  border: 1px solid rgba(46, 181, 224, 0.4);
}

#ecc-agent-root .ecc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

#ecc-agent-root .ecc-chip {
  margin: 0;
  padding: 6px 10px;
  border: 1px solid rgba(46, 181, 224, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--ecc-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

#ecc-agent-root .ecc-chip:hover,
#ecc-agent-root .ecc-chip:focus-visible {
  border-color: var(--ecc-cyan);
  color: #fff;
  outline: none;
}


#ecc-agent-root .ecc-composer {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  gap: 8px;
  padding: 8px 12px 10px;
  border-top: 1px solid var(--ecc-line);
  background: var(--ecc-bg-2);
}

#ecc-agent-root .ecc-composer-input {
  flex: 1 1 auto;
  min-height: 38px;
  max-height: 88px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ecc-line);
  border-radius: 10px;
  background: #061018;
  color: var(--ecc-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  resize: none;
}

#ecc-agent-root .ecc-composer-input:focus {
  outline: none;
  border-color: rgba(46, 181, 224, 0.65);
}

#ecc-agent-root .ecc-composer-send {
  flex: none;
  margin: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#6ed4f5 0%, #2eb5e0 55%, #1a8fb8 100%);
  color: #061018;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(46, 181, 224, 0.32);
}

#ecc-agent-root .ecc-composer-send:hover,
#ecc-agent-root .ecc-composer-send:focus-visible {
  outline: none;
  filter: brightness(1.06);
}

#ecc-agent-root .ecc-foot {
  display: none;
}

#ecc-agent-root .ecc-form {
  display: none;
  flex: 0 0 auto;
  gap: 6px;
  padding: 6px 12px 8px;
  border-top: 1px solid var(--ecc-line);
  background: var(--ecc-bg-2);
}

#ecc-agent-root.is-lead .ecc-form {
  display: grid;
}

#ecc-agent-root .ecc-form[hidden],
#ecc-agent-root.is-done .ecc-form {
  display: none;
}

#ecc-agent-root .ecc-form-title {
  margin: 4px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ecc-muted);
}

#ecc-agent-root .ecc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

#ecc-agent-root .ecc-field {
  display: block;
  font-size: 12px;
  color: var(--ecc-muted);
}

#ecc-agent-root .ecc-field input,
#ecc-agent-root .ecc-field textarea {
  display: block;
  width: 100%;
  margin-top: 3px;
  padding: 6px 8px;
  border: 1px solid var(--ecc-line);
  border-radius: 8px;
  background: #061018;
  color: var(--ecc-text);
  font: inherit;
  font-size: 13px;
}

#ecc-agent-root .ecc-field input:focus,
#ecc-agent-root .ecc-field textarea:focus {
  outline: none;
  border-color: rgba(46, 181, 224, 0.65);
}

#ecc-agent-root .ecc-field textarea {
  min-height: 36px;
  resize: vertical;
}

#ecc-agent-root .ecc-lead-link {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ecc-cyan);
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

#ecc-agent-root .ecc-lead-link:hover,
#ecc-agent-root .ecc-lead-link:focus-visible {
  color: #fff;
  outline: none;
}

#ecc-agent-root .ecc-submit {
  margin: 0 0 2px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#6ed4f5 0%, #2eb5e0 55%, #1a8fb8 100%);
  color: #061018;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(46, 181, 224, 0.32);
}

#ecc-agent-root .ecc-submit:hover,
#ecc-agent-root .ecc-submit:focus-visible {
  outline: none;
  filter: brightness(1.06);
}

#ecc-agent-root .ecc-foot {
  padding: 8px 14px 12px;
  border-top: 1px solid var(--ecc-line);
  background: var(--ecc-bg);
  font-size: 12px;
  color: var(--ecc-muted);
}

@media (max-width: 420px) {
  #ecc-agent-root {
    right: 12px;
    bottom: 12px;
  }
  #ecc-agent-root .ecc-panel {
    width: min(100vw - 24px, 372px);
    max-height: calc(100vh - 24px);
  }
}

/* Page NAP: street / city+zip / phone each on their own line. */
.ecc-addr,
[data-ecc-addr] {
  display: block;
}
a.ecc-tel,
a.ecc-phone,
[data-ecc-tel] {
  display: block;
}
/* Keep in-sentence phones (hero, chat) inline. Footer p contains .ecc-addr. */
#ecc-agent-root a.ecc-phone,
p:not(:has(.ecc-addr)) a.ecc-tel,
p:not(:has(.ecc-addr)) a.ecc-phone,
p:not(:has(.ecc-addr)) [data-ecc-tel] {
  display: inline;
}

/* Real CAD sheet preview — white paper, natural 11x17 portrait, not the 4/3 green fake. */
.ecc-sheet-frame {
  background: #fff;
  aspect-ratio: 1650 / 2550;
}
.ecc-sheet-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #fff;
}

a.cta-primary.ecc-tel,
a.cta-primary[data-ecc-tel] {
  display: inline-flex !important;
}

footer a.ecc-tel,
footer a.ecc-phone,
footer [data-ecc-tel] {
  display: block;
}
footer .ecc-nap a[href^="mailto"] {
  display: block;
}
#ecc-agent-root .ecc-msg-typing {
  min-width: 3.2rem;
  padding-top: 12px;
  padding-bottom: 12px;
}
#ecc-agent-root .ecc-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 12px;
}
#ecc-agent-root .ecc-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ecc-cyan);
  opacity: 0.3;
  animation: ecc-dot 1.15s infinite ease-in-out;
}
#ecc-agent-root .ecc-dots i:nth-child(2) { animation-delay: 0.16s; }
#ecc-agent-root .ecc-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes ecc-dot {
  0%, 80%, 100% { opacity: 0.28; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

