/* Sybago lead-capture widget — appears on every page. */

#syb-widget {
  --syb-teal: #2F6779;
  --syb-teal-b: #3a7d93;
  --syb-teal-g: rgba(47,103,121,0.20);
  --syb-text: #0f1419;
  --syb-muted: rgba(15,20,25,0.60);
  --syb-line: rgba(15,20,25,0.10);
  --syb-bg: #ffffff;
  --syb-success: #2fb158;
  --syb-danger: #d63232;
  --syb-eo: cubic-bezier(.16,1,.3,1);

  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9999;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--syb-text);
}

#syb-widget *,
#syb-widget *::before,
#syb-widget *::after {
  box-sizing: border-box;
}

.syb-bubble {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--syb-teal);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px rgba(47,103,121,0.36);
  transition: transform .25s var(--syb-eo), background .25s var(--syb-eo);
  padding: 0;
}
.syb-bubble:hover {
  background: var(--syb-teal-b);
  transform: translateY(-2px) scale(1.04);
}
.syb-bubble svg { width: 26px; height: 26px; }

.syb-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 2.5rem);
  background: var(--syb-bg);
  border: 1px solid var(--syb-line);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15,20,25,0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity .28s var(--syb-eo), transform .28s var(--syb-eo);
}
#syb-widget.open .syb-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#syb-widget.open .syb-bubble { transform: scale(.92); }

.syb-head {
  background: var(--syb-teal);
  color: #fff;
  padding: 1.05rem 1.15rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
}
.syb-head h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0;
}
.syb-head p {
  font-size: .82rem;
  margin: .25rem 0 0;
  opacity: .85;
  line-height: 1.4;
}
.syb-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: .25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .8;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.syb-close:hover { opacity: 1; background: rgba(255,255,255,.12); }
.syb-close svg { width: 18px; height: 18px; }

.syb-body { padding: 1.05rem 1.15rem 1.2rem; }

.syb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: .65rem;
}
.syb-field {
  display: flex;
  flex-direction: column;
  margin-bottom: .65rem;
}
.syb-field label {
  font-size: .74rem;
  font-weight: 600;
  color: var(--syb-text);
  letter-spacing: .04em;
  margin-bottom: .35rem;
}
.syb-field input,
.syb-field textarea {
  font-family: inherit;
  font-size: .95rem;
  color: var(--syb-text);
  background: var(--syb-bg);
  border: 1px solid var(--syb-line);
  border-radius: 8px;
  padding: .65rem .8rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.syb-field input:focus,
.syb-field textarea:focus {
  outline: none;
  border-color: var(--syb-teal);
  box-shadow: 0 0 0 3px var(--syb-teal-g);
}
.syb-field textarea {
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.syb-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.syb-submit {
  width: 100%;
  margin-top: .35rem;
  background: var(--syb-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .85rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .15s;
}
.syb-submit:hover:not(:disabled) {
  background: var(--syb-teal-b);
  transform: translateY(-1px);
}
.syb-submit:disabled { opacity: .65; cursor: not-allowed; }

.syb-status {
  display: none;
  margin-top: .8rem;
  padding: .65rem .8rem;
  border-radius: 8px;
  font-size: .85rem;
  text-align: center;
  line-height: 1.4;
}
.syb-status.success {
  display: block;
  background: rgba(47,177,88,.10);
  border: 1px solid var(--syb-success);
  color: #1a7a3d;
}
.syb-status.error {
  display: block;
  background: rgba(214,50,50,.08);
  border: 1px solid var(--syb-danger);
  color: #9a1f1f;
}

.syb-success-card {
  text-align: center;
  padding: 1.6rem 1rem .8rem;
}
.syb-success-card svg {
  width: 44px;
  height: 44px;
  color: var(--syb-success);
  margin: 0 auto .8rem;
  display: block;
}
.syb-success-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  color: var(--syb-text);
}
.syb-success-card p {
  font-size: .9rem;
  color: var(--syb-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 480px) {
  #syb-widget { bottom: 1rem; right: 1rem; }
  .syb-panel {
    width: calc(100vw - 2rem);
    bottom: 72px;
  }
  .syb-bubble { width: 56px; height: 56px; }
  .syb-bubble svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .syb-bubble, .syb-panel, .syb-submit {
    transition: none;
  }
}
