/* =========================================================
   Ziraat Bankası — Aidat İadesi
   Kurumsal koyu yeşil + kırmızı vurgu, güven/derinlik tonu
   ========================================================= */
:root {
  /* Ziraat kurumsal renkleri */
  --ziraat:        #0A4A3A;   /* koyu kurumsal yeşil */
  --ziraat-deep:   #063028;   /* daha koyu */
  --ziraat-light:  #146b52;   /* açık yeşil */
  --ziraat-red:    #C8102E;   /* Ziraat kırmızısı */
  --ziraat-red-2:  #9E0C22;

  /* Nötrler */
  --canvas:        #F4F2ED;   /* sıcak zemin */
  --surface:       #FFFFFF;
  --ink:           #141413;
  --ink-2:         #44443F;
  --ink-3:         #74736C;
  --line:          rgba(10, 74, 58, 0.14);
  --line-soft:     rgba(10, 74, 58, 0.08);

  /* Vurgular */
  --gold:          #C6A15B;   /* altın vurgu (derinlik) */

  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 2px 8px rgba(10, 48, 40, 0.08);
  --shadow-lift:   0 12px 32px rgba(10, 48, 40, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; }

.app { max-width: 560px; margin: 0 auto; padding: 0 20px 60px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 8px; }
.hero__bar {
  position: absolute; top: 0; left: -20px; right: -20px; height: 6px;
  background: linear-gradient(90deg, var(--ziraat) 0%, var(--ziraat-light) 55%, var(--ziraat-red) 100%);
  border-radius: 0 0 3px 3px;
}
.hero__inner { position: relative; }

.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand__mark {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--ziraat-light), var(--ziraat-deep));
  color: #fff; font-weight: 700; font-size: 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  font-family: "Instrument Serif", Georgia, serif;
}
.brand__name { display: flex; flex-direction: column; gap: 2px; }
.brand__top { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--ziraat); }
.brand__top em { font-style: normal; color: var(--ink); }
.brand__sub { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ziraat-red); font-weight: 600; }

.hero__title {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 14px;
}
.hero__title .serif { color: var(--ziraat); font-weight: 400; }
.hero__lede { color: var(--ink-2); font-size: 15.5px; margin: 0 0 22px; max-width: 46ch; }

.hero__points {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: grid; gap: 12px;
}
.hero__points li {
  position: relative; padding-left: 30px; font-size: 14.5px; color: var(--ink-2);
}
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ziraat); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  padding: 14px 16px; margin-bottom: 28px;
  background: rgba(10, 74, 58, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--ziraat);
  font-weight: 500;
}

/* ---------- Steps ---------- */
.steps { margin-top: 12px; }
.step { margin-bottom: 28px; animation: stepIn .35s cubic-bezier(0.16,1,0.3,1); }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.step__num {
  flex: 0 0 40px; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ziraat);
  border: 1.5px solid var(--ziraat);
  border-radius: 50%; font-size: 18px; font-weight: 700;
}
.step__num--done {
  background: var(--ziraat); color: #fff;
  border-color: var(--ziraat);
}
.step__title { font-size: 18px; font-weight: 600; margin: 2px 0 3px; letter-spacing: -0.01em; }
.step__sub { font-size: 13.5px; color: var(--ink-3); margin: 0; }

/* ---------- Card (form) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* Sanal kart görseli */
.cardcard {
  position: relative;
  margin: 4px 0 18px;
  padding: 20px 22px;
  border-radius: 16px;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(198,161,91,0.18), transparent 55%),
    linear-gradient(150deg, var(--ziraat) 0%, var(--ziraat-deep) 100%);
  color: #fff;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.cardcard::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, transparent 0, transparent 96%, rgba(255,255,255,0.06) 96%),
    linear-gradient(0deg, transparent 0, transparent 96%, rgba(255,255,255,0.06) 96%);
  background-size: 28px 28px;
  pointer-events: none; opacity: 0.5;
}
.cardcard__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; position: relative; z-index: 1; }
.cardcard__bank { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; opacity: 0.92; }
.cardcard__chip {
  width: 40px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, #d9c184, #b8934f);
  box-shadow: inset 0 1px 2px rgba(255,255,255,.4);
}
.cardcard__number { position: relative; z-index: 1; font-family: "Instrument Serif", Georgia, serif; font-size: 23px; letter-spacing: 0.14em; margin-bottom: 18px; }
.cardcard__meta { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.cardcard__meta #live-sk { font-family: monospace; font-size: 14px; letter-spacing: 0.1em; }
.cardcard__cvv-hint { font-size: 11px; opacity: 0.7; }

/* ---------- Fields ---------- */
.field { margin-bottom: 16px; }
.field:last-of-type { margin-bottom: 0; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; letter-spacing: 0.01em; }
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--canvas);
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: var(--ink-3); opacity: 0.7; }
.field input:focus {
  outline: none;
  border-color: var(--ziraat);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(10, 74, 58, 0.12);
}
.field input:invalid:not(:focus):not(:placeholder-shown) {
  border-color: var(--ziraat-red);
}

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 14px; font-weight: 600;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  width: 100%; justify-content: space-between;
}
.actions .btn { width: auto; }
.btn--primary {
  background: linear-gradient(145deg, var(--ziraat), var(--ziraat-deep));
  color: #fff;
  box-shadow: 0 4px 12px rgba(10, 74, 58, 0.22);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10, 74, 58, 0.30); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent; color: var(--ink-2); border-color: var(--line);
}
.btn--ghost:hover { background: var(--canvas); }

/* ---------- SMS ---------- */
.sms-box {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 20px; text-align: center; color: var(--ink-2);
}
.sms-box__title { font-size: 15px; font-weight: 600; color: var(--ziraat); margin: 4px 0 0; }
/* Başlangıçta spinner gizli; yalnızca is-loading iken görünür */
.sms-box__spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--line);
  border-top-color: var(--ziraat);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: none;
}
.sms-box.is-loading .sms-box__spinner { display: block; }
.sms-box.is-done { color: var(--ziraat); }
.sms-box.is-done .sms-box__title { color: var(--ziraat); }
.hint { color: var(--ink-3); font-size: 12.5px; margin: 0; max-width: 40ch; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.foot { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot p { font-size: 12px; color: var(--ink-3); text-align: center; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; }
  .btn { padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .step { animation: none; }
  .sms-box__spinner { animation: none; }
}
