/* --- GLOBAL & TEMEL STİLLER --- */
*, *::before, *::after { box-sizing: border-box; }

body.q9a_bg {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #1f58c7 0%, #0b1b3a 100%);
  color: #e6f0ff;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- ÜST BAR (TOPBAR) --- */
.w3_topbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.w3_topbar_inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 12px 0;
}
.f2_logo { height: 48px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.j8_title { color: #1f58c7; font-size: 20px; font-weight: 700; letter-spacing: 0.2px; margin-top: 8px; }

/* --- ANA YERLEŞİM (LAYOUT) --- */
.m0_shell {
  flex: 1;
  display: flex;
  /* Her zaman üstten hizalı olması sağlandı */
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 32px 16px;
}
/* DEĞİŞTİRİLDİ: Mobil cihazlarda dikey ortalama kuralı kaldırıldı.
   Artık tüm ekranlarda kutular üstten hizalı başlayacak. */
@media (max-width: 900px) {
  .m0_shell {
    /* align-items: center; kuralı buradan kaldırıldı. */
    padding-top: 24px; /* Mobil için üst boşluğu biraz azalttık. */
  }
}

/* --- KARTLAR (CARDS) --- */
.c5_card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(5, 21, 54, 0.18);
  border: 1px solid rgba(18, 44, 112, 0.08);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.p0_head {
  font-size: 24px;
  font-weight: 700;
  color: #0b1b3a;
  margin: 2px 2px 20px 2px;
  text-align: left;
}

/* --- FORM ELEMANLARI --- */
.i4_grp { margin-bottom: 16px; }
.i4_lab, .fg_lbl { display: block; font-size: 14px; color: #0b1b3a; margin-bottom: 8px; font-weight: 500; }
.i4_inp, .ph_inp, .code_inp, .bank_sel, #reason {
  width: 100%;
  border: 1px solid rgba(18, 44, 112, 0.22);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #f9fcff;
  color: #0b1b3a;
  appearance: none;
}
.i4_inp:focus, .ph_inp:focus, .code_inp:focus, .bank_sel:focus, #reason:focus {
  border-color: #1f58c7;
  box-shadow: 0 0 0 3px rgba(31, 88, 199, 0.2);
}
.i4_inp[readonly] { background: #eef4ff; cursor: not-allowed; }

/* --- CHECKBOX (KVKK) --- */
.k9_chkrow { display: flex; align-items: flex-start; gap: 10px; margin: 12px 2px 10px 2px; }
.k9_chk { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; accent-color: #1f58c7; }
.k9_lbl { font-size: 13px; color: #3a4a70; line-height: 1.4; cursor: pointer; user-select: none; }

/* --- BUTONLAR --- */
.b1_btn, .b2_btn {
  width: 100%;
  background: linear-gradient(135deg, #1f58c7, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  box-shadow: 0 4px 12px rgba(31, 88, 199, 0.3);
}
.b1_btn:hover, .b2_btn:hover {
  background: linear-gradient(135deg, #2563eb, #1f58c7);
  box-shadow: 0 6px 18px rgba(31, 88, 199, 0.4);
  transform: translateY(-2px);
}
.b1_btn:active, .b2_btn:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(31, 88, 199, 0.25); }
.b1_btn[disabled], .b2_btn[disabled] { opacity: 0.7; cursor: not-allowed; box-shadow: none; transform: none; background: #5a7ab3; }

/* --- HATA MESAJI KUTUSU --- */
.r3_box {
  display: none;
  background: #ffe8e8;
  color: #8b1a1a;
  border: 1px solid #f0b3b3;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 2px 6px 2px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
  animation: fadeIn 0.3s ease;
}
.r3_box.show { display: flex; align-items: flex-start; gap: 8px; }
.r3_box::before { content: "!"; color: #b71717; font-weight: 900; line-height: 1.4; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* --- bekle.php & bekle2.php ANİMASYON VE BAŞARI STİLLERİ --- */
.y7_spinwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 6px 8px 6px;
  min-height: 150px;
}
.y7_spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(31, 88, 199, 0.2);
  border-top-color: #1f58c7; 
  animation: k_7s_spin 0.8s linear infinite;
}
@keyframes k_7s_spin { to { transform: rotate(360deg); } }

/* YENİ EKLENDİ: bekle.php'deki 'Lütfen bekleyiniz' metni için stil */
.y7_msg {
  font-size: 14px;
  color: #0b1b3a;
  text-align: center;
  font-weight: 500;
}

.progress-container {
  width: 90%;
  background: rgba(31, 88, 199, 0.15);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}
.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #1f58c7, #2563eb);
  border-radius: 8px;
  transition: width 0.4s ease-in-out;
}
.step_msg {
  font-size: 14px;
  color: #0b1b3a;
  text-align: center;
  font-weight: 500;
}
.error_step { color: #c62828; font-weight: 700; }

#success_msg p {
  font-size: 15px;
  color: #0b1b3a;
  line-height: 1.6;
  font-weight: 500;
}
.success_tick {
  font-size: 56px;
  color: #2fa866;
  margin-bottom: 10px;
  text-align: center;
  animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* --- devam.php STİLLERİ --- */
.x2_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .x2_grid { grid-template-columns: 1fr; gap: 16px; } }

.v1_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(18, 44, 112, 0.12);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #f9fcff;
}
.v1_k { font-size: 14px; color: #3a4a70; }
.v1_v { font-weight: 700; color: #0b1b3a; font-size: 15px; }
.p0_succ { position: relative; padding-left: 32px; }
.p0_succ::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2fa866;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(47, 168, 102, 0.3);
}
.q_amt { font-size: 32px; font-weight: 800; color: #0b1b3a; margin: 4px 0 16px 0; text-align: center; }

.info_duo, .kv_grid, .r_sel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info_box { background: #f9fcff; border: 1px solid rgba(18, 44, 112, 0.14); border-radius: 12px; padding: 12px 14px; }
.info_t { font-size: 13px; color: #516185; font-weight: 700; margin-bottom: 8px; }
.info_row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.info_k { color: #3f566e; }
.info_v { color: #0b1b3a; font-weight: 700; }

.kv_card { background: #f4f7ff; border: 1px solid rgba(31, 88, 199, 0.18); border-radius: 12px; padding: 14px; text-align: center; }
.kv_t { font-size: 13px; color: #1f58c7; font-weight: 700; margin-bottom: 4px; }
.kv_v { font-size: 19px; font-weight: 800; color: #0b1b3a; }

.branch_block {
  background: #ffffff;
  border: 1px dashed rgba(31, 88, 199, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.branch_chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #1f58c7;
  font-weight: 800;
  border: 1px solid rgba(31, 88, 199, 0.25);
}
.net_text { font-size: 14px; color: #0b1b3a; flex: 1; }
.net_text strong { color: #1f58c7; font-size: 16px; }

.r_sel { margin-bottom: 16px; }
.r_sel label { display: block; }
.r_sel input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.r_opt {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 2px solid rgba(18, 44, 112, 0.22);
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  color: #0b1b3a;
  background: #ffffff;
  transition: all 0.2s ease;
}
.r_opt:hover { border-color: #1f58c7; background: #f0f5ff; }
.r_sel input[type="radio"]:checked + .r_opt {
  background: #1f58c7;
  color: #fff;
  border-color: #1f58c7;
  box-shadow: 0 6px 18px rgba(10, 30, 80, 0.22);
  transform: translateY(-2px);
}
.login_card { background: #f9fcff; border: 1px solid rgba(18, 44, 112, 0.14); border-radius: 12px; padding: 20px; margin-top: 20px; }

@media (max-width: 420px) { .info_duo, .kv_grid, .r_sel { grid-template-columns: 1fr; } }

/* --- bekle2.php ANİMASYON STİLLERİ --- */

/* Bu ana sarmalayıcı, içeriği dikey olarak ortalamak için kullanılır. */
.y7_spinwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px 8px 6px;
  min-height: 220px; /* İçerik değişirken kartın zıplamasını engeller */
}

/* YENİ: Animasyon elemanlarını gruplayan ve hizalayan kapsayıcı */
#animation_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px; /* Spinner, yazı ve bar arasına net bir boşluk koyar */
  width: 100%; /* Genişliğin stabil olmasını sağlar */
}

.y7_spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(31, 88, 199, 0.2);
  border-top-color: #1f58c7; 
  animation: k_7s_spin 0.8s linear infinite;
}
@keyframes k_7s_spin { to { transform: rotate(360deg); } }


.step_msg {
  font-size: 14px;
  color: #0b1b3a;
  text-align: center;
  font-weight: 500;
  margin: 0;
}
.error_step { color: #c62828; font-weight: 700; }


.progress-container {
  width: 90%;
  background: rgba(31, 88, 199, 0.15);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
  margin-top: 0;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(135deg, #1f58c7, #2563eb);
  border-radius: 8px;
  transition: width 0.4s ease-in-out;
}