/* ==========================================================================
   ÖN KAYIT FORMU MODALI (#yenionkayit) - 6 adımlı sihirbaz
   Markup : login/onkayit-modal.php
   Davranış: login/js/giris.js (.page1..6 / .step / onclick fonksiyonları)
   Tüm kurallar #yenionkayit altında kapsanmıştır; sayfa temasını etkilemez.
   ========================================================================== */

/* iOS'ta modal içi kaydırma akıcı olsun */
#yenionkayit { -webkit-overflow-scrolling: touch; }

#yenionkayit .modal-dialog {
  max-width: 1040px;
  width: 96%;
  margin: 24px auto;
}

#yenionkayit .modal-content {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 32, 56, .28);
  background: #fff;
}

/* ---------- Başlık ---------- */
#yenionkayit .modal-header {
  position: relative;
  display: block;
  padding: 24px 30px 20px;
  border: none;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 55%, #1a4d7a 100%);
  color: #fff;
  text-align: center;
}

#yenionkayit .modal-header:after {
  content: "";
  position: absolute;
  right: -50px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

#yenionkayit .oks-ikon-rozet {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
}

#yenionkayit .oks-ikon-rozet svg { width: 26px; height: 26px; fill: #fff; }

#yenionkayit .modal-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.2px;
  margin: 0;
  line-height: 1.3;
}

#yenionkayit .oks-alt-baslik {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.5;
}

#yenionkayit .modal-header .close {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 2;
  color: #fff;
  opacity: .7;
  text-shadow: none;
  font-size: 24px;
}

#yenionkayit .modal-header .close:hover { opacity: 1; }

/* ---------- Gövde ---------- */
#yenionkayit .modal-body {
  padding: 26px 30px 30px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- Adım göstergesi ---------- */
#yenionkayit .oks-stepper {
  display: flex;
  margin: 0 0 26px;
  padding: 0 0 22px;
  border-bottom: 1px solid #eef2f7;
}

/* ---- Tema sıfırlaması ----
   assets/css/site.min.css içinde .step / .step-number / .step-desc için hazır
   "steps" bileşeni kuralları var (.step{background:#f3f7f9;padding:12px 20px},
   .step-number{position:absolute;top:50%;left:20px;transform:translateY(-50%)},
   .step-number~.step-desc{margin-left:50px}, .step.current/.active/.done için
   renkli zeminler). Sınıf adları giris.js sözleşmesi gereği değiştirilemediği
   için bu kuralların etkileri burada açıkça sıfırlanır. */
#yenionkayit .oks-stepper .step,
#yenionkayit .oks-stepper .step.current,
#yenionkayit .oks-stepper .step.active,
#yenionkayit .oks-stepper .step.done,
#yenionkayit .oks-stepper .step.disabled {
  position: relative;
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  color: inherit;
  background: none;
  background-color: transparent;
  border-radius: 0;
  pointer-events: auto;
  cursor: default;
  float: none;              /* şablonun col-* kuralları etkilemesin */
  width: auto;
  height: auto !important;  /* eski markup'taki satır içi height kalıntısı */
  font-size: inherit;
}

/* Adımlar arası bağlantı çizgisi */
#yenionkayit .oks-stepper .step:before {
  content: "";
  position: absolute;
  top: 17px;
  right: 50%;
  width: 100%;
  height: 2px;
  margin-right: 20px;
  background: #e4e9f2;
  transition: background .25s ease;
}

#yenionkayit .oks-stepper .step:first-child:before { display: none; }

#yenionkayit .oks-stepper .step-number {
  position: relative;
  z-index: 1;
  display: block;
  /* tema .step-number'ı mutlak konumlandırıp kaydırıyor -- sıfırlanır */
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  -webkit-transform: none;
  transform: none;
  float: none;
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #eef2f7;
  color: #a0aec0;
  font-size: 13px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
  border: 2px solid #fff;
  transition: all .25s ease;
}

/* tema: .step-number ~ .step-desc { margin-left:50px; min-height:40px } */
#yenionkayit .oks-stepper .step-desc,
#yenionkayit .oks-stepper .step-number ~ .step-desc {
  margin: 0;
  padding: 0;
  min-height: 0;
  text-align: center;
}

#yenionkayit .oks-stepper .step-title {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #a0aec0;
  line-height: 1.3;
  transition: color .25s ease;
}

#yenionkayit .oks-stepper .step-desc p {
  margin: 2px 0 0;
  font-size: 10.5px;
  color: #c2cddb;
  line-height: 1.3;
}

/* Tamamlanan adım: giris.js "current done" ekler, "disabled" da üzerinde kalır */
#yenionkayit .oks-stepper .step.done .step-number { background: #dceafd; color: #1c6dd0; }
#yenionkayit .oks-stepper .step.done .step-title { color: #1c6dd0; }
#yenionkayit .oks-stepper .step.done:before { background: #9ec9f7; }

/* Aktif adım: tamamlanan kuralını ezmesi için en sona yazıldı */
#yenionkayit .oks-stepper .step.active .step-number {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(45, 90, 140, .15);
}
#yenionkayit .oks-stepper .step.active .step-title { color: #181c32; }
#yenionkayit .oks-stepper .step.active .step-desc p { color: #94a3b8; }

/* ---------- Adım gövdesi ---------- */
#yenionkayit .oks-adim-basi { margin-bottom: 20px; }

#yenionkayit .oks-adim-no {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #eef7ff;
  border: 1px solid #d9ebfd;
  color: #1c6dd0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .3px;
}

#yenionkayit .oks-adim-basi h5 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #181c32;
}

#yenionkayit .oks-adim-basi p {
  margin: 0;
  font-size: 12.5px;
  color: #7c8ba1;
  line-height: 1.6;
}

/* ---------- Alan ızgarası ---------- */
#yenionkayit .oks-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -9px;
}

#yenionkayit .oks-alan {
  width: 50%;
  padding: 0 9px;
  margin-bottom: 18px;
}

#yenionkayit .oks-alan.tam { width: 100%; }

#yenionkayit .oks-alan > label {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #94a3b8;
}

#yenionkayit .oks-alan input,
#yenionkayit .oks-alan select {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #e4e9f2;
  border-radius: 10px;
  background-color: #f8fafc;
  font-size: 14px;
  font-weight: 600;
  color: #181c32;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

#yenionkayit .oks-alan select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c8ba1'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px 18px;
}

#yenionkayit .oks-alan input:focus,
#yenionkayit .oks-alan select:focus {
  outline: none;
  background-color: #fff;
  border-color: #3699ff;
  box-shadow: 0 0 0 4px rgba(54, 153, 255, .12);
}

#yenionkayit .oks-alan input::-webkit-input-placeholder { color: #b6c2d2; font-weight: 500; }
#yenionkayit .oks-alan input::placeholder { color: #b6c2d2; font-weight: 500; }

/* Kimlik doğrulamasından otomatik dolan (kilitli) alanlar */
#yenionkayit .oks-alan input[disabled] {
  background-color: #f1f5f9;
  border-style: dashed;
  color: #5b6b80;
  cursor: not-allowed;
}

#yenionkayit .oks-alan input[type=date] {
  line-height: 43px;
  -webkit-appearance: none;
  appearance: none;
}

/* İkonlu alanlar (telefon / e-posta) */
#yenionkayit .oks-input-ikonlu { position: relative; }

#yenionkayit .oks-input-ikonlu input { padding-left: 42px; }

#yenionkayit .oks-input-ikonlu > svg {
  position: absolute;
  left: 14px;
  top: 50%;
  margin-top: -9px;
  width: 18px;
  height: 18px;
  fill: #a9b6c8;
  pointer-events: none;
  transition: fill .18s ease;
}

#yenionkayit .oks-input-ikonlu input:focus ~ svg { fill: #3699ff; }

/* IBAN */
#yenionkayit .oks-iban { position: relative; }

#yenionkayit .oks-iban-onek {
  position: absolute;
  left: 1.5px;
  top: 1.5px;
  bottom: 1.5px;
  width: 46px;
  border-radius: 9px 0 0 9px;
  background: #eef2f7;
  color: #1e3a5f;
  font-size: 13px;
  font-weight: 700;
  line-height: 43px;
  text-align: center;
  pointer-events: none;
}

#yenionkayit .oks-iban input {
  padding-left: 58px;
  letter-spacing: 1px;
}

#yenionkayit .bankalogo {
  margin-top: 14px;
  text-align: center;
}

#yenionkayit .bankalogo img { max-width: 180px; height: auto; }

/* ---------- Belge yükleme ---------- */
#yenionkayit .oks-belge-not {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: #7c8ba1;
  line-height: 1.6;
}

#yenionkayit .oks-belge-not span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #a0aec0;
}

#yenionkayit #my-awesome-dropzone {
  width: 100%;
  min-height: 150px;
  padding: 30px 16px;
  border: 2px dashed #cfdaea;
  border-radius: 12px;
  background: #f8fafc;
  color: #7c8ba1;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: border-color .18s ease, background .18s ease;
}

#yenionkayit #my-awesome-dropzone:hover {
  border-color: #3699ff;
  background: #f2f8ff;
}

/* ---------- Adım gezinme butonları ---------- */
#yenionkayit .oks-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eef2f7;
}

#yenionkayit .oks-nav-tek { justify-content: flex-end; }

#yenionkayit .oks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

#yenionkayit .oks-btn svg { width: 16px; height: 16px; }

#yenionkayit .oks-btn-ileri svg { margin-left: 8px; fill: #fff; }
#yenionkayit .oks-btn-kaydet svg { margin-right: 8px; fill: #fff; }
#yenionkayit .oks-btn-geri svg { margin-right: 8px; fill: #7c8ba1; }

#yenionkayit .oks-btn-geri {
  background: #fff;
  border: 1px solid #dde5ef;
  color: #7c8ba1;
}

#yenionkayit .oks-btn-geri:hover { background: #f4f7fb; color: #1e3a5f; }

#yenionkayit .oks-btn-ileri {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a8c 100%);
  color: #fff;
}

#yenionkayit .oks-btn-kaydet {
  background: linear-gradient(135deg, #16a34a 0%, #128c4a 100%);
  color: #fff;
}

#yenionkayit .oks-btn-ileri:hover,
#yenionkayit .oks-btn-kaydet:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(30, 58, 95, .25);
  color: #fff;
}

/* ---------- Tablet ---------- */
@media (max-width: 991px) {
  #yenionkayit .oks-stepper .step-desc p { display: none; }
  #yenionkayit .oks-stepper .step-title { font-size: 11px; }
}

/* ---------- Mobil: tam ekran, tek sütun ---------- */
@media (max-width: 767px) {
  #yenionkayit .modal-dialog { width: 100%; margin: 0; max-width: none; }

  /* overflow:hidden sticky'yi etkisiz kılıyor; mobilde köşe yuvarlaması zaten yok.
     Başlıktaki dekoratif daire taşmasın diye overflow başlığa taşındı. */
  #yenionkayit .modal-content { border-radius: 0; min-height: 100vh; overflow: visible; }
  #yenionkayit .modal-header { padding: 20px 18px 16px; overflow: hidden; }
  #yenionkayit .oks-ikon-rozet { width: 44px; height: 44px; margin-bottom: 8px; }
  #yenionkayit .modal-title { font-size: 17px; }
  #yenionkayit .modal-body { padding: 20px 18px 26px; max-height: none; }

  /* Adım göstergesi yalnızca numaralara iner */
  #yenionkayit .oks-stepper { margin-bottom: 20px; padding-bottom: 18px; }
  #yenionkayit .oks-stepper .step-desc { display: none; }
  #yenionkayit .oks-stepper .step-number { width: 30px; height: 30px; line-height: 30px; font-size: 12px; margin-bottom: 0; }
  #yenionkayit .oks-stepper .step:before { top: 14px; margin-right: 17px; }

  #yenionkayit .oks-alan,
  #yenionkayit .oks-alan.tam { width: 100%; }

  /* iOS'un odakta otomatik yakınlaştırmasını önlemek için 16px */
  #yenionkayit .oks-alan input,
  #yenionkayit .oks-alan select { font-size: 16px; height: 48px; }
  #yenionkayit .oks-alan input[type=date] { line-height: 45px; }
  #yenionkayit .oks-iban-onek { line-height: 45px; }

  #yenionkayit .oks-adim-basi h5 { font-size: 16px; }

  /* Gezinme butonları: tam genişlik ve ekranın altına yapışık.
     Uzun formda kullanıcı her seferinde en alta kaydırmak zorunda kalmaz. */
  #yenionkayit .oks-nav {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 22px -18px 0;
    padding: 14px 18px;                                        /* env() desteklemeyen tarayıcılar için */
    padding-bottom: calc(14px + env(safe-area-inset-bottom));   /* çentikli ekranlarda alt boşluk */
    background: #fff;
    box-shadow: 0 -6px 18px rgba(15, 32, 56, .07);
  }

  #yenionkayit .oks-btn { display: flex; width: 100%; }
  #yenionkayit .oks-btn-geri { margin-top: 10px; }

  /* Uzun listelerde satır kırılsın, yatay kaydırma oluşmasın */
  #yenionkayit .oks-alan select,
  #yenionkayit .oks-alan input { max-width: 100%; }
  #yenionkayit .oks-belge-not { word-break: break-word; }
}

/* ---------- Yatay tutulan telefon (kısa ekran) ---------- */
@media (max-height: 520px) and (max-width: 991px) {
  #yenionkayit .modal-header { padding: 14px 18px 12px; }
  #yenionkayit .oks-ikon-rozet { display: none; }
  #yenionkayit .oks-alt-baslik { display: none; }
  #yenionkayit .oks-stepper { margin-bottom: 16px; padding-bottom: 14px; }
  #yenionkayit .oks-adim-basi { margin-bottom: 14px; }
  #yenionkayit .oks-adim-basi p { display: none; }
  #yenionkayit .oks-nav { position: static; box-shadow: none; margin-top: 16px; }
}

/* Dokunmatik cihazlarda hover efektleri yapışık kalmasın */
@media (hover: none) {
  #yenionkayit .oks-btn-ileri:hover,
  #yenionkayit .oks-btn-kaydet:hover { transform: none; box-shadow: none; }
  #yenionkayit #my-awesome-dropzone:hover { border-color: #cfdaea; background: #f8fafc; }
}
