/* ============================================================
   /hizlibasvuru — Digiturk Online Başvuru (4 adım) — %100 referans
   ============================================================ */
.hb { background: #f4f5f8; min-height: 92vh; padding: 24px 0 60px; }
.hb-wrap { width: 100%; max-width: 720px; margin-inline: auto; padding-inline: 16px; }

.hb-head { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 16px; padding: 16px 24px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(20,20,60,.05); }
.hb-logo { width: 150px; height: auto; }
.hb-bein { color: var(--mor, #660099); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; }
.hb-bein b { font-weight: 400; }
.hb-bein-play { background: var(--mor, #660099); color: #fff; font-size: 9px; padding: 2px 5px; border-radius: 4px; }

/* Üst panel: başlık + adımlar */
.hb-panel { background: #fff; border-radius: 16px; padding: 22px 20px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(20,20,60,.05); }
.hb-title { text-align: center; font-size: 25px; color: var(--baslik, #29145f); margin: 0 0 20px; font-weight: 800; }

/* Adım kutuları — çizgisiz, aktif açık mavi */
/* Adım sayısına göre eşit sütun (kutusuz=3, uydu=4) — hep ortalı/dengeli dizilir. */
.hb-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
.hb-step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #f5f6fa; border-radius: 12px; padding: 16px 8px; transition: .2s; }
.hb-step.is-active { background: #e4effd; }
.hb-dot { width: 40px; height: 40px; border-radius: 50%; background: #1f6fe5; color: #fff; font-weight: 700; font-size: 16px; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(31,111,229,.3); }
.hb-lbl { font-size: 12.5px; font-weight: 600; color: #7a8091; line-height: 1.25; }
.hb-step.is-active .hb-lbl { color: var(--baslik, #29145f); }

/* Kart / form */
.hb-card { background: #fff; border-radius: 16px; padding: 26px 22px; box-shadow: 0 2px 10px rgba(20,20,60,.05); }

.hb-field { margin-bottom: 14px; }
.hb-field label { display: block; font-weight: 600; color: #2a2a35; font-size: 14px; margin-bottom: 7px; }
.hb-field input, .hb-field select, .hb-3 select, .hb-af select {
    width: 100%; padding: 14px 15px; border: 1px solid #dfe1ea; border-radius: 12px; font-size: 16px;
    font-family: inherit; background: #fff; color: #2a2a35;
}
.hb-field input::placeholder { color: #9aa0b5; }
.hb-field input:focus, .hb-field select:focus, .hb-3 select:focus, .hb-af select:focus { outline: none; border-color: var(--mor, #660099); box-shadow: 0 0 0 3px rgba(102,0,153,.12); }
.hb-field.has-error input, .hb-field.has-error select { border-color: var(--kirmizi, #dd1936); background: #fdf3f4; }
.hb-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.hb-err { display: block; color: var(--kirmizi, #dd1936); font-size: 12.5px; margin: -8px 0 12px; }
/* hidden attribute'u `.hb-err{display:block}`i yenmeli; yoksa boş hata kutusu (pembe çizgi) görünür. */
.hb-err[hidden], .hb-err--form[hidden] { display: none !important; }
.hb-err--form:empty { display: none !important; }
.hb-err--form { background: #fdeef0; border: 1px solid #f5c6cd; color: #a3122a; border-radius: 10px; padding: 11px 14px; margin: 4px 0 14px; }

/* Adres kademeleri (etiketsiz) */
.hb-adres .hb-af { margin-bottom: 12px; }

/* Paket bölümleri — gri kutular */
.hb-box { background: #f6f7fa; border-radius: 12px; padding: 16px 16px 14px; margin-bottom: 14px; }
.hb-sec-bas { text-align: center; font-weight: 700; color: var(--baslik, #29145f); border-bottom: 1px solid #e6e8ef; padding-bottom: 10px; margin-bottom: 14px; }
.hb-box .hb-field { margin-bottom: 0; }
.hb-odeme { display: flex; gap: 26px; justify-content: center; }
.hb-radio { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #6b6b6b; cursor: pointer; }
.hb-radio.is-active { color: var(--mor, #660099); }
.hb-radio input { accent-color: var(--mor, #660099); width: 18px; height: 18px; }

.hb-paket-detay { text-align: center; padding: 14px 4px 2px; }
.hb-paket-detay .ad { font-weight: 800; color: #c81e2b; font-size: 15px; line-height: 1.3; }
.hb-paket-detay .desc { color: #6b6b6b; font-size: 12.5px; margin: 8px 0; line-height: 1.5; }
.hb-paket-detay .note { color: #444; font-weight: 700; font-size: 12.5px; margin: 8px 0 2px; }
.hb-paket-detay .note-red { color: #c81e2b; font-weight: 600; font-size: 12px; margin: 4px 0 10px; }
.hb-paket-detay .satir { color: #6b6b6b; font-size: 12px; }
.hb-paket-detay .satir b { display: block; color: var(--baslik, #29145f); font-size: 16px; }

/* Butonlar */
.hb-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.hb-nav--center { justify-content: center; }
.hb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(120deg, #6a2c91, #4a1d6b); color: #fff; border: 0; cursor: pointer;
    font-weight: 700; font-size: 15px; padding: 13px 34px; border-radius: 30px; text-decoration: none;
    box-shadow: 0 8px 18px rgba(102,0,153,.26); transition: .2s; }
.hb-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }

/* İşleniyor (loading + bilgilendirme) */
.hb-loading { text-align: center; }
.hb-spinner { width: 56px; height: 56px; border: 5px solid #eadff2; border-top-color: var(--mor, #660099); border-radius: 50%; margin: 6px auto 20px; animation: hb-spin .9s linear infinite; }
@keyframes hb-spin { to { transform: rotate(360deg); } }
.hb-loading h2 { color: var(--baslik, #29145f); margin: 0 0 6px; font-size: 21px; }
.hb-loading p { color: #6b6b6b; margin: 0 0 22px; }
.hb-progress { list-style: none; padding: 0; margin: 0 auto; max-width: 380px; text-align: left; }
.hb-progress li { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: #9aa0b5; font-size: 14.5px; transition: color .3s; }
.hb-progress li.is-active { color: var(--baslik, #29145f); font-weight: 600; }
.hb-progress li.is-done { color: #1c7a3f; }
.hb-p-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d5d8e3; flex: 0 0 auto; position: relative; transition: .3s; }
.hb-progress li.is-active .hb-p-mark { border-color: var(--mor, #660099); box-shadow: 0 0 0 4px rgba(102,0,153,.12); }
.hb-progress li.is-done .hb-p-mark { border-color: #1c7a3f; background: #1c7a3f; }
.hb-progress li.is-done .hb-p-mark::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 700; }

/* Sonuç bilgilendirme notu */
.hb-done-note { background: #f6f0fa; border: 1px solid #e3d3ee; color: #4a2a6b; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin: 0 auto 20px; max-width: 460px; }

/* Alt güven şeridi (bilgilendirme) */
.hb-guven { margin-top: 14px; text-align: center; }
.hb-guven-ic { display: inline-block; color: #7a8091; font-size: 12.5px; line-height: 1.6; }

/* Sonuç */
.hb-done { text-align: center; }
.hb-done-icon { width: 72px; height: 72px; border-radius: 50%; background: #e9f7ee; color: #1c7a3f; font-size: 38px; display: grid; place-items: center; margin: 6px auto 18px; }
.hb-done h2 { color: var(--baslik, #29145f); margin: 0 0 10px; }
.hb-done p { color: #6b6b6b; margin: 0 auto 22px; max-width: 460px; }
.hb-done .hb-btn { margin-inline: auto; }

@media (max-width: 620px) {
    .hb-lbl { font-size: 10px; }
    .hb-step { padding: 12px 4px; }
    .hb-dot { width: 34px; height: 34px; font-size: 14px; }
    .hb-title { font-size: 20px; }
    .hb-btn { padding: 12px 26px; font-size: 14px; }
    .hb-odeme { gap: 14px; }
}

/* Adres kademesi yüklenirken dönen gösterge — UAVT yavaşken kullanıcı "bitti" sanmasın. */
.hb-af { position: relative; }
.hb-af--loading select { color: #8a90a3; }
.hb-af--loading::after {
  content: ""; position: absolute; right: 40px; top: 50%;
  width: 18px; height: 18px; margin-top: -9px;
  border: 2.5px solid #ddd6e8; border-top-color: #660099; border-radius: 50%;
  animation: hb-spin .8s linear infinite; pointer-events: none;
}
