/* ── Overlay ─────────────────────────────────────────────────── */
.twm-lead10-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 100vh;
  min-height: 100dvh;
}

.twm-lead10-overlay[hidden] {
  display: none;
}

/* ── Popup card ──────────────────────────────────────────────── */
.twm-lead10-popup {
  width: min(460px, 96vw);
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  padding: 24px 22px 20px;
  position: relative;
  font-family: inherit;
  animation: twm-popup-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes twm-popup-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo ────────────────────────────────────────────────────── */
.twm-lead10-logo-wrap {
  text-align: center;
  margin-bottom: 14px;
}

.twm-lead10-logo-wrap img {
  max-width: 120px;
  height: auto;
  display: inline-block;
}

/* ── Close button ────────────────────────────────────────────── */
.twm-lead10-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #888;
  padding: 4px 6px;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.twm-lead10-close:hover {
  background: #f0f0f0;
  color: #333;
}

[dir="rtl"] .twm-lead10-close {
  right: auto;
  left: 12px;
}

/* ── Heading ─────────────────────────────────────────────────── */
.twm-lead10-popup h3 {
  margin: 0 28px 6px 0;
  font-size: 20px;
  line-height: 1.3;
  color: #111;
}

[dir="rtl"] .twm-lead10-popup h3 {
  margin: 0 0 6px 28px;
}

.twm-lead10-subtitle {
  margin: 0 0 14px;
  color: #555;
  font-size: 14px;
  line-height: 1.5;
}

/* ── Form ────────────────────────────────────────────────────── */
.twm-lead10-form label {
  display: block;
  margin: 10px 0;
}

.twm-lead10-form label span {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: #444;
  font-weight: 500;
}

.twm-lead10-form input[type="email"],
.twm-lead10-form input[type="text"] {
  width: 100%;
  border: 1.5px solid #d0d7de;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.twm-lead10-form input:focus {
  outline: none;
  border-color: #018d39;
  box-shadow: 0 0 0 3px rgba(1, 141, 57, 0.12);
}

.twm-lead10-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  margin-top: 10px;
  background: #018d39;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s, transform 0.1s;
}

.twm-lead10-submit:hover  { background: #016e2d; }
.twm-lead10-submit:active { transform: scale(0.98); }
.twm-lead10-submit[disabled] { opacity: 0.65; cursor: wait; }

.twm-lead10-feedback {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 13px;
  text-align: center;
}

.twm-lead10-feedback.is-ok    { color: #018d39; font-weight: 600; }
.twm-lead10-feedback.is-error { color: #ba1a1a; }

/* ── Alt action (lien compte) ────────────────────────────────── */
.twm-lead10-alt {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #666;
  border-top: 1px solid #eee;
  padding-top: 14px;
}

.twm-lead10-account-link {
  color: #018d39;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.twm-lead10-account-link:hover { text-decoration: underline; }

[dir="rtl"] .twm-lead10-account-link {
  margin-left: 0;
  margin-right: 4px;
}

/* ── Honeypot ────────────────────────────────────────────────── */
.twm-lead10-hp {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* ── Body lock ───────────────────────────────────────────────── */
html.twm-lead10-lock,
html.twm-lead10-lock body {
  overflow: hidden;
}

/* ── Badge flottant (réouverture) ────────────────────────────── */
.twm-lead10-badge {
  position: fixed;
  bottom: 72px;
  right: 0;
  z-index: 9998;
  background: #c09001;
  color: #fff;
  border: 0;
  border-radius: 10px 0 0 10px;
  padding: 10px 14px 10px 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease;
  line-height: 1.2;
}

.twm-lead10-badge:hover { transform: translateX(-4px); background-color: #c09001; }

.twm-lead10-badge[hidden] { display: none; }

.twm-lead10-badge-icon {
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 480px) {
  .twm-lead10-popup {
    padding: 20px 16px 18px;
    border-radius: 14px;
  }
  .twm-lead10-popup h3 {
    font-size: 18px;
  }
  .twm-lead10-badge {
    bottom: 60px;
    font-size: 12px;
  }
}
