/*
 * TEKLİF ROBOTU (24 Kasım 2026) — ticamer.com ana sayfası, sağ alt köşe.
 * Sitenin kendi değişkenlerini (site.css :root) kullanır; site.css yoksa yedek değerler devreye girer.
 * Tüm sınıflar "tq-" önekli; sitenin stillerine dokunmaz. Sunucu: src/seo/static-site.ts (TEKLIF_ROBOTU_SAYFALARI).
 */
.tq-root {
  --tq-navy: var(--navy, #0B1F3A);
  --tq-navy-3: var(--navy-3, #1B3A66);
  --tq-ink: var(--ink, #10203A);
  --tq-ink-2: var(--ink-2, #3A4A62);
  --tq-muted: var(--muted, #5C6A80);
  --tq-line: var(--line, #E3E8F0);
  --tq-bg-2: var(--bg-2, #F5F7FB);
  --tq-orange: var(--orange, #F26B1D);
  --tq-orange-dk: var(--orange-dk, #D65A12);
  --tq-orange-soft: var(--orange-soft, #FFF1E8);
  --tq-orange-text: var(--orange-text, #C4540F);
  --tq-green: var(--green, #1B8A5A);
  --tq-green-soft: var(--green-soft, #E6F5EE);
  --tq-err: var(--err, #C0392B);
  --tq-f: var(--f, "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  --tq-mono: var(--f-mono, "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace);
  --tq-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--tq-f);
  color: var(--tq-ink);
}
.tq-root *, .tq-root *::before, .tq-root *::after { box-sizing: border-box; }

/* ---------- Sağ alt düğme ---------- */
.tq-launch {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: #fff; color: var(--tq-ink); border: 1px solid var(--tq-line);
  box-shadow: 0 2px 6px rgba(16, 32, 58, .08), 0 18px 44px rgba(16, 32, 58, .18);
  font: inherit; text-align: left; cursor: pointer;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: opacity .5s var(--tq-ease), transform .5s var(--tq-ease), box-shadow .2s, border-color .2s;
}
.tq-launch.is-in { opacity: 1; transform: none; }
.tq-launch:hover { border-color: #F7C8A8; box-shadow: 0 2px 6px rgba(16, 32, 58, .08), 0 22px 52px rgba(16, 32, 58, .22); transform: translateY(-2px); }
.tq-launch:focus-visible { outline: 3px solid var(--tq-orange); outline-offset: 3px; }
.tq-launch-ico {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #FF8A3D 0%, var(--tq-orange) 55%, var(--tq-orange-dk) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.tq-launch-ico svg { width: 22px; height: 22px; }
/* Yumuşak dikkat halkası: kısa aralıklarla, göz yormadan */
.tq-launch-ico::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--tq-orange); opacity: 0;
  animation: tq-ring 3.6s var(--tq-ease) 2.4s infinite;
}
@keyframes tq-ring { 0% { opacity: .55; transform: scale(.9); } 45%, 100% { opacity: 0; transform: scale(1.35); } }
.tq-launch-txt { display: flex; flex-direction: column; line-height: 1.2; }
.tq-launch-txt small { font-size: 12px; font-weight: 600; color: var(--tq-muted); letter-spacing: .01em; }
.tq-launch-txt small b { color: var(--tq-green); font-weight: 700; }
.tq-launch-txt strong { font-size: 15px; font-weight: 800; color: var(--tq-ink); letter-spacing: -.01em; }
.tq-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--tq-green); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px var(--tq-green-soft); }

/* Mobilde sitenin alt çubuğunun (.m-cta) üstünde, daha kompakt */
@media (max-width: 760px) {
  .tq-launch { right: 12px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); padding: 6px 16px 6px 6px; gap: 10px; }
  .tq-launch-ico { width: 38px; height: 38px; }
  .tq-launch-ico svg { width: 19px; height: 19px; }
  .tq-launch-txt small { display: none; }
  .tq-launch-txt strong { font-size: 14px; }
}

/* ---------- Pencere ---------- */
.tq-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(8, 20, 40, .52);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .28s var(--tq-ease);
}
.tq-overlay.is-open { opacity: 1; }
.tq-dialog {
  position: relative; width: 100%; max-width: 580px; max-height: min(860px, calc(100vh - 48px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 22px;
  box-shadow: 0 2px 6px rgba(16, 32, 58, .08), 0 40px 90px rgba(8, 20, 40, .35);
  transform: translateY(18px) scale(.985); transition: transform .38s var(--tq-ease);
}
.tq-overlay.is-open .tq-dialog { transform: none; }

/* Başlık bandı */
.tq-head {
  position: relative; flex: none; padding: 22px 26px 22px; color: #F2F5FA; overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(242, 107, 29, .28) 0%, rgba(242, 107, 29, 0) 52%),
    linear-gradient(135deg, var(--tq-navy) 0%, var(--tq-navy-3) 100%);
}
/* İnce raf çizgisi deseni */
.tq-head::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%); mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
.tq-head > * { position: relative; }
.tq-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tq-brand svg { height: 20px; width: auto; color: #fff; }
.tq-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; color: #FFD9C2; background: rgba(242, 107, 29, .16); border: 1px solid rgba(242, 107, 29, .35);
}
.tq-badge i { width: 6px; height: 6px; border-radius: 50%; background: #FF9A5C; box-shadow: 0 0 0 3px rgba(255, 154, 92, .2); }
.tq-title { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.tq-sub { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: #B7C3D4; max-width: 46ch; }
.tq-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  color: #DCE4EF; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  transition: background-color .15s, color .15s;
}
.tq-close:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.tq-close:focus-visible { outline: 3px solid var(--tq-orange); outline-offset: 2px; }
.tq-close svg { width: 18px; height: 18px; }

/* İlerleme */
.tq-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tq-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.tq-bar > i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #FF9A5C, var(--tq-orange)); transition: width .45s var(--tq-ease); }
.tq-progress span { font-family: var(--tq-mono); font-size: 12.5px; color: #DCE4EF; white-space: nowrap; }

/* Gövde */
.tq-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 26px 8px; }
.tq-q { margin: 0; padding: 20px 0 4px; border: 0; min-width: 0; }
.tq-q + .tq-q { border-top: 1px solid var(--tq-line); }
/* legend kenar çizgisinin içine oturmasın: float ile normal akışa alınır */
.tq-legend { float: left; width: 100%; display: flex; align-items: baseline; gap: 10px; padding: 0; margin: 0 0 12px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--tq-ink); }
.tq-legend .n {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; transform: translateY(-1px);
  font-family: var(--tq-mono); font-size: 12px; font-weight: 500; color: var(--tq-ink-2); background: var(--tq-bg-2); border: 1px solid var(--tq-line);
  transition: background-color .2s, color .2s, border-color .2s;
}
.tq-q.is-done .tq-legend .n { background: var(--tq-green); border-color: var(--tq-green); color: #fff; }
.tq-hint { font-size: 13px; font-weight: 600; color: var(--tq-muted); }
.tq-legend + * { clear: both; }
.tq-q > .tq-err { margin-top: 8px; }
.tq-q.is-bad .tq-card { border-color: #F0B9B1; }

/* Seçenek kartları (radyo düğmesi gerçek input: klavye ve ekran okuyucu çalışır) */
.tq-opts { display: grid; gap: 8px; }
.tq-opts.is-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tq-opt { position: relative; display: block; cursor: pointer; }
.tq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tq-card {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 10px 14px 10px 12px;
  border: 1.5px solid var(--tq-line); border-radius: 14px; background: #fff;
  transition: border-color .15s, background-color .15s, box-shadow .15s, transform .15s;
}
.tq-opt:hover .tq-card { border-color: #C9D3E1; background: #FBFCFE; }
.tq-opt input:focus-visible + .tq-card { outline: 3px solid var(--tq-orange); outline-offset: 2px; }
.tq-opt input:checked + .tq-card { border-color: var(--tq-orange); background: var(--tq-orange-soft); box-shadow: 0 0 0 3px rgba(242, 107, 29, .12); }
.tq-ic {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--tq-navy-3); background: var(--tq-bg-2); transition: background-color .15s, color .15s;
}
.tq-ic svg { width: 18px; height: 18px; }
.tq-opt input:checked + .tq-card .tq-ic { background: #fff; color: var(--tq-orange-text); }
.tq-lbl { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.tq-lbl b { font-size: 15px; font-weight: 700; color: var(--tq-ink); }
.tq-lbl small { font-size: 12.5px; color: var(--tq-muted); margin-top: 2px; }
.tq-radio {
  flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C3CCDA; display: grid; place-items: center;
  transition: border-color .15s, background-color .15s;
}
.tq-radio svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .2s var(--tq-ease); }
.tq-opt input:checked + .tq-card .tq-radio { border-color: var(--tq-orange); background: var(--tq-orange); }
.tq-opt input:checked + .tq-card .tq-radio svg { opacity: 1; transform: none; }

/* Hacim: kısa kutular */
.tq-opts.is-grid .tq-card { flex-direction: column; justify-content: center; gap: 2px; min-height: 68px; padding: 10px 6px; text-align: center; }
.tq-vol { font-family: var(--tq-mono); font-size: 15px; font-weight: 500; color: var(--tq-ink); letter-spacing: -.01em; }
.tq-vol-u { font-size: 11.5px; font-weight: 600; color: var(--tq-muted); }
.tq-opts.is-grid input:checked + .tq-card .tq-vol { color: var(--tq-orange-text); }

/* İletişim alanları: yüzen etiket */
.tq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tq-field { position: relative; display: block; }
.tq-field.is-wide { grid-column: 1 / -1; }
.tq-field input {
  width: 100%; height: 58px; padding: 22px 42px 6px 14px; border-radius: 14px;
  border: 1.5px solid var(--tq-line); background: #fff; color: var(--tq-ink);
  font: 600 15.5px/1.2 var(--tq-f); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.tq-field input:hover { border-color: #C9D3E1; }
.tq-field input:focus { outline: none; border-color: var(--tq-navy-3); box-shadow: 0 0 0 3px rgba(27, 58, 102, .12); }
.tq-field span {
  position: absolute; left: 15px; top: 19px; font-size: 15px; font-weight: 600; color: var(--tq-muted); pointer-events: none;
  transform-origin: left top; transition: transform .16s var(--tq-ease), color .16s;
}
.tq-field input:focus + span, .tq-field input:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.78); }
.tq-field input:focus + span { color: var(--tq-navy-3); }
.tq-field em { font-style: normal; font-weight: 600; color: #98A4B5; }
.tq-ok {
  position: absolute; right: 14px; top: 19px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tq-green); color: #fff; opacity: 0; transform: scale(.5); transition: opacity .18s, transform .22s var(--tq-ease);
}
.tq-ok svg { width: 12px; height: 12px; }
.tq-field.is-valid .tq-ok { opacity: 1; transform: none; }
.tq-field.is-bad input { border-color: var(--tq-err); }
.tq-err { display: none; margin: 6px 2px 0; font-size: 12.5px; font-weight: 600; color: var(--tq-err); }
.tq-field.is-bad .tq-err, .tq-q.is-bad > .tq-err { display: block; }
.tq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.tq-consent { margin: 16px 0 4px; font-size: 12.5px; line-height: 1.55; color: var(--tq-muted); }
.tq-consent a { color: var(--tq-ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.tq-consent a:hover { color: var(--tq-orange-text); }

/* Alt bant: gönder */
.tq-foot { flex: none; padding: 14px 26px 18px; border-top: 1px solid var(--tq-line); background: linear-gradient(#fff, #FBFCFE); }
.tq-alert { display: none; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--tq-err); background: #FDEDEB; border: 1px solid #F5C6C0; }
.tq-alert.is-on { display: block; }
.tq-submit {
  width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 16px/1 var(--tq-f); letter-spacing: -.01em; color: #fff;
  background: linear-gradient(180deg, #F57A30 0%, var(--tq-orange) 60%, var(--tq-orange-dk) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px rgba(242, 107, 29, .32);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.tq-submit:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 14px 30px rgba(242, 107, 29, .38); }
.tq-submit:focus-visible { outline: 3px solid var(--tq-navy-3); outline-offset: 3px; }
.tq-submit:disabled { cursor: default; filter: saturate(.7); transform: none; }
.tq-submit svg { width: 18px; height: 18px; transition: transform .2s var(--tq-ease); }
.tq-submit:hover svg { transform: translateX(3px); }
.tq-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: tq-spin .7s linear infinite; }
@keyframes tq-spin { to { transform: rotate(360deg); } }
.tq-promise { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--tq-muted); }
.tq-promise span { display: inline-flex; align-items: center; gap: 6px; }
.tq-promise svg { width: 14px; height: 14px; color: var(--tq-green); }

/* Teşekkür */
.tq-done { flex: 1; overflow-y: auto; padding: 36px 28px 30px; text-align: center; }
.tq-check { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--tq-green-soft); }
.tq-check svg { width: 40px; height: 40px; color: var(--tq-green); }
.tq-check path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tq-draw .5s var(--tq-ease) .15s forwards; }
@keyframes tq-draw { to { stroke-dashoffset: 0; } }
.tq-done h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--tq-ink); }
.tq-done p { margin: 10px auto 0; max-width: 40ch; font-size: 15px; line-height: 1.6; color: var(--tq-ink-2); }
.tq-recap { margin: 20px auto 0; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: var(--tq-bg-2); border: 1px solid var(--tq-line); text-align: left; font-size: 13.5px; }
.tq-recap div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.tq-recap div + div { border-top: 1px dashed var(--tq-line); }
.tq-recap dt { color: var(--tq-muted); font-weight: 600; }
.tq-recap dd { margin: 0; color: var(--tq-ink); font-weight: 700; text-align: right; }
.tq-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.tq-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 12px;
  font: 700 15px/1 var(--tq-f); text-decoration: none; cursor: pointer; border: 1.5px solid var(--tq-line); background: #fff; color: var(--tq-ink);
  transition: border-color .15s, background-color .15s;
}
.tq-btn:hover { border-color: #C9D3E1; background: #FBFCFE; color: var(--tq-ink); }
.tq-btn.is-wa { border-color: #1FAF5A; background: #1FAF5A; color: #fff; }
.tq-btn.is-wa:hover { background: #189A4E; border-color: #189A4E; color: #fff; }
.tq-btn svg { width: 18px; height: 18px; }

/* Telefon: alttan açılan sayfa */
@media (max-width: 600px) {
  .tq-overlay { align-items: flex-end; padding: 0; }
  .tq-dialog { max-width: none; max-height: calc(100dvh - 16px); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .tq-head { padding: 18px 18px 18px; }
  .tq-title { font-size: 21px; padding-right: 44px; }
  .tq-sub { font-size: 14px; }
  .tq-close { top: 12px; right: 12px; }
  .tq-body { padding: 4px 18px 8px; }
  .tq-opts.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tq-fields { grid-template-columns: 1fr; }
  .tq-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); }
}

body.tq-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .tq-launch, .tq-overlay, .tq-dialog, .tq-bar > i, .tq-card, .tq-field span, .tq-ok, .tq-radio svg { transition: none; }
  .tq-launch-ico::after, .tq-check path { animation: none; }
  .tq-check path { stroke-dashoffset: 0; }
}
