.zalo-lead-pop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1045;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  width: min(356px, calc(100vw - 28px));
  padding: 16px;
  overflow: hidden;
  color: #111827;
  background: #fff;
  border: 1px solid #dfe5ec;
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .16), 0 3px 10px rgba(15, 23, 42, .08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transform-origin: right bottom;
  transition: opacity .2s ease, visibility .2s ease, transform .24s ease;
}

.zalo-lead-pop::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: #1554c0;
  content: "";
}

.zalo-lead-pop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.zlp-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #64748b;
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}

.zlp-close:hover,
.zlp-close:focus-visible {
  color: #111827;
  background: #f1f5f9;
}

.zlp-close:focus-visible {
  outline: 2px solid #1554c0;
  outline-offset: 1px;
}

.zlp-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  margin-top: 1px;
}

.zlp-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #fff;
  background: #1554c0;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(21, 84, 192, .22);
  font-size: 1.2rem;
}

.zlp-icon-pulse {
  position: absolute;
  right: -2px;
  bottom: -2px;
  z-index: 3;
  width: 12px;
  height: 12px;
  background: #16a34a;
  border: 2px solid #fff;
  border-radius: 50%;
}

.zlp-body {
  min-width: 0;
  padding-right: 18px;
}

.zlp-title {
  margin: 0 0 2px;
  padding-right: 4px;
  color: #111827;
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
}

.zlp-text {
  margin: 0 0 11px;
  color: #64748b;
  font-size: .79rem;
  line-height: 1.4;
}

.zlp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.zlp-input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: .86rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.zlp-input::placeholder {
  color: #94a3b8;
}

.zlp-input:hover {
  border-color: #94a3b8;
}

.zlp-input:focus {
  border-color: #1554c0;
  box-shadow: 0 0 0 3px rgba(21, 84, 192, .12);
}

.zlp-submit {
  min-width: 64px;
  height: 42px;
  padding: 0 15px;
  color: #fff;
  background: #1554c0;
  border: 1px solid #1554c0;
  border-radius: 6px;
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.zlp-submit:hover,
.zlp-submit:focus-visible {
  background: #0b368f;
  border-color: #0b368f;
  box-shadow: 0 4px 10px rgba(21, 84, 192, .2);
}

.zlp-submit:focus-visible {
  outline: 2px solid rgba(21, 84, 192, .28);
  outline-offset: 2px;
}

.zlp-submit:disabled {
  color: #fff;
  background: #94a3b8;
  border-color: #94a3b8;
  box-shadow: none;
  cursor: wait;
}

.zlp-note {
  min-height: 17px;
  margin-top: 10px;
  padding-top: 9px;
  color: #64748b;
  border-top: 1px solid #eef2f6;
  font-size: .72rem;
  line-height: 1.45;
}

.zlp-note strong {
  color: #475569;
  font-weight: 700;
}

.zlp-note.ok {
  color: #15803d;
  font-weight: 700;
}

.zlp-note.err {
  color: #dc2626;
  font-weight: 700;
}

@media (max-width: 991.98px) {
  .zalo-lead-pop {
    right: 12px;
    bottom: 72px;
  }
}

@media (max-width: 575.98px) {
  .zalo-lead-pop {
    right: 10px;
    bottom: 70px;
    left: 10px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    width: auto;
    padding: 14px;
    transform: translateY(18px);
  }

  .zalo-lead-pop.is-visible {
    transform: translateY(0);
  }

  .zlp-icon-wrap,
  .zlp-icon {
    width: 40px;
    height: 40px;
  }

  .zlp-icon {
    font-size: 1.08rem;
  }

  .zlp-body {
    padding-right: 16px;
  }

  .zlp-title {
    font-size: .92rem;
  }

  .zlp-text {
    margin-bottom: 9px;
    font-size: .75rem;
  }

  .zlp-note {
    font-size: .68rem;
  }
}

@media (max-width: 360px) {
  .zalo-lead-pop {
    grid-template-columns: 1fr;
  }

  .zlp-icon-wrap {
    display: none;
  }

  .zlp-body {
    padding-right: 14px;
  }

  .zlp-form {
    grid-template-columns: minmax(0, 1fr) 58px;
  }

  .zlp-submit {
    min-width: 58px;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zalo-lead-pop {
    transition: none;
  }
}
