/* ============================================================
   NaijaHomes - seller form pages (Add property, Documents)
   Warm off-white background, serif headings, dark green actions
   ============================================================ */
:root {
  --g: #0f4c35; --g2: #146b4a; --g-soft: #e8f2ec; --gold: #f5b82e;
  --bg: #fbfaf7; --card: #ffffff; --text: #16221b; --muted: #6a756e; --line: #e6e3dc;
  --red: #c0392b; --warn-bg: #fff8e1; --warn: #7a5a00; --ok: #168a45;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
[hidden], .hidden { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); padding-bottom: 110px;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; line-height: 1.45;
}
a { color: inherit; }

/* ---------- top bars ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--g); flex: 1; }
.brand svg { width: 28px; height: 28px; }
.t-link { position: relative; text-decoration: none; font-size: 22px; line-height: 1; padding: 6px; }
.t-link .cb { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e53935; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.chip-link { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 9px 14px; font-size: 14px; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }

.sub { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.round { width: 52px; height: 52px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; text-decoration: none; border: 0; flex: none; box-shadow: 0 4px 12px rgba(15,76,53,.3); }
.round svg { width: 24px; height: 24px; }
.sub h2 { margin: 0; font-family: var(--serif); font-size: 22px; font-weight: 600; }

/* ---------- page ---------- */
.page { max-width: 640px; margin: 0 auto; padding: 18px 16px 0; }
.page > h1 { font-family: var(--serif); font-size: 34px; margin: 8px 0 6px; line-height: 1.15; }
.lead { color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px 20px; margin: 16px 0; }
.card > h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 14px; font-weight: 600; }
.card .note { color: var(--muted); font-size: 14px; margin: -6px 0 12px; }

label { display: block; font-size: 16px; margin: 16px 0 8px; font-weight: 500; }
.card > label:first-of-type, .card > .row:first-child label { margin-top: 0; }
input, select, textarea {
  width: 100%; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--text);
  font: inherit; font-size: 17px; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
select { appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236a756e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>") no-repeat right 16px center; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--g); border-color: var(--g); }
input::placeholder, textarea::placeholder { color: #a3aaa5; }
textarea { min-height: 130px; resize: vertical; }
.row { display: flex; gap: 12px; }
.row > div { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.check { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-size: 17px; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; flex: none; padding: 0; accent-color: var(--g); box-shadow: none; border-radius: 6px; }

.feats { display: grid; gap: 14px; margin-top: 6px; }
.feat { display: flex; align-items: center; gap: 12px; font-size: 17px; cursor: pointer; user-select: none; }
.feat::before { content: ""; width: 24px; height: 24px; border: 2px solid var(--g); border-radius: 7px; flex: none; background: #fff; }
.feat.active::before { background: var(--g) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>") center/80% no-repeat; }

/* ---------- media ---------- */
.upbtn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font: inherit; font-size: 17px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.upbtn svg { width: 22px; height: 22px; }
.upbtn:disabled { opacity: .6; }
.mediagrp { margin-top: 22px; }
.mediagrp:first-of-type { margin-top: 6px; }
#previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pv { position: relative; width: 88px; height: 88px; }
.pv img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; display: block; }
.pv .x { position: absolute; top: -7px; right: -7px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: #16221b; color: #fff; font-size: 16px; line-height: 26px; padding: 0; cursor: pointer; }
.pv .cover { position: absolute; left: 5px; bottom: 5px; background: var(--g); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.vlist { margin-top: 12px; display: grid; gap: 8px; }
.vitem { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.vitem span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vitem button { border: 0; background: #fdecec; color: #b3261e; border-radius: 8px; padding: 6px 10px; font-weight: 700; cursor: pointer; }

.verify-box p { margin: 6px 0 0 36px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.verify-box .check { font-weight: 700; }

/* ---------- banners & messages ---------- */
.banner { background: var(--g-soft); border: 1px solid #bfdccd; color: #0b4a30; border-radius: 16px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.banner.warn { background: var(--warn-bg); border-color: #f0d28a; color: var(--warn); }
.banner.bad { background: #fdecea; border-color: #f3b9b3; color: #8c1d14; }
#msg { margin: 14px 2px 0; font-size: 15px; min-height: 20px; }
#gate { color: var(--red); font-weight: 600; }

/* ---------- buttons ---------- */
.actions { display: flex; gap: 12px; align-items: center; margin: 22px 0 8px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 26px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); font: inherit; font-size: 18px; font-weight: 500; cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn.main { background: var(--g); border-color: var(--g); color: #fff; }
.btn:disabled { opacity: .6; }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }

/* ---------- bottom nav (same look on every page) ---------- */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 70px; background: #fff; border-top: 1px solid #e6ece8;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; text-align: center; box-shadow: 0 -6px 18px rgba(15,40,30,.06); padding: 0 4px env(safe-area-inset-bottom); }
.bnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 0; font-size: 12px; font-weight: 500; line-height: 1.2; font-family: inherit; color: #6b7a72; text-decoration: none; background: none; border: 0; cursor: pointer; position: relative; }
.bnav a svg { width: 24px; height: 24px; display: block; }
.bnav a.on { color: #0f4c35; font-weight: 700; }
.bnav a.fab { width: 76px; height: 76px; border-radius: 50%; background: #0f4c35; color: #fff; margin: -38px auto 0; padding: 0; display: grid; place-items: center;
  border: 6px solid #fff; box-shadow: 0 8px 20px rgba(15,76,53,.38); font-size: 0; }
.bnav a.fab svg { width: 32px; height: 32px; }

@media (min-width: 820px) {
  .bnav { display: none; }
  body { padding-bottom: 40px; }
  .page { padding-top: 28px; }
}

/* ---------- documents page ---------- */
.steps { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-size: 14px; color: var(--muted); }
.steps .st { display: flex; align-items: center; gap: 8px; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: 700; font-size: 13px; }
.steps .st.done .n, .steps .st.now .n { background: var(--g); color: #fff; }
.steps .st.now { color: var(--text); font-weight: 600; }
.steps .bar { flex: 1; height: 2px; background: var(--line); max-width: 60px; }

.sum { display: flex; flex-direction: column; gap: 2px; }
.sum b { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sum span { color: var(--muted); font-size: 14px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag { background: var(--g-soft); color: var(--g); font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 999px; }

.slot { border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-top: 14px; background: #fff; }
.slot.need { border-color: #d9c28a; background: #fffdf5; }
.slot.got { border-color: #bfdccd; background: #f7fbf8; }
.slot h3 { margin: 0 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eee; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.pill.req { background: #fde8c8; color: #8a4b00; }
.pill.ok { background: #d9f3e3; color: var(--ok); }
.slot p.help { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.slot select { font-size: 15px; padding: 12px 14px; padding-right: 42px; }
.slot .upbtn { margin-top: 10px; padding: 12px 18px; font-size: 15px; }
.dlist { margin-top: 10px; display: grid; gap: 8px; }
.ditem { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; font-size: 14px; }
.ditem .dn { flex: 1; min-width: 0; }
.ditem .dn b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ditem .dn small { color: var(--muted); }
.ditem button { border: 0; background: none; font-weight: 700; cursor: pointer; font-size: 13px; padding: 4px 6px; }
.ditem .v { color: var(--g); }
.ditem .r { color: #b3261e; }
.dst { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fff0cc; color: #7a5a00; }
.dst.approved { background: #d9f3e3; color: var(--ok); }
.dst.rejected { background: #fde0e0; color: #a12020; }
.declare { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; margin-top: 8px; }
.declare input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--g); box-shadow: none; padding: 0; }
.locked input, .locked select, .locked textarea { background: #f3f2ee; pointer-events: none; }
