/*!
 * Novexdent lead form — Typeform "ND Lead Generation Form (Light version)" klonu
 * -----------------------------------------------------------------------------
 * Tema degerleri Typeform'un kendi tanimindan birebir alindi:
 *   question #032F6E · answer #212121 · button #032F6E · buttonContent #FFF
 *   font Poppins · rounded_corners large · progress_bar proportion
 * Overlay olculeri Webflow CSS'inden (.lead-form-overlay / .code-embed-3) alindi.
 */

:root {
  --nlf-question: #032f6e;
  --nlf-answer: #212121;
  --nlf-button: #032f6e;
  --nlf-button-text: #fff;
  --nlf-bg: #fff;
  --nlf-line: #d7dce5;
  --nlf-error: #ae0000;
  --nlf-radius: 12px;
}

/* ---------- overlay (Webflow .lead-form-overlay ile ayni) ---------- */

.nlf-overlay {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background-color: #032f6eb8;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  display: none;
  position: fixed;
  inset: 0;
  z-index: 101;
  opacity: 0;
  transition: opacity .12s linear;
}

.nlf-overlay.is-open {
  display: flex;
  opacity: 1;
}

/* ---------- kart (Webflow .code-embed-3 ile ayni) ---------- */

.nlf-card {
  position: relative;
  background-color: var(--nlf-bg);
  border-radius: 24px;
  width: 70vw;
  height: 70vh;
  padding: 24px;
  box-shadow: 0 0 24px #0003;
  display: flex;
  flex-direction: column;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--nlf-answer);
  overflow: hidden;
}

/* ---------- ilerleme cubugu (proportion) ---------- */

.nlf-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #eef1f6;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.nlf-progress-bar {
  height: 100%;
  width: 0;
  background: var(--nlf-question);
  transition: width .3s ease;
}

/* ---------- kapatma (orijinalde yok — eklendi) ---------- */

.nlf-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f2f4f8;
  color: var(--nlf-question);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s;
  z-index: 2;
}

.nlf-close:hover { background: #e4e8f0; }

/* ---------- adimlar ---------- */

.nlf-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* soru adimlarini tasiyan <form>: yalnizca soru ekranindayken akar */
.nlf-form {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.nlf-form.is-active { display: flex; }

.nlf-step {
  display: none;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding: 34px clamp(16px, 4vw, 64px) 8px;
}

.nlf-step.is-active {
  display: flex;
  animation: nlf-in .22s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes nlf-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* tek soru ekrani: soru dikeyde ortalanir (Typeform gibi) */
.nlf-step[data-step="q"] { justify-content: center; }

.nlf-step-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;              /* Typeform gibi: blok ekranin ortasinda */
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nlf-q-desc {
  color: #5a6475;
  font-size: clamp(13px, 1vw, 15px);
  margin: -8px 0 0;
}

.nlf-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.nlf-logo svg { width: 132px; height: auto; }
.nlf-logo svg path { fill: var(--nlf-question); }

/* welcome / thankyou — ortalanmis, x-small */

.nlf-step--centered {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.nlf-step--centered .nlf-title {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 600;
}

.nlf-step--centered .nlf-desc { max-width: 46ch; }

.nlf-title {
  color: var(--nlf-question);
  font-size: clamp(19px, 1.7vw, 26px);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 8px;
}

.nlf-desc {
  color: #5a6475;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.6;
  margin: 0 0 24px;
  white-space: pre-line;
}

.nlf-desc em { font-style: normal; font-weight: 600; color: var(--nlf-answer); }

/* ---------- sorular ---------- */

.nlf-questions {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.nlf-q { display: flex; flex-direction: column; gap: 10px; }

.nlf-q-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--nlf-question);
  font-size: clamp(19px, 1.9vw, 27px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.01em;
}

.nlf-q-num {
  color: var(--nlf-question);
  opacity: .5;
  font-size: .82em;
  font-weight: 500;
  white-space: nowrap;
}

.nlf-q-num::after { content: " \2192"; }

.nlf-req { color: var(--nlf-error); }

/* alt alan izgarasi (contact_info) */

.nlf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.nlf-field { display: flex; flex-direction: column; gap: 5px; }

.nlf-field-label {
  font-size: 12px;
  font-weight: 500;
  color: #5a6475;
  letter-spacing: .02em;
}

/* ---------- girdiler (Typeform: alt cizgi stili) ---------- */

.nlf-input {
  font-family: inherit;
  font-size: clamp(15px, 1.25vw, 18px);
  color: var(--nlf-answer);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--nlf-line);
  border-radius: 0;
  padding: 7px 2px;
  width: 100%;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.nlf-input::placeholder { color: #aab2c0; }

.nlf-input:focus {
  outline: 0;
  border-bottom-color: var(--nlf-question);
}

.nlf-input[aria-invalid="true"] { border-bottom-color: var(--nlf-error); }

/* telefon: ulke kodu + numara */

/* intl-tel-input'un bayrakli secicisi bizim alt-cizgi stiliyle uyumlu dursun */
.nlf-field .iti { width: 100%; }
.nlf-field .iti__selected-dial-code { font-size: inherit; color: var(--nlf-answer); }
.nlf-field .iti--separate-dial-code .iti__selected-flag { background: transparent; }

/* dogum tarihi: MM / DD / YYYY */

.nlf-date { display: flex; align-items: flex-end; gap: 6px; }

.nlf-date .nlf-input { width: 3.4em; text-align: center; }
.nlf-date .nlf-input--year { width: 4.6em; }
.nlf-date-sep { color: #aab2c0; padding-bottom: 8px; }

/* ---------- coktan secmeli (klavye ipucu ile) ---------- */

.nlf-choices { display: flex; flex-direction: column; gap: 8px; }

.nlf-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--nlf-line);
  border-radius: var(--nlf-radius);
  padding: 13px 16px;
  cursor: pointer;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--nlf-answer);
  background: #fff;
  transition: border-color .15s, background-color .15s;
  user-select: none;
}

.nlf-choice:hover { border-color: #9fb0ca; background: #f7f9fc; }

.nlf-choice input { position: absolute; opacity: 0; pointer-events: none; }

.nlf-choice-key {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid var(--nlf-line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--nlf-question);
  background: #fff;
}

.nlf-choice.is-selected {
  border-color: var(--nlf-question);
  background: #f0f4fa;
}

.nlf-choice.is-selected .nlf-choice-key {
  background: var(--nlf-question);
  border-color: var(--nlf-question);
  color: #fff;
}

.nlf-choices[aria-invalid="true"] .nlf-choice { border-color: var(--nlf-error); }

/* ---------- hata metni ---------- */

.nlf-err {
  color: var(--nlf-error);
  font-size: 12px;
  min-height: 1em;
  display: none;
}

.nlf-err.is-shown { display: block; }

/* ---------- butonlar ---------- */

.nlf-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px clamp(16px, 4vw, 64px) 6px;
}

.nlf-step--centered .nlf-actions { justify-content: center; padding-left: 0; padding-right: 0; }

.nlf-step[data-step="q"] .nlf-actions {
  width: 100%;
  max-width: 640px;
  margin: 12px auto 0;
  padding-left: 0;
  padding-right: 0;
}

.nlf-btn {
  font-family: inherit;
  background-color: var(--nlf-button);
  color: var(--nlf-button-text);
  border: 0;
  border-radius: 100px;
  padding: 14px 30px;
  font-size: clamp(13px, .95vw, 15px);
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
}

.nlf-btn:hover { opacity: .9; }
.nlf-btn:active { transform: translateY(1px); }
.nlf-btn[disabled] { opacity: .55; cursor: not-allowed; }

.nlf-hint { font-size: 12px; color: #8a93a3; }
.nlf-hint strong { font-weight: 600; color: #5a6475; }

.nlf-back {
  font-family: inherit;
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--nlf-line);
  background: #fff;
  color: var(--nlf-question);
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color .15s, background-color .15s;
}

.nlf-back:hover { border-color: var(--nlf-question); background: #f3f6fb; }

.nlf-skip {
  font-family: inherit;
  background: none;
  border: 0;
  color: #8a93a3;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 2px;
  margin-left: auto;
}

.nlf-skip:hover { color: var(--nlf-question); }

/* ---------- mobil (Webflow'daki breakpoint ile ayni) ---------- */

@media (max-width: 767px) {
  .nlf-card {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    padding: 0;
  }

  .nlf-progress { border-radius: 0; }
  .nlf-close { top: 12px; right: 12px; }
  .nlf-step { padding: 56px 20px 8px; }
  .nlf-actions { padding: 18px 20px 24px; }
  .nlf-step[data-step="q"] .nlf-actions { padding: 14px 0 20px; }
  .nlf-grid { grid-template-columns: minmax(0, 1fr); }
  .nlf-btn { width: 100%; text-align: center; }

  /* mobilde klavye ipucunun karsiligi yok; buton genisligi kazansin */
  .nlf-hint { display: none; }
  .nlf-step[data-step="q"] .nlf-actions { gap: 10px; }
  .nlf-step[data-step="q"] .nlf-btn { width: auto; flex: 1 1 auto; }
  .nlf-back { flex: 0 0 auto; }
  .nlf-skip { margin-left: 0; flex: 0 0 auto; }
  .nlf-step--centered .nlf-actions .nlf-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .nlf-overlay, .nlf-progress-bar, .nlf-btn { transition: none; }
  .nlf-step.is-active { animation: none; }
}


/* ---------- sayfa icine gomulu mod ---------- */

.nlf-card--inline {
  width: 100%;
  height: auto;
  min-height: 420px;
  border-radius: 16px;
  box-shadow: 0 1px 3px #0000000f;
  border: 1px solid #eef1f6;
}

.nlf-card--inline .nlf-progress { border-radius: 16px 16px 0 0; }

.nlf-card--inline .nlf-step {
  padding: 30px clamp(16px, 3vw, 40px) 10px;
  justify-content: flex-start;
}

.nlf-card--inline .nlf-step-body,
.nlf-card--inline .nlf-step[data-step="q"] .nlf-actions { max-width: none; }

.nlf-card--inline .nlf-step--centered { justify-content: center; }

/* tek alanli soru (welcome formunda ad / telefon / e-posta ayri adimlarda) */
.nlf-grid--single { grid-template-columns: minmax(0, 1fr); max-width: 420px; }

@media (max-width: 767px) {
  .nlf-card--inline { min-height: 360px; border-radius: 12px; }
  .nlf-card--inline .nlf-step { padding: 24px 18px 10px; }
}
