/* EECG floating contact card — replaces the old chatbot widget */
.eecg-cc {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.eecg-cc__fab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 0;
  cursor: pointer;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: #e85d3a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(232, 93, 58, 0.38);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.eecg-cc__fab:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(232, 93, 58, 0.45); }
.eecg-cc__fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.eecg-cc__fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 58, 0.55);
  animation: eecg-cc-pulse 2.6s ease-out infinite;
}
@keyframes eecg-cc-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}

.eecg-cc__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 320px;
  max-width: calc(100vw - 44px);
  padding: 1.4rem 1.4rem 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(26, 26, 26, 0.1);
  box-shadow: 0 26px 60px rgba(20, 20, 20, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.32s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.32s;
}
.eecg-cc.is-open .eecg-cc__panel { opacity: 1; visibility: visible; transform: none; }

.eecg-cc__k {
  font-family: 'Space Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e85d3a;
}
.eecg-cc__panel h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0.5rem 0 0.35rem;
  color: #1a1a1a;
}
.eecg-cc__panel p {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(26, 26, 26, 0.68);
}

.eecg-cc__row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1a1a;
  font-size: 0.88rem;
  border: 1px solid rgba(26, 26, 26, 0.09);
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.eecg-cc__row + .eecg-cc__row { margin-top: 0.5rem; }
.eecg-cc__row:hover { border-color: #e85d3a; background: #fff; transform: translateX(3px); color: #1a1a1a; }
.eecg-cc__row svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: #e85d3a; stroke-width: 1.7; }
.eecg-cc__row span { line-height: 1.35; }

.eecg-cc__cta {
  display: block;
  margin-top: 0.9rem;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: background 0.25s ease;
}
.eecg-cc__cta:hover { background: #e85d3a; }

.eecg-cc__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(26, 26, 26, 0.45);
}
.eecg-cc__close:hover { color: #e85d3a; }

@media (max-width: 560px) {
  .eecg-cc { right: 14px; bottom: 14px; }
  .eecg-cc__fab span { display: none; }
  .eecg-cc__fab { padding: 0.9rem; }
}
