/* LeadSnapWP Public Styles */

/* ── Reset ──────────────────────────────────────── */
.leadsnap-popup *, .leadsnap-popup *::before, .leadsnap-popup *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
}

/* ── Base popup ──────────────────────────────────── */
.leadsnap-popup { z-index: 999999; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── Overlay ─────────────────────────────────────── */
.ls-overlay {
  position: fixed; inset: 0;
  cursor: pointer;
  animation: ls-fade-in 0.25s ease;
}

/* ── Box ─────────────────────────────────────────── */
.ls-box {
  position: relative;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 100%;
  animation: ls-slide-up 0.3s ease;
}

/* ── MODAL type ──────────────────────────────────── */
.ls-type-modal {
  position: fixed; inset: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ls-type-modal .ls-box {
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 1;
}

/* ── SLIDE-IN type ───────────────────────────────── */
.ls-type-slidein {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
}
.ls-type-slidein .ls-box {
  width: 340px;
  animation: ls-slide-in-right 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.ls-type-slidein .ls-overlay { display: none; }

/* ── TOP BAR type ────────────────────────────────── */
.ls-type-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999999;
  animation: ls-slide-down 0.3s ease;
}
.ls-type-topbar .ls-box {
  border-radius: 0 !important;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.ls-type-topbar .ls-overlay { display: none; }
.ls-type-topbar .ls-headline {
  font-size: 15px !important;
  margin-bottom: 0 !important;
  white-space: nowrap;
}
.ls-type-topbar .ls-subheadline { display: none; }
.ls-type-topbar .ls-form {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}
.ls-type-topbar .ls-field { flex: 1; margin-bottom: 0 !important; }
.ls-type-topbar .ls-btn {
  white-space: nowrap;
  padding: 10px 20px !important;
  font-size: 13px !important;
}
.ls-type-topbar .ls-branding { display: none; }

/* ── Content ─────────────────────────────────────── */
.ls-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}
.ls-subheadline {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.ls-close {
  position: absolute;
  top: 12px; right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: inherit;
  opacity: 0.5;
  line-height: 1;
  padding: 4px;
  transition: opacity 0.2s;
}
.ls-close:hover { opacity: 1; }

/* ── Form ────────────────────────────────────────── */
.ls-form { display: flex; flex-direction: column; gap: 0; }
.ls-field { margin-bottom: 12px; }
.ls-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}
.ls-input:focus { border-color: #2563eb; }
.ls-textarea { resize: vertical; min-height: 80px; }
.ls-btn {
  width: 100%;
  padding: 13px 24px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: 4px;
}
.ls-btn:hover { opacity: 0.9; }
.ls-btn:active { transform: scale(0.98); }
.ls-btn:disabled { opacity: 0.6; cursor: wait; }

/* ── Success ─────────────────────────────────────── */
.ls-success {
  text-align: center;
  padding: 20px 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}
.ls-success::before {
  content: '✓';
  display: block;
  font-size: 36px;
  margin-bottom: 10px;
  color: #16a34a;
}

/* ── Branding ────────────────────────────────────── */
.ls-branding {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  opacity: 0.4;
}
.ls-branding a { color: inherit; text-decoration: none; }
.ls-branding a:hover { text-decoration: underline; }

/* ── Animations ──────────────────────────────────── */
@keyframes ls-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ls-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ls-slide-in-right {
  from { opacity: 0; transform: translateX(80px) scale(0.95); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes ls-slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ls-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Mobile ──────────────────────────────────────── */
@media (max-width: 480px) {
  .ls-type-modal .ls-box { padding: 28px 20px 22px; }
  .ls-type-slidein { bottom: 0; right: 0; left: 0; }
  .ls-type-slidein .ls-box {
    width: 100%;
    border-radius: 16px 16px 0 0 !important;
    animation: ls-slide-up 0.35s ease;
  }
  .ls-type-topbar .ls-form { min-width: 100%; }
  .ls-headline { font-size: 18px; }
}
