/* Floating lead-gen widget (Track A, sitewide) — currently the bydlení campaign.
   Pill discovers itself after a scroll/time trigger, expands into a form panel,
   both states dismissible. See assets/js/floating-widget.js for behaviour. */

.zbw {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  font-family: 'Archivo', system-ui, sans-serif;
  max-width: min(380px, calc(100vw - 40px));
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.34,1.1,.64,1), opacity .35s ease;
}
.zbw.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
/* Clear the footer's social icons / links instead of sitting on top of them. */
.zbw.is-above-footer { bottom: 132px; }
.zbw.is-suppressed { opacity: 0 !important; pointer-events: none !important; }

/* Closed state: pill */
.zbw-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 999px;
  padding: 16px 20px;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,0.45);
  cursor: pointer;
  border: 0;
  text-align: left;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1), filter .15s ease;
}
.zbw-pill:hover { transform: scale(1.03) rotate(-0.6deg); filter: brightness(1.08); }
.zbw-pill:active { transform: scale(0.96); }
.zbw-pill__text {
  font-family: 'SVGD', Archivo, system-ui, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.zbw-pill__text .zbw-accent { color: var(--color-pink-hot, #FF7DBE); }

.zbw-close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  border: 1px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px -2px rgba(0,0,0,0.25);
  transition: transform .15s ease, background .15s ease;
  flex-shrink: 0;
}
.zbw-close:hover { background: var(--color-pink); transform: scale(1.1); }
.zbw-pill-wrap { position: relative; }

/* Open state: panel */
.zbw-panel {
  display: none;
  position: relative;
  background: #f4faf6;
  border: 1px solid #ddeee2;
  border-radius: 14px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.35);
  padding: 26px 24px 22px;
  width: min(380px, calc(100vw - 40px));
}
.zbw.is-open .zbw-panel { display: block; animation: zbw-panel-in .32s cubic-bezier(.34,1.4,.64,1); }
.zbw.is-open .zbw-pill-wrap { display: none; }

@keyframes zbw-panel-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.zbw-panel__kicker {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-green-deep, #06A856);
  margin-bottom: 8px;
}
.zbw-panel__title {
  font-family: 'Tusker Grotesk', 'Tusker Grotesk SemiBold', Archivo, sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 14px;
}
.zbw-panel__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.zbw-panel__author img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}
.zbw-panel__author span {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(0,0,0,0.65);
}
.zbw-panel__author strong { color: var(--color-ink); }

.zbw-field { margin-bottom: 10px; }
.zbw-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e5e5;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease;
}
.zbw-field input[type="email"]:focus { border-color: var(--color-green); }

.zbw-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(0,0,0,0.6);
  margin: 10px 0 14px;
}
.zbw-consent input { margin-top: 3px; flex-shrink: 0; }
.zbw-consent a { color: var(--color-green-deep, #06A856); text-decoration: underline; }

.zbw-error {
  display: none;
  font-size: 12px;
  color: #d3273e;
  margin: -4px 0 10px;
}
.zbw-error.is-visible { display: block; }

.zbw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.zbw-submit {
  width: 100%;
  background: var(--color-green);
  color: var(--color-ink);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  transition: filter .15s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.zbw-submit:hover { filter: brightness(.95); transform: scale(1.02); }
.zbw-submit:disabled { opacity: .6; cursor: default; transform: none; }

.zbw-panel__collapse {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease;
}
.zbw-panel__collapse:hover { background: rgba(0,0,0,0.12); }

.zbw-success { display: none; text-align: left; }
.zbw.is-submitted .zbw-form { display: none; }
.zbw.is-submitted .zbw-success { display: block; }
.zbw-success h3 {
  font-family: 'Tusker Grotesk', 'Tusker Grotesk SemiBold', Archivo, sans-serif;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--color-ink);
  margin: 0 0 8px;
}
.zbw-success p { font-size: 14px; line-height: 1.5; color: rgba(0,0,0,0.7); margin: 0; }

@media (max-width: 480px) {
  .zbw { right: 12px; bottom: 12px; left: 12px; max-width: none; }
  .zbw-panel { width: 100%; }
}
