*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #004B87;
  --blue-dk: #003360;
  --green:   #2e7d32;
  --red:     #c62828;
  --gray:    #6b7280;
  --border:  #d1d5db;
  --bg:      #f9fafb;
  --white:   #ffffff;
  --radius:  6px;
  --shadow:  0 1px 3px rgba(0,0,0,.12);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  color: #1f2937;
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  background: #2b2b2b;
  color: var(--white);
  padding: 14px 24px;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.header-logo { height: 40px; width: auto; display: block; }
/* ── Page Title ───────────────────────────────────────────────────────── */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 20px;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
  max-width: 780px;
  margin: 32px auto;
  padding: 0 16px 48px;
  flex: 1;
}

/* ── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-weight: 500;
}
.alert-hata  { background: #fef2f2; color: var(--red);   border: 1px solid #fca5a5; }
.alert-basari{ background: #f0fdf4; color: var(--green); border: 1px solid #86efac; }
.hidden { display: none !important; }

/* ── Form ────────────────────────────────────────────────────────────────── */
#kvkk-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 22px; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}
.zorunlu { color: var(--red); }

input[type="text"],
input[type="email"],
input[type="tel"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  transition: border-color .15s;
  background: var(--white);
}
input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,75,135,.15);
}
input:disabled {
  background: #f3f4f6;
  color: var(--gray);
  cursor: not-allowed;
}

/* ── Input + buton satırı ────────────────────────────────────────────────── */
.input-row {
  display: flex;
  gap: 8px;
}
.input-row input { flex: 1; }

.btn-otp-gonder {
  white-space: nowrap;
  padding: 9px 16px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-otp-gonder:hover:not(:disabled) { background: var(--blue-dk); }
.btn-otp-gonder:disabled { background: #9ca3af; cursor: not-allowed; }
.btn-otp-gonder.btn-dogrulandi { background: var(--green); }

/* ── OTP alanı ───────────────────────────────────────────────────────────── */
.otp-alani {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.otp-alani input {
  width: 150px;
  letter-spacing: 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.btn-otp-dogrula {
  padding: 9px 14px;
  background: #374151;
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.btn-otp-dogrula:hover:not(:disabled) { background: #1f2937; }
.btn-otp-dogrula:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Durum mesajları ──────────────────────────────────────────────────────── */
.durum-mesaji {
  font-size: 13px;
  margin-top: 6px;
  min-height: 18px;
  color: var(--gray);
}
.durum-mesaji.basarili { color: var(--green); font-weight: 600; }
.durum-mesaji.hata     { color: var(--red); }

/* ── Checkbox ─────────────────────────────────────────────────────────────── */
.onay-grubu {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.aydinlatma-bilgi {
  font-size: 14px;
  color: #374151;
  margin-bottom: 18px;
  line-height: 1.6;
}
.bilgi-notu-satir {
  display: block;
  font-size: 12px;
  color: var(--gray);
  margin-top: 3px;
}
.metin-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.metin-link:hover { text-decoration: underline; }
.checkbox-etiket {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-weight: normal;
  font-size: 14px;
  margin-bottom: 12px;
}
.checkbox-etiket:last-of-type { margin-bottom: 0; }
.zorunlu-check .zorunlu { font-size: 12px; }
.checkbox-etiket input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.bilgi-notu {
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
  font-style: italic;
}

/* ── Gönder butonu ────────────────────────────────────────────────────────── */
.btn-gonder {
  padding: 12px 40px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: block;
  width: 100%;
  margin-top: 8px;
}
.btn-gonder:hover:not(:disabled) { background: var(--blue-dk); }
.btn-gonder:disabled { background: #9ca3af; cursor: not-allowed; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--gray);
  border-top: 1px solid var(--border);
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 520px) {
  #kvkk-form { padding: 20px 16px; }
  .input-row { flex-direction: column; }
  .btn-otp-gonder { width: 100%; }
  .otp-alani { flex-direction: column; }
  .otp-alani input { width: 100%; }
}
