/* TALEP FORMU SAYFASI */
.talep-sayfa {
  display: grid;
  grid-template-columns: 380px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  min-height: calc(100vh - 65px - 80px);
}

.talep-bilgi {
  padding: 40px 32px;
  border-right: 1px solid #e2e8f0;
  background: #fff;
}

.talep-geri {
  display: inline-block;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.talep-geri:hover {
  color: #2563eb;
}

.talep-hizmet-adi {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.talep-aciklama {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 32px;
}

.talep-avantajlar {
  display: grid;
  gap: 20px;
}

.talep-avantaj {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.talep-avantaj-ikon {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.talep-avantaj-baslik {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a;
  margin-bottom: 2px;
}

.talep-avantaj-aciklama {
  font-size: 13px;
  color: #94a3b8;
}

/* FORM ALANI */
.talep-form-alan {
  padding: 40px 48px;
  background: #fff;
}

/* İLERLEME ÇUBUĞU */
.talep-ilerleme {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.ilerleme-adim {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.ilerleme-adim.aktif {
  color: #2563eb;
}
.ilerleme-adim.tamamlandi {
  color: #16a34a;
}

.ilerleme-daire {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.ilerleme-adim.aktif .ilerleme-daire {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}
.ilerleme-adim.tamamlandi .ilerleme-daire {
  border-color: #16a34a;
  background: #16a34a;
  color: #fff;
  font-size: 0;
}
.ilerleme-adim.tamamlandi .ilerleme-daire::after {
  content: '\2713';
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.ilerleme-cizgi {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  margin: 0 12px;
  min-width: 20px;
  border-radius: 1px;
  transition: background 0.3s;
}
.ilerleme-cizgi.tamamlandi {
  background: #16a34a;
}

/* FORM ADIMLARI */
.form-adim {
  display: none;
  animation: formGiris 0.35s ease;
}
.form-adim.aktif {
  display: block;
}

@keyframes formGiris {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.form-adim-baslik {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-adim-aciklama {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

/* FORM ELEMANLARI */
.form-grup {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.zorunlu {
  color: #ef4444;
}

.form-input,
.form-textarea,
.talep-form .form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.form-input:focus,
.form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.hata,
.form-textarea.hata {
  border-color: #ef4444;
}

.form-input[readonly] {
  background: #f8fafc;
  color: #64748b;
}

/* Telefon bayrak prefix */
.talep-telefon-wrap {
  display: flex;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.talep-telefon-wrap:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.talep-telefon-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  user-select: none;
  white-space: nowrap;
}

.talep-bayrak-ikon {
  display: block;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1);
  border-radius: 2px;
}

.talep-telefon-wrap .form-input {
  border: none !important;
  border-radius: 0 !important;
  padding: 11px 14px !important;
  flex: 1;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.talep-telefon-wrap .form-input:focus {
  box-shadow: none !important;
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-ipucu {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 4px;
}

.form-ipucu[data-tur="bilgi"] {
  color: #2563eb;
}

.form-ipucu[data-tur="basari"] {
  color: #16a34a;
}

.form-ipucu[data-tur="hata"] {
  color: #ef4444;
}

.form-hata {
  display: block;
  font-size: 12px;
  color: #ef4444;
  margin-top: 4px;
}

.form-satir {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* SEÇENEKLER (Radio) */
.form-secenekler {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.form-secenek {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.form-secenek input[type="radio"] {
  display: none;
}

.form-secenek span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 13px;
  color: #475569;
  transition: all 0.2s;
  user-select: none;
}

.form-secenek input[type="radio"]:checked + span {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

.form-secenek span:hover {
  border-color: #93c5fd;
}

/* ONAY (Checkbox — custom) */
label.form-onay {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  line-height: 1.5;
}

label.form-onay input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-onay-kutu {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

label.form-onay input[type="checkbox"]:checked + .form-onay-kutu {
  background: #2563eb;
  border-color: #2563eb;
}

label.form-onay input[type="checkbox"]:checked + .form-onay-kutu::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.form-onay-metin {
  flex: 1;
}

.form-onay-metin a {
  color: #2563eb;
  text-decoration: underline;
}

/* FORM BUTONLARI */
.form-aksiyon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f1f5f9;
}

.btn-ileri,
.btn-gonder {
  padding: 12px 28px;
  font-size: 15px;
}

.btn-geri {
  padding: 12px 20px;
  font-size: 14px;
}

.btn-gonder {
  min-width: 160px;
}

/* BAŞARI EKRANI */
.form-basari {
  text-align: center;
  padding: 60px 0;
}

.basari-ikon {
  font-size: 56px;
  margin-bottom: 16px;
}

.form-basari .form-adim-baslik {
  font-size: 28px;
  margin-bottom: 12px;
}

.form-basari .form-adim-aciklama {
  margin-bottom: 32px;
}

/* TABLET */
@media (max-width: 900px) {
  .talep-sayfa {
    grid-template-columns: 1fr;
  }

  .talep-bilgi {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 24px;
  }
}

/* MOBİL */
@media (max-width: 640px) {
  .talep-form-alan {
    padding: 24px;
  }

  .form-satir {
    grid-template-columns: 1fr;
  }

  .talep-ilerleme span {
    display: none;
  }
}

/* ══════════════════════════════════════════════
   HİZMET ARAMA AUTOCOMPLETE
   ══════════════════════════════════════════════ */
.hizmet-arama-wrap {
  position: relative;
}

.hizmet-oneri-kutusu {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 60;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
}

.hizmet-oneri-kutusu:empty {
  display: none;
}

.hizmet-oneri-baslik {
  padding: 8px 14px 4px;
  font-size: .7rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.hizmet-oneri-oge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: .9rem;
  color: #334155;
  transition: background .12s;
}

.hizmet-oneri-oge:last-child {
  border-radius: 0 0 10px 10px;
}

.hizmet-oneri-oge:hover,
.hizmet-oneri-oge.aktif {
  background: #eff6ff;
  color: #2563eb;
}

.hizmet-oneri-ikon {
  width: 28px;
  height: 28px;
  background: #f1f5f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  flex-shrink: 0;
}

.hizmet-oneri-oge:hover .hizmet-oneri-ikon {
  background: #dbeafe;
}

.hizmet-oneri-bos {
  padding: 16px 14px;
  text-align: center;
  color: #94a3b8;
  font-size: .85rem;
}

/* DOĞRULAMA KOD GİRİŞİ */
.dogrulama-kod-satir {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dogrulama-kod-input {
  font-size: 20px !important;
  letter-spacing: 6px;
  text-align: center;
  max-width: 200px;
  font-weight: 600;
}

.dogrulama-kod-satir .btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Faz geçişleri */
#dogrulamaFaz1,
#dogrulamaFaz2,
#dogrulamaFaz3 {
  animation: fazGir 0.3s ease;
}

@keyframes fazGir {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
