:root {
  color-scheme: light;
  --primary-950: #033729;
  --primary-800: #07543f;
  --primary-700: #0b684e;
  --primary-600: #128061;
  --primary-100: #dff3ec;
  --primary-50: #f0faf6;
  --gold: #d7aa46;
  --red: #b8323e;
  --ink: #17231f;
  --muted: #64716d;
  --line: #dce5e2;
  --surface: #fff;
  --canvas: #f3f6f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

.municipal-header {
  background: #fff;
  border-top: 5px solid var(--primary-800);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(9, 47, 36, .06);
}
.header-inner { display: flex; width: min(100% - 36px, 1080px); height: 88px; align-items: center; justify-content: space-between; margin: 0 auto; }
.municipal-logo { width: min(360px, 54vw); height: 66px; object-fit: contain; object-position: left center; }
.header-system { padding-left: 24px; text-align: right; border-left: 1px solid var(--line); }
.header-system span, .header-system strong { display: block; }
.header-system span { margin-bottom: 3px; color: var(--muted); font-size: .7rem; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.header-system strong { color: var(--primary-950); font-size: 1.05rem; }

.page-shell { width: min(100% - 32px, 920px); margin: 0 auto; padding: 44px 0 54px; }
.hero-copy { margin-bottom: 25px; text-align: center; }
.hero-kicker { display: inline-flex; margin-bottom: 9px; padding: 6px 11px; color: var(--primary-800); font-size: .72rem; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; background: var(--primary-100); border-radius: 999px; }
.hero-copy h1 { margin: 0; color: var(--primary-950); font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; line-height: 1.08; }
.hero-copy p { margin: 11px 0 0; color: var(--muted); font-size: 1rem; }

.wizard-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 22px 60px rgba(20, 55, 44, .11); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 22px 36px; list-style: none; background: #fbfcfc; border-bottom: 1px solid var(--line); }
.step { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a9591; font-size: .8rem; font-weight: 680; }
.step:not(:last-child)::after { position: absolute; top: 50%; right: -25%; width: 50%; height: 1px; content: ""; background: #dce5e2; }
.step span { display: grid; width: 28px; height: 28px; place-items: center; font-size: .76rem; background: #edf1ef; border-radius: 50%; }
.step em { font-style: normal; }
.step.active { color: var(--primary-800); }
.step.active span { color: #fff; background: var(--primary-700); box-shadow: 0 0 0 4px var(--primary-100); }
.step.done { color: var(--primary-700); }
.step.done span { color: transparent; background: var(--primary-100); }
.step.done span::before { color: var(--primary-700); content: "✓"; }
.step.done::after { background: #9dccbb; }

.wizard-screen { display: none; padding: 38px clamp(24px, 6vw, 58px) 32px; }
.wizard-screen.active { display: block; animation: appear 180ms ease; }
.screen-heading { margin-bottom: 25px; text-align: center; }
.screen-number { color: var(--primary-700); font-size: .72rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.screen-heading h3, .completion h3 { margin: 7px 0 6px; color: var(--primary-950); font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -.025em; }
.screen-heading p, .completion p { margin: 0; color: var(--muted); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.service-card { display: grid; grid-template-columns: 46px 1fr 20px; min-height: 90px; align-items: center; gap: 14px; padding: 15px; cursor: pointer; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: 150ms ease; }
.service-card:hover { border-color: #94c9b6; box-shadow: 0 8px 22px rgba(14, 91, 67, .09); transform: translateY(-2px); }
.service-card.featured { background: linear-gradient(135deg, #f2fbf7, #fff); border-color: #add7c8; }
.service-icon { display: grid; width: 46px; height: 46px; place-items: center; color: var(--primary-700); background: var(--primary-50); border: 1px solid #d5eee5; border-radius: 12px; }
.service-icon svg { width: 24px; }
.service-card strong, .service-card small { display: block; }
.service-card strong { margin-bottom: 4px; color: var(--primary-950); font-size: .93rem; }
.service-card small { color: var(--muted); font-size: .76rem; line-height: 1.35; }
.arrow { width: 18px; color: #8da29a; }
.service-card svg, .button svg, .privacy-strip svg, .upload-icon svg, .success-mark svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.drop-zone { display: flex; min-height: 215px; align-items: center; justify-content: center; flex-direction: column; padding: 26px; cursor: pointer; text-align: center; background: var(--primary-50); border: 2px dashed #9dcdbd; border-radius: 18px; transition: 150ms ease; }
.drop-zone:hover, .drop-zone.is-dragging { background: #e5f6f0; border-color: var(--primary-600); transform: translateY(-1px); }
.drop-zone:focus-within { outline: 3px solid rgba(18, 128, 97, .18); outline-offset: 3px; }
#file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
.upload-icon { display: grid; width: 58px; height: 58px; margin-bottom: 15px; place-items: center; color: var(--primary-700); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 20px rgba(19, 76, 58, .1); }
.upload-icon svg { width: 29px; }
.drop-title { color: var(--primary-950); font-size: 1.05rem; font-weight: 760; }
.drop-help { margin-top: 5px; color: var(--muted); font-size: .87rem; }
.selected-files { display: grid; gap: 8px; margin-top: 13px; }
.file-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 11px 13px; background: #f8faf9; border: 1px solid var(--line); border-radius: 10px; }
.file-row strong { overflow: hidden; font-size: .84rem; text-overflow: ellipsis; white-space: nowrap; }
.file-row span { color: var(--muted); font-size: .76rem; }

.selection-summary { margin-bottom: 18px; padding: 13px 15px; color: var(--primary-950); font-size: .86rem; background: var(--primary-50); border: 1px solid #d4ebe3; border-radius: 11px; }
.selection-summary strong { display: block; margin-bottom: 2px; }
.field { margin-top: 18px; }
.field > label { display: block; margin-bottom: 8px; font-size: .88rem; font-weight: 720; }
.select-wrap { position: relative; }
select, .text-input { width: 100%; height: 52px; padding: 0 44px 0 15px; color: var(--ink); appearance: none; background: #fff; border: 1px solid #bfcac6; border-radius: 11px; outline: none; }
.text-input { padding-right: 15px; }
select:focus, .text-input:focus { border-color: var(--primary-600); box-shadow: 0 0 0 3px rgba(18, 128, 97, .13); }
.select-wrap > svg { position: absolute; top: 50%; right: 15px; width: 20px; pointer-events: none; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transform: translateY(-50%); }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: .77rem; line-height: 1.4; }
.operation-note { padding: 14px 15px; color: var(--muted); font-size: .84rem; line-height: 1.5; background: #fafbfb; border: 1px solid var(--line); border-radius: 11px; }

.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 25px; padding-top: 20px; border-top: 1px solid #edf1ef; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; cursor: pointer; font-weight: 740; text-decoration: none; border-radius: 11px; transition: 150ms ease; }
.button svg { width: 19px; }
.button.primary { color: #fff; background: var(--primary-700); border: 1px solid var(--primary-700); box-shadow: 0 8px 18px rgba(11, 104, 78, .2); }
.button.primary:hover:not(:disabled) { background: var(--primary-950); transform: translateY(-1px); }
.button.secondary { color: var(--primary-800); background: #fff; border: 1px solid #b8c9c3; }
.button.secondary:hover { background: var(--primary-50); }
.button:disabled { cursor: not-allowed; box-shadow: none; opacity: .42; }
.spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin 700ms linear infinite; }
.is-loading .spinner { display: block; }
.status { margin-top: 16px; padding: 12px 14px; font-size: .86rem; font-weight: 650; border-radius: 10px; }
.status.error { color: #a82832; background: #fff0f1; }

.completion { padding-block: 55px 45px; text-align: center; }
.success-mark { display: grid; width: 74px; height: 74px; margin: 0 auto 18px; place-items: center; color: #fff; background: var(--primary-700); border-radius: 50%; box-shadow: 0 0 0 9px var(--primary-100); }
.success-mark svg { width: 38px; stroke-width: 2.3; }
.download-button { width: min(100%, 330px); margin: 26px auto 0; }
.start-again { display: block; margin: 17px auto 0; padding: 8px; cursor: pointer; color: var(--primary-700); font-weight: 700; background: none; border: 0; }
.start-again:hover { text-decoration: underline; }

.privacy-strip { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 16px 24px; color: #66736e; font-size: .76rem; text-align: center; background: #f8faf9; border-top: 1px solid var(--line); }
.privacy-strip svg { width: 19px; color: var(--primary-600); }
.municipal-footer { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; padding: 23px 20px 32px; color: #6c7874; font-size: .78rem; text-align: center; }
.municipal-footer strong { color: var(--primary-800); font-size: .82rem; }

@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
  .header-inner { height: 74px; }
  .municipal-logo { width: min(270px, 65vw); height: 54px; }
  .header-system { display: none; }
  .page-shell { width: min(100% - 18px, 920px); padding-top: 28px; }
  .hero-copy h1 { font-size: 2rem; }
  .hero-copy p { font-size: .9rem; }
  .wizard-card { border-radius: 17px; }
  .stepper { padding: 18px 10px; }
  .step { gap: 0; }
  .step em { display: none; }
  .step:not(:last-child)::after { right: -35%; width: 70%; }
  .wizard-screen { padding: 28px 16px 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 82px; }
  .drop-zone { min-height: 190px; }
  .privacy-strip { align-items: flex-start; text-align: left; }
}

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