/* =============================================
   LEAD POPUP – sdílený poptávkový popup
   Používá se na všech produktových stránkách (hypoteka.php, investice.php, ...)
   ============================================= */

@keyframes leadPopupIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-popup {
  background-color: rgba(10,10,10,0.6);
  backdrop-filter: blur(3px);
}

.lead-popup .popup-content {
  max-width: 560px;
  width: 90%;
  text-align: left;
  background: #fff;
  border: none;
  border-radius: 0 28px;
  padding: 44px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.35);
  animation: leadPopupIn 0.35s ease;
}

.lead-popup .close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #555;
  font-size: 20px;
  float: none;
  transition: background 0.2s, color 0.2s;
}

.lead-popup__eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin: 0 0 10px;
}

.lead-popup h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #1F1F1F;
  padding-right: 30px;
}

.lead-popup__sub {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin: 0 0 28px;
}

.lead-optional {
  text-transform: none;
  font-weight: 400;
  letter-spacing: normal;
  color: #aaa;
}

.lead-popup textarea,
.lead-form textarea {
  min-height: 70px;
  resize: vertical;
}

.lead-popup form,
.lead-form form {
  gap: 0;
}

.lead-popup .form-group,
.lead-form .form-group {
  margin-bottom: 18px;
}

.lead-popup label,
.lead-form label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #000;
  margin-bottom: 8px;
}

.lead-popup input[type="text"],
.lead-popup input[type="tel"],
.lead-popup input[type="email"],
.lead-popup select,
.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form select {
  border: 1px solid #e2e2e2;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.lead-popup input[type="text"]:focus,
.lead-popup input[type="tel"]:focus,
.lead-popup input[type="email"]:focus,
.lead-popup select:focus,
.lead-form input[type="text"]:focus,
.lead-form input[type="tel"]:focus,
.lead-form input[type="email"]:focus,
.lead-form select:focus {
  outline: none;
  border-color: #111;
  background: #fff;
}

.lead-popup select,
.lead-form select {
  width: 96%;
  padding: 15px 4%;
  border-radius: 5px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
}

.lead-field {
  display: none;
}

.lead-field-group {
  display: none;
}

/* ── UPLOAD DROPZONE ── */
.lead-field--upload label {
  margin-bottom: 10px;
}

.lead-dropzone {
  position: relative;
  border: 2px dashed #ddd;
  border-radius: 14px;
  padding: 26px 20px;
  text-align: center;
  background: #fafafa;
  transition: border-color 0.2s, background 0.2s;
}

.lead-dropzone:hover {
  border-color: #999;
  background: #f3f3f3;
}

.lead-dropzone--drag {
  border-color: #111;
  background: #eee;
}

.lead-dropzone--filled {
  border-style: solid;
  border-color: #2e8b57;
  background: #f2f8f4;
}

.lead-dropzone__icon {
  color: #999;
  margin: 0 auto 8px;
  display: block;
}

.lead-dropzone--filled .lead-dropzone__icon {
  color: #2e8b57;
}

.lead-dropzone__text {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.lead-dropzone__hint {
  display: block;
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.lead-dropzone__filename {
  display: none;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #2e8b57;
  word-break: break-all;
}

.lead-dropzone--filled .lead-dropzone__filename {
  display: block;
}

.lead-dropzone .wpcf7-form-control-wrap {
  position: absolute;
  inset: 0;
}

.lead-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.lead-checklist {
  background: #f7f7f7;
  border-radius: 0 14px;
  padding: 18px 20px 8px;
}

.lead-checklist label {
  display: flex;
}

.lead-checklist .wpcf7-list-item {
  display: block;
  margin: 0 0 10px;
}

.lead-checklist .wpcf7-list-item-label {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: #444;
}

.lead-popup .lead-gdpr,
.lead-form .lead-gdpr {
  justify-content: flex-start;
  margin: 4px 0 22px;
}

.lead-popup .lead-gdpr label,
.lead-form .lead-gdpr label {
  text-transform: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  color: #888;
}

.lead-popup [type="submit"],
.lead-form [type="submit"] {
  width: 100%;
  padding: 16px 20px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .lead-popup .popup-content {
    padding: 32px 22px;
    border-radius: 0 20px;
  }

  .lead-popup h3 {
    font-size: 20px;
  }
}

/* ── Rozbalovací volitelné bloky (Chcete nám dát více informací? apod.) ──
 * <details class="lead-more"><summary>…</summary>…</details> přímo v CF7
 * šabloně formuláře. Klient je nemusí otevírat vůbec. */
.lead-more {
  border: 1px solid #e6e6e6;
  border-radius: 0 14px;
  background: #fafafa;
  margin-bottom: 14px;
}

.lead-more summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1F1F1F;
  position: relative;
  user-select: none;
}

.lead-more summary::-webkit-details-marker { display: none; }

.lead-more summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #a57932;
  border-bottom: 2px solid #a57932;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.lead-more[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.lead-more summary:hover { color: #a57932; }

.lead-more summary:focus-visible {
  outline: 2px solid #c0a068;
  outline-offset: -2px;
  border-radius: 0 14px;
}

.lead-more__body {
  padding: 0 18px 14px;
}

.lead-more .form-group { margin-bottom: 0; }
.lead-more .form-group + .form-group { margin-top: 14px; }

.lead-more .lead-checklist {
  background: transparent;
  padding: 0;
}

.lead-more .lead-checklist > label {
  display: block;
  margin-bottom: 8px;
  color: #666;
  font-weight: 500;
}

.lead-more textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e2e2;
  background: #fff;
  border-radius: 5px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  min-height: 90px;
}

.lead-more textarea:focus {
  outline: none;
  border-color: #111;
}

/* ── Potvrzení po odeslání ── */
.wpcf7.lead-sent form { display: none; }

.lead-thanks {
  text-align: center;
  padding: 26px 10px 10px;
}

.lead-thanks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-gradient, linear-gradient(212deg, #DCC38B, #A57932));
  color: #fff;
  margin-bottom: 18px;
}

.lead-thanks__icon svg { width: 30px; height: 30px; }

.lead-thanks__title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #1F1F1F;
  margin-bottom: 8px;
}

.lead-thanks__text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0 auto;
  max-width: 34ch;
}

.lead-form .lead-thanks {
  background: #fff;
  border-radius: 0 20px;
  padding: 40px 20px;
}
