:root {
  --navy: #14284f;
  --navy-2: #1d3a72;
  --green: #4caf50;
  --green-dark: #3d9140;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1a2340;
  --muted: #667085;
  --border: #e6e9f2;
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: contain;
}

/* Kurumsal üst bant — sayfanın ÖğrenciKart ekosistemine ait olduğunu ilk saniyede gösterir */
.corp-band {
  width: 100%;
  background: var(--navy);
  color: rgba(255,255,255,0.92);
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
  padding: max(9px, env(safe-area-inset-top)) 12px 9px;
}

.wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* iPhone çentik / alt gezinme çizgisi için güvenli alan */
  padding: 24px max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.brandbar img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brandbar .name {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.brandbar .name .k { color: var(--green); }

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(20, 40, 79, 0.06);
  padding: 28px 24px 26px;
  text-align: center;
  animation: riseIn 0.5s cubic-bezier(.2,.8,.2,1) both;
}

.brandbar { animation: riseIn 0.5s cubic-bezier(.2,.8,.2,1) both; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(76, 175, 80, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}

h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -0.3px;
}

.desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 24px;
  text-align: left;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  border-radius: 12px;
  padding: 10px 12px;
}

.meta-row .ic {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.meta-row b { color: var(--navy); }

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 18px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.28);
  transition: transform .12s ease, box-shadow .12s ease;
}

.cta:active { transform: scale(0.97); box-shadow: 0 3px 10px rgba(76,175,80,0.25); }
.cta:focus-visible { outline: 3px solid rgba(76,175,80,0.4); outline-offset: 2px; }

.back-btn { min-height: 40px; }
.back-btn:focus-visible, .back-btn:active { transform: scale(0.97); }

.footnote {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Güven bloğu — "bu ÖğrenciKart'ın kendi sistemi" hissini pekiştirir */
.trust-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.trust-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.formwrap {
  width: 100%;
  max-width: 480px;
  display: none;
  flex-direction: column;
  align-items: center;
}

/* Soru ekranındaki kurumsal mini üst bar */
.form-brandbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--navy);
}

.form-brandbar img { width: 22px; height: 22px; object-fit: contain; }

.card.active-hidden { display: none; }

/* İlerleme çubuğu */
.progress-track {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 999px;
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}

/* Soru kartı */
.q-card {
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(20, 40, 79, 0.06);
  padding: 26px 22px;
  min-height: 220px;
  animation: riseIn 0.35s cubic-bezier(.2,.8,.2,1) both;
}

.q-card.shake { animation: shake 0.35s ease; }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.q-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 18px;
}

.q-optional {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.opt-list { display: flex; flex-direction: column; gap: 10px; }

.opt-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
  min-height: 48px;
}

.opt-row input { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }

.opt-row.checked {
  border-color: var(--green);
  background: rgba(76,175,80,0.06);
  font-weight: 600;
}

.rating-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.rate-btn {
  flex: 1;
  min-height: 48px;
  border: 1.5px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}

.rate-btn.active {
  border-color: var(--green);
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
}

.rate-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 8px;
}

.q-textarea, .q-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
}

.q-textarea:focus, .q-input:focus { outline: none; border-color: var(--green); }

.nav-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.nav-back {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--navy);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 46px;
}

.nav-next {
  flex: 1;
  border: none;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 46px;
  box-shadow: 0 6px 18px rgba(76,175,80,0.22);
}

.nav-next:disabled { opacity: 0.7; }
.nav-next:active { transform: scale(0.98); }

/* Teşekkür / hata ekranları */
.thanks-card, .error-card, .list-card { display: none; }

.check-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: riseIn 0.4s cubic-bezier(.2,.8,.2,1) both;
}

.discover-btn { text-decoration: none; margin-top: 6px; }

.anon-note {
  width: 100%;
  max-width: 640px;
  margin-top: 14px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

.poweredby {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}

.poweredby a { color: var(--navy); text-decoration: none; font-weight: 600; }

@media (max-width: 380px) {
  .card { padding: 22px 18px 20px; }
  h1 { font-size: 20px; }
}

/* Çoklu anket listesi */
.survey-list { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.survey-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 14px 16px; min-height: 56px;
  border: 1.5px solid var(--border); border-radius: 14px; background: var(--card);
  font-family: inherit; color: var(--text); cursor: pointer; text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.survey-item:active { background: rgba(76,175,80,0.06); border-color: var(--green); }
.survey-item .si-title { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.survey-item .si-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.survey-item .si-arrow { flex: 0 0 auto; color: var(--green); font-size: 20px; font-weight: 700; }
.secondary-cta { margin-bottom: 10px; }
.discover-btn { margin-top: 6px; }
