/* Lead popup — merkezi modal. Site paleti: terracotta / espresso / ivory. */

.lead-popup {
  --lp-terracotta: #c15a34;
  --lp-terracotta-dark: #a8492e;
  --lp-espresso: #1c1917;
  --lp-ivory: #fdfbf7;
  --lp-muted: #78716c;
  --lp-line: rgba(28, 25, 23, 0.1);

  position: fixed !important;
  inset: 0 !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.25rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.lead-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lead-popup[hidden] {
  display: none !important;
}

.lead-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

/* ── Panel ───────────────────────────────────────────── */

.lead-popup__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 25rem;
  padding: 2.25rem 1.75rem 1.75rem;
  border-radius: 20px;
  border: 1px solid var(--lp-line);
  background: var(--lp-ivory);
  box-shadow:
    0 1px 2px rgba(28, 25, 23, 0.04),
    0 12px 28px rgba(28, 25, 23, 0.12),
    0 40px 80px rgba(28, 25, 23, 0.16);
  overflow: hidden;
  transform: translateY(14px) scale(0.97);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.lead-popup.is-open .lead-popup__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* üstte ince terracotta şerit */
.lead-popup__panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lp-terracotta), #e08a5f, var(--lp-terracotta));
}

.lead-popup__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--lp-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lead-popup__close:hover {
  background: rgba(28, 25, 23, 0.06);
  color: var(--lp-espresso);
}

/* ── Başlık ──────────────────────────────────────────── */

.lead-popup__head {
  margin-bottom: 1.5rem;
  text-align: center;
}

.lead-popup__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lp-terracotta);
}

.lead-popup__title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--lp-espresso);
}

/* ── Form ────────────────────────────────────────────── */

.lead-popup__form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.lead-popup__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lead-popup__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--lp-muted);
}

.lead-popup__field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--lp-line);
  border-radius: 12px;
  background: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--lp-espresso);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-popup__field input::placeholder {
  color: #a8a29e;
}

.lead-popup__field input:focus {
  outline: none;
  border-color: var(--lp-terracotta);
  box-shadow: 0 0 0 3px rgba(193, 90, 52, 0.14);
}

.lead-popup__submit {
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--lp-terracotta), var(--lp-terracotta-dark));
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(193, 90, 52, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.lead-popup__submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(193, 90, 52, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.lead-popup__submit:active {
  transform: translateY(0);
}

.lead-popup__note {
  margin: 0.15rem 0 0;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: var(--lp-muted);
}

/* ── Küçük ekran: alttan açılan sayfa hissi ──────────── */

@media (max-width: 480px) {
  .lead-popup {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .lead-popup__panel {
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding: 2rem 1.25rem 1.5rem;
    transform: translateY(100%);
  }

  .lead-popup.is-open .lead-popup__panel {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-popup,
  .lead-popup__panel,
  .lead-popup__submit {
    transition-duration: 0.01ms;
  }

  .lead-popup__panel {
    transform: none;
  }
}

body.lead-popup-open {
  overflow: hidden;
}
