/* Teklif al sayfası: adım adım form + blok/daire sayısına göre büyüyen bina sahnesi. style.css üzerine eklenir. */
.page-teklif .fab { display: none !important; }
.page-teklif .footer { padding-bottom: 48px; }

.tk { padding: clamp(28px, 5vw, 56px) 0 clamp(64px, 9vw, 104px); }
.tk__wrap {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 64px); align-items: start;
}
.tk__intro { position: sticky; top: 104px; }
.tk__intro h1 {
  margin-top: 16px; font-family: var(--display); font-weight: 700; color: var(--deep);
  font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.06; letter-spacing: -0.028em; text-wrap: balance;
}
.tk__intro .lead { margin-top: 16px; font-size: clamp(1.02rem, 1.6vw, 1.12rem); }
.tk__intro .crumbs ol { margin-bottom: 18px; }

/* ---------- sahne ---------- */
.tk__scene {
  position: relative; margin-top: 32px; height: 300px; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #e6eef9 0%, #f3f7fc 72%);
  box-shadow: inset 0 0 0 1px var(--card-line);
  animation: tkRise .8s var(--spring) both .15s;
}
.tk__cloud {
  position: absolute; height: 26px; border-radius: 999px; background: #fff; opacity: .95;
  animation: tkDrift 34s linear infinite;
}
.tk__cloud::before, .tk__cloud::after { content: ""; position: absolute; bottom: 8px; border-radius: 50%; background: #fff; }
.tk__cloud::before { left: 16%; width: 34px; height: 34px; }
.tk__cloud::after { left: 42%; width: 46px; height: 46px; }
.tk__cloud--1 { top: 46px; left: -20%; width: 110px; }
.tk__cloud--2 { top: 92px; left: -30%; width: 80px; opacity: .7; animation-duration: 46s; animation-delay: -18s; }
@keyframes tkDrift { to { transform: translateX(780px); } }

.tk__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: var(--soft); }
.tk__ground::before {
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 4px; border-radius: 4px; background: #d3e7c0;
}
.tk__tree { position: absolute; bottom: 26px; width: 22px; height: 22px; border-radius: 50%; background: var(--green); }
.tk__tree::after { content: ""; position: absolute; left: 10px; top: 18px; width: 3px; height: 10px; border-radius: 2px; background: #4f7f2c; }
.tk__tree--1 { left: 14px; }
.tk__tree--2 { right: 18px; width: 18px; height: 18px; }

.tk__city {
  position: absolute; left: 44px; right: 44px; bottom: 34px; height: 236px;
  display: flex; align-items: flex-end; justify-content: center; gap: 10px;
}
.bld {
  position: relative; flex: 0 1 var(--w, 62px); min-width: 30px; height: 80px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch;
  padding: 12px 8px 0; border-radius: 12px 12px 3px 3px; background: var(--navy);
  transform-origin: 50% 100%;
  transition: height .75s var(--spring);
  animation: tkBldIn .8s var(--spring) both;
}
.bld:nth-child(even) { background: var(--deep); }
.bld.is-out { animation: tkBldOut .35s ease forwards; }
.bld__win { display: grid; grid-template-columns: repeat(var(--c, 2), 1fr); gap: var(--wg, 5px) 5px; }
.bld__win i { height: var(--wh, 9px); border-radius: 3px; background: rgba(255,255,255,.13); transition: background .35s, box-shadow .35s; }
.bld__win i.on { background: #f3f9ea; box-shadow: 0 0 10px rgba(232,243,220,.55); }
.bld::after { content: ""; display: block; width: 14px; height: 16px; margin: 7px auto 0; border-radius: 7px 7px 0 0; background: var(--green); }
@keyframes tkBldIn { from { transform: scaleY(0); opacity: 0; } }
@keyframes tkBldOut { to { transform: scaleY(0); opacity: 0; } }

.tk__readout {
  position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: #fff; color: var(--deep);
  font-size: .88rem; font-weight: 600; box-shadow: 0 8px 20px -12px rgba(18,40,90,.4);
}
.tk__readout .ico { width: 15px; height: 15px; color: var(--green); }
.tk__more {
  position: absolute; right: 16px; top: 16px; padding: 7px 12px; border-radius: 999px;
  background: var(--deep); color: #fff; font-size: .82rem; font-weight: 600;
  opacity: 0; scale: .8; transition: opacity .3s, scale .4s var(--spring);
}
.tk__more.is-on { opacity: 1; scale: 1; }
.tk__sign {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0; max-width: 80%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: .85rem; color: #3f6b22;
}

/* ---------- kart ---------- */
.tk__card {
  position: relative; background: #fff; border-radius: 32px; padding: clamp(22px, 3.6vw, 40px);
  box-shadow: 0 34px 70px -34px rgba(18,40,90,.28), 0 0 0 1px var(--card-line);
  animation: tkRise .8s var(--spring) both;
}
@keyframes tkRise { from { opacity: 0; transform: translateY(26px) scale(.985); } }

.tk__bar { display: block; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.tk__bar i { display: block; height: 100%; width: 25%; border-radius: inherit; background: var(--green); transition: width .6s var(--spring); }
.tk__steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: .82rem; color: #8a94a6; }
.tk__steps li { transition: color .3s; }
.tk__steps li.is-done { color: var(--green); }
.tk__steps li.is-current { color: var(--deep); font-weight: 600; }

.tk__step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.tk__step.is-active { display: block; animation: tkStepIn .5s var(--spring) both; }
.tk--back .tk__step.is-active { animation-name: tkStepBack; }
@keyframes tkStepIn { from { opacity: 0; transform: translateX(30px); } }
@keyframes tkStepBack { from { opacity: 0; transform: translateX(-30px); } }

.tk__q {
  display: block; float: left; width: 100%; margin: 28px 0 4px; padding: 0;
  font-family: var(--display); font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 1.8rem);
  line-height: 1.15; letter-spacing: -0.018em; color: var(--deep); outline: none;
}
.tk__q + * { clear: both; }
.tk__hint { color: var(--muted); font-size: .95rem; }

.tk__field { display: block; margin-top: 18px; }
.tk__lbl { display: block; margin-bottom: 8px; font-size: .9rem; font-weight: 600; color: var(--deep); }
.tk__lbl small { font-weight: 500; color: #8a94a6; }
.tk__input {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--card-line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 1rem;
  transition: border-color .2s, background .2s, box-shadow .25s;
}
textarea.tk__input { resize: vertical; min-height: 84px; line-height: 1.5; }
.tk__input::placeholder { color: #9aa4b5; }
.tk__input:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(27,58,128,.1); }

.tk__err { display: none; margin-top: 7px; font-size: .86rem; font-weight: 500; color: #b23a3a; }
.is-bad .tk__err { display: block; }
.is-bad .tk__input, .is-bad .tk__count { border-color: #d98c8c; }
.is-bad { animation: tkShake .4s ease; }
@keyframes tkShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* site / apartman seçimi */
.tk__seg {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding: 5px;
  border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--card-line);
}
.tk__seg::before {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px);
  border-radius: 999px; background: var(--navy); transition: translate .45s var(--spring);
}
.tk__seg:has(input[value="Apartman"]:checked)::before { translate: 100% 0; }
.tk__seg label { position: relative; cursor: pointer; }
.tk__seg span { display: block; padding: 10px 26px; text-align: center; font-weight: 600; color: var(--muted); transition: color .3s; }
.tk__seg input:checked + span { color: #fff; }
.tk__seg input:focus-visible + span { outline: 3px solid rgba(106,170,58,.55); outline-offset: 2px; border-radius: 999px; }

/* ilçe çipleri */
.tk__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tk__chips label { cursor: pointer; }
.tk__chips span {
  display: block; padding: 10px 18px; border-radius: 999px; background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--card-line); color: var(--deep); font-weight: 600;
  transition: background .25s, color .25s, box-shadow .25s, translate .35s var(--spring);
}
.tk__chips label:hover span { translate: 0 -2px; }
.tk__chips input:checked + span { color: #fff; box-shadow: none; animation: tkPop .45s var(--spring); }
.tk__chips label:nth-child(1) input:checked + span { background: var(--deep); }
.tk__chips label:nth-child(2) input:checked + span { background: var(--green); }
.tk__chips label:nth-child(3) input:checked + span { background: var(--soft); color: var(--deep); box-shadow: inset 0 0 0 1.5px #cfe4b8; }
.tk__chips label:nth-child(4) input:checked + span { background: var(--navy); }
.tk__chips input:focus-visible + span { outline: 3px solid rgba(106,170,58,.55); outline-offset: 2px; }
@keyframes tkPop { 40% { scale: 1.08; } }

/* sayaçlar */
.tk__counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.tk__counts > :last-child { grid-column: 1 / -1; }
.tk__count {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; padding: 6px;
  border-radius: 18px; border: 1.5px solid var(--card-line); background: var(--bg);
  transition: border-color .2s, box-shadow .25s, background .2s;
}
.tk__count:focus-within { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(27,58,128,.1); }
.tk__count button {
  width: 48px; height: 48px; border: 0; border-radius: 14px; background: #fff; color: var(--navy);
  font: 600 1.5rem/1 var(--display); cursor: pointer; box-shadow: 0 4px 12px -6px rgba(18,40,90,.35);
  transition: translate .3s var(--spring), background .2s;
}
.tk__count button:hover { background: var(--soft); }
.tk__count button:active { translate: 0 2px; }
.tk__count input {
  width: 100%; min-width: 0; border: 0; background: transparent; text-align: center; outline: none;
  font: 700 1.7rem/1.2 var(--display); color: var(--deep); letter-spacing: -0.02em;
}
.tk__count input::placeholder { color: #b6bfcd; font-weight: 600; }
.tk__count input.bump { animation: tkBump .35s var(--spring); }
@keyframes tkBump { 40% { scale: 1.18; } }

/* paket seçenekleri */
.tk__opts { display: grid; gap: 10px; margin-top: 18px; }
.opt { display: block; cursor: pointer; }
.opt__box {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--card-line);
  transition: box-shadow .25s, background .25s, translate .35s var(--spring);
}
.opt:hover .opt__box { translate: 0 -2px; }
.opt__dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px #c5cedb; transition: box-shadow .3s var(--spring); }
.opt--check .opt__dot { border-radius: 7px; position: relative; }
.opt__t { display: block; font-family: var(--display); font-weight: 700; color: var(--deep); font-size: 1.05rem; }
.opt__d { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.opt__m { display: flex; gap: 4px; }
.opt__m i { width: 7px; height: 20px; border-radius: 4px; background: var(--line); }
.opt__m i.on { background: var(--green); }
.opt__tag { padding: 4px 10px; border-radius: 999px; background: var(--soft); color: #3f6b22; font-size: .78rem; font-weight: 700; }
.opt input:checked + .opt__box { background: #f4f7fd; box-shadow: inset 0 0 0 2px var(--navy); }
.opt input:checked + .opt__box .opt__dot { box-shadow: inset 0 0 0 7px var(--navy); }
.opt--check input:checked + .opt__box { background: #f5faef; box-shadow: inset 0 0 0 2px var(--green); }
.opt--check input:checked + .opt__box .opt__dot { box-shadow: inset 0 0 0 11px var(--green); }
.opt--check input:checked + .opt__box .opt__dot::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; rotate: 45deg;
}
.opt input:focus-visible + .opt__box { outline: 3px solid rgba(106,170,58,.55); outline-offset: 2px; }
.tk__sep { margin: 18px 0 2px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }

/* özet ve gönderim */
.tk__sum { margin-top: 18px; border-top: 1px solid var(--card-line); }
.tk__sum > div { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--card-line); }
.tk__sum dt { color: var(--muted); font-size: .88rem; }
.tk__sum dd { margin: 0; color: var(--deep); font-weight: 600; overflow-wrap: anywhere; }
.tk__sum dd small { display: block; color: var(--muted); font-weight: 500; }
.tk__edit { border: 0; background: none; padding: 2px 0; color: var(--navy); font: 600 .85rem var(--body); cursor: pointer; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }
.tk__send { display: grid; gap: 10px; margin-top: 24px; }
.tk__send .btn { width: 100%; }
.tk__note { margin-top: 12px; color: var(--muted); font-size: .88rem; text-align: center; }
.tk__status { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fbeeee; color: #8d2f2f; font-size: .92rem; }

button.btn { border: 0; cursor: pointer; }
button.btn:disabled { opacity: .65; cursor: progress; translate: none; }

.tk__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.tk__back {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none;
  color: var(--muted); font: 600 1rem var(--body); cursor: pointer; transition: color .2s;
}
.tk__back:hover { color: var(--navy); }
.tk__back .ico { width: 16px; height: 16px; rotate: 180deg; }
.tk__back[hidden], .tk__next[hidden] { display: none; }
.tk__next { margin-left: auto; }
.tk__next .ico { width: 18px; height: 18px; transition: translate .35s var(--spring); }
.tk__next:hover .ico { translate: 3px 0; }

/* bitti */
.tk__done { display: none; text-align: center; padding: 18px 0 6px; }
.is-done .tk__done { display: block; animation: tkStepIn .6s var(--spring) both; }
.is-done .tk__progress, .is-done .tk__step, .is-done .tk__nav { display: none; }
.tk__tick { width: 84px; height: 84px; margin: 0 auto 18px; }
.tk__tick circle { fill: var(--soft); transform-origin: center; animation: tkPop .6s var(--spring) both; }
.tk__tick path { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tkDraw .5s ease forwards .3s; }
@keyframes tkDraw { to { stroke-dashoffset: 0; } }
.tk__done h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--deep); text-wrap: balance; }
.tk__done p { margin: 10px auto 0; max-width: 30em; color: var(--muted); }
.tk__done .btn { margin-top: 22px; }

@media (max-width: 860px) {
  .tk__wrap { grid-template-columns: 1fr; }
  .tk__intro { position: static; }
  .tk__intro h1 { margin-top: 12px; }
  .tk__intro .lead { margin-top: 10px; font-size: 1rem; }
  .tk__scene { height: 180px; margin-top: 18px; border-radius: 24px; }
  .tk__city { left: 30px; right: 30px; height: 140px; gap: 7px; }
  .bld { padding: 9px 6px 0; }
  .bld__win { column-gap: 3px; }
  .bld__win i { border-radius: 2px; }
  .bld::after { width: 10px; height: 11px; margin-top: 5px; }
  .tk__card { border-radius: 26px; }
}
@media (max-width: 520px) {
  .tk__counts { grid-template-columns: 1fr; }
  .tk__steps { font-size: .74rem; }
  .tk__sum > div { grid-template-columns: 1fr auto; }
  .tk__sum dt { grid-column: 1 / -1; }
  .tk__seg span { padding: 10px 20px; }
}
