/* =============================================================================
   Metro City Housing & Assistance Portal — restyled to a modern, official
   government-portal look (navy header/footer, hero banner, card-based quick
   services, sidebar links + stats). Field-level anti-patterns intentionally
   preserved (placeholder-only inputs, no visible <label>s, tiny doc inputs)
   so BridgeAble still has real accessibility gaps to retrofit around.
   ============================================================================= */

* { box-sizing: border-box; }

:root {
  --navy: #1e2a5e;
  --navy-dark: #16204a;
  --blue: #2547a0;
  --blue-light: #eef2ff;
  --accent: #1d4ed8;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --card: #ffffff;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f4f6fb;
  color: var(--text);
  font-size: 14px;
}

/* ---- Top utility bar ------------------------------------------------- */
.gov-banner {
  background: var(--navy-dark);
  color: #cdd7f5;
  font-size: 12px;
}
.gov-banner-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6px 20px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.gov-banner-right { margin-left: auto; display: flex; gap: 18px; }
.gov-lang { text-decoration: underline; cursor: pointer; }

/* ---- Header ------------------------------------------------------------ */
.gov-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.gov-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.gov-brand { display: flex; align-items: center; gap: 14px; }
.gov-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.gov-header h1 {
  font-size: 20px;
  color: var(--navy);
  margin: 0;
}
.gov-header small { color: var(--muted); font-size: 12px; }

.gov-header-actions { display: flex; align-items: center; gap: 12px; }
.gov-search { position: relative; }
.gov-search input {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 34px 8px 12px;
  font-size: 13px;
  width: 200px;
  color: var(--text);
}
.gov-search span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.gov-login-btn {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.gov-login-btn:hover { background: var(--blue); }

/* ---- Nav row ------------------------------------------------------------ */
.gov-nav {
  background: var(--blue-light);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.gov-nav a {
  display: inline-block;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
}
.gov-nav a:hover { background: #e2e9fb; color: var(--accent); }

/* ---- Hero banner --------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--blue), var(--navy));
  padding: 46px 20px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h2 { color: #fff; font-size: 28px; margin: 0 0 10px; font-weight: 800; }
.hero p { color: #dbe4ff; font-size: 15px; margin: 0 0 24px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.hero-pill {
  background: #fff;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 8px;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.25);
}
.hero-pill:hover { background: #eef2ff; }

/* ---- Main two-column layout ---------------------------------------------- */
.layout {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.wrap {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 6px 20px -12px rgba(30, 42, 94, 0.12);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.sidebar {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px -12px rgba(30, 42, 94, 0.12);
}
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { border-bottom: 1px solid var(--border); }
.side-links li:last-child { border-bottom: none; }
.side-links a {
  display: block;
  padding: 9px 2px;
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
}
.side-links a:hover { color: var(--accent); }

.stat-box {
  background: var(--blue-light);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat-box:last-child { margin-bottom: 0; }
.stat-label { font-size: 12px; color: var(--muted); }
.stat-value { font-size: 20px; font-weight: 800; color: var(--navy); }

/* ---- Step tabs / form (kept functionally identical) ---------------------- */
.step-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.step-tab {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.step-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.step-section { display: none; padding: 6px 2px; }
.step-section.active { display: block; }

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 14px;
  padding: 14px;
}
legend { font-size: 12px; color: var(--muted); padding: 0 4px; }

.row-messy {
  display: block;
  margin-bottom: 12px;
}

input, select {
  font-family: inherit;
  font-size: 13px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  width: 55%;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(29, 78, 216, .12); }

/* Intentionally no visible <label> styling — placeholder-only hints,
   the classic inaccessible-form anti-pattern. */
input::placeholder { color: #9aa3b2; font-style: italic; }

.tiny-btn {
  font-size: 12px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}
.tiny-btn:hover { background: var(--blue-light); }

.tiny-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.tiny-btn.primary:hover { background: var(--accent); }

.doc-row {
  font-size: 13px;
  margin-bottom: 10px;
}
.doc-status { color: #b91c1c; font-size: 12px; font-weight: 600; }
.doc-status.done { color: #15803d; }

/* Deliberately tiny, unlabeled file input — matches the demo's intentional
   inaccessible-form anti-patterns (no visible label, no instructions on
   accepted file types, cramped hit target). */
.doc-file {
  font-size: 10px;
  width: auto;
  max-width: 120px;
  vertical-align: middle;
  margin-left: 6px;
  color: var(--muted);
}

.review-box {
  background: var(--blue-light);
  border: 1px dashed #a9b8e8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
}

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

/* ---- Footer -------------------------------------------------------------- */
.gov-footer {
  background: var(--navy-dark);
  color: #b9c3ea;
  padding: 40px 20px 0;
}
.footer-cols {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
}
.footer-col { flex: 1 1 200px; }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-col a, .footer-col p {
  display: block;
  color: #b9c3ea;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid #2c3a72;
  padding: 16px 0 24px;
  text-align: center;
  font-size: 12px;
  color: #8a97c9;
}

#submitted-banner {
  display: none;
  background: #dff0d8;
  border: 1px solid #3c763d;
  color: #276e2c;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

@media (max-width: 860px) {
  .layout { flex-direction: column; }
  .sidebar { flex: 1 1 auto; }
  .gov-search { display: none; }
}
