:root {
  --bg: #F3F4F6;
  --panel: #FFFFFF;
  --panel-2: #F9FAFB;
  --line: #E5E7EB;
  --ink: #1F2937;
  --ink-dim: #6B7280;
  --teal: #0D9488;
  --teal-2: #14B8A6;
  --amber: #D97706;
  --green: #059669;
  --red: #DC2626;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
}


.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

/* Privacy banner */
.privacy-banner {
  background: rgba(13, 148, 136, 0.06);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.55;
}

.privacy-banner i {
  color: var(--teal);
  font-size: 1.1rem;
  margin-top: 2px;
}

.privacy-banner strong { color: var(--teal); }

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  gap: 0;
}

.step-indicator .step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step-indicator .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line);
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-indicator .step.active .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.step-indicator .step.done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.step-indicator .step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-dim);
}

.step-indicator .step.active .step-label { color: var(--ink); }

.step-indicator .step-connector {
  flex: 0 0 auto;
  width: 40px;
  height: 2px;
  background: var(--line);
  margin: 0 4px;
}

/* Card / panel */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.card h2 {
  font-size: 1.1rem;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h2 i { color: var(--teal); }

.card .card-hint {
  font-size: 0.8rem;
  color: var(--ink-dim);
  margin: 0 0 18px;
}

.step-panel { display: none; }
.step-panel.active { display: block; }

/* Form fields */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field.span-2 { grid-column: span 2; }

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.field label .info-tip {
  color: var(--teal);
  cursor: help;
  font-size: 0.85rem;
}

.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.86rem;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
}

.radio-group {
  display: flex;
  gap: 18px;
  align-items: center;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}

/* Dynamic row tables */
.dyn-table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
}

.dyn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.dyn-table th {
  background: var(--panel-2);
  text-align: left;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink-dim);
  white-space: nowrap;
}

.dyn-table td {
  border: 1px solid var(--line);
  padding: 4px;
}

.dyn-table td input,
.dyn-table td select {
  border: none;
  background: transparent;
  width: 100%;
  padding: 6px 8px;
  font-size: 0.8rem;
  font-family: var(--sans);
  color: var(--ink);
}

.dyn-table td input:focus,
.dyn-table td select:focus {
  outline: 2px solid rgba(13, 148, 136, 0.3);
  background: var(--panel-2);
}

.dyn-table .btn-remove-row {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 6px;
}

.dyn-table tfoot td {
  font-weight: 700;
  background: var(--panel-2);
}

.btn-add-row {
  background: rgba(13, 148, 136, 0.08);
  border: 1px dashed rgba(13, 148, 136, 0.4);
  color: var(--teal);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-add-row:hover { background: rgba(13, 148, 136, 0.14); }

.sub-section {
  margin-bottom: 28px;
}

.sub-section:last-child { margin-bottom: 0; }

.sub-section h3 {
  font-size: 0.92rem;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover { background: var(--teal-2); }

.btn-secondary {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover { background: var(--panel-2); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

/* Preview / official print replica */
.print-doc {
  background: #fff;
  color: #0f172a;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ---- Resmi form başlığı ---- */
.print-doc .doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 8px;
  border-bottom: 2px solid #0f172a;
  margin-bottom: 12px;
}

.print-doc .doc-header .agency {
  font-size: 0.72rem;
  font-weight: 800;
  max-width: 190px;
  line-height: 1.3;
}

.print-doc .doc-header .form-code {
  text-align: right;
}

.print-doc .doc-header .form-code .code-num {
  font-size: 1.05rem;
  font-weight: 800;
}

.print-doc .doc-header .form-code .vd-kodu {
  font-size: 0.64rem;
  margin-top: 22px;
  white-space: nowrap;
}

.print-doc .doc-header .form-code .vd-kodu .dotbox {
  display: inline-block;
  border-bottom: 1px dotted #64748b;
  width: 80px;
  margin-left: 4px;
}

.print-doc h3.doc-title {
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  margin: 4px 0 14px;
}

/* ---- Genel bilgiler kutusu (Vergi Dairesi / İntikal Şekli / İl-İlçe) ---- */
.print-doc .genel-box {
  border: 1.5px solid #0f172a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  font-size: 0.74rem;
}

.print-doc .genel-box .cell {
  padding: 8px 10px;
  border-right: 1px dashed #64748b;
}

.print-doc .genel-box .cell:nth-child(2n) { border-right: none; }
.print-doc .genel-box .cell:nth-child(n+3) { border-top: 1px dashed #64748b; }

.print-doc .num-badge {
  display: inline-flex;
  width: 15px;
  height: 15px;
  border: 1px solid #0f172a;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  margin-right: 6px;
  flex-shrink: 0;
}

.print-doc .input-line {
  border-bottom: 1px dotted #64748b;
  min-height: 15px;
  margin-top: 5px;
  padding-bottom: 2px;
}

.print-doc .checkbox-line {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.print-doc .checkbox-line .cb {
  display: flex;
  align-items: center;
  gap: 5px;
}

.print-doc .checkbox-line .box {
  width: 13px;
  height: 13px;
  border: 1px solid #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

/* ---- Tablo kutusu (TABLO 1, 2, 3, 4, 5) ---- */
.print-doc .tablo-box {
  border: 1.5px solid #0f172a;
  margin-bottom: 16px;
}

.print-doc .tablo-head {
  background: #f1f5f9;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 6px 10px;
  border-bottom: 1.5px solid #0f172a;
  display: flex;
  gap: 10px;
}

.print-doc .tablo-head .tablo-no { flex: 0 0 auto; }
.print-doc .tablo-head .tablo-desc { text-transform: uppercase; }

.print-doc .tablo1-row {
  display: flex;
  border-bottom: 1px solid #94a3b8;
}

.print-doc .tablo1-row:last-child { border-bottom: none; }

.print-doc .tablo1-row .row-label {
  flex: 0 0 190px;
  padding: 7px 8px;
  display: flex;
  align-items: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  border-right: 1px solid #94a3b8;
}

.print-doc .tablo1-row .row-value {
  flex: 1;
  padding: 6px 10px;
  font-size: 0.78rem;
  min-height: 18px;
  display: flex;
  align-items: center;
}

.print-doc .adres-subgrid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.print-doc .adres-subgrid .arow {
  display: flex;
  gap: 16px;
}

.print-doc .adres-subgrid .afield {
  flex: 1;
  font-size: 0.7rem;
}

.print-doc .adres-subgrid .afield .flabel {
  color: #64748b;
  font-size: 0.62rem;
  display: block;
}

.print-doc table.form-table {
  width: 100%;
  border-collapse: collapse;
}

.print-doc table.form-table th,
.print-doc table.form-table td {
  border: 1px solid #0f172a;
  padding: 5px 7px;
  font-size: 0.7rem;
  text-align: left;
  vertical-align: top;
}

.print-doc table.form-table th {
  background: #f1f5f9;
  font-weight: 700;
  text-align: center;
}

.print-doc table.form-table td.empty-row-cell {
  height: 22px;
}

.print-doc table.form-table tr.total-row td {
  font-weight: 800;
  background: #f1f5f9;
}

.print-doc .doc-page-break {
  page-break-before: always;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px dashed #cbd5e1;
}

.print-doc .doc-footnote {
  font-size: 0.68rem;
  color: #475569;
  margin-top: 16px;
  line-height: 1.6;
}

.preview-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

@page {
  size: portrait;
  margin: 14mm 10mm;
}

@media print {
  .no-print { display: none !important; }
  body * { visibility: hidden; }
  .print-doc, .print-doc * { visibility: visible; }
  .print-doc {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    padding: 0;
  }
  .doc-page-break { page-break-before: always; }
}


/* Ana sitenin navbar'iyla BIREBIR ayni (index.html / style.css'teki
   .navbar + body.light-theme override'lariyla ayni degerler). */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 80px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-container {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #1F2937;
  border-right: 3px solid #2D62FF;
  padding-right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-details {
  display: flex;
  flex-direction: column;
}

.brand-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  color: #4B5563;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-item:hover,
.nav-item.active {
  color: #2D62FF;
}

.btn-nav-action {
  background: #2D62FF;
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(45, 98, 255, 0.3);
  transition: all 0.2s ease-in-out;
}

.btn-nav-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 98, 255, 0.5);
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
    flex-direction: column;
    padding: 16px;
    gap: 12px;
    text-align: center;
    height: auto;
  }
  .nav-brand {
    justify-content: center;
    margin-bottom: 4px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
  .nav-item {
    font-size: 13px;
    padding: 6px 10px;
  }
  .btn-nav-action {
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-top: 4px;
  }
}

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.intro {
  text-align: center;
  margin-bottom: 28px;
}

.intro h2 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.intro p {
  color: var(--ink-dim);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
}

.qa-search {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: var(--sans);
  margin-bottom: 18px;
  background: var(--panel);
}

.qa-search:focus {
  outline: none;
  border-color: var(--teal);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.category-pill {
  font-family: var(--sans);
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink-dim);
  cursor: pointer;
}

.category-pill:hover {
  background: var(--panel-2);
}

.category-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.qa-category-block {
  margin-bottom: 30px;
}

.qa-category-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin: 0 0 10px;
}

.qa-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.qa-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 18px;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.qa-chevron {
  color: var(--ink-dim);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.qa-item.open .qa-chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.qa-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.qa-answer p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

.qa-answer a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.qa-answer a:hover {
  text-decoration: underline;
}

.qa-empty {
  text-align: center;
  color: var(--ink-dim);
  padding: 40px 0;
  font-size: 0.9rem;
}

.footer-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
  margin-top: 20px;
}

/* Hero Banner Alarko Style */
