/* ==================================================================
   register.css — registration/register.php + success.php stilleri.
   6 adımlı wizard iskeleti + progress dots + step animasyonları.
   Renk tokenları style.css'teki marka paleti ile uyumlu (koyu zeytin +
   zeytinyağı-yeşili primary).
   ================================================================== */

/* Kart wrapper — index'in main-wrapper içine düşer  */
.tl_popup_container.dyn_regPopup {
  width: 100%;
  max-width: 720px;
  margin: 20px auto;
  background: #1c2109;
  border: 1px solid #2e360f;
  border-radius: 12px;
  color: #e8e9d6;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* Başlık şeridi */
.dyn_regPopup_header {
  padding: 14px 20px;
  background: linear-gradient(180deg,#252c0e 0%,#1c2109 100%);
  border-bottom: 1px solid #2e360f;
  justify-content: space-between;
}
.dyn_regPopup_header_text {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}
.tl_head_close {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: transparent;
  transition: background .15s;
  display: inline-block;
}
.tl_head_close:hover { background: #2e360f; }
.tl_head_close:before,
.tl_head_close:after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  background: #cfd0b8;
}
.tl_head_close:before { transform: translate(-50%,-50%) rotate( 45deg); }
.tl_head_close:after  { transform: translate(-50%,-50%) rotate(-45deg); }

/* İçerik container — banner (opsiyonel) + form gövdesi yan yana */
.dyn_regPopup_content {
  padding: 20px;
  gap: 20px;
  align-items: stretch;
}
.dyn_regPopup_banner {
  display: none;   /* banner slider yok; alanı kapatalım */
}
.dyn_regPopup_body {
  width: 100%;
  gap: 20px;
}

/* Progress dots — 6 nokta yatay çizgi ile bağlı */
.dyn_regPopup_progressInfo { padding-top: 6px; }
.dyn_regPopup_progressDots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 8px 0 12px;
  position: relative;
}
.dyn_regPopup_progressDots .js_progress_line {
  position: relative;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #4a5216;
  background: #0f1305;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
  z-index: 1;
}
.dyn_regPopup_progressDots .js_progress_line + .js_progress_line:before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: calc((100vw - 320px) / 6);
  max-width: 90px;
  min-width: 24px;
  height: 2px;
  background: #4a5216;
  z-index: 0;
  transform: translateY(-50%);
}
.dyn_regPopup_progressDots .js_progress_line.active {
  background: #7e890e;
  border-color: #7e890e;
  box-shadow: 0 0 0 4px rgba(126,137,14,.18);
}
.dyn_regPopup_progressDots .js_progress_line.done {
  background: #7e890e;
  border-color: #7e890e;
}
.dyn_regPopup_progressDots .js_progress_line.done:after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.dyn_regPopup_progressDots .js_progress_line.done + .js_progress_line:before,
.dyn_regPopup_progressDots .js_progress_line.active + .js_progress_line:before {
  background: linear-gradient(90deg,#7e890e 0%,#4a5216 100%);
}

/* Step numarası — sadece aktif olan görünür */
.dyn_regPopup_stepNumber { padding-bottom: 4px; }
.dyn_regPopup_stepNumber .js_progress_text {
  color: #cfd0b8;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .3px;
}
.dyn_regPopup_stepNumber .vis_hidden { display: none; }

/* Adım kartları — sadece .showStep olan görünür */
.dyn_reg_step {
  display: none;
}
.dyn_reg_step.showStep { display: grid; }
.dyn_step_col_1.showStep { grid-template-columns: 1fr; }
.dyn_step_col_2.showStep {
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px 16px;
}

/* Form group */
.dyn_form_group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
  margin-bottom: 0;
}
.dyn_full_width { grid-column: 1 / -1; }

.dyn_label {
  color: #cfd0b8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .3px;
}

/* Input & select */
.dyn_input,
.dyn_select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #0f1305;
  border: 1px solid #2e360f;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-height: 42px;
  line-height: 42px;
  display: block;
}
.dyn_input::placeholder { color: #6b6f52; }
.dyn_input:focus,
.dyn_select:focus {
  border-color: #7e890e;
  box-shadow: 0 0 0 3px rgba(126,137,14,.18);
}
.dyn_select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, #7e890e 50%),
                    linear-gradient(135deg, #7e890e 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.dyn_input.input-validation-error,
.dyn_select.input-validation-error {
  border-color: #ff6a6a;
  box-shadow: 0 0 0 3px rgba(255,106,106,.15);
}

/* Şifre göz-aç/kapa */
.dyn_eye_button {
  position: absolute;
  top: 30px; right: 10px;
  width: 22px; height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.dyn_eye_button:before {
  content: '👁';
  font-size: 16px;
  line-height: 1;
  color: #7e890e;
}
.dyn_eye_button.opened_pass:before { opacity: .45; }

/* Telefon (kod + numara) */
.dyn_mobile_wrapper { display: flex; gap: 8px; }
.dyn_mobile_code    { flex: 0 0 90px; }
.dyn_mobile_number  { flex: 1; }

/* Doğum tarihi */
.dyn_DateOfBirthDay { display: flex; gap: 8px; }
.dyn_DateOfBirthDay .dyn_select { min-width: 0; flex: 1; }

/* Cinsiyet radyoları */
.reg__gender_row { display: flex; gap: 20px; align-items: center; padding-top: 4px; }
.radioBox_label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #e8e9d6;
  font-size: 14px;
}
.radioBox_label input[type="radio"] { display: none; }
.radioBox_icon {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #2e360f;
  background: #0f1305;
  position: relative;
  transition: border-color .15s;
  flex-shrink: 0;
}
.radioBox_label input:checked + .radioBox_icon { border-color: #7e890e; }
.radioBox_label input:checked + .radioBox_icon:after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #7e890e;
}

/* Checkbox */
.checkBox_label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  color: #cfd0b8;
  font-size: 12px;
  line-height: 1.5;
  margin-inline-start: 0;
  position: static;
}
.checkBox_input { display: none; }
.checkBox_icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  border: 2px solid #2e360f;
  border-radius: 4px;
  background: #0f1305;
  position: static;
  transition: background .15s, border-color .15s;
}
.checkBox_input:checked + .checkBox_icon {
  background: #7e890e;
  border-color: #7e890e;
}
.checkBox_input:checked + .checkBox_icon:after {
  content: '';
  display: block;
  margin: 1px 0 0 5px;
  width: 4px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: static;
  color: transparent;
  font-family: inherit;
}
.checkBox_text,
.checkBox_title { color: #cfd0b8; }
.checkBox_text a,
.checkBox_title a { color: #7e890e; text-decoration: underline; }

/* OTP alanları için orta hizalama */
.dyn_regPopup_otp {
  gap: 12px;
  align-items: stretch;
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}
.dyn_resend_text {
  color: #cfd0b8;
  font-size: 12px;
  text-align: center;
  display: block;
}
.dyn_resend_countdown {
  color: #7e890e;
  font-weight: 700;
  margin-left: 4px;
}
.dyn_resend_button_onlyText {
  background: transparent;
  border: 0;
  color: #7e890e;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  text-transform: uppercase;
}
.dyn_resend_button_onlyText.hidden { display: none; }

/* CAPTCHA */
.dyn_captcha_block {
  align-items: stretch;
  gap: 10px;
}
.captchaImage {
  display: inline-block;
  min-width: 100px;
  height: 42px;
  padding: 0 12px;
  background: #7e890e;
  color: #131703;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 4px;
  text-align: center;
  line-height: 42px;
  border-radius: 8px;
  user-select: none;
}
.dyn_captcha_refresh {
  display: flex;
  gap: 6px;
  flex: 1;
  align-items: center;
}
.js_refresh_captcha {
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid #2e360f;
  background: #0f1305;
  color: #7e890e;
  font-size: 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.js_refresh_captcha:hover { border-color: #7e890e; }
.cw_icon_refresh_v5:before { content: '↻'; }

/* Hata mesajı */
.dyn_err_mess {
  color: #ff7676;
  font-size: 12px;
  min-height: 14px;
  display: block;
}

/* Footer — Geri / Sonraki butonları */
.dyn_regPopup_footer {
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid #2a300d;
  margin-top: 4px;
}
.dyn_footer_col_item { flex: 1; min-width: 0; }
.dyn_footer_col_item.hidden { display: none; }

.dyn_button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}
.dyn_button:active { transform: translateY(1px); }
.dyn_button_next,
.dyn_button.bg-primary {
  background: linear-gradient(180deg,#a2b112 0%,#6a7908 100%);
  color: #131703;
  box-shadow: 0 4px 12px rgba(126,137,14,.35);
}
.dyn_button_next:hover { box-shadow: 0 6px 16px rgba(126,137,14,.45); }
.dyn_button_back {
  background: transparent;
  color: #cfd0b8;
  border: 1px solid #2e360f;
}
.dyn_button_back:hover { border-color: #7e890e; color: #fff; }

/* Küçük ekran — 2 kolonu 1'e indir */
@media (max-width: 640px) {
  .dyn_step_col_2.showStep { grid-template-columns: 1fr; }
  .dyn_regPopup_footer { flex-direction: column-reverse; align-items: stretch; }
  .dyn_footer_col_item { flex: 0 0 auto; }
  .tl_popup_container.dyn_regPopup { border-radius: 0; margin: 0; min-height: calc(100vh - 60px); }
  .dyn_regPopup_content { padding: 16px; }
}

/* Utility’ler (style.css'te olmayabilir) */
.hidden { display: none !important; visibility: hidden !important; }
.vis_hidden { visibility: hidden; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gx-2 { column-gap: 8px !important; }
.gx-3 { column-gap: 16px !important; }
.mb-2 { margin-bottom: 12px !important; }
.text-center { text-align: center !important; }
.w-100 { width: 100% !important; }
