/* =====================================================
   LEAFORGE 365 — FLOATING CONTACT WIDGET
   Compact Microsoft-style quick contact panel.
   ===================================================== */
.lf-contact-widget {
  --lf-contact-bg:#066dbc;
  --lf-contact-bg-hover:#0a76cb;
  --lf-contact-text:#ffffff;
  --lf-contact-shadow:0 10px 22px rgba(0,0,0,.18);
  position:fixed;
  right:16px;
  top:50%;
  z-index:1000000;
  transform:translateY(-50%);
  font-family:"Poppins",Arial,Helvetica,sans-serif;
}
.lf-contact-widget *,
.lf-contact-widget *::before,
.lf-contact-widget *::after { box-sizing:border-box; }
.lf-contact-launcher {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:4px;
  background:var(--lf-contact-bg);
  box-shadow:var(--lf-contact-shadow);
}
.lf-contact-launcher-btn {
  width:54px;
  height:54px;
  padding:0;
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--lf-contact-text);
  cursor:pointer;
  transition:background-color .2s ease;
}
.lf-contact-launcher-btn + .lf-contact-launcher-btn { border-top:1px solid rgba(255,255,255,.18); }
.lf-contact-launcher-btn:hover,
.lf-contact-launcher-btn:focus-visible,
.lf-contact-launcher-btn[aria-expanded="true"] { background:var(--lf-contact-bg-hover); }
.lf-contact-launcher-btn:focus-visible,
.lf-contact-close:focus-visible,
.lf-contact-link:focus-visible { outline:2px solid rgba(255,255,255,.5); outline-offset:2px; }
.lf-contact-launcher-btn svg,
.lf-contact-link-icon svg,
.lf-contact-close svg {
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.lf-contact-panel {
  position:absolute;
  right:68px;
  top:50%;
  width:312px;
  padding:0;
  background:var(--lf-contact-bg);
  color:var(--lf-contact-text);
  box-shadow:var(--lf-contact-shadow);
  border-radius:3px;
  transform:translateY(-50%) translateX(10px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
}
.lf-contact-panel.is-open {
  transform:translateY(-50%) translateX(0);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.lf-contact-close {
  position:absolute;
  right:0;
  top:-52px;
  height:52px;
  min-width:122px;
  padding:0 17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:2px solid #0b5ca5;
  border-radius:10px;
  background:#fff;
  color:#0b5ca5;
  box-shadow:0 7px 16px rgba(0,0,0,.16);
  font-family:"Poppins",Arial,Helvetica,sans-serif;
  font-size:15px;
  font-weight:500;
  cursor:pointer;
}
.lf-contact-close:hover { background:#f7fbff; }
.lf-contact-panel-body { padding:14px 18px 13px; }
.lf-contact-link {
  min-height:42px;
  display:grid;
  grid-template-columns:25px 1fr;
  align-items:center;
  gap:10px;
  color:#fff;
  text-decoration:none;
}
.lf-contact-link + .lf-contact-link { margin-top:10px; }
.lf-contact-link:hover,
.lf-contact-link:focus-visible { color:#fff; }
.lf-contact-link-icon { display:grid; place-items:center; color:#fff; }
.lf-contact-link-copy { min-width:0; display:flex; align-items:center; gap:6px; }
.lf-contact-link-value { display:block; color:#fff; font-size:15px; font-weight:600; line-height:1.35; }
.lf-contact-chat .lf-contact-link-value { font-size:17px; font-weight:700; }
.lf-contact-link-arrow { display:inline-block; color:#fff; font-size:25px; line-height:1; transform:translateY(-1px); }
.lf-contact-phone .lf-contact-link-value { text-decoration:underline; text-underline-offset:2px; font-size:14px; font-weight:500; }
.lf-contact-availability { padding:14px 0 0; text-align:center; }
.lf-contact-availability-value { display:block; color:#fff; font-size:13px; font-weight:700; line-height:1.35; }
@media (max-width:767.98px) {
  .lf-contact-widget { top:auto; right:12px; bottom:18px; transform:none; }
  .lf-contact-launcher-btn { width:50px; height:50px; }
  .lf-contact-panel {
    position:fixed;
    top:auto;
    right:12px;
    bottom:78px;
    width:300px;
    max-width:calc(100vw - 24px);
    transform:translateY(10px);
  }
  .lf-contact-panel.is-open { transform:translateY(0); }
  .lf-contact-close { top:-49px; height:49px; min-width:116px; font-size:14px; }
  .lf-contact-chat .lf-contact-link-value { font-size:16px; }
  .lf-contact-link-value { font-size:14px; }
  .lf-contact-phone .lf-contact-link-value { font-size:13px; }
  .lf-contact-availability-value { font-size:12px; }
}
@media (max-width:420px) {
  .lf-contact-widget { right:10px; bottom:14px; }
  .lf-contact-panel { right:10px; bottom:74px; width:calc(100vw - 20px); }
  .lf-contact-close { min-width:110px; padding:0 15px; }
}
@media (prefers-reduced-motion:reduce) {
  .lf-contact-panel,
  .lf-contact-launcher-btn,
  .lf-contact-close,
  .lf-contact-link { transition:none; }
}


/* =====================================================
   BOTTOM "NEED HELP? LET'S CHAT" TEASER
   Reference dimensions: approximately 228px × 100px.
   Reference blue: #0078D4.
   ===================================================== */
.lf-bottom-help-teaser {
  position:fixed;
  right:28px;
  bottom:92px;
  z-index:999998;
  width:228px;
  min-height:100px;
  padding:14px 20px 14px 16px;
  display:flex;
  align-items:center;
  gap:18px;
  border:0;
  border-radius:19px;
  background:#0078d4;
  color:#ffffff;
  box-shadow:0 13px 27px rgba(0,0,0,.22);
  font-family:"Poppins",Arial,Helvetica,sans-serif;
  text-align:left;
  cursor:pointer;
  transition:background-color .2s ease, transform .2s ease, box-shadow .2s ease, opacity .2s ease, visibility .2s ease;
}
.lf-bottom-help-teaser:hover,
.lf-bottom-help-teaser:focus-visible {
  background:#106ebe;
  transform:translateY(-2px);
  box-shadow:0 15px 30px rgba(0,0,0,.24);
}
.lf-bottom-help-teaser:focus-visible {
  outline:3px solid rgba(0,120,212,.28);
  outline-offset:3px;
}
.lf-bottom-help-avatar {
  position:relative;
  width:58px;
  height:58px;
  flex:0 0 58px;
  display:grid;
  place-items:center;
  border:2px solid #ffffff;
  border-radius:50%;
  background:#245a8d;
  background-image:url("../images/support-avatar-v2.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  color:#ffffff;
  box-shadow:inset 0 0 0 3px rgba(255,255,255,.12);
}
.lf-bottom-help-avatar > svg {
  display:none;
}
.lf-bottom-help-chat-badge {
  position:absolute;
  top:-8px;
  right:-10px;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border:3px solid #0078d4;
  border-radius:50%;
  background:#ffffff;
  color:#0078d4;
}
.lf-bottom-help-chat-badge svg {
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.lf-bottom-help-copy {
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  color:#ffffff;
  font-size:18px;
  font-weight:400;
  line-height:1.35;
  white-space:nowrap;
}
.lf-contact-panel.is-open ~ .lf-bottom-help-teaser {
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}
@media (max-width:767.98px) {
  .lf-bottom-help-teaser {
    right:12px;
    bottom:82px;
    width:196px;
    min-height:82px;
    padding:11px 15px 11px 13px;
    gap:14px;
    border-radius:17px;
  }
  .lf-bottom-help-avatar {
    width:50px;
    height:50px;
    flex-basis:50px;
  }
  .lf-bottom-help-avatar > svg {
    width:31px;
    height:31px;
  }
  .lf-bottom-help-chat-badge {
    width:24px;
    height:24px;
    top:-6px;
    right:-8px;
  }
  .lf-bottom-help-chat-badge svg {
    width:14px;
    height:14px;
  }
  .lf-bottom-help-copy {
    font-size:15px;
  }
}
@media (max-width:420px) {
  .lf-bottom-help-teaser {
    right:10px;
    bottom:76px;
    width:184px;
    min-height:76px;
  }
  .lf-bottom-help-copy {
    font-size:14px;
  }
}
