/* ============================================================
   E-HİZMETLER — araç sayfaları (/e-hizmetler/*)
   style.css'teki değişkenleri ve bileşenleri (btn, form-field…) kullanır.
   ============================================================ */

.subpage .navbar { background: rgba(250, 248, 243, .94); }

/* ---------- Sayfa başlığı ---------- */
.page-hero {
  padding: 2.4rem 0 2.3rem;
  background:
    radial-gradient(ellipse at 85% 0%, rgba(216, 179, 106, .16), transparent 55%),
    var(--cream);
  border-bottom: 1px solid rgba(185, 137, 58, .2);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  color: var(--ink-soft);
}

.breadcrumb a { color: var(--navy); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span:not(:last-child) { color: var(--gold); }

.page-hero-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.page-hero-icon {
  flex: none;
  width: 66px; height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  background: radial-gradient(circle at 32% 28%, var(--navy-soft), var(--navy-deep) 72%);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 7px var(--cream), 0 10px 22px rgba(16, 41, 74, .22);
}

.page-hero-icon svg { width: 32px; height: 32px; }

.page-kind {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.page-hero h1 {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.2;
  color: var(--navy);
}

.page-hero-desc {
  max-width: 760px;
  margin-top: .9rem;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

/* /e-hizmetler/ sayfasında kart bandı başlığın hemen altında */
.ehizmet-hub { padding-top: 3.2rem; }

/* ---------- Düzen ---------- */
.tool-section { padding: 2.4rem 0 5rem; }

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 2rem;
  align-items: start;
}

.tool-aside {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: grid;
  gap: 1rem;
}

/* ---------- Araç kartı ---------- */
.tool {
  position: relative;
  background: var(--white);
  border-radius: 22px;
  border: 1px solid rgba(185, 137, 58, .3);
  box-shadow: var(--shadow-md);
  padding: clamp(1.3rem, 3.5vw, 2.1rem);
}

.tool::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--gold-grad);
}

.tool-noscript { color: var(--ink-soft); }

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.tool-head h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.tool-badge {
  flex: none;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(185, 137, 58, .12);
}

.field-hint {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.form-field input[type="date"] { min-height: 3.1rem; }

/* Evet / Hayır gibi seçenek düğmeleri */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.seg label {
  flex: 1 1 auto;
  position: relative;
  cursor: pointer;
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg span {
  display: block;
  padding: .72rem .9rem;
  text-align: center;
  border-radius: 12px;
  border: 1.5px solid rgba(16, 41, 74, .14);
  background: var(--cream);
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.seg label:hover span { border-color: rgba(185, 137, 58, .55); }
.seg input:checked + span { border-color: var(--gold); background: #fff8ea; box-shadow: 0 0 0 3px rgba(185, 137, 58, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.tool-error {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  font-size: .88rem;
  color: #8a2a1f;
  background: #fdeceb;
  border: 1px solid rgba(192, 57, 43, .3);
}

.hidden { display: none !important; }

/* Tarih satırları (90/180) */
.stay-rows { display: grid; gap: .7rem; }

.stay-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .7rem;
  align-items: end;
}

.stay-del {
  width: 44px; height: 3.1rem;
  border-radius: 12px;
  border: 1.5px solid rgba(16, 41, 74, .14);
  background: var(--cream);
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 1.2rem;
}

.stay-del:hover { color: #c0392b; border-color: rgba(192, 57, 43, .4); }

.btn-ghost {
  background: transparent;
  border: 1.5px dashed rgba(185, 137, 58, .6);
  color: var(--gold-dark);
}

.btn-ghost:hover { background: #fff8ea; }

/* ---------- Soru-cevap (Alabilir miyim?) ---------- */
.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--cream-dark);
  overflow: hidden;
}

.quiz-progress span {
  display: block;
  height: 100%;
  background: var(--gold-grad);
  transition: width .35s var(--ease-out);
}

.quiz-count {
  display: flex;
  justify-content: space-between;
  margin: .6rem 0 1.1rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

.quiz-q {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.12rem, 2.6vw, 1.32rem);
  line-height: 1.35;
  color: var(--navy);
}

.quiz-help {
  margin-top: .45rem;
  font-size: .88rem;
  color: var(--ink-soft);
}

.quiz-options {
  display: grid;
  gap: .6rem;
  margin-top: 1.2rem;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  padding: .9rem 1.05rem;
  border-radius: 14px;
  border: 1.5px solid rgba(16, 41, 74, .14);
  background: var(--cream);
  font: inherit;
  font-weight: 600;
  font-size: .95rem;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.quiz-opt:hover { border-color: rgba(185, 137, 58, .6); background: #fff; }

.quiz-opt .dot {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: #fff;
  transition: background .18s ease, box-shadow .18s ease;
}

.quiz-opt.multi .dot { border-radius: 6px; }

.quiz-opt.selected {
  border-color: var(--gold);
  background: #fff8ea;
  box-shadow: 0 0 0 3px rgba(185, 137, 58, .14);
}

.quiz-opt.selected .dot { background: var(--gold-grad); box-shadow: inset 0 0 0 3px #fff; }

.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.btn-link {
  background: none;
  border: none;
  padding: .5rem 0;
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  cursor: pointer;
}

.btn-link:disabled { opacity: .35; cursor: default; }

/* ---------- Sonuç ---------- */
.tool-result {
  margin-top: 1.6rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(216, 179, 106, .5);
  box-shadow: var(--shadow-sm);
  animation: fadeUp .45s var(--ease-out);
}

.tool-result.flush { margin-top: 0; }

.result-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  color: #fff;
  background: linear-gradient(130deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  border-bottom: 3px solid var(--gold);
}

.result-badge {
  flex: none;
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  color: var(--gold-light);
  font-size: 1.5rem;
  font-weight: 800;
}

.result-badge svg { width: 26px; height: 26px; }
.result-badge.ok   { color: #7be0a3; border-color: #4cc27f; }
.result-badge.warn { color: #ffd27a; border-color: #e5a93a; }
.result-badge.fail { color: #ff9b8f; border-color: #e0685a; }

.result-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.result-value {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}

.result-sub {
  display: block;
  margin-top: .2rem;
  font-size: .86rem;
  color: rgba(255, 255, 255, .75);
}

.result-body {
  padding: 1.2rem 1.5rem 1.3rem;
  background: #fffdf8;
}

.result-body > p { font-size: .93rem; color: var(--ink); }
.result-body > p + p { margin-top: .6rem; }

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.result-table td {
  padding: .6rem 0;
  border-bottom: 1px dashed rgba(16, 41, 74, .14);
  vertical-align: top;
}

.result-table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding-left: 1rem;
}

.result-table td small { display: block; color: var(--ink-soft); font-size: .8rem; }

.result-table tr.total td {
  border-bottom: none;
  padding-top: .8rem;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--navy);
}

.verdict-list { list-style: none; }

.verdict-list li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px dashed rgba(16, 41, 74, .12);
  font-size: .92rem;
}

.verdict-list li:last-child { border-bottom: none; }
.verdict-list strong { display: block; color: var(--navy); }
.verdict-list span.note { display: block; color: var(--ink-soft); font-size: .86rem; }

.v-ic {
  flex: none;
  width: 24px; height: 24px;
  margin-top: .05rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .8rem;
  font-weight: 800;
}

.v-ic.ok   { background: #e3f5ea; color: #1d8a4a; }
.v-ic.warn { background: #fff1d6; color: #a86c00; }
.v-ic.fail { background: #fde6e4; color: #b8372a; }
.v-ic.info { background: rgba(16, 41, 74, .08); color: var(--navy); }

.result-note {
  margin-top: 1rem;
  padding: .75rem .95rem;
  border-radius: 12px;
  font-size: .82rem;
  color: var(--ink-soft);
  background: var(--cream);
}

.result-foot {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  padding: 1rem 1.5rem 1.2rem;
  background: #fffdf8;
  border-top: 1px solid rgba(16, 41, 74, .08);
}

/* ---------- Bilgi metni ---------- */
.tool-info { margin-top: 2.4rem; }

.tool-info h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 2.2rem 0 .8rem;
}

.tool-info h2:first-child { margin-top: 0; }

.tool-info h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 1.4rem 0 .5rem;
}

.tool-info p,
.tool-info li {
  font-size: .97rem;
  line-height: 1.75;
  color: var(--ink);
}

.tool-info p + p { margin-top: .7rem; }
.tool-info ul, .tool-info ol { padding-left: 1.3rem; margin: .6rem 0; }
.tool-info li { margin: .25rem 0; }
.tool-info a { color: var(--gold-dark); font-weight: 600; }

.tool-info table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: .9rem;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-info th {
  padding: .7rem .9rem;
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
}

.tool-info td {
  padding: .65rem .9rem;
  border-bottom: 1px solid rgba(16, 41, 74, .08);
  vertical-align: top;
}

.tool-info tr:last-child td { border-bottom: none; }

.table-wrap { overflow-x: auto; }

.tool-info .note {
  margin: 1rem 0;
  padding: .9rem 1.1rem;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: #fff8ea;
  font-size: .9rem;
}

.tool-info details {
  margin: .6rem 0;
  padding: .9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 41, 74, .1);
  background: var(--white);
}

.tool-info summary {
  position: relative;
  padding-right: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.tool-info summary::-webkit-details-marker { display: none; }

.tool-info summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -.1rem;
  font-size: 1.3rem;
  color: var(--gold-dark);
}

.tool-info details[open] summary::after { content: "–"; }
.tool-info details > :not(summary) { margin-top: .6rem; }

.legal-ref {
  margin-top: 1.6rem;
  font-size: .82rem;
  color: var(--ink-soft);
}

/* ---------- Yan sütun ---------- */
.aside-cta {
  display: grid;
  gap: .6rem;
  padding: 1.4rem;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(140deg, var(--navy-deep), var(--navy) 60%, var(--navy-soft));
  border: 1px solid rgba(216, 179, 106, .4);
  box-shadow: var(--shadow-md);
}

.aside-cta-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--gold-light);
}

.aside-cta p:not(.aside-cta-title) { font-size: .88rem; color: rgba(255, 255, 255, .75); margin-bottom: .3rem; }

.aside-card {
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid rgba(16, 41, 74, .08);
  box-shadow: var(--shadow-sm);
}

.aside-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.aside-tools { list-style: none; }

.aside-tools a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .4rem;
  border-radius: 8px;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.aside-tools a:hover { background: var(--cream); color: var(--navy); }
.aside-tools .ic { color: var(--gold-dark); width: 1.25em; height: 1.25em; }

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-aside { position: static; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .page-hero { padding: 1.8rem 0 1.8rem; }
  .page-hero-icon { width: 54px; height: 54px; box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px var(--cream); }
  .page-hero-icon svg { width: 26px; height: 26px; }
  .tool-section { padding: 1.6rem 0 3.5rem; }
  .tool-aside { grid-template-columns: 1fr; }
  .result-head { padding: 1.1rem 1.1rem; }
  .result-body, .result-foot { padding-inline: 1.1rem; }
  .result-foot .btn { flex: 1 1 100%; }
  .stay-row { grid-template-columns: 1fr 1fr; }
  .stay-del { grid-column: 1 / -1; width: 100%; height: 2.4rem; font-size: .85rem; }
}

/* Otomatik kaydırmada yapışık menünün altında kalmasın */
.tool, .tool-result { scroll-margin-top: calc(var(--nav-h) + 16px); }
.result-body a { color: var(--gold-dark); font-weight: 600; }
