/* ── Hasta Memnuniyet Anketi – Front-end CSS (Kırmızı Tema) ── */

.hma-form-wrap {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Anket başlık / açıklama bloğu */
.hma-form-baslik-blok {
    margin-bottom: 26px;
    text-align: center;
}

.hma-form-baslik {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 10px;
}

.hma-form-aciklama {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Soru bloğu */
.hma-soru-blok {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.hma-soru-baslik {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 18px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hma-soru-no {
    background: #c0001a;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Yıldız seçici ── */
.hma-yildiz-grup {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hma-yildiz-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    min-width: 80px;
}

.hma-yildiz-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hma-yildiz-ikon {
    font-size: 38px;
    color: #cbd5e1;
    transition: color .2s, transform .15s;
    line-height: 1;
    display: block;
}

.hma-yildiz-metin {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    margin-top: 5px;
    font-weight: 500;
}

.hma-yildiz-label:hover .hma-yildiz-ikon,
.hma-yildiz-label.hma-secili .hma-yildiz-ikon {
    color: #c0001a;
    transform: scale(1.15);
}

.hma-yildiz-label.hma-secili .hma-yildiz-metin {
    color: #c0001a;
    font-weight: 700;
}

/* ── NPS ── */
.hma-nps-grup {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hma-nps-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.hma-nps-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 17px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all .18s;
    background: #f8fafc;
}

.hma-nps-label:hover .hma-nps-btn {
    border-color: #c0001a;
    color: #c0001a;
    background: #fff5f5;
}

.hma-nps-label.hma-secili .hma-nps-btn {
    background: #c0001a;
    border-color: #c0001a;
    color: #fff;
    box-shadow: 0 3px 10px rgba(192,0,26,.35);
}

.hma-nps-aciklama {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

/* ── Textarea ── */
#hma-soru4 {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    resize: vertical;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}

#hma-soru4:focus {
    outline: none;
    border-color: #c0001a;
    box-shadow: 0 0 0 3px rgba(192,0,26,.12);
}

/* ── Gönder butonu ── */
.hma-gonder-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c0001a 0%, #e8001f 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    margin-top: 8px;
    letter-spacing: .3px;
}

.hma-gonder-btn:hover   { opacity: .9; transform: translateY(-1px); }
.hma-gonder-btn:active  { transform: translateY(0); }
.hma-gonder-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Mesaj ── */
#hma-mesaj {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
}

#hma-mesaj.hma-basari {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    display: block;
}

#hma-mesaj.hma-hata-msg {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    display: block;
}

/* ── Hata mesajları ── */
.hma-hata {
    color: #dc2626;
    font-size: 13px;
    display: block;
    margin-top: 8px;
    min-height: 18px;
}

.hma-soru-blok.hma-hata-blok {
    border-color: #fca5a5;
    box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .hma-soru-blok { padding: 18px 16px; }
    .hma-yildiz-ikon { font-size: 30px; }
    .hma-nps-btn { width: 38px; height: 38px; font-size: 14px; }
    .hma-yildiz-metin { font-size: 10px; }
}

/* ── Popup ── */
#hma-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

#hma-popup-kutu {
    background: #fff;
    border-radius: 18px;
    padding: 44px 36px 36px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    transform: scale(.85);
    opacity: 0;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .25s;
}

#hma-popup-kutu.hma-popup-giris {
    transform: scale(1);
    opacity: 1;
}

#hma-popup-ikon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #c0001a, #e8001f);
    color: #fff;
    font-size: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(192,0,26,.4);
}

#hma-popup-baslik {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
}

#hma-popup-metin {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px;
}

#hma-popup-kapat {
    background: linear-gradient(135deg, #c0001a, #e8001f);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 36px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
}

#hma-popup-kapat:hover   { opacity: .88; transform: translateY(-1px); }
#hma-popup-kapat:active  { transform: translateY(0); }

/* ── Telefon input ── */
#hma-telefon {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
}
#hma-telefon:focus {
    outline: none;
    border-color: #c0001a;
    box-shadow: 0 0 0 3px rgba(192,0,26,.12);
}

/* ── Form hata kutusu ── */
.hma-hata-msg-kutu {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    margin-top: 12px;
}

/* ── Admin KPI kartlar ── */
.hma-dashboard-kpi {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 20px 0;
}
.hma-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.hma-card-nps-highlight {
    flex-direction: column;
    align-items: flex-start;
    min-width: 260px;
}
.hma-card-icon { font-size: 32px; line-height: 1; }
.hma-card-info { display: flex; flex-direction: column; gap: 2px; }
.hma-card-val  { font-size: 26px; font-weight: 800; color: #1e293b; line-height: 1.1; }
.hma-card-lbl  { font-size: 12px; color: #64748b; font-weight: 500; }
.nps-good    { color: #16a34a !important; }
.nps-neutral { color: #d97706 !important; }
.nps-bad     { color: #dc2626 !important; }

/* NPS Bar */
.hma-nps-bar-inner {
    display: flex;
    width: 100%;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
}
.nps-bar-part { height: 100%; transition: width .4s; }
.nps-bar-promoter  { background: #22c55e; }
.nps-bar-passive   { background: #eab308; }
.nps-bar-detractor { background: #ef4444; }
.hma-nps-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    width: 100%;
}

/* Filtre formu */
.hma-filter-form { margin: 16px 0; }
.hma-filter-row  { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hma-presets     { display: flex; flex-wrap: wrap; gap: 6px; }
.hma-custom-dates { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ── Dinamik alanlar: genel metin input / textarea (Ad Soyad, E-posta, Telefon, Serbest Metin) ── */
.hma-soru-blok input[type="text"],
.hma-soru-blok input[type="email"],
.hma-soru-blok input[type="tel"],
.hma-soru-blok textarea {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    color: #1e293b;
    transition: border-color .2s;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}
.hma-soru-blok input[type="text"]:focus,
.hma-soru-blok input[type="email"]:focus,
.hma-soru-blok input[type="tel"]:focus,
.hma-soru-blok textarea:focus {
    outline: none;
    border-color: #c0001a;
    box-shadow: 0 0 0 3px rgba(192,0,26,.12);
}

.hma-zorunlu-yildiz { color: #c0001a; }
.hma-opsiyonel-etiket { font-size: 12px; font-weight: 500; color: #94a3b8; }

/* ── Katılıyorum / Katılmıyorum ── */
.hma-onay-grup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hma-onay-label {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    background: #f8fafc;
    transition: all .18s;
}
.hma-onay-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.hma-onay-label:hover {
    border-color: #c0001a;
    color: #c0001a;
    background: #fff5f5;
}
.hma-onay-label.hma-secili {
    background: #c0001a;
    border-color: #c0001a;
    color: #fff;
    box-shadow: 0 3px 10px rgba(192,0,26,.35);
}
