/* ============================================
   PROJE TALEBİ (/review) ve PROJE TAKİBİ (/takip)
   Sitenin tema değişkenleriyle çalışır (açık/koyu).
   ============================================ */

.talep-hero { padding-bottom: 48px; }
.talep-hero .page-hero__subtitle { max-width: 560px; }
.talep-bolum { padding-top: 48px; }

.talep { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.talep-form { min-width: 0; }

/* Bot tuzağı */
.talep-tuzak { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Adım göstergesi ---- */
.talep-adimlar { display: none; gap: 6px; margin-bottom: 14px; counter-reset: adim; }
.talep-form.js .talep-adimlar { display: flex; }
.talep-adimlar li { flex: 1; min-width: 0; }
.talep-adimlar button {
    width: 100%; display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 600; color: var(--text-ter);
    padding: 6px 0; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.talep-adimlar button:disabled { cursor: default; }
.talep-adimlar button span {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; font-size: 11.5px;
    border: 1px solid var(--border-md); background: var(--bg-card); transition: var(--transition);
}
.talep-adimlar .gecti button { color: var(--text-sec); }
.talep-adimlar .gecti button span { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.talep-adimlar [aria-current] { color: var(--text); }
.talep-adimlar [aria-current] span { background: var(--text); border-color: var(--text); color: var(--bg); }

.talep-cubuk { display: none; height: 4px; border-radius: 4px; background: var(--accent-dim); overflow: hidden; margin-bottom: 32px; }
.talep-form.js .talep-cubuk { display: block; }
.talep-cubuk__dolu { height: 100%; width: 0; background: var(--lime); border-radius: 4px; transition: width .35s cubic-bezier(.16,1,.3,1); }
.talep-mobil-adim { display: none; }

/* ---- Adımlar ---- */
.talep-adim { border: 0; margin: 0 0 48px; padding: 0; min-width: 0; }
.talep-form.js .talep-adim { display: none; margin-bottom: 28px; }
.talep-form.js .talep-adim.aktif { display: block; animation: talepGir .35s cubic-bezier(.16,1,.3,1) both; }
@keyframes talepGir { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.talep-adim legend { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.8px; color: var(--text); line-height: 1.2; padding: 0; }
.talep-adim__alt { font-size: 14px; color: var(--text-sec); margin: 8px 0 24px; }
.talep-istege { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--text-ter); }

/* Proje türü kartları */
.talep-turler { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.talep-tur { position: relative; cursor: pointer; display: block; }
.talep-tur input, .talep-cip input, .talep-onay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.talep-tur__ic {
    display: flex; flex-direction: column; gap: 6px; height: 100%;
    padding: 18px; border-radius: var(--radius-lg);
    border: 1px solid var(--border-md); background: var(--bg-card);
    transition: var(--transition);
}
.talep-tur__ic strong { font-size: 15px; color: var(--text); letter-spacing: -.2px; }
.talep-tur__ic small { font-size: 13px; color: var(--text-sec); line-height: 1.5; }
.talep-tur__ikon {
    width: 40px; height: 40px; border-radius: 10px; margin-bottom: 6px;
    display: grid; place-items: center; background: var(--accent-dim); color: var(--text);
    transition: var(--transition);
}
.talep-tur:hover .talep-tur__ic { border-color: var(--border-lg); transform: translateY(-2px); }
.talep-tur input:checked + .talep-tur__ic { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.talep-tur input:checked + .talep-tur__ic .talep-tur__ikon { background: var(--lime); color: var(--lime-ink); }
.talep-tur input:focus-visible + .talep-tur__ic,
.talep-cip input:focus-visible + span,
.talep-onay input:focus-visible + span::before { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Seçim cipleri */
.talep-soru { margin-bottom: 26px; }
.talep-soru__baslik { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.talep-soru__baslik span { font-weight: 500; color: var(--text-ter); font-size: 12.5px; }
.talep-cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.talep-cipler--genis { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.talep-cip { position: relative; cursor: pointer; }
.talep-cip span {
    display: flex; align-items: center; gap: 10px; min-height: 44px;
    padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
    border: 1px solid var(--border-md); background: var(--bg-card); color: var(--text-sec);
    transition: var(--transition); line-height: 1.35;
}
.talep-cip--onay span { border-radius: var(--radius); height: 100%; }
.talep-cip span i {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
    border: 1px solid var(--border-lg); color: transparent; transition: var(--transition);
}
.talep-cip:hover span { border-color: var(--border-lg); color: var(--text); }
.talep-cip input:checked + span { border-color: var(--text); color: var(--text); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--text); }
.talep-cip input:checked + span i { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }

/* Onay kutusu */
.talep-onay { position: relative; display: block; cursor: pointer; margin: 8px 0 20px; }
.talep-onay span { display: block; padding-left: 32px; font-size: 13.5px; color: var(--text-sec); line-height: 1.55; position: relative; }
.talep-onay span::before {
    content: ''; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px;
    border: 1px solid var(--border-lg); background: var(--bg-card); transition: var(--transition);
}
.talep-onay input:checked + span::before {
    background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
    border-color: var(--lime);
}

/* Gezinme */
.talep-nav { display: none; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.talep-form.js .talep-nav { display: flex; }
.talep-nav [data-ileri] { margin-left: auto; }
.talep-nav [hidden], .talep-basari [hidden] { display: none !important; }
.talep-form.js .talep-gonder { margin-top: 4px; }
.talep-mesaj { margin: 0 0 16px; }

/* ---- Yan panel: özet ---- */
.talep-yan { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.talep-ozet, .talep-surec { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.talep-ozet__baslik { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-ter); margin-bottom: 12px; }
.talep-ozet dl { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.talep-ozet dt { color: var(--text-ter); font-size: 12px; }
.talep-ozet dd { color: var(--text); font-weight: 500; word-break: break-word; margin-top: 1px; }
.talep-ozet dl:not(:empty) + .talep-ozet__bos { display: none; }
.talep-ozet__bos { font-size: 13px; color: var(--text-ter); }
.talep-ozet--mobil { display: none; margin: 8px 0 20px; }
.talep-surec ol { counter-reset: s; display: flex; flex-direction: column; gap: 10px; }
.talep-surec li { counter-increment: s; position: relative; padding-left: 30px; font-size: 13px; color: var(--text-sec); line-height: 1.5; }
.talep-surec li::before {
    content: counter(s); position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
    display: grid; place-items: center; font-size: 11px; font-weight: 700; background: var(--accent-dim); color: var(--text);
}
.talep-surec strong { color: var(--text); font-weight: 600; }

/* ---- Başarı ---- */
.talep-basari { max-width: 560px; margin: 0 auto; text-align: center; padding: 40px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl); outline: none; }
.talep-basari__ikon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--lime); color: var(--lime-ink); }
.talep-basari h2 { font-size: 26px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.talep-basari p { color: var(--text-sec); font-size: 15px; margin-bottom: 10px; }
.talep-basari p strong { color: var(--text); font-family: ui-monospace, Consolas, monospace; }
.talep-basari__alt { font-size: 13.5px !important; margin-bottom: 24px !important; }

/* ============================================
   TAKİP SAYFASI
   ============================================ */
.takip { max-width: 980px; }
.takip > .alert { margin-bottom: 16px; }
.takip-kart { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 16px; min-width: 0; }
.takip-baslik { font-size: 16px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 16px; }
.takip-etiket { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-ter); margin-bottom: 6px; }
.takip-kucuk { font-size: 12.5px; color: var(--text-ter); margin-top: 14px; }

.takip-durum__ust { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.takip-durum__ad { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; letter-spacing: -.6px; }
.takip-durum__aciklama { font-size: 14px; color: var(--text-sec); margin-top: 6px; max-width: 520px; }
.takip-nokta { width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(163,230,53,.2); flex-shrink: 0; }
.takip-nokta--iptal { background: var(--text-ter); box-shadow: 0 0 0 4px var(--accent-dim); }
.takip-nokta--teslim { box-shadow: none; }
.takip-yuzde { text-align: right; flex-shrink: 0; }
.takip-yuzde strong { display: block; font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.takip-yuzde span { font-size: 12px; color: var(--text-ter); }
.takip-cubuk { height: 8px; border-radius: 8px; background: var(--accent-dim); overflow: hidden; margin: 20px 0 22px; }
.takip-cubuk div { height: 100%; background: var(--lime); border-radius: 8px; }

.takip-adimlar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.takip-adimlar li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; }
.takip-adimlar li:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 1px; background: var(--border-md); }
.takip-adim__nokta {
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    font-size: 12px; font-weight: 700; color: var(--text-ter);
    border: 1px solid var(--border-md); background: var(--bg-card); position: relative; z-index: 1;
}
.takip-adim__ad { font-size: 12px; color: var(--text-ter); line-height: 1.3; }
.takip-adim--bitti .takip-adim__nokta { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); }
.takip-adim--bitti::after { background: var(--lime) !important; }
.takip-adim--bitti .takip-adim__ad { color: var(--text-sec); }
.takip-adim--simdi .takip-adim__nokta { background: var(--text); border-color: var(--text); color: var(--bg); }
.takip-adim--simdi .takip-adim__ad { color: var(--text); font-weight: 700; }

.takip-teklif { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--border-md); border-radius: var(--radius); margin-bottom: 8px; color: var(--text); }
.takip-teklif:hover { border-color: var(--border-lg); background: var(--bg-hover); color: var(--text); }
.takip-teklif strong { display: block; font-size: 14.5px; }
.takip-teklif small { font-size: 12.5px; color: var(--text-ter); }
.takip-teklif__tutar { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.takip-teklif__tutar em { font-style: normal; color: var(--text-ter); margin-left: 4px; }

.takip-izgara { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }

.takip-akis { display: flex; flex-direction: column; }
.takip-akis__oge { position: relative; padding: 0 0 20px 24px; border-left: 1px solid var(--border-md); margin-left: 5px; }
.takip-akis__oge:last-child { border-left-color: transparent; }
.takip-akis__oge::before { content: ''; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--text-ter); }
.takip-akis__oge--sistem::before { border-color: var(--lime); background: var(--lime); }
.takip-akis__oge--ekip::before { border-color: var(--text); }
.takip-akis__ust { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.takip-akis__ust strong { font-size: 14px; }
.takip-akis__ust time { font-size: 12px; color: var(--text-ter); white-space: nowrap; }
.takip-akis__metin { font-size: 14px; color: var(--text-sec); margin-top: 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.takip-akis__oge--musteri .takip-akis__metin { background: var(--accent-dim); border-radius: var(--radius); padding: 10px 12px; margin-top: 6px; }

.takip-not { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 4px; }
.takip-not textarea { min-height: 90px; margin-bottom: 10px; }
.takip-not .btn { float: right; }
.takip-not::after { content: ''; display: block; clear: both; }

.takip-ozet { display: grid; grid-template-columns: 1fr; gap: 2px 0; font-size: 13px; }
.takip-ozet dt { color: var(--text-ter); font-size: 12px; margin-top: 10px; }
.takip-ozet dt:first-child { margin-top: 0; }
.takip-ozet dd { color: var(--text); font-weight: 500; white-space: pre-wrap; word-break: break-word; }
.takip-iletisim { display: flex; flex-direction: column; gap: 8px; }

.takip-bul { max-width: 440px; }
.takip-bul__alt { font-size: 13px; color: var(--text-ter); text-align: center; margin-top: 16px; }
.takip-bul__alt a { color: var(--text); font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .talep { grid-template-columns: minmax(0, 1fr); }
    .talep-yan { display: none; }
    .talep-ozet--mobil { display: block; }
    .talep-ozet--mobil dl:empty { display: none; }
    .talep-ozet--mobil:has(dl:empty) { display: none; }
    .takip-izgara { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
    .talep-bolum { padding-top: 28px; }
    .talep-form.js .talep-adimlar { display: none; }
    .talep-form.js .talep-mobil-adim { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-ter); margin-bottom: 8px; }
    .talep-mobil-adim strong { color: var(--text); }
    .talep-cubuk { margin-bottom: 24px; }
    .talep-turler { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .talep-tur__ic { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px; }
    .talep-tur__ikon { grid-row: span 2; margin: 0; }
    .talep-cipler--genis { grid-template-columns: minmax(0, 1fr); }
    /* Geri / Devam ekranın altında sabit */
    .talep-form.js .talep-nav {
        position: sticky; bottom: 0; z-index: 20; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: var(--bg); border-top: 1px solid var(--border);
    }
    .talep-nav .btn { width: auto; flex: 1; justify-content: center; }
    .talep-nav [data-geri][hidden] + [data-ileri] { flex: 1; }
    .takip-kart { padding: 18px; }
    .takip-durum__ust { flex-direction: column; gap: 10px; }
    .takip-yuzde { text-align: left; display: flex; align-items: baseline; gap: 6px; }
    .takip-yuzde strong { font-size: 22px; display: inline; }
    .takip-durum__ad { font-size: 20px; }
    /* Aşamalar dikey */
    .takip-adimlar { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .takip-adimlar li { flex-direction: row; text-align: left; gap: 12px; padding-bottom: 14px; }
    .takip-adimlar li:not(:last-child)::after { top: 28px; bottom: 0; left: 13.5px; right: auto; width: 1px; height: auto; }
    .takip-adim__ad { font-size: 13.5px; }
    .takip-teklif { flex-direction: column; align-items: flex-start; gap: 6px; }
    .takip-not .btn { float: none; width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .talep-form.js .talep-adim.aktif { animation: none; }
    .talep-cubuk__dolu { transition: none; }
}
