/* ==========================================================================
   KEPEZ SENİN — Şehrini Fikrinle Güzelleştir!
   Sade tek sayfa: giriş + form + açılan "Projenin Amacı" penceresi.
   Renk ve yazı tipi mesutkocagoz.com ile ortaktır (kırmızı tema, Manrope).
   ========================================================================== */

:root {
  --brand: #e30613;
  --brand-rgb: 227, 6, 19;
  --brand-deep: #9d040e;
  --brand-pale: #f7dcde;
  --brand-tint: #fdeff0;
  --brand-on-dark: #ffc6ca;

  --ink: #12131a;
  --muted: #5f6772;
  --faint: #858c97;
  --line: #e7e8ec;
  --soft: #f5f6f8;
  --danger: #b42318;

  --serif: Georgia, "Times New Roman", serif;

  /* Köşe yuvarlaklıkları (sade, kurumsal) */
  --r-sm: 4px;   /* küçük öğeler: rozet, dosya simgesi */
  --r-md: 6px;   /* yazı kutuları, butonlar, dosya satırları */
  --r-lg: 8px;   /* kart, dosya alanı, pencere */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.skip-link {
  position: fixed; z-index: 1000; top: -60px; left: 16px;
  padding: 12px 16px; background: var(--brand); color: #fff;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: min(calc(100% - 48px), 1080px); margin: 0 auto; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: var(--r-md); background: none;
  font-size: 14px; font-weight: 800; letter-spacing: .01em;
  white-space: nowrap; cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn i { font-style: normal; transition: transform 180ms ease; }
.btn:hover i { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 13px; }

.btn-brand { color: #fff; background: var(--brand); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-light { color: var(--brand-deep); background: #fff; }
.btn-light:hover { background: var(--brand-pale); }
.btn-light:hover i { transform: translateY(3px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.btn-outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover i { transform: translateX(-3px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.mini-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--brand); font-size: 13px; font-weight: 800;
  text-decoration: underline; text-underline-offset: 3px;
}
.mini-link.is-danger { color: var(--danger); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-logo { width: 112px; height: auto; }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
.brand-name b { margin-left: 1px; color: var(--brand); font-family: var(--serif); font-style: italic; font-weight: 400; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link {
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-size: 14px; font-weight: 800;
  transition: color 180ms ease;
}
.header-link:hover { color: var(--brand); }

/* ==========================================================================
   GİRİŞ
   ========================================================================== */
.intro {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .16), transparent 45%),
    linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.intro::after {
  content: ""; position: absolute; right: -160px; bottom: -260px;
  width: 560px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .03), 0 0 0 120px rgba(255, 255, 255, .02);
  pointer-events: none;
}
.intro-inner { position: relative; z-index: 1; padding: clamp(64px, 10vw, 110px) 0 clamp(40px, 6vw, 64px); max-width: 760px; margin-left: max(24px, calc((100% - 1080px) / 2)); }

.eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 7px 14px;
  border-radius: var(--r-sm); background: rgba(255, 255, 255, .14);
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.intro h1 {
  margin: 0; font-size: clamp(40px, 6vw, 72px); font-weight: 800;
  line-height: 1; letter-spacing: -0.05em;
}
.intro h1 em {
  display: block; margin-top: 8px;
  color: var(--brand-on-dark); font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: .8em; letter-spacing: -0.03em;
}
.intro p { max-width: 580px; margin: 24px 0 0; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.7; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* "Başvuru formu aşağıda" işareti: giriş bölümünün altında ortada, hafifçe zıplar.
   Masaüstünde form zaten yanda olduğundan gizlenir (bkz. MASAÜSTÜ: TEK EKRAN). */
.scroll-cue {
  position: relative; z-index: 2;
  width: max-content; margin: 0 auto; padding: 0 0 28px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
}
.scroll-cue span {
  font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  opacity: .9; white-space: nowrap;
}
.scroll-cue i {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--brand);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .22), 0 0 0 6px rgba(255, 255, 255, .15);
  animation: cueBounce 1.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.scroll-cue:hover i, .scroll-cue:focus-visible i {
  animation-play-state: paused; transform: translateY(4px) scale(1.06);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .28), 0 0 0 10px rgba(255, 255, 255, .2);
}
.scroll-cue:focus-visible { outline: none; }
.scroll-cue:focus-visible i { outline: 2px solid #fff; outline-offset: 4px; }
@keyframes cueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
/* Kaydırınca işaret kaybolur (js/app.js body.is-scrolled ekler) */
body.is-scrolled .scroll-cue { opacity: 0; pointer-events: none; transition: opacity 250ms ease; }

/* ==========================================================================
   FORM (tek form: bilgiler → dosyalar → onay + gönder)
   ========================================================================== */
.form-section { padding: clamp(40px, 7vw, 72px) 0 clamp(60px, 9vw, 96px); background: var(--soft); }

.form-card {
  max-width: 760px; margin: 0 auto; overflow: hidden;
  border-radius: var(--r-lg); background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(18, 19, 26, .05);
}

#kepezProjectForm { padding: clamp(22px, 4vw, 36px); }

.form-head { margin: 0 0 22px; }
.form-head h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; }
.form-head h2 em { color: var(--brand); font-family: var(--serif); font-style: italic; font-weight: 400; }
.form-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* Bot tuzağı alanı: ekranda ve ekran okuyucuda görünmez */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-block { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.form-block + .form-block { padding-top: 20px; border-top: 1px solid var(--line); }
.block-title {
  display: flex; align-items: center; gap: 12px; padding: 0; margin: 0 0 18px;
  font-size: 17px; font-weight: 800; letter-spacing: -0.02em;
}
.block-title > span:first-child {
  width: 26px; height: 26px; display: grid; place-items: center; flex: none;
  border-radius: var(--r-sm); background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
}
.block-title .opt { margin-left: -4px; }
/* legend normalde fieldset kenarlığına oturur ve üst boşluğu kendi altına iter; bunu engelle */
.block-title { float: left; width: 100%; }
.block-title + * { clear: both; }

.grid-2, .grid-project { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-person { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid-person .f-contact { grid-column: 1 / -1; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.field .label-row label { margin-bottom: 0; }

/* Alan etiketleri */
.field { margin-bottom: 22px; }
/* Izgaralardaki alanlar arası boşluk row-gap ile verilir; böylece alanlar alt alta da yan yana da
   aynı aralıkla durur. Bölümün son öğesi alt boşluk bırakmaz (bölüm arası boşluk .form-block'tan gelir). */
.grid-2, .grid-project, .grid-person, .grid-texts { row-gap: 22px; margin-bottom: 22px; }
.grid-texts { display: grid; grid-template-columns: minmax(0, 1fr); }
[class^="grid-"] > .field { margin-bottom: 0; }
.form-block > :last-child { margin-bottom: 0; }
.field label, .field .label {
  display: block; margin-bottom: 8px;
  color: var(--ink); font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: -0.005em;
}
.req { color: var(--brand); }
.opt { color: var(--faint); font-size: 13px; font-weight: 500; letter-spacing: 0; }

/* Yazı kutuları: büyük, okunaklı, sade (16px: telefonlarda odaklanınca ekran yakınlaşmaz) */
.field input[type="text"],
.field input[type="date"],
.field textarea {
  display: block; width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1px solid #d3d7de; border-radius: var(--r-md); background: #fff;
  color: var(--ink); font-size: 16px; font-weight: 500; line-height: 1.5;
  box-shadow: 0 1px 2px rgba(18, 19, 26, .04);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.field input[type="text"], .field textarea { -webkit-appearance: none; appearance: none; }
.field input:hover, .field textarea:hover { border-color: #bfc4cc; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12);
}
.field input::placeholder, .field textarea::placeholder { color: #a3a8b1; font-weight: 500; opacity: 1; }

/* Uzun metin kutuları: fareyle boyutlandırılamaz; yazdıkça kendiliğinden uzar (js/app.js autoGrow) */
.field textarea { resize: none; overflow-y: hidden; min-height: 112px; line-height: 1.65; }
#projectDescription { min-height: 176px; }

/* Tarih kutusu: boşken yer tutucu gibi soluk, takvim simgesi sade */
.field input[type="date"] { height: 54px; padding-top: 0; padding-bottom: 0; cursor: text; }
.field input[type="date"]:invalid:not(:focus)::-webkit-datetime-edit { color: #a3a8b1; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; padding: 4px; border-radius: 6px; }
.field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: .9; background: var(--soft); }

.field .is-invalid { border-color: var(--danger) !important; background: #fff8f7; }
.field .is-invalid:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }

.field-error { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--danger); font-size: 13px; font-weight: 600; }
.field-error::before {
  content: "!"; flex: none; width: 16px; height: 16px; display: grid; place-items: center;
  border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800;
}
.field-error:empty { display: none; }

.input-prefix { position: relative; }
.input-prefix span {
  position: absolute; top: 50%; left: 16px; transform: translateY(-50%);
  color: var(--brand); font-weight: 700; font-size: 17px; pointer-events: none;
}
.field .input-prefix input[type="text"] { padding-left: 40px; }

/* Dosya alanı */
.dropzone {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; cursor: pointer;
  border: 1.5px dashed rgba(var(--brand-rgb), .35); border-radius: var(--r-lg); background: #fcfcfd;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--brand); background: var(--brand-tint); outline: none; }
.dropzone-icon {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 8px 22px rgba(18, 19, 26, .08);
}
.dropzone-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dropzone-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dropzone strong { font-size: 14px; font-weight: 800; }
.dropzone-text > span { color: var(--muted); font-size: 13px; }
.dropzone u { color: var(--brand); font-weight: 800; text-underline-offset: 3px; }
.dropzone small { margin-top: 2px; color: var(--faint); font-size: 11px; }

.file-list { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--soft); }
.file-list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.file-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px;
  border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--line);
  animation: stepIn 220ms ease;
}
.file-thumb, .file-badge { flex: 0 0 40px; width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; }
.file-badge { display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.file-badge.pdf { background: #fdecec; color: #b42318; }
.file-badge.doc { background: #e8f0fb; color: #1a4688; }
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.file-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-size { font-size: 12px; color: var(--faint); }
.file-size strong { color: #1f8a4c; font-weight: 700; }
.file-item.is-working { opacity: .75; }
.file-item.is-working .file-size { color: var(--brand); font-weight: 600; }
.file-item.is-working .file-thumb, .file-item.is-working .file-badge { animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.file-remove {
  flex: 0 0 32px; width: 32px; height: 32px; border: 0; border-radius: var(--r-md);
  background: var(--soft); color: var(--muted); cursor: pointer;
}
.file-remove:hover { background: #fdecec; color: var(--danger); }

/* Onay + gönder */
.form-submit { padding-top: 22px; border-top: 1px solid var(--line); }
.consent { margin-bottom: 18px; }
/* .field label kuralını ezmek için .field .check (onay satırı yan yana dizilsin) */
.field .check {
  display: flex; gap: 12px; align-items: flex-start; margin: 0;
  color: #3a414b; font-size: 14px; font-weight: 500; line-height: 1.6; cursor: pointer;
}
.check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); cursor: pointer; }
.check a { color: var(--brand); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.btn-block { width: 100%; }
.upload-progress { margin-bottom: 10px; }
.upload-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.upload-bar span { display: block; width: 0; height: 100%; background: var(--brand); transition: width 200ms linear; }
.upload-progress small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }

.form-error {
  margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r-md);
  background: #fff1f0; color: var(--danger); font-size: 14px; font-weight: 700;
}

@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Başarı ekranı */
.success { padding: clamp(40px, 6vw, 60px) clamp(22px, 5vw, 48px); text-align: center; animation: stepIn 300ms ease; }
.success:focus { outline: none; }
.success-icon {
  width: 76px; height: 76px; margin: 0 auto 20px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand); color: #fff; box-shadow: 0 0 0 10px var(--brand-tint);
}
.success-icon svg { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success h3 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.success p { max-width: 520px; margin: 0 auto 24px; color: var(--muted); }
.ref-box {
  display: inline-flex; flex-direction: column; gap: 2px; margin-bottom: 12px;
  padding: 14px 30px; border: 1.5px dashed rgba(var(--brand-rgb), .5); border-radius: var(--r-lg); background: var(--brand-tint);
}
.ref-box span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ref-box strong { font-size: 24px; font-weight: 800; letter-spacing: .04em; color: var(--brand); user-select: all; }
.success .ref-note { font-size: 13px; }
.success .btn { display: flex; margin: 0 auto; }

/* ==========================================================================
   TAM EKRAN SÜRÜKLE-BIRAK KATMANI
   Dosya pencerenin herhangi bir yerine sürüklenince tüm ekranı kaplar.
   ========================================================================== */
.drop-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(157, 4, 14, .88);
  backdrop-filter: blur(6px);
  animation: fadeIn 150ms ease;
  pointer-events: none;
}
.drop-overlay-inner {
  width: min(100%, 1100px); height: min(100%, 720px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 2px dashed rgba(255, 255, 255, .7); border-radius: var(--r-lg);
  color: #fff; text-align: center;
}
.drop-overlay-icon {
  width: 96px; height: 96px; margin-bottom: 10px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--brand);
  box-shadow: 0 0 0 16px rgba(255, 255, 255, .12);
  animation: dropBounce 1.2s ease-in-out infinite;
}
.drop-overlay-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-overlay strong { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -0.04em; }
.drop-overlay span { font-size: 16px; color: rgba(255, 255, 255, .85); }
@keyframes dropBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
body.is-dragging { overflow: hidden; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { padding: 28px 0 30px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.footer-slogan { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.footer-slogan em { color: var(--brand); font-family: var(--serif); font-weight: 400; }
.footer-copy { margin: 0; color: #777d87; font-size: 12px; }
.footer-copy a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   AÇILAN PENCERE (Projenin Amacı)
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(18, 19, 26, .6); backdrop-filter: blur(4px);
  animation: fadeIn 200ms ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-dialog {
  width: min(100%, 980px); max-height: min(92vh, 1000px);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r-lg); background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  animation: stepIn 240ms var(--ease);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 30px clamp(24px, 4vw, 48px); color: #fff;
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.modal-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.04em; }
.modal-head h2 em { color: var(--brand-on-dark); font-family: var(--serif); font-style: italic; font-weight: 400; }
.modal-close {
  flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-md); background: rgba(255, 255, 255, .08);
  color: #fff; cursor: pointer; transition: background 180ms ease;
}
.modal-close:hover { background: rgba(255, 255, 255, .2); }
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.modal-body {
  padding: 32px clamp(24px, 4vw, 48px) 36px; overflow-y: auto; overscroll-behavior: contain;
  color: #3a414b; font-size: 17px; line-height: 1.8;
  scrollbar-width: thin; scrollbar-color: rgba(var(--brand-rgb), .4) transparent;
}
/* Okuma kolaylığı: satırlar çok uzamasın */
.modal-body > * { max-width: 800px; }
.modal-body h3 { margin: 30px 0 10px; color: var(--ink); font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.modal-body p { margin: 0 0 14px; }
.modal-lead { padding: 18px 22px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand-deep); font-weight: 600; }
.modal-body ul { margin: 0 0 14px; padding: 0; list-style: none; }
.modal-body li { position: relative; margin: 8px 0; padding-left: 20px; }
.modal-body li::before { content: ""; position: absolute; top: .7em; left: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.modal-body strong { color: var(--ink); }

.modal-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px clamp(24px, 4vw, 48px); border-top: 1px solid var(--line); background: var(--soft);
}
.modal-foot a:not(.btn) { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.modal-foot p { margin: 0; font-size: 14px; font-weight: 600; }

/* KVKK metni: daha küçük yazı, tablolar */
.legal-body { font-size: 15.5px; line-height: 1.75; }
.legal-body h3 { font-size: 18px; margin: 28px 0 10px; }
.legal-body .legal-date { color: var(--faint); font-size: 13px; font-weight: 600; }
.legal-body a { color: var(--brand); font-weight: 600; text-underline-offset: 3px; }
.legal-table { margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.legal-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.6; }
.legal-table th, .legal-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--soft); color: var(--ink); font-weight: 800; }
.legal-table td:first-child { width: 34%; color: var(--ink); font-weight: 700; }
.legal-table td span { color: var(--faint); font-weight: 500; }
.legal-table tr:last-child td { border-bottom: 0; }

/* ==========================================================================
   MASAÜSTÜ: TEK EKRAN
   Solda giriş metni sabit durur, sağda form kendi kaydırma çubuğuyla kayar;
   sayfanın kendisi kaydırılmaz. Form sıkıştırılmaz, rahat aralıklarla durur.
   Ekran dar ya da kısaysa bu blok devreye girmez, bölümler alt alta dizilir.
   Eşiği değiştirirseniz js/app.js içindeki SPLIT_QUERY'yi de aynı yapın.
   ========================================================================== */
@media (min-width: 1100px) and (min-height: 640px) {
  html, body { height: 100%; }
  body { display: flex; flex-direction: column; overflow: hidden; }

  /* Üst bar: yalnızca logo; butonlar tablet/telefon içindir */
  .site-header { position: relative; flex: none; backdrop-filter: none; }
  .header-inner { width: 100%; height: 64px; padding: 0 clamp(32px, 4vw, 64px); }
  .header-actions { display: none; }

  /* Sol %40 (giriş), sağ %60 (form) */
  .layout {
    flex: 1; min-height: 0;
    display: grid; grid-template-columns: 40% 60%;
  }

  /* Sol: giriş (sabit) */
  .intro { display: flex; align-items: center; }
  .form-section { border-left: 1px solid var(--line); }
  .intro-inner { margin: 0; max-width: 620px; padding: 40px clamp(28px, 3.6vw, 64px); }
  .intro h1 { font-size: clamp(36px, 3.5vw, 60px); }
  .intro h1 em { font-size: .78em; }
  .intro p { font-size: clamp(15px, 1.1vw, 17px); }
  .intro-scroll, .scroll-cue { display: none; }
  .intro::after { width: 420px; right: -180px; bottom: -220px; }

  /* Sağ: form sütunu kendi içinde kayar */
  .form-section {
    position: relative; padding: 0;
    overflow-y: auto; overscroll-behavior: contain;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--brand-rgb), .45) transparent;
  }
  .form-section::-webkit-scrollbar { width: 10px; }
  .form-section::-webkit-scrollbar-track { background: transparent; }
  .form-section::-webkit-scrollbar-thumb {
    border: 3px solid #fff; border-radius: 999px;
    background: rgba(var(--brand-rgb), .4);
  }
  .form-section::-webkit-scrollbar-thumb:hover { background: rgba(var(--brand-rgb), .7); }

  /* Form sütununda daha fazla içerik varsa sağ sütunun altında görünür. */
  .form-scroll-cue {
    position: fixed; left: 70%; bottom: 62px; z-index: 80; transform: translateX(-50%);
    display: flex; align-items: center; gap: 11px;
    min-height: 46px; padding: 0 12px 0 18px;
    border: 1px solid rgba(var(--brand-rgb), .28); border-radius: var(--r-md);
    background: rgba(255, 255, 255, .96); color: var(--brand);
    box-shadow: 0 12px 28px rgba(18, 19, 26, .16);
    font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    cursor: pointer; opacity: 1; visibility: visible;
    transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }
  .form-scroll-cue i {
    width: 28px; height: 28px; display: grid; place-items: center;
    border-radius: var(--r-sm); background: var(--brand); color: #fff;
    animation: cueBounce 1.8s ease-in-out infinite;
  }
  .form-scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  .form-scroll-cue:hover, .form-scroll-cue:focus-visible {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 16px 34px rgba(18, 19, 26, .22);
  }
  .form-scroll-cue:hover i, .form-scroll-cue:focus-visible i { animation-play-state: paused; }
  .form-scroll-cue.is-hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(10px);
  }

  /* Form kartı sağ sütunu kenar boşluğu olmadan tam doldurur (ayrı bir kutu gibi durmaz) */
  .form-section { background: #fff; }
  .form-section > .wrap { width: 100%; max-width: none; margin: 0; padding: 0; }
  .form-card { max-width: none; min-height: 100%; border-radius: 0; box-shadow: none; }

  /* İçerik okunaklı genişlikte, sütun içinde ortalı */
  #kepezProjectForm, .success { max-width: 860px; margin: 0 auto; }
  #kepezProjectForm { padding: 48px clamp(32px, 4vw, 72px) 56px; }
  .form-head { margin-bottom: 32px; }

  /* Bölümler: her biri başlıklı ve ferah */
  .form-block { margin-bottom: 32px; }
  .form-block + .form-block { padding-top: 30px; }
  .block-title { margin-bottom: 22px; }

  /* Proje adı + maliyet yan yana; amaç ve açıklama alt alta, tam genişlik */
  .grid-project { grid-template-columns: 1.6fr 1fr; gap: 0 20px; }
  .label-row label { white-space: nowrap; }

  .form-submit { padding-top: 28px; }
  .form-submit .btn { min-height: 56px; font-size: 16px; }

  /* Alt bilgi: ince tek satır */
  .site-footer { flex: none; }
  .footer-inner {
    width: 100%; padding: 12px clamp(32px, 4vw, 64px);
    flex-direction: row; justify-content: space-between;
  }
  .footer-slogan { font-size: 15px; }
}

/* Form sütunu yeterince genişse kişi bilgileri tek satırda (ad, doğum tarihi, iletişim) */
@media (min-width: 1600px) and (min-height: 640px) {
  .grid-person { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .grid-person .f-contact { grid-column: auto; }
}

/* Kısa ekranlarda (ör. 1366×768) giriş başlığını biraz küçült; form yine rahat, sütun kayar */
@media (min-width: 1100px) and (min-height: 640px) and (max-height: 820px) {
  .header-inner { height: 56px; }
  .brand-logo { width: 100px; }
  .intro h1 { font-size: clamp(34px, 3.3vw, 52px); }
  .intro p { margin-top: 18px; font-size: 15px; }
  .intro-actions { margin-top: 24px; }
  #kepezProjectForm { padding-top: 36px; }
}

/* Dar masaüstü (1100–1279px): form sütunu küçük kalmasın diye kart iç boşluğunu azalt */
@media (min-width: 1100px) and (max-width: 1279px) and (min-height: 640px) {
  #kepezProjectForm { padding-left: 28px; padding-right: 28px; }
}

/* ==========================================================================
   MOBİL
   ========================================================================== */
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { height: 64px; }
  .brand { gap: 10px; }
  .brand-logo { width: 92px; }
  .brand-name { font-size: 16px; }
  .header-link { display: none; }

  .intro-inner { margin-left: 16px; margin-right: 16px; }
  .intro-actions .btn { flex: 1 1 100%; }

  .grid-2, .grid-person, .grid-project { grid-template-columns: 1fr; }
  /* Telefonda form kartı ekranın iki kenarına kadar uzanır; yan boşluk kalmaz */
  .form-section { padding-top: 0; padding-bottom: 0; background: #fff; }
  .form-section > .wrap { width: 100%; }
  .form-card { border-radius: 0; box-shadow: none; }
  #kepezProjectForm { padding: 32px 20px 40px; }
  .dropzone { flex-direction: column; text-align: center; padding: 22px 16px; }
  .dropzone-text { align-items: center; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-dialog { width: 100%; max-height: 94vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .modal-body { font-size: 16px; }
  .scroll-cue { padding-bottom: 22px; }
  .modal-head, .modal-body, .modal-foot { padding-left: 20px; padding-right: 20px; }
  .modal-foot .btn { width: 100%; }
  .drop-overlay-inner { border-radius: var(--r-lg); }
}

/* Bu işaret yalnızca yan yana masaüstü düzeninde kullanılır. */
.form-scroll-cue { display: none; }
@media (min-width: 1100px) and (min-height: 640px) {
  .form-scroll-cue { display: flex; }
}

/* Dokunmatik cihazlarda sürükle-bırak yoktur; metni ona göre söyle */
@media (hover: none) {
  .dropzone-text > span { font-size: 0; }
  .dropzone-text > span::after { content: "Seçmek için dokun"; font-size: 13px; color: var(--brand); font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
