/* Teklif formu penceresi (14 Ekim 2026). style.css değişkenleri; tek tema (koyu).
   ⛔ Paragraflara genişlik sınırı konmaz (kullanıcı kuralı). */

.tk-dialog {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; margin: auto;
  border: 1px solid rgba(240, 237, 232, 0.14); border-radius: 22px; overflow: hidden;
  background: #10141d; color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}
.tk-dialog::backdrop { background: rgba(5, 7, 11, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tk-dialog[open] { animation: tk-giris 0.22s ease-out; }
@keyframes tk-giris { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }

.tk-izgara { display: grid; grid-template-columns: 0.85fr 1.15fr; max-height: calc(100dvh - 34px); }
.tk-yan {
  max-height: calc(100dvh - 34px); overflow-y: auto;
  position: relative; padding: 36px 32px; display: grid; gap: 22px; align-content: start; min-width: 0;
  background: linear-gradient(180deg, rgba(232, 163, 61, 0.10), rgba(232, 163, 61, 0) 55%), #0d1119;
  border-right: 1px solid rgba(240, 237, 232, 0.08);
}
.tk-kas { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tk-yan h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
.tk-yan > p { color: var(--dim); font-size: 0.95rem; }
.tk-adimlar { list-style: none; display: grid; gap: 14px; counter-reset: tk; }
.tk-adimlar li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--dim); font-size: 0.9rem; }
.tk-adimlar li::before {
  counter-increment: tk; content: counter(tk); width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-size: 0.82rem; color: var(--accent);
  border: 1px solid rgba(232, 163, 61, 0.45);
}
.tk-adimlar b { display: block; color: var(--text); font-weight: 500; }
.tk-eposta { font-size: 0.84rem; color: var(--dim2); border-top: 1px solid rgba(240, 237, 232, 0.08); padding-top: 16px; }
.tk-eposta span { color: var(--text); user-select: all; }

/* Kaydırma sütunda: ızgara satırı içerik kadar uzadığı için yükseklik sınırı doğrudan sütunlara verilir. 15 Ekim:
   sınır yalnız ızgaradaydı, form içerik boyuna uzadı, pencere (overflow: hidden) taşanı kesti ve fare tekerleği
   onay kutularının altına inemedi; odak alanı pencereyi programla kaydırdığı için otomatik sınama bunu görmedi. */
.tk-form { padding: 32px 32px 28px; display: grid; gap: 16px; overflow-y: auto; overscroll-behavior: contain; min-width: 0; max-height: calc(100dvh - 34px); }
.tk-ust { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tk-ust h3 { font-family: var(--display); font-weight: 500; font-size: 1.15rem; }
.tk-kapat {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(240, 237, 232, 0.16); background: transparent;
  color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; flex: none;
}
.tk-kapat:hover { border-color: var(--accent); color: var(--accent); }
.tk-satir { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.tk-alan { display: grid; gap: 6px; min-width: 0; }
.tk-alan label { font-size: 0.82rem; color: var(--dim); }
.tk-alan label i { font-style: normal; color: var(--dim2); }
.tk-alan input, .tk-alan select, .tk-alan textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: #0b0e14;
  border: 1px solid rgba(240, 237, 232, 0.14); border-radius: 12px; padding: 12px 14px; transition: border-color 0.15s ease;
}
.tk-alan select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239aa3b2' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }
.tk-alan textarea { min-height: 110px; resize: vertical; }
/* Tarayıcının otomatik doldurma zemini (açık mavi/beyaz) koyu temayı bozuyordu (15 Ekim, İl alanı). */
.tk-alan input:autofill, .tk-alan select:autofill, .tk-alan textarea:autofill {
  -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: 0 0 0 100px #0b0e14 inset; transition: background-color 9999s;
}
.tk-alan input:focus, .tk-alan select:focus, .tk-alan textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.18); }
/* Kırmızı çerçeve yalnız o adımda gönderim denendikten sonra (:user-invalid form gönderiminde tüm adımları boyuyordu). */
.tk-denendi input:invalid, .tk-denendi select:invalid, .tk-denendi textarea:invalid { border-color: #e5675a; }
.tk-alan small { font-size: 0.76rem; color: var(--dim2); }
.tk-genis { grid-column: 1 / -1; }
.tk-dialog [hidden] { display: none !important; }
.tk-adim { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 16px; }
.tk-adim[data-adim="2"]:not([hidden]) { animation: tk-kay 0.2s ease-out; }
@keyframes tk-kay { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
.tk-gizli { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tk-sayac { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.tk-ilerleme { height: 3px; border-radius: 3px; background: rgba(240, 237, 232, 0.08); overflow: hidden; }
.tk-ilerleme span { display: block; height: 100%; width: 50%; background: var(--accent); border-radius: 3px; transition: width 0.3s ease; }
.tk-ilerleme[data-adim="2"] span { width: 100%; }
.tk-kutucuk { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; color: var(--dim); margin-top: 4px; cursor: pointer; }
.tk-kutucuk input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.tk-alan input:disabled { opacity: 0.45; }
.tk-onaylar { display: grid; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(240, 237, 232, 0.03); border: 1px solid rgba(240, 237, 232, 0.08); }
.tk-dugmeler { display: flex; gap: 10px; flex-wrap: wrap; }
.tk-dialog button.btn-ghost { cursor: pointer; font: inherit; background: transparent; color: var(--text); }
.tk-onay { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.84rem; color: var(--dim); }
.tk-onay input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.tk-onay a { color: var(--accent); }
.tk-tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tk-dogrulama { min-height: 65px; display: flex; align-items: center; }
.tk-dogrulama-yer { width: 300px; max-width: 100%; height: 65px; border-radius: 8px; border: 1px dashed rgba(240, 237, 232, 0.18); display: grid; place-items: center; font-size: 0.78rem; color: var(--dim2); }
.tk-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tk-alt .btn-primary { border: 0; cursor: pointer; font: inherit; }
.tk-alt .btn-primary[disabled] { opacity: 0.6; cursor: progress; }
.tk-not { font-size: 0.78rem; color: var(--dim2); }
.tk-hata { color: #f0a59c; font-size: 0.88rem; }
.tk-hata a { color: var(--accent); }

.tk-sonuc { grid-column: 1 / -1; padding: 56px 40px; display: grid; gap: 16px; justify-items: start; align-content: center; min-height: 100%; }
.tk-sonuc svg { width: 44px; height: 44px; color: var(--accent); }
.tk-sonuc h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; }
.tk-sonuc p { color: var(--dim); }

@media (max-width: 820px) {
  .tk-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .tk-izgara { grid-template-columns: 1fr; max-height: 100dvh; overflow-y: auto; }
  .tk-yan { padding: 24px 20px 20px; border-right: 0; border-bottom: 1px solid rgba(240, 237, 232, 0.08); }
  .tk-adimlar, .tk-yan > p, .tk-eposta { display: none; }
  .tk-form { padding: 22px 20px 28px; overflow: visible; max-height: none; }
  .tk-yan { max-height: none; overflow: visible; }
  .tk-satir { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .tk-dialog[open] { animation: none; } }
