/* ---- Ortak ihr- kuralları (ihracat.css yeniden tasarlandığı için bu sayfaya taşındı) ---- */
.ihr-subq { margin-top: 12px; padding: 10px 12px; background: rgba(11,46,79,0.03); border-left: 2.5px solid rgba(18,168,117,0.35); border-radius: 0 10px 10px 0; }
.ihr-subq-label { font-size: 11.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; line-height: 1.4; }
.ihr-stat-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.ihr-stat-box {
  border-radius: 12px; padding: 10px 14px; display: inline-flex; flex-direction: column; gap: 2px;
  box-shadow: 0 4px 14px rgba(10,26,46,0.06);
  background: linear-gradient(135deg, #0d2340, #123054); color: #fff;
}
.ihr-stat-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .85; color: rgba(255,255,255,0.7); }
.ihr-stat-value { font-size: 19px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.15; }
.ihr-stat-oran-plain {
  margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap;
}
.ihr-stat-oran-plain strong { font-weight: 800; color: var(--navy-900); }

/* ============ E-İHRACAT DESTEK UYGUNLUK VE HESAPLAMA ARACI ============ */
.eihr-section-title {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--emerald-dark); margin: 22px 0 10px; padding-top: 14px; border-top: 1px solid var(--border);
}
.eihr-mini-field { margin-bottom: 14px; }
.eihr-tarih-row-sm { max-width: 260px; }
.eihr-tarih-row-sm .eihr-select,
.eihr-tarih-row-sm .eihr-num { font-size: 12px; padding: 7px 9px; border-radius: 8px; }
.eihr-num-sm { max-width: 280px; font-size: 12px; padding: 7px 9px; border-radius: 8px; }

.calc-toggle-row-vertical { flex-direction: column; }
.calc-toggle-row-vertical .calc-toggle { flex: none; width: 100%; text-align: left; }
.eihr-mini-field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.eihr-num, .eihr-select {
  width: 100%; font: inherit; font-size: 14px; padding: 11px 14px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fff; box-shadow: var(--shadow-sm);
}
.eihr-num:focus, .eihr-select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(18,168,117,0.12); }

/* ---- Statü karşılaştırma kartları ---- */
.eihr-statu-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
.eihr-statu-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 18px; background: #fff; }
.eihr-statu-card.is-uygun { border-color: rgba(18,168,117,0.4); background: linear-gradient(180deg, rgba(18,168,117,0.05), #fff 55%); }
.eihr-statu-card.is-kosullu { border-color: rgba(240,169,62,0.4); }
.eihr-statu-card.is-degerlendirilemiyor { border-color: rgba(11,46,79,0.2); }
.eihr-statu-card.is-uygunDegil { opacity: .62; }
.eihr-statu-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.eihr-statu-title { font-size: 15.5px; font-weight: 800; color: var(--navy-950); }
.eihr-kosul-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.eihr-kosul-item { font-size: 12px; color: var(--text-muted); display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.eihr-kosul-icon { flex-shrink: 0; }
.eihr-kosul-item.is-saglaniyor .eihr-kosul-icon { color: var(--emerald-dark); }
.eihr-kosul-item.is-saglanmiyor .eihr-kosul-icon { color: #c0392b; }
.eihr-kosul-item.is-bilinmiyor .eihr-kosul-icon,
.eihr-kosul-item.is-dogrulanamaz .eihr-kosul-icon { color: #b6791e; }

.eihr-tekstatu-warning {
  margin-top: 6px; margin-bottom: 18px; padding: 12px 16px; border-radius: 10px;
  background: rgba(240,169,62,0.10); border: 1px solid rgba(240,169,62,0.3); color: #7a5310;
  font-size: 12.5px; line-height: 1.5;
}

/* ---- Destek kalemi kartları: stat kutuları ihracat.css'teki .ihr-stat-* ile paylaşılır ---- */
.eihr-destek-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--text-muted); margin: 6px 0; }
.eihr-destek-meta strong { color: var(--navy-900); }

/* ---- Hesaplama adım dökümü ---- */
.eihr-adim-list { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-direction: column; gap: 6px; }
.eihr-adim-list li {
  font-size: 12.5px; color: var(--navy-900); background: rgba(11,46,79,0.03);
  border-left: 2.5px solid var(--emerald); border-radius: 0 8px 8px 0; padding: 8px 12px; line-height: 1.45;
}
.eihr-adim-list li.is-final { border-left-color: var(--emerald); background: rgba(18,168,117,0.08); font-weight: 700; }

.eihr-sonuc-hero {
  background: linear-gradient(135deg, #0d2340, #123054); color: #fff; border-radius: 16px;
  padding: 20px 24px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.eihr-sonuc-hero-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.eihr-sonuc-hero-value { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; }
.eihr-sonuc-hero-note { font-size: 12.5px; color: rgba(255,255,255,0.7); max-width: 320px; }

.eihr-roadmap { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.eihr-roadmap-step { display: flex; gap: 12px; align-items: flex-start; }
.eihr-roadmap-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--emerald);
  color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.eihr-roadmap-text { font-size: 13px; color: var(--navy-900); line-height: 1.5; }
.eihr-roadmap-text strong { color: var(--emerald-dark); }

.eihr-kaynak-list { font-size: 11.5px; color: var(--text-muted); line-height: 1.7; margin-top: 14px; }
.eihr-kaynak-list a { color: var(--emerald-dark); font-weight: 600; }

.eihr-breakdown-toggle { font-size: 12.5px; font-weight: 700; color: var(--emerald-dark); cursor: pointer; margin-top: 8px; display: inline-block; }

/* ---- Opt-in çoklu seçim listeleri (iş modeli, ürün bilgisi, üretim modeli) ---- */
.eihr-checkbox-list { display: flex; flex-direction: column; gap: 10px; }
.eihr-checkbox-item {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff;
  transition: border-color .15s, background .15s;
}
.eihr-checkbox-item:hover { border-color: rgba(18,168,117,0.35); }
.eihr-checkbox-item input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.eihr-checkbox-item span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); line-height: 1.4; }
.eihr-checkbox-item.is-checked { border-color: var(--emerald); background: rgba(18,168,117,0.06); }
.eihr-checkbox-item.is-checked span { color: var(--emerald-dark); }
.eihr-checkbox-item .eihr-checkbox-sub { display: block; font-size: 10.5px; font-weight: 400; color: var(--text-muted); margin-top: 4px; line-height: 1.4; }

.calc-field label.eihr-label-xl { display: block; font-size: 14px; font-weight: 800; color: var(--navy-950); letter-spacing: -0.01em; margin-bottom: 12px; }

/* ---- Tescil ay/yıl satırı ---- */
.eihr-tarih-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---- Bir checkbox öğesinin altına bağlı ama kendi tıklama alanı olan alt soru sarmalayıcı ---- */
.eihr-checkbox-item-wrap { display: flex; flex-direction: column; gap: 0; }
.eihr-checkbox-item-wrap .eihr-checkbox-item { margin-bottom: 0; }
.eihr-checkbox-item-wrap .ihr-subq { margin-top: 0; border-radius: 0 0 10px 10px; border-top: none; }

/* ---- Hedef ülke grid: küçük, satırda 3-4 ülke ---- */
.eihr-ulke-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.eihr-ulke-item {
  font: inherit; font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  background: #fff; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 9px 8px; cursor: pointer; text-align: center; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
.eihr-ulke-item:hover { border-color: rgba(18,168,117,0.35); }
.eihr-ulke-item.is-active { border-color: var(--emerald); background: rgba(18,168,117,0.10); color: var(--emerald-dark); }
.eihr-ulke-diger { font-style: italic; }
@media (max-width: 480px) {
  .eihr-ulke-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ SİHİRBAZ (ADIM ADIM FORM) ============ */
.eihr-wizard { padding-top: 26px; }
.eihr-wizard h2 { margin-bottom: 4px; }

/* ---- İlerleme çubuğu ---- */
.eihr-progress { margin-bottom: 26px; }
.eihr-progress-track { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; margin-bottom: 14px; }
.eihr-progress-fill { height: 100%; width: 25%; border-radius: 99px; background: linear-gradient(90deg, var(--emerald), var(--emerald-dark)); transition: width .35s ease; }
.eihr-progress-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.eihr-progress-steps li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--text-muted); min-width: 0; }
.eihr-progress-num {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11.5px; transition: all .2s;
}
.eihr-progress-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eihr-progress-steps li.is-active { color: var(--navy-950); }
.eihr-progress-steps li.is-active .eihr-progress-num { border-color: var(--emerald); background: var(--emerald); color: #fff; }
.eihr-progress-steps li.is-done { color: var(--emerald-dark); }
.eihr-progress-steps li.is-done .eihr-progress-num { border-color: var(--emerald); background: rgba(18,168,117,0.12); color: var(--emerald-dark); }

/* ---- Adımlar ---- */
.eihr-step { display: none; }
.eihr-step.is-active { display: block; animation: eihrStepIn .25s ease; }
@keyframes eihrStepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .eihr-step.is-active { animation: none; } .eihr-progress-fill { transition: none; } }
.eihr-optional-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 3px 9px; border-radius: 99px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--emerald-dark); background: rgba(18,168,117,0.12);
}

/* ---- Hata durumu ---- */
.eihr-err { display: none; margin: 8px 0 0; font-size: 12px; font-weight: 600; color: #c0392b; }
.has-error > .eihr-err { display: block; }
.calc-field.has-error > .eihr-label-xl { color: #c0392b; }
.has-error .calc-toggle, .has-error .eihr-card { border-color: rgba(192,57,43,0.45); }

/* ---- Evet/Hayır: büyük, iki eşit buton ---- */
.eihr-yn .calc-toggle { padding: 14px 12px; font-size: 14.5px; }
.eihr-yn-sm .calc-toggle { padding: 9px 12px; font-size: 12.5px; }
.eihr-opts .calc-toggle { font-size: 13px; padding: 12px 14px; }

/* ---- Seçim kartları ---- */
.eihr-card-list { display: flex; flex-direction: column; gap: 10px; }
.eihr-card-wrap { display: flex; flex-direction: column; }
.eihr-card-wrap .ihr-subq { margin-top: 0; border-radius: 0 0 10px 10px; }
.eihr-card {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.eihr-card:hover { border-color: rgba(18,168,117,0.4); box-shadow: var(--shadow-sm); }
.eihr-card input[type="checkbox"], .eihr-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.eihr-card:focus-within { box-shadow: 0 0 0 3px rgba(18,168,117,0.18); }
.eihr-card-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 19px; }
.eihr-card-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.eihr-card-text strong { font-size: 13.5px; font-weight: 700; color: var(--navy-950); line-height: 1.35; }
.eihr-card-text small { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }
.eihr-card::after {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border);
  background: #fff center / 12px no-repeat; transition: all .15s;
}
.eihr-card.is-checked { border-color: var(--emerald); background: rgba(18,168,117,0.06); }
.eihr-card.is-checked .eihr-card-icon { background: rgba(18,168,117,0.14); }
.eihr-card.is-checked::after {
  border-color: var(--emerald); background-color: var(--emerald);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.5l2.2 2.2 4.8-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.eihr-card-wrap .eihr-card.is-checked { border-radius: 12px 12px 0 0; }
.eihr-subfield + .eihr-subfield { margin-top: 14px; }

/* ---- Bölge başlıklı çipler ---- */
.eihr-chip-groups { display: flex; flex-direction: column; gap: 12px; }
.eihr-chip-group-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 6px; }
.eihr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eihr-chips .eihr-ulke-item { padding: 8px 13px; font-size: 12px; border-radius: 99px; }

/* ---- Para alanı + para birimi seçici ---- */
.eihr-money { display: flex; gap: 10px; align-items: stretch; }
.eihr-money .eihr-num { flex: 1; min-width: 0; }
.eihr-cur-group { display: flex; flex-shrink: 0; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: #fff; }
.eihr-cur-btn { font: inherit; font-size: 12.5px; font-weight: 700; padding: 0 13px; border: 0; background: #fff; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s; }
.eihr-cur-btn + .eihr-cur-btn { border-left: 1.5px solid var(--border); }
.eihr-cur-btn:hover { background: var(--bg); }
.eihr-cur-btn.is-active { background: var(--emerald); color: #fff; }
.eihr-money-conv { min-height: 16px; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }

/* ---- Gezinme butonları ---- */
.eihr-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.eihr-back { font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text-muted); background: none; border: 0; padding: 10px 4px; cursor: pointer; }
.eihr-back:hover { color: var(--navy-950); }
.eihr-nav .btn { margin-left: auto; }

@media (max-width: 640px) {
  .eihr-progress-label { display: none; }
  .eihr-progress-steps li { justify-content: center; }
  .eihr-money { flex-direction: column; }
  .eihr-cur-group { align-self: flex-start; }
  .eihr-cur-btn { padding: 9px 16px; }
}

/* .calc-field label { display:block } kuralını kartlar için geçersiz kıl */
.calc-field label.eihr-card { display: flex; margin-bottom: 0; font-size: inherit; }

/* .calc-layout padding kısaltması container'ın yan boşluğunu sıfırlıyor; dar ekranda panel kenara yapışmasın */
@media (max-width: 1240px) { .calc-layout { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 640px) { .calc-layout { padding-left: 12px; padding-right: 12px; } }

/* ---- Platform soruları: sayı alanı + "Bilmiyorum" ---- */
.eihr-num-row { display: flex; gap: 10px; align-items: stretch; }
.eihr-num-row .eihr-num { flex: 1; min-width: 0; }
.eihr-num:disabled { background: var(--bg); color: var(--text-muted); cursor: not-allowed; }
.eihr-unknown {
  flex-shrink: 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  padding: 0 16px; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.eihr-unknown:hover { border-color: rgba(18,168,117,0.35); }
.eihr-unknown.is-active { border-color: var(--emerald); background: rgba(18,168,117,0.08); color: var(--emerald-dark); }
.eihr-ext-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--emerald-dark); text-decoration: underline; text-underline-offset: 2px; }
.eihr-ext-link:hover { color: var(--navy-900); }

/* ---- Sonuç: statü özeti (yalnızca uygunluk) ve vurgulu destek kalemleri ---- */
.eihr-statu-box { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff; margin-bottom: 18px; }
.eihr-statu-box-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 10px; }
.eihr-kalem-head { margin: 8px 0 14px; }
.eihr-kalem-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-dark); background: rgba(18,168,117,0.12); padding: 4px 10px; border-radius: 99px; }
.eihr-kalem-head h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--navy-950); margin: 8px 0 4px; }
.eihr-kalem-head p { font-size: 13px; color: var(--text-muted); margin: 0; }
@media (max-width: 640px) { .eihr-num-row { flex-wrap: wrap; } .eihr-unknown { padding: 9px 16px; } }

/* Tek seçimli kartlar: onay kutusu yerine yuvarlak işaret */
.eihr-card.is-radio::after { border-radius: 50%; }

/* ---- Statü seçimi: durumuna göre renklenen butonlar ---- */
.eihr-statu-switch { display: flex; flex-wrap: wrap; gap: 10px; }
.eihr-statu-btn {
  flex: 1 1 150px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  font: inherit; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; cursor: pointer;
  transition: box-shadow .15s, transform .15s, background .15s;
}
.eihr-statu-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.eihr-statu-btn-name { font-size: 14px; font-weight: 800; color: var(--navy-950); }
.eihr-statu-btn-state { font-size: 11.5px; font-weight: 700; }
.eihr-statu-btn.is-uygun { border-color: rgba(18,168,117,0.45); background: rgba(18,168,117,0.06); }
.eihr-statu-btn.is-uygun .eihr-statu-btn-state { color: var(--emerald-dark); }
.eihr-statu-btn.is-kosullu, .eihr-statu-btn.is-degerlendirilemiyor { border-color: rgba(240,169,62,0.6); background: rgba(240,169,62,0.12); }
.eihr-statu-btn.is-kosullu .eihr-statu-btn-state, .eihr-statu-btn.is-degerlendirilemiyor .eihr-statu-btn-state { color: #92580a; }
.eihr-statu-btn.is-uygunDegil { border-color: rgba(220,38,38,0.4); background: rgba(220,38,38,0.06); }
.eihr-statu-btn.is-uygunDegil .eihr-statu-btn-state { color: #b91c1c; }
.eihr-statu-btn.is-selected { box-shadow: 0 0 0 3px rgba(11,46,79,0.16); }
.eihr-statu-btn.is-selected.is-uygun { box-shadow: 0 0 0 3px rgba(18,168,117,0.28); }
.eihr-statu-btn.is-selected.is-kosullu, .eihr-statu-btn.is-selected.is-degerlendirilemiyor { box-shadow: 0 0 0 3px rgba(240,169,62,0.38); }
.eihr-statu-btn.is-selected.is-uygunDegil { box-shadow: 0 0 0 3px rgba(220,38,38,0.28); }
.eihr-kalem-tag.is-warn { color: #92580a; background: rgba(240,169,62,0.2); }
.eihr-kalem-tag.is-bad { color: #b91c1c; background: rgba(220,38,38,0.12); }
.eihr-sartli-note { margin: 0 0 14px; padding: 11px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: #7a5310; background: rgba(240,169,62,0.12); border: 1px solid rgba(240,169,62,0.4); }

/* ---- Serbest yazılan adlar: Enter ile eklenen çipler ---- */
.eihr-tags { margin-top: 8px; }
.eihr-tags:empty { display: none; }
.eihr-ulke-item.is-custom { font-weight: 700; }
/* Ad yazılan alanlar: yönerge metni sığsın */
[data-tag-input] { max-width: 100%; width: 100%; }
