/* ECI WhatsApp / WeChat preview — scoped. Loaded only on the review pages. */
.eci-chat-preview {
  --blue: #2160F5;
  --blue-d: #1649C9;
  --blue-l: #EAF1FF;
  --blue-xl: #F5F8FF;
  --ink: #12233F;
  --muted: #51617A;
  --muted-2: #5B6573;
  --line: #DEE7F5;
  --orange: #FF6B35;
  --orange-d: #E5521B;
  --orange-l: #FFF0E9;
  --bg: #F8F6F2;
  --head: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(33, 96, 245, 0.10);
  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 20px 120px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.eci-chat-preview *,
.eci-chat-preview *::before,
.eci-chat-preview *::after { box-sizing: border-box; }
.eci-chat-preview h1,
.eci-chat-preview h2,
.eci-chat-preview h3 {
  font-family: var(--head);
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--ink);
}
.eci-chat-preview h1,
.eci-chat-title { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.eci-chat-preview h2 { font-size: 1.35rem; }
.eci-chat-preview p { margin: 0 0 14px; color: var(--muted); }
.eci-chat-preview a { color: var(--blue); font-weight: 600; }
.eci-chat-preview a:hover { color: var(--orange-d); }

.eci-chat-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-l);
  border: 1px solid #D2E1FF;
  border-radius: 30px;
  padding: 7px 16px 7px 12px;
  margin-bottom: 16px;
}
.eci-chat-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.eci-chat-lead { font-size: 19px; max-width: 44em; }

.eci-chat-note {
  background: var(--orange-l);
  border: 1px solid #FFD2C0;
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  padding: 16px 18px 14px;
  margin: 22px 0 28px;
}
.eci-chat-note p { margin: 0; color: var(--ink); font-size: 15.5px; }

.eci-chat-placements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 36px;
}
.eci-chat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
}
.eci-chat-card h2 { font-size: 1.08rem; margin-bottom: 8px; }
.eci-chat-card p { margin: 0; font-size: 15.5px; }
.eci-chat-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-l);
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 10px;
}

.eci-chat-mock-label {
  font-family: var(--head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.eci-chat-cta {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}
.eci-chat-cta h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.eci-chat-intro { color: var(--muted-2); margin: 0 0 .55rem; max-width: 42rem; }
.eci-chat-context { margin: 0 0 1.15rem; max-width: 42rem; font-size: 15px; font-weight: 600; color: var(--ink); }

.eci-chat-form {
  margin: 1.1rem 0 .4rem;
  padding: 22px 22px 18px;
  background: var(--bg);
  border: 1px solid rgba(18, 35, 63, 0.12);
  border-radius: 14px;
}
.eci-chat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.eci-chat-field { display: flex; flex-direction: column; gap: 6px; }
.eci-chat-span2 { grid-column: 1 / -1; }
.eci-chat-lbl { font-weight: 650; font-size: 14.5px; color: var(--ink); }
.eci-chat-req { color: var(--orange-d); }
.eci-chat-opt { font-weight: 500; color: var(--muted); font-size: 13px; }
.eci-chat-form input[type="text"],
.eci-chat-form input[type="email"],
.eci-chat-form textarea {
  font: inherit;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.eci-chat-form textarea { min-height: 120px; resize: vertical; }
.eci-chat-form-privacy { font-size: 13.5px; color: var(--muted); margin: 14px 0 12px; }
.eci-chat-submit {
  font: inherit;
  font-family: var(--head);
  font-weight: 800;
  font-size: 15px;
  background: var(--orange);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: default;
  opacity: 0.85;
}

.eci-chat-block {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
}
.eci-chat-block h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.eci-chat-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.eci-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-family: var(--head);
  font-weight: 750;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(18, 35, 63, 0.04);
}
.eci-chat-btn:hover,
.eci-chat-btn:focus-visible {
  border-color: var(--blue);
  color: var(--ink);
  outline: 2px solid var(--blue-l);
  outline-offset: 2px;
}
.eci-chat-btn svg { flex: none; }
.eci-chat-caption {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--orange-d);
  font-weight: 650;
  font-style: italic;
}
.eci-chat-privacy { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }

.eci-chat-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin: 1.15rem 0 0.5rem;
  font-size: 15px;
}
.eci-chat-phones a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 35, 63, 0.12);
  padding-bottom: 1px;
  color: var(--blue);
}
.eci-chat-phone-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.eci-chat-legal {
  margin: 0.4rem 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

.eci-chat-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.eci-chat-panel {
  width: min(340px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line, #DEE7F5);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(18, 35, 63, 0.16);
  padding: 18px 18px 16px;
  display: none;
  color: var(--ink, #12233F);
  font-family: var(--body, Inter, system-ui, sans-serif);
  font-size: 17px;
  line-height: 1.55;
}
.eci-chat-panel.is-open { display: block; }
.eci-chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.eci-chat-panel-head h2 {
  font-family: var(--head, "Plus Jakarta Sans", Inter, sans-serif);
  font-size: 1.15rem;
  margin: 0;
  color: var(--ink, #12233F);
}
.eci-chat-panel-close {
  font: inherit;
  border: 0;
  background: #F5F8FF;
  color: #12233F;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}
.eci-chat-panel p { margin: 0 0 12px; font-size: 14.5px; color: #51617A; }
.eci-chat-wx-box {
  margin-top: 12px;
  border: 1px dashed #B9E8CE;
  background: #F3FBF6;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.eci-chat-wx-qr {
  width: 132px;
  height: 132px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: repeating-conic-gradient(#d7e8dc 0 25%, #f7fbf8 0 50%) 0 0 / 16px 16px;
  border: 1px solid #cfe9d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12233F;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  padding: 10px;
  text-align: center;
}
.eci-chat-wx-box p { margin: 0; font-size: 13px; color: #12233F; }
.eci-chat-toast {
  margin-top: 12px;
  background: #FFF0E9;
  border-left: 4px solid #FF6B35;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: #12233F;
  display: none;
}
.eci-chat-toast.is-on { display: block; }

.eci-chat-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid #DEE7F5;
  background: #2160F5;
  color: #fff;
  box-shadow: 0 10px 24px rgba(33, 96, 245, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.eci-chat-fab:hover,
.eci-chat-fab:focus-visible { background: #1649C9; outline: 0; }
.eci-chat-fab[aria-expanded="true"] { background: #12233F; }

.eci-chat-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 800px) {
  .eci-chat-placements,
  .eci-chat-grid { grid-template-columns: 1fr; }
  .eci-chat-span2 { grid-column: auto; }
  .eci-chat-cta { padding: 24px 16px; }
  .eci-chat-dock { right: 14px; bottom: 14px; }
  .eci-chat-preview { padding: 24px 16px 120px; }
}


.eci-chat-click-hint {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--muted, #51617A);
}

.eci-chat-icons { margin: 0; }
.eci-chat-icon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  position: relative;
}
.eci-chat-icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-family: var(--head, "Plus Jakarta Sans", Inter, system-ui, sans-serif);
  font-weight: 750;
  font-size: 15px;
  color: #12233F;
  background: #fff;
  border: 1px solid #DEE7F5;
  border-radius: 999px;
  padding: 10px 16px 10px 12px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(18, 35, 63, 0.04);
}
.eci-chat-icon:hover,
.eci-chat-icon:focus-visible {
  border-color: #2160F5;
  color: #12233F;
  outline: 2px solid #EAF1FF;
  outline-offset: 2px;
}
.eci-chat-icon[aria-expanded="true"] {
  border-color: #2160F5;
  background: #F5F8FF;
}
.eci-chat-icon svg { flex: none; display: block; }

/* Footer: modest 36px squares, matching the LinkedIn icon, no second contact block. */
.eci-chat-icons--footer {
  margin: 16px 0 8px;
}
.eci-chat-footer-lbl {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #51617A;
  opacity: 0.8;
}
.eci-chat-icons--footer .eci-chat-icon-row { gap: 8px; }
.eci-chat-icons--footer .eci-chat-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  justify-content: center;
  box-shadow: none;
  gap: 0;
}
.eci-chat-icons--footer .eci-chat-icon svg {
  width: 18px;
  height: 18px;
}
.eci-chat-icons--footer .eci-chat-icon-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.eci-chat-footer-fallback {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 16px;
}

/* Compact QR popover — hidden until click, never huge. */
.eci-chat-popover {
  position: fixed;
  z-index: 10050;
  width: min(240px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #DEE7F5;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(18, 35, 63, 0.16);
  padding: 12px 14px 14px;
  color: #12233F;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}
.eci-chat-popover *,
.eci-chat-popover *::before,
.eci-chat-popover *::after { box-sizing: border-box; }
.eci-chat-popover[hidden] { display: none !important; }
.eci-chat-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
}
.eci-chat-popover-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.02em;
  color: #12233F;
  text-align: left;
}
.eci-chat-popover-close {
  font: inherit;
  border: 0;
  background: #F5F8FF;
  color: #12233F;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  flex: none;
}
.eci-chat-popover-close:hover,
.eci-chat-popover-close:focus-visible {
  background: #EAF1FF;
  outline: 2px solid #2160F5;
  outline-offset: 2px;
}
.eci-chat-popover img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: #fff;
}
.eci-chat-popover-person {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 13.5px;
  color: #12233F;
}
.eci-chat-popover-help {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #51617A;
}
.eci-chat-popover-link {
  display: inline-block;
  margin: 0 0 8px;
  font-weight: 650;
  font-size: 13.5px;
  color: #2160F5;
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 96, 245, 0.25);
}
.eci-chat-popover-link:hover { color: #E5521B; }
.eci-chat-popover-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  line-height: 1.2;
}
.eci-chat-popover-cta:hover { background: #1DA851; color: #fff !important; }

.eci-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10040;
  background: transparent;
}
.eci-chat-backdrop[hidden] { display: none !important; }
