/* ==========================================================================
   Ücretsiz Keşif — 3 adımlı popup form (görselli bölünmüş modal)
   Solda seçime göre değişen fotoğraf + adımlar, sağda form.
   ========================================================================== */
html.kf-lock { overflow: hidden; }
.kf { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; }
.kf[hidden] { display: none; }
.kf__overlay { position: absolute; inset: 0; background: rgba(8, 11, 9, .46); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.kf.is-open .kf__overlay { opacity: 1; }
.kf__panel {
  position: relative; display: flex; width: min(100%, 1000px); min-height: min(600px, calc(100svh - 48px)); max-height: calc(100svh - 48px);
  overflow: hidden; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 50px 100px -40px rgba(8, 11, 9, .6);
  opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .4s var(--ease), transform .55s var(--ease-out);
}
.kf.is-open .kf__panel { opacity: 1; transform: none; }

/* sol: fotoğraf + adımlar */
.kf__aside { position: relative; flex: none; width: 40%; overflow: hidden; color: var(--white); background: var(--green); }
.kf__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.4s var(--ease-out); }
.kf__img.is-in { opacity: 1; transform: none; }
.kf__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 30, 14, .55) 0%, rgba(6, 30, 14, .08) 40%, rgba(6, 30, 14, .72) 100%); }
.kf__aside-in { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: 30px; }
.kf__logo svg { width: 150px; height: auto; }
.kf__steps { display: grid; gap: 6px; margin: auto 0 0; padding: 0; list-style: none; }
.kf__steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .62); transition: color .35s var(--ease); }
.kf__steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); font-size: 12px; transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease); }
.kf__steps li.is-on { color: var(--white); }
.kf__steps li.is-on span { border-color: transparent; background: var(--lime); color: var(--ink); }
.kf__steps li.is-done span { border-color: transparent; background: rgba(255, 255, 255, .2); }
.kf__aside-note { margin-top: 18px; font-size: 13px; color: rgba(255, 255, 255, .72); }

/* sağ: form */
.kf__main { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.kf__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 24px 36px 18px; }
.kf__count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.kf__count b { font-weight: 500; color: var(--ink); }
.kf.is-done .kf__count { visibility: hidden; }
.kf__x { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); transition: background-color .25s var(--ease); }
.kf__x:hover { background: var(--paper); }
.kf__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.kf__bar i { position: absolute; inset: 0; background: var(--lime); transform: scaleX(.25); transform-origin: left; transition: transform .6s var(--ease-out); }

.kf__form { flex: 1; min-height: 0; overflow-y: auto; padding: 32px 36px 8px; overscroll-behavior: contain; }
.kf__step { display: none; }
.kf__step.is-active { display: block; animation: kf-in .55s var(--ease-out) both; }
.kf__step.is-back { animation-name: kf-in-back; }
@keyframes kf-in { from { opacity: 0; transform: translateX(22px); } }
@keyframes kf-in-back { from { opacity: 0; transform: translateX(-22px); } }
.kf__q { font-size: 30px; font-weight: 500; line-height: 1.15; letter-spacing: -.022em; }

/* seçenek kartları */
.kf__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.kf__opt { position: relative; display: block; cursor: pointer; }
.kf__opt input { position: absolute; opacity: 0; pointer-events: none; }
.kf__box { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 14.5px; transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease); }
.kf__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grey); color: var(--green); transition: background-color .25s var(--ease), color .25s var(--ease); }
.kf__lbl { flex: 1; line-height: 1.3; }
.kf__tick { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); color: transparent; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.kf__opt:hover .kf__box { background: #f7faf0; }
.kf__opt input:checked + .kf__box { border-color: transparent; background: #eef6dc; color: var(--green); }
.kf__opt input:checked + .kf__box .kf__ico { background: var(--green); color: var(--lime); }
.kf__opt input:checked + .kf__box .kf__tick { border-color: transparent; background: var(--green); color: var(--white); }
.kf__opt input:focus-visible + .kf__box { outline: 2px solid var(--focus); outline-offset: 2px; }

/* iletişim alanları */
.kf__fields { display: grid; gap: 16px; margin-top: 24px; }
.kf__field { position: relative; display: grid; gap: 6px; }
.kf__field > span { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kf__field input, .kf__field select { width: 100%; height: 50px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: none; outline: 0; font: inherit; font-size: 18px; color: var(--ink); transition: border-color .3s var(--ease); }
.kf__field input:focus, .kf__field select:focus { border-color: var(--green); }
.kf__field input::placeholder { color: #aab0ab; }
.kf__field select { -webkit-appearance: none; appearance: none; padding-right: 28px; cursor: pointer; }
.kf__field select:invalid { color: #aab0ab; }
.kf__field--select .ico { position: absolute; right: 4px; bottom: 17px; color: var(--muted); pointer-events: none; }
.kf__legal { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* özet */
.kf__done-ico { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.kf__done-no { display: none; }
.kf.is-unsaved .kf__done-ok { display: none; }
.kf.is-unsaved .kf__done-no { display: grid; }
.kf.is-unsaved .kf__done-ico { background: #f3e3c4; color: #6b4300; }
.kf__done .kf__q { margin-top: 18px; }
.kf__done-lead { margin-top: 8px; max-width: 460px; font-size: 14.5px; color: var(--ink-2); }
.kf__sum { display: grid; margin: 22px 0 0; border-top: 1px solid var(--line); }
.kf__sum div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kf__sum dt { color: var(--muted); }
.kf__sum dd { margin: 0; }
.kf__done-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; padding-bottom: 18px; }

/* alt çubuk */
.kf__foot { display: flex; align-items: center; gap: 14px; padding: 16px 36px 26px; }
.kf__back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 4px; font-size: 14px; color: var(--ink-2); transition: color .25s var(--ease); }
.kf__back:hover { color: var(--green); }
.kf.is-first .kf__back { visibility: hidden; }
.kf__err { flex: 1; font-size: 13px; color: #b23a2a; text-align: right; }
.kf__next { flex: none; margin-left: auto; }
.kf.is-done .kf__next, .kf.is-done .kf__err { display: none; }
.kf.is-shake .kf__panel { animation: kf-shake .4s var(--ease); }
@keyframes kf-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- mobil: alttan açılan sayfa, görsel üstte ince şerit ---------- */
@media (max-width: 760px) {
  .kf { padding: 0; place-items: end stretch; }
  .kf__panel { flex-direction: column; width: 100%; min-height: 0; max-height: 92svh; border-radius: 18px 18px 0 0; transform: translateY(40px); }
  .kf__aside { width: 100%; height: 120px; }
  .kf__aside-in { padding: 18px; }
  .kf__steps, .kf__aside-note { display: none; }
  .kf__logo svg { width: 120px; }
  .kf__head { padding: 16px 18px 12px; }
  .kf__form { padding: 20px 18px 6px; }
  .kf__foot { padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); }
  .kf__q { font-size: 23px; }
  .kf__opts { grid-template-columns: 1fr; gap: 6px; margin-top: 18px; }
  .kf__box { min-height: 54px; }
  .kf__err { position: absolute; left: 18px; right: 18px; bottom: calc(66px + env(safe-area-inset-bottom)); text-align: left; }
  .kf__sum div { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .kf__panel, .kf__overlay, .kf__step.is-active, .kf__img { animation: none !important; transition: none !important; }
}

/* KVKK onay kutusu (keşif penceresi + iletişim formu) ve görünmez bot tuzağı */
.consent { position: relative; display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; }
.consent__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(18, 22, 19, .22); color: transparent; transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.consent input:checked + .consent__box { background: var(--green); box-shadow: none; color: var(--white); }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.consent a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-err .consent__box { box-shadow: inset 0 0 0 1px #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
