:root {
  color-scheme: light;
  --bg-page: #F7F6F2;
  --surface: #FFFFFF;
  --surface-muted: #FAF9F6;
  --surface-warm: #F2EFE6;
  --gold: #A58A50;
  --gold-dark: #7C6534;
  --gold-light: #D5C49E;
  --gold-soft: #F9F6EE;
  --teal: #222923;
  --teal-rich: #344036;
  --teal-hover: #171C18;
  --teal-soft: #EFECE4;
  --ink: #222923;
  --muted: #525953;
  --border: #DEDAD0;
  --border-strong: #C5BFAF;
  --err-bg: #FDF2F2;
  --err-border: #E09A95;
  --err-ink: #991B1B;
  --ok-bg: #E6F4EC;
  --ok-border: #8CC9A8;
  --ok-ink: #146C43;
  --warn-bg: #FEF9EC;
  --warn-border: #D4B265;
  --warn-ink: #6B4E14;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-sans);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-page);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold-dark);
}

.hidden {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, #042825 0%, #07443E 100%);
  border-bottom: 3px solid var(--gold);
  color: #FFFFFF;
}

.header-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: #FFFFFF;
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #E7F1EF;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}

.nav-link:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.site-header .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(223, 195, 126, 0.45);
  color: #FFFFFF;
}

.site-header .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--gold-light);
  color: #FFFFFF;
}

/* Main container */
main.wrap {
  flex: 1;
  padding-top: 16px;
  padding-bottom: 20px;
}

/* Banners & Alerts */
.banner {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--gold);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.alert {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.alert-err {
  background: var(--err-bg);
  border: 1px solid var(--err-border);
  color: var(--err-ink);
}

.alert-ok {
  background: var(--ok-bg);
  border: 1px solid var(--ok-border);
  color: var(--ok-ink);
}

/* Typography */
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

h1 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--ink);
}

.lead {
  margin: 0;
  max-width: 720px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.28;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

p:last-child {
  margin-bottom: 0;
}

/* Home View */
.home-hero {
  background: linear-gradient(135deg, #04322D 0%, #0B6358 100%);
  border: 2px solid var(--gold);
  border-radius: 14px;
  padding: 22px 26px;
  margin-bottom: 16px;
  color: #FFFFFF;
  box-shadow: 0 12px 28px rgba(4, 50, 45, 0.16);
}

.home-hero .eyebrow {
  color: var(--gold-light);
}

.home-hero h1 {
  color: #FFFFFF;
  margin-bottom: 6px;
}

.home-hero .hero-subtitle {
  color: var(--gold-light);
  margin-bottom: 8px;
}

.home-hero .lead {
  color: #E3F2EF;
}

.entry-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  margin-bottom: 20px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 156px;
  padding: 20px 22px;
  background: var(--surface);
  border: 2px solid var(--teal-rich);
  border-radius: 14px;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(5, 61, 55, 0.08);
}

.entry-card:hover {
  border-color: var(--gold);
  background: #FFFEFC;
  box-shadow: 0 12px 28px rgba(5, 61, 55, 0.14);
}

.entry-card-primary {
  background: linear-gradient(180deg, #FFFFFF 0%, #FDF6E4 100%);
  border: 2px solid var(--gold);
}

.entry-card-primary .entry-tag {
  background: var(--gold);
  color: #1A2421;
}

.entry-card .entry-cta {
  color: var(--teal);
  font-weight: 700;
}

.entry-card-primary .entry-cta {
  background: linear-gradient(135deg, #064E46 0%, #0D7A6D 100%);
  color: #FFFFFF;
  border: 0;
  border-radius: 10px;
  padding: 13px 20px;
  justify-content: space-between;
}

.entry-card-primary:hover .entry-cta {
  background: linear-gradient(135deg, #043832 0%, #0A5E54 100%);
  color: #FFFFFF;
}

.how-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.how-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.how-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid var(--warn-border);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.how-item strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.how-item small {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.step-guide-box {
  background: linear-gradient(135deg, #05443D 0%, #0C6E62 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 16px 20px;
  display: grid;
  gap: 4px;
  color: #FFFFFF;
}

.step-guide-box strong {
  font-size: 0.96rem;
  color: var(--gold-light);
}

.step-guide-box p {
  margin: 0;
  font-size: 0.93rem;
  color: #F0FAF8;
  line-height: 1.45;
}

.step-guide-box p strong {
  color: #FFFFFF;
}

.entry-tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.entry-title {
  display: block;
  margin: 10px 0 6px;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.entry-desc {
  display: block;
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.5;
}

.entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust-strip strong {
  color: var(--ink);
  font-weight: 600;
}

.steps-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
}

.steps-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.step-overview-item {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  min-width: 0;
}

.step-overview-num {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.step-overview-item strong {
  display: block;
  font-size: 0.93rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.step-overview-item small {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Cards & Stack */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  min-width: 0;
  box-shadow: 0 10px 28px rgba(5, 51, 47, 0.05);
}

.subcard {
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  min-width: 0;
}

.stack {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.stack-sm {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* Single-Block Focused Wizard */
.wizard-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(4, 50, 45, 0.12);
}

.wizard-header {
  background: linear-gradient(135deg, #04322D 0%, #0B6358 100%);
  color: #FFFFFF;
  padding: 14px 22px;
  display: grid;
  gap: 8px;
  border-bottom: 2px solid var(--gold);
}

.wizard-header h2 {
  color: #FFFFFF;
  margin: 0;
  font-size: 1.3rem;
}

.wizard-header .wizard-step-tag {
  color: var(--gold-light);
  font-size: 0.78rem;
}

.wizard-header .badge {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(242, 210, 122, 0.45);
  color: #FFFFFF;
}

.wizard-shell > .card {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 18px 22px;
}

.wizard-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #E3F2EF;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.step-pill[aria-current="step"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #1A2421;
  box-shadow: none;
}

.step-pill[data-done="true"]:not([aria-current="step"]) {
  background: rgba(242, 210, 122, 0.2);
  border-color: rgba(242, 210, 122, 0.55);
  color: #FFFFFF;
}

.wizard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wizard-step-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wizard-progress,
.upload-progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.wizard-progress::-webkit-progress-bar,
.upload-progress::-webkit-progress-bar {
  background: var(--border);
  border-radius: 999px;
}

.wizard-progress::-webkit-progress-value,
.upload-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--teal-rich) 0%, var(--gold) 100%);
  border-radius: 999px;
}

.wizard-progress::-moz-progress-bar,
.upload-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--teal-rich) 0%, var(--gold) 100%);
  border-radius: 999px;
}

.wizard-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.step-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  flex: 0 1 auto;
  min-width: 116px;
}

.step-pill:disabled {
  cursor: default;
  opacity: 0.72;
}

.step-pill[aria-current="step"] {
  background: linear-gradient(135deg, #05443D 0%, #0C6E62 100%);
  border-color: var(--gold);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(5, 68, 61, 0.22);
}

.step-pill[data-done="true"]:not([aria-current="step"]) {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.step-pill-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.step-pill-label {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Forms & Inputs */
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

label,
.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

.field-error {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--err-ink);
  min-height: 0;
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

input[readonly],
textarea[readonly] {
  background: var(--surface-muted);
  color: var(--ink);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--err-ink);
  background: #FFFDFD;
}

textarea {
  min-height: 58px;
  resize: vertical;
}

input[type="file"] {
  width: 100%;
  min-width: 0;
  padding: 10px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  min-height: 54px;
  min-width: 0;
}

.choice-card:has(input:checked) {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.choice-card input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}

.choice-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.choice-card strong {
  font-size: 0.95rem;
  color: var(--ink);
}

.choice-card small {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
}

label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
  font-weight: 500;
  font-size: 0.93rem;
  cursor: pointer;
  min-width: 0;
}

label.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #064E46 0%, #0D7A6D 100%);
  color: #FFFFFF;
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(6, 78, 70, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #043832 0%, #0A5E54 100%);
  color: #FFFFFF;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.btn-gold:hover {
  background: #967B42;
  color: var(--surface);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--ink);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.86rem;
}

.btn:disabled {
  background: #E8E5DD;
  border-color: var(--border);
  color: #6B706B;
  cursor: not-allowed;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Badges & Statuses */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-warm);
  color: var(--ink);
  border: 1px solid var(--border);
}

.badge-gold {
  background: var(--gold-soft);
  border-color: var(--warn-border);
  color: var(--gold-dark);
}

.badge-ok {
  background: var(--ok-bg);
  border-color: var(--ok-border);
  color: var(--ok-ink);
}

.badge-err {
  background: var(--err-bg);
  border-color: var(--err-border);
  color: var(--err-ink);
}

/* Document Slots & Generated Legal Viewers */
.doc-slot-list,
.legal-doc-list,
.case-list {
  display: grid;
  gap: 14px;
}

.doc-slot {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  display: grid;
  gap: 12px;
  min-width: 0;
}

.doc-slot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-upload-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.file-btn-label {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.file-btn-label:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.file-btn-label input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}

.legal-doc-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
}

.legal-doc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--surface-muted);
  border: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.legal-doc-header:hover {
  background: var(--gold-soft);
}

.legal-doc-title-group {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.legal-doc-title-group strong {
  font-size: 0.98rem;
  color: var(--ink);
}

.legal-doc-title-group small {
  font-size: 0.78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.legal-doc-body,
.pre-box {
  margin: 0;
  padding: 16px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 320px;
  overflow-y: auto;
}

.pre-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

/* Definition Lists & Case Rows */
.dl {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
  font-size: 0.94rem;
}

.dl dt {
  font-weight: 600;
  color: var(--muted);
}

.dl dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.case-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
}

.case-item-info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.case-item-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.doc-row:last-child {
  border-bottom: 0;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  min-height: 38px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.filter-pill[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

/* Tabs (Management Panel) */
.tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tabs button {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
}

.tabs button[aria-pressed="true"] {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
}

/* Footnote & Footer */
.footnote {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
}

.footnote strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

/* Compact single-line footer */
footer.site-footer {
  background: #042825;
  border-top: 2px solid var(--gold);
  padding: 14px 0;
  font-size: 0.82rem;
  color: #CFE3DF;
}

footer.site-footer a {
  color: var(--gold-light);
}

/* Focus Visibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.file-btn-label:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 980px) {
  .steps-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wrap {
    padding: 0 16px;
  }
  main.wrap {
    padding-top: 20px;
    padding-bottom: 36px;
  }
  .home-hero,
  .card,
  .steps-overview,
  .wizard-header,
  .entry-card {
    padding: 20px 16px;
  }
  .entry-grid,
  .how-strip,
  .grid-2,
  .grid-3,
  .choice-grid,
  .steps-overview-grid,
  .dl,
  .tabs {
    grid-template-columns: 1fr;
  }
  .step-pill {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }
  .step-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .step-actions .btn,
  .case-item-actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .wrap {
    padding: 0 12px;
  }
  .brand-wordmark {
    font-size: 1.15rem;
    letter-spacing: 0.18em;
  }
  .header-links {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

/* Bölüm Bazlı Renklendirme & Yönlendirici Vurgu */
.section-guide-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 4px;
}

.section-guide-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.section-guide-hint {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.section-card.section-teal {
  border-left: 6px solid #0f766e;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 100%);
}
.pill-teal { background: #0f766e; }

.section-card.section-gold {
  border-left: 6px solid #d97706;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}
.pill-gold { background: #b45309; }

.section-card.section-navy {
  border-left: 6px solid #1d4ed8;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.pill-navy { background: #1e40af; }

.section-card.section-indigo {
  border-left: 6px solid #7c3aed;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}
.pill-indigo { background: #6d28d9; }

#express-submit-bar {
  border: 2px solid #047857;
  background: linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%);
}
.express-legal-note {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}
.btn-legal-toggle {
  margin-left: 6px;
}

/* %100 Mobil Uyumluluk, 48px Dokunma Hedefi ve iOS Zoom Koruması */
@media (max-width: 760px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .section-card {
    padding: 14px 12px !important;
  }
  .section-guide-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    font-size: 16px !important;
    min-height: 48px;
  }
  .btn,
  .file-btn-label {
    min-height: 48px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }
  #express-submit-bar .bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  #btn-express-submit {
    min-height: 52px;
    font-size: 15.5px;
    width: 100%;
  }
  #btn-toggle-legal-panel {
    width: auto;
    min-height: 36px;
    font-size: 12px;
    margin-top: 6px;
    margin-left: 0 !important;
  }
}

/* KAMERA MODAL */
.cam-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.cam-dialog {
  background: #ffffff;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cam-header {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}
.cam-body {
  position: relative;
  background: #000000;
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cam-body video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cam-guide-box {
  position: absolute;
  top: 15%;
  left: 10%;
  right: 10%;
  bottom: 15%;
  border: 2px dashed rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
}
.cam-guide-box span {
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
}
.cam-footer {
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  border-top: 1px solid #e2e8f0;
}

/* 1-SMS Express Form & Quick Selection */
.req {
  color: #DC2626;
  font-weight: 700;
  margin-left: 2px;
}

.quick-amounts-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -6px;
}

.quick-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.quick-amt {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--teal);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-amt:hover, .quick-amt:focus-visible {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.field-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.express-legal-banner {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  padding: 12px 16px;
}

