/* Lead magnet */
.lead-magnet {
  margin-top: 40px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(23,184,230,0.06);
  border: 1px solid rgba(23,184,230,0.14);
  box-shadow: var(--shadow);
}

.lm-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}

.lm-visual img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(20,52,98,0.18);
}

.lm-content h3 {
  margin: 8px 0 14px;
}

.lm-content p {
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.7;
}

.lm-form {
  margin-top: 8px;
}

.lm-form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.lm-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: rgba(255,255,255,0.94);
}

.lm-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(23,184,230,0.18);
}

.lm-form-row .btn {
  flex-shrink: 0;
}

.lm-consent {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 4px;
}

.lm-consent input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.lm-consent a {
  color: var(--brand);
  text-decoration: underline;
}

/* Lead magnet — mobil */
@media (max-width: 720px) {
  .lead-magnet {
    padding: 24px;
  }
  .lm-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .lm-visual img {
    max-width: 160px;
    margin: 0 auto;
  }
  .lm-content h3 {
    font-size: 22px;
  }
  .lm-form-row {
    flex-direction: column;
  }
  .lm-input {
    width: 100%;
  }
  .lm-form-row .btn {
    width: 100%;
  }
  .lm-consent {
    text-align: left;
  }
}
  /* Slide-out panel */
  .lead-magnet-panel {
    position: fixed;
    left: -360px; /* hidden */
    bottom: 40px;
    width: 340px;
    max-width: calc(100% - 40px);
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    border-radius: 8px;
    overflow: hidden;
    transition: left .5s cubic-bezier(.2,.8,.2,1), opacity .3s;
    z-index: 9999;
    opacity: 0;
  }
  .lead-magnet-panel.open { left: 20px; opacity: 1; }
  .lead-magnet-panel .lm-grid { display:flex; gap:12px; padding:14px; align-items:center; }
  .lead-magnet-panel .lm-visual img{ width:76px; height:auto; border-radius:4px; }
  .lead-magnet-panel .lm-content h3{ font-size:16px; margin:0 0 6px; }
  .lead-magnet-panel .lm-form-row{ display:flex; gap:8px; }
  .lead-magnet-panel .lm-input{ flex:1; padding:8px; }
  .lead-magnet-panel .lm-close{ position:absolute; top:6px; left:6px; background:transparent; border:0; font-size:18px; cursor:pointer; }

  /* Small-screen full-width bottom bar */
  @media (max-width:480px){
    .lead-magnet-panel{ left:0; right:0; bottom:0; width:100%; border-radius:10px 10px 0 0; }
  }

  /* Dim overlay for modal mode */
  .lm-overlay{ position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9998; display:none; }
  .lm-overlay.show{ display:block; }

/* FIX: skrytý slide-out lead magnet nesmí blokovat klikání na footer */
.lead-magnet-panel {
  pointer-events: none;
  visibility: hidden;
}

.lead-magnet-panel.open {
  pointer-events: auto;
  visibility: visible;
}

/* Overlay bere kliky pouze když je opravdu zobrazený */
.lm-overlay {
  pointer-events: none;
}

.lm-overlay.show {
  pointer-events: auto;
}

/* Mobil: zavřený panel musí být mimo obraz, jinak překrývá spodní část webu */
@media (max-width:480px){
  .lead-magnet-panel {
    transform: translateY(110%);
    left: 0;
    right: 0;
    bottom: 0;
  }

  .lead-magnet-panel.open {
    transform: translateY(0);
  }
}

