/* =========================================================
   Doğru Alıcıyı Arıyoruz — Tasarım: krem + yeşil kurumsal
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

:root {
  --green-800: #256A42;
  --green-700: #2E7D4F;
  --green-600: #37925D;
  --green-100: #E4F0E7;
  --green-50:  #F1F6F0;
  --cream:     #F7F3EA;
  --cream-2:   #FBF8F1;
  --beige:     #F5EEE1;
  --gold:      #E8A93E;
  --ink:       #202B33;
  --muted:     #71807A;
  --line:      #E8E3D7;
  --white:     #FFFFFF;
  --danger:    #C0392B;
  --danger-bg: #FDF0EE;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(32, 43, 51, .05), 0 6px 18px rgba(32, 43, 51, .05);
  --shadow-md: 0 10px 30px rgba(32, 43, 51, .10);
}

body {
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ================= ÜST BAR ================= */
.site-header {
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-icon { width: 38px; height: 38px; color: var(--green-700); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; font-size: .95rem; }
.brand-text strong { font-weight: 800; }
.brand-text span { font-weight: 700; color: var(--green-700); }

.header-badge { display: flex; align-items: center; gap: 10px; color: var(--green-700); }
.header-badge svg { width: 30px; height: 30px; }
.badge-text { display: flex; flex-direction: column; line-height: 1.3; font-size: .82rem; }
.badge-text strong { color: var(--ink); font-weight: 800; }
.badge-text span { color: var(--green-700); font-weight: 700; }

/* ================= HERO ================= */
.hero { background: var(--cream); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch;
  max-width: 1280px; margin-inline: auto;
}
.hero-copy { padding: 72px 56px 72px 48px; }

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 800; line-height: 1.18; letter-spacing: -.015em;
  max-width: 480px;
}
.hero-sub { margin-top: 18px; font-size: 1.05rem; color: var(--muted); max-width: 440px; }

.owner-note {
  margin-top: 30px; display: flex; gap: 14px; align-items: flex-start;
  background: var(--green-100); border: 1px solid #D5E7DA;
  border-radius: 16px; padding: 18px 20px; max-width: 480px;
}
.owner-note svg { width: 26px; height: 26px; color: var(--green-700); flex-shrink: 0; margin-top: 3px; }
.owner-note p { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.owner-note strong { color: var(--green-800); }

.hero-media {
  border-radius: 0 0 0 56px; overflow: hidden; min-height: 480px;
}
.hero-art { width: 100%; height: 100%; display: block; object-fit: cover; }

/* ================= BÖLÜMLER ================= */
.section { padding: 80px 0; }
.criteria { background: var(--white); padding-top: 72px; }

.section-title {
  text-align: center; font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800; letter-spacing: -.01em;
}
.hl { position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: -7px;
  height: 4px; border-radius: 4px; background: var(--gold);
}
.section-sub {
  text-align: center; color: var(--muted); font-size: .98rem;
  margin: 18px auto 44px; max-width: 620px;
}

/* ================= KRİTER KARTLARI ================= */
.crit-row { display: grid; gap: 20px; }
.row-4 { grid-template-columns: repeat(4, 1fr); }
.row-3 { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }

.crit-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.crit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.crit-icon {
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--beige); border-radius: 50%;
  color: var(--green-700); margin-bottom: 16px;
}
.crit-icon svg { width: 24px; height: 24px; }

.crit-card h3 { font-size: .98rem; font-weight: 800; margin-bottom: 8px; }
.crit-card p { font-size: .92rem; color: var(--muted); line-height: 1.55; }
.crit-card strong { color: var(--green-700); font-weight: 800; }

/* Yatay kartlar (2. satır) */
.h-card { display: flex; gap: 16px; align-items: flex-start; }
.h-card .crit-icon { margin-bottom: 0; flex-shrink: 0; }
.crit-body h3 { margin-bottom: 6px; }

/* ================= FORM PANELİ ================= */
.form-section { background: var(--white); padding-top: 20px; }

.form-panel {
  background: var(--green-50); border-radius: var(--radius-lg);
  padding: 56px; display: grid; grid-template-columns: .9fr 1.1fr;
  gap: 56px; align-items: start;
}

.form-intro-icon {
  width: 64px; height: 64px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; border-radius: 50%;
  margin-bottom: 24px;
}
.form-intro-icon svg { width: 30px; height: 30px; }

.form-intro h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 800; line-height: 1.25; max-width: 320px;
}
.form-intro p { margin-top: 14px; color: var(--muted); font-size: .98rem; max-width: 340px; }

.gold-divider {
  width: 44px; height: 4px; border-radius: 4px;
  background: var(--gold); margin: 26px 0;
}

.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; }
.privacy svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--muted); }

/* --- Alanlar --- */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fields { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; border: none; min-width: 0; }

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%; padding: 14px 16px;
  background: var(--white); border: 1.5px solid #E1E7E0;
  border-radius: 10px; font: inherit; font-size: .98rem; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #9AA6A0; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(46, 125, 79, .13);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: var(--danger); background: var(--danger-bg);
}
textarea { resize: vertical; min-height: 64px; }

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2371807A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px; color: #55645D;
}
select option { color: var(--ink); }

.req { color: var(--danger); font-weight: 700; }
.optional {
  font-size: .72rem; font-weight: 700; color: var(--green-700);
  background: var(--green-100); border-radius: 999px; padding: 2px 10px;
}
.hint { font-size: .8rem; color: var(--muted); font-weight: 500; }
legend { font-size: .88rem; font-weight: 700; color: var(--ink); }

.error { color: var(--danger); font-size: .83rem; font-weight: 600; }
.error:empty { display: none; }

/* Cephe pill'leri */
.cephe-options { display: flex; flex-wrap: wrap; gap: 8px; position: relative; margin-top: 4px; }
.cephe-options input { position: absolute; opacity: 0; pointer-events: none; }
.cephe-options label {
  padding: 9px 20px; border: 1.5px solid #D8E0D8; border-radius: 999px;
  background: var(--white); color: var(--muted);
  font-size: .9rem; font-weight: 700; cursor: pointer; user-select: none;
  transition: all .15s ease;
}
.cephe-options label:hover { border-color: var(--green-700); color: var(--green-700); }
.cephe-options input:checked + label {
  background: var(--green-700); border-color: var(--green-700); color: #fff;
}
.cephe-options input:focus-visible + label { box-shadow: 0 0 0 4px rgba(46, 125, 79, .16); }

/* Fotoğraf yükleme */
.file-drop {
  display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center;
  border: 1.5px dashed #CDDACD; border-radius: 12px;
  padding: 20px; background: var(--white); cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.file-drop:hover, .file-drop.dragover { border-color: var(--green-700); background: var(--green-50); }
.file-drop-icon svg { width: 26px; height: 26px; color: var(--green-700); }
.file-drop .hint { order: 3; }

.preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px; margin-top: 10px;
}
.preview-item {
  position: relative; aspect-ratio: 1; border-radius: 10px;
  overflow: hidden; border: 1px solid var(--line); background: var(--white);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-remove {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px;
  border: none; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff;
  font-size: .75rem; cursor: pointer; display: grid; place-items: center;
}
.preview-remove:hover { background: rgba(0, 0, 0, .8); }

/* Buton + hata */
.btn-submit {
  width: 100%; margin-top: 22px; padding: 15px;
  background: var(--green-700); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 1.02rem; font-weight: 700;
  transition: background .15s ease, transform .1s ease;
}
.btn-submit:hover { background: var(--green-800); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit[disabled] { opacity: .7; cursor: progress; }

.form-error {
  background: var(--danger-bg); border: 1px solid #F0C8C2;
  border-left: 5px solid var(--danger); border-radius: 10px;
  padding: 12px 16px; margin-top: 18px;
  color: var(--danger); font-size: .9rem; font-weight: 600;
}

.form-note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 12px; }

/* Kullanım şartları onayı */
.terms-field { gap: 5px; }
.terms { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; }
.terms input {
  width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  accent-color: var(--green-700); cursor: pointer;
}
.terms span { color: var(--muted); font-weight: 600; }
#terms-link { color: var(--green-700); font-weight: 800; text-decoration: underline; }
#terms-link:hover { color: var(--green-800); }

/* Şartlar penceresi */
.terms-dialog {
  border: none; border-radius: 18px; padding: 0;
  width: min(560px, calc(100% - 40px));
  max-height: min(640px, calc(100% - 40px));
  box-shadow: 0 24px 64px rgba(0, 0, 0, .25);
}
.terms-dialog::backdrop { background: rgba(32, 43, 51, .5); backdrop-filter: blur(2px); }

.terms-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--line);
}
.terms-header h3 { font-size: 1.1rem; font-weight: 800; }

.terms-close {
  border: none; background: transparent; color: var(--muted);
  font-size: 1rem; cursor: pointer; width: 32px; height: 32px;
  border-radius: 8px; transition: background .15s ease;
}
.terms-close:hover { background: var(--beige); color: var(--ink); }

.terms-body {
  padding: 20px 24px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 55vh;
}
.terms-body p { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.terms-body strong { color: var(--ink); }

.terms-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.terms-list li {
  font-size: .88rem; color: var(--muted); line-height: 1.55;
  padding-left: 22px; position: relative;
}
.terms-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  font-size: .7rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 3px;
}

.terms-actions { padding: 16px 24px 20px; }
.terms-accept {
  width: 100%; padding: 13px;
  background: var(--green-700); color: #fff;
  border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: .98rem; font-weight: 700;
  transition: background .15s ease;
}
.terms-accept:hover { background: var(--green-800); }

/* ================= BAŞARI PANELİ ================= */
.success-card {
  background: var(--green-50); border-radius: var(--radius-lg);
  padding: 56px 40px; display: flex; flex-direction: column;
  align-items: center; gap: 12px; text-align: center;
}
.success-icon {
  width: 68px; height: 68px; display: grid; place-items: center;
  background: var(--green-700); color: #fff; border-radius: 50%;
  margin-bottom: 8px;
}
.success-icon svg { width: 32px; height: 32px; }
.success-card h3 { font-size: 1.4rem; font-weight: 800; }
.success-card p { color: var(--muted); max-width: 460px; }

.btn-outline {
  margin-top: 10px; padding: 12px 26px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--green-700);
  color: var(--green-700); font-family: inherit; font-weight: 700;
  font-size: .95rem; cursor: pointer; transition: all .15s ease;
}
.btn-outline:hover { background: var(--green-700); color: #fff; }

/* ================= ALT DUYURU ================= */
.site-footer { padding: 0 0 28px; background: var(--white); }

.footer-note {
  display: flex; align-items: center; gap: 16px;
  background: var(--cream); border-radius: 18px; padding: 22px 28px;
}
.footer-info-icon { width: 26px; height: 26px; color: var(--muted); flex-shrink: 0; }
.footer-note p { font-size: .93rem; color: var(--muted); }
.footer-note strong { color: var(--ink); }
.footer-art {
  margin-left: auto; width: 200px; height: 60px;
  color: #A5C3A8; flex-shrink: 0;
}

.copyright { text-align: center; color: #A8B0AA; font-size: .82rem; margin-top: 22px; }

/* ================= ANİMASYON ================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ================= MOBİL ================= */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 56px 24px 48px; }
  .hero-media { border-radius: 0; min-height: 320px; max-height: 380px; }
  .row-4 { grid-template-columns: repeat(2, 1fr); }
  .row-3 { grid-template-columns: 1fr; }
  .form-panel { grid-template-columns: 1fr; padding: 36px 24px; gap: 36px; }
}

@media (max-width: 560px) {
  .section { padding: 56px 0; }
  .row-4 { grid-template-columns: 1fr; }
  .header-inner { height: 66px; }
  .badge-text { font-size: .74rem; }
  .brand-text { font-size: .86rem; }
  .footer-note { flex-wrap: wrap; }
  .footer-art { margin-left: 0; width: 160px; }
  .hero-copy h1 { font-size: 1.7rem; }
}
