: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;
}

.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: max(24px, env(safe-area-inset-top)) 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;
}

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

.formwrap.active { display: flex; }

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

.form-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.back-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.form-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.iframe-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);
  overflow: hidden;
  position: relative;
  animation: riseIn 0.4s cubic-bezier(.2,.8,.2,1) both;
}

.iframe-card iframe {
  width: 100%;
  border: 0;
  display: block;
  height: 78vh;
  height: 78dvh;
  min-height: 520px;
  position: relative;
  z-index: 1;
}

.iframe-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--card);
  transition: opacity .25s ease;
}

.iframe-loading.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--green);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.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; }
}
