/* =========================================================
   FORYA • account/address/add • FINAL CSS
   Scope: sadece .forya-address-add-form
========================================================= */

.forya-address-add-form{
  max-width:720px !important;
  margin:0 auto !important;
}

/* label'ları gizle */
.forya-address-add-form .form-group > label.control-label{
  display:none !important;
}

/* kolonları full yap */
.forya-address-add-form .form-group > .col-sm-10{
  float:none !important;
  width:100% !important;
}

/* spacing */
.forya-address-add-form .form-group{ margin-bottom:12px !important; }

/* input/select */
.forya-address-add-form .form-control{
  border-radius:10px !important;
  height:46px !important;
  line-height:46px !important;
}
.forya-address-add-form select.form-control{
  line-height:normal !important;
  padding-top:10px !important;
  padding-bottom:10px !important;
}

/* soft valid/invalid */
.forya-address-add-form .form-control.forya-is-valid{
  border-color: rgba(46,125,50,.35) !important;
  box-shadow: 0 0 0 3px rgba(46,125,50,.08) !important;
  background: rgba(46,125,50,.02) !important;
}
.forya-address-add-form .form-control.forya-is-invalid{
  border-color: rgba(198,40,40,.28) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.06) !important;
  background: rgba(198,40,40,.02) !important;
}

/* VKN badge */
.forya-address-add-form .forya-vkn-wrap{ position:relative !important; }
.forya-address-add-form .forya-vkn-wrap .form-control{ padding-right:170px !important; }
.forya-address-add-form .forya-vkn-badge{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  font-weight:800;
  padding:7px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.70);
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
  max-width:155px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.forya-address-add-form .forya-vkn-badge.show{ opacity:1; transform:translateY(-50%) translateY(-1px); }
.forya-address-add-form .forya-vkn-badge.ok{ background: rgba(46,125,50,.12); color: rgba(46,125,50,.95); }
.forya-address-add-form .forya-vkn-badge.bad{ background: rgba(198,40,40,.12); color: rgba(198,40,40,.95); }
@media (max-width:768px){
  .forya-address-add-form .forya-vkn-wrap .form-control{ padding-right:140px !important; }
  .forya-address-add-form .forya-vkn-badge{ max-width:125px; }
}

/* buttons equal + flex */
.forya-address-add-form .buttons{
  display:flex !important;
  gap:18px !important;
  align-items:stretch !important;
  margin-top:14px !important;
}
.forya-address-add-form .buttons::before,
.forya-address-add-form .buttons::after{ content:none !important; display:none !important; }
.forya-address-add-form .buttons > .pull-left,
.forya-address-add-form .buttons > .pull-right{
  float:none !important;
  flex:1 1 0 !important;
  width:50% !important;
  margin:0 !important;
  max-width:none !important;
}
.forya-address-add-form .buttons > .pull-right{
  display:flex !important;
  align-items:stretch !important;
}
.forya-address-add-form .buttons > .pull-right .forya-submit-wrap{
  display:block !important;
  width:100% !important;
  flex:1 1 auto !important;
}
.forya-address-add-form .buttons .btn,
.forya-address-add-form .buttons > .pull-right .forya-submit-wrap > button,
.forya-address-add-form .buttons > .pull-right .forya-submit-wrap > input[type="submit"]{
  width:100% !important;
  min-width:100% !important;
  display:block !important;
  height:46px !important;
  line-height:46px !important;
  padding:0 16px !important;
  border-radius:10px !important;
  font-weight:900 !important;
}
@media (max-width:768px){ .forya-address-add-form .buttons{ gap:12px !important; } }

/* submit enabled => green */
.forya-address-add-form button[type="submit"].forya-btn-ready{
  background:#2e7d32 !important;
  border-color:#2e7d32 !important;
  color:#fff !important;
  opacity:1 !important;
  filter:none !important;
}

/* disabled tooltip + toast */
.forya-address-add-form .forya-submit-wrap{ position:relative; display:block; }
.forya-address-add-form .forya-btn-disabled{ opacity:.60; filter:saturate(.80); cursor:not-allowed !important; }
.forya-address-add-form .forya-btn-guard{
  position:absolute; inset:0;
  border-radius:10px;
  cursor:not-allowed;
  display:none;
}
.forya-address-add-form .forya-tooltip{
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  background: rgba(20,20,20,.92);
  color:#fff;
  font-size:13px;
  padding:8px 10px;
  border-radius:12px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease;
  z-index:9999;
}
.forya-address-add-form .forya-tooltip::after{
  content:"";
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%);
  border:7px solid transparent;
  border-top-color: rgba(20,20,20,.92);
}
.forya-address-add-form .forya-submit-wrap.forya-show-tip .forya-tooltip{ opacity:1; }

.forya-toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background: rgba(20,20,20,.92);
  color:#fff;
  padding:12px 14px;
  border-radius:14px;
  font-size:14px;
  z-index:999999;
  opacity:0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events:none;
}
.forya-toast.forya-toast-show{
  opacity:1;
  transform:translateX(-50%) translateY(-4px);
}

/* default switch */
.forya-address-add-form .forya-default-switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background: rgba(0,0,0,.03);
}
.forya-address-add-form .forya-default-switch .forya-switch-label{
  font-weight:900;
  color: rgba(0,0,0,.75);
}
.forya-address-add-form .forya-switch{
  position:relative;
  width:54px;
  height:30px;
  flex:0 0 auto;
}
.forya-address-add-form .forya-switch input{
  position:absolute; inset:0;
  opacity:0;
}
.forya-address-add-form .forya-switch .track{
  position:absolute; inset:0;
  border-radius:999px;
  background: rgba(0,0,0,.22);
  transition: background .18s ease;
}
.forya-address-add-form .forya-switch .thumb{
  position:absolute;
  top:3px; left:3px;
  width:24px; height:24px;
  border-radius:999px;
  background:#fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
  transition: transform .18s ease;
}
.forya-address-add-form .forya-default-switch.is-on .track{ background: rgba(46,125,50,.95); }
.forya-address-add-form .forya-default-switch.is-on .thumb{ transform: translateX(24px); }

/* =========================================================
   HİZA FIX: Adres Başlığı + İlçe + Mahalle aynı hizada olsun
   (en alta ekle)
========================================================= */

/* Bu 3 özel grubun genişliği ve iç boşlukları tam eşitlensin */
.forya-address-add-form #forya-adres-basligi-group,
.forya-address-add-form #forya-districtSelect-group,
.forya-address-add-form #forya-mahalleSelect-group{
  width:100% !important;
}

.forya-address-add-form #forya-adres-basligi-group > .col-sm-10,
.forya-address-add-form #forya-districtSelect-group > .col-sm-10,
.forya-address-add-form #forya-mahalleSelect-group > .col-sm-10{
  width:100% !important;
  float:none !important;
  margin:0 !important;
  padding-left:0 !important;   /* ⬅ hizayı düzeltir */
  padding-right:0 !important;  /* ⬅ hizayı düzeltir */
}

/* Inputlarla aynı “içten” görünüm için kontrol padding’i eşitle */
.forya-address-add-form #forya-adres-basligi,
.forya-address-add-form #forya-districtSelect,
.forya-address-add-form #forya-mahalleSelect{
  width:100% !important;
  box-sizing:border-box !important;
  padding-left:14px !important;
  padding-right:40px !important; /* select okuna yer */
}

/* Journal/tema custom select wrapper'ı yeşil/kırmızı görünsün */
.forya-address-add-form .bootstrap-select.forya-is-valid > .dropdown-toggle{
  border-color: rgba(46,125,50,.35) !important;
  box-shadow: 0 0 0 3px rgba(46,125,50,.08) !important;
  background: rgba(46,125,50,.02) !important;
}
.forya-address-add-form .bootstrap-select.forya-is-invalid > .dropdown-toggle{
  border-color: rgba(198,40,40,.28) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.06) !important;
  background: rgba(198,40,40,.02) !important;
}

/* select2 kullanılıyorsa */
.forya-address-add-form .select2-container.forya-is-valid .select2-selection{
  border-color: rgba(46,125,50,.35) !important;
  box-shadow: 0 0 0 3px rgba(46,125,50,.08) !important;
  background: rgba(46,125,50,.02) !important;
}
.forya-address-add-form .select2-container.forya-is-invalid .select2-selection{
  border-color: rgba(198,40,40,.28) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.06) !important;
  background: rgba(198,40,40,.02) !important;
}