/* Search3PL Lead Marketplace — mobile-first styles. Self-contained. */
:root{
  /* Brand: purple (primary) + teal (action/accent) — matches the logo. */
  --navy:#5f54a3; --navy-d:#4c4385; --accent:#23b6ad; --accent-d:#1c938c;
  --ink:#1a2733; --muted:#6b7a89; --line:#e1e6eb; --bg:#f4f6f8; --warn:#b54708;
  /* Site header: one bar across the whole site. Must stay identical to the main
     site's .header-site (see /header.php, which ships the same values). */
  --header-bg:#191919; --header-link:#ffffff; --header-link-hover:#23b7ae;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--ink);background:var(--bg);line-height:1.5}
a{color:var(--navy);text-decoration:none}
a:hover{text-decoration:underline}
.lm-wrap{width:100%;max-width:1040px;margin:0 auto;padding:0 16px}

/* Header / nav — the SAME black bar the main site uses (see /header.php). */
.lm-header{background:var(--header-bg);color:#fff;box-shadow:0 2px 10px rgba(0,0,0,.1);
  position:sticky;top:0;z-index:1000}
.lm-header-inner{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:8px;padding:12px 16px}
.lm-logo{color:#fff;font-weight:800;font-size:20px;letter-spacing:.3px;display:inline-flex;align-items:center;gap:8px}
.lm-logo img{display:block;height:30px;width:auto}
.lm-logo span{color:var(--header-link-hover)}
.lm-admin-tag{color:var(--header-link-hover);font-weight:700;font-size:14px}
.lm-mainsite{color:#cfcfcf;font-size:13px;font-weight:600;padding:5px 11px;border-radius:999px;
  border:1px solid rgba(255,255,255,.28);white-space:nowrap}
.lm-mainsite:hover{background:rgba(255,255,255,.12);text-decoration:none;color:#fff}
.lm-nav{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto}
.lm-nav a{color:var(--header-link);padding:6px 10px;border-radius:6px;font-size:14px;font-weight:500}
.lm-nav a:hover{background:rgba(255,255,255,.12);text-decoration:none;color:var(--header-link-hover)}
.lm-main{padding:24px 16px;min-height:60vh}

/* Breadcrumbs */
.lm-breadcrumb{margin:0 0 14px;font-size:13px;color:var(--muted)}
.lm-breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.lm-breadcrumb li{display:flex;align-items:center}
.lm-breadcrumb li+li::before{content:"›";margin:0 8px;color:#aeb8c2}
.lm-breadcrumb li[aria-current]{color:var(--ink);font-weight:600}

/* Footer */
.lm-footer{background:#fff;border-top:1px solid var(--line);margin-top:32px;
  font-size:13px;color:var(--muted);padding:18px 0}
.lm-footer p{margin:6px 0}
.lm-footer-links{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 10px}
.lm-footer-links a{color:var(--navy);font-weight:600}

/* Flash */
.lm-flash{padding:12px 14px;border-radius:8px;margin:0 0 16px;font-size:14px}
.lm-flash-info{background:#e8f1fb;border:1px solid #b9d6f2}
.lm-flash-success{background:#e7f6ec;border:1px solid #aedcbf}
.lm-flash-error{background:#fdecea;border:1px solid #f5b9b2;color:#8a1c12}

/* Headings / text */
h1{font-size:26px;margin:0 0 12px}
h2{font-size:20px;margin:24px 0 10px}
.lm-lede{font-size:17px;color:#33485b;max-width:680px}
.lm-muted{color:var(--muted)}

/* Cards */
.lm-card{background:#fff;border:1px solid var(--line);border-radius:10px;
  padding:18px;margin:0 0 16px}
.lm-grid{display:grid;gap:16px}
@media(min-width:720px){.lm-grid-2{grid-template-columns:1fr 1fr}
  .lm-grid-3{grid-template-columns:repeat(3,1fr)}
  .lm-grid-4{grid-template-columns:repeat(4,1fr)}}
@media(min-width:520px) and (max-width:719px){.lm-grid-4{grid-template-columns:1fr 1fr}}
/* Signup form: stay single-column on phones (incl. large/wide handsets);
   only go two-column on genuinely wide screens. */
@media(min-width:900px){.lm-signup-grid{grid-template-columns:1fr 1fr}}

/* Forms */
.lm-field{margin:0 0 14px}
.lm-field label{display:block;font-weight:600;font-size:14px;margin:0 0 5px}
.lm-field input[type=text],.lm-field input[type=email],.lm-field input[type=password],
.lm-field input[type=number],.lm-field input[type=url],.lm-field input[type=tel],
.lm-field select,.lm-field textarea{
  width:100%;padding:10px 12px;border:1px solid #c7d0d9;border-radius:8px;
  font-size:15px;background:#fff}
.lm-field textarea{min-height:120px;resize:vertical}
.lm-checks{display:grid;gap:8px}
@media(min-width:560px){.lm-checks-2{grid-template-columns:1fr 1fr}}
.lm-check{display:flex;align-items:center;gap:8px;font-size:14px;
  padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.lm-check input{width:18px;height:18px}
.lm-help{font-size:12px;color:var(--muted);margin-top:4px}

/* Buttons */
.lm-btn{display:inline-block;background:var(--accent);color:#fff;border:none;
  padding:11px 18px;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer}
.lm-btn:hover{background:var(--accent-d);text-decoration:none;color:#fff}
/* All solid buttons use the teal accent site-wide; header/structure stays purple. */
.lm-btn-navy{background:var(--accent)}.lm-btn-navy:hover{background:var(--accent-d)}
.lm-btn-ghost{background:#fff;color:var(--accent);border:1px solid #c7d0d9}
.lm-btn-block{display:block;width:100%;text-align:center}
.lm-btn[disabled]{opacity:.5;cursor:not-allowed}

/* Tables */
.lm-table{width:100%;border-collapse:collapse;font-size:14px}
.lm-table th,.lm-table td{text-align:left;padding:10px;border-bottom:1px solid var(--line)}
.lm-table th{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.4px}

/* Badges / pills */
.lm-pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;
  font-weight:600;background:#eef2f6;color:#46586a}
.lm-pill-live{background:#e7f6ec;color:var(--accent-d)}
.lm-pill-pending{background:#fff4e5;color:var(--warn)}
.lm-pill-closed{background:#f1f1f1;color:#777}
.lm-pill-rejected{background:#fdecea;color:#8a1c12}
.lm-price{font-size:22px;font-weight:800;color:var(--navy)}
.lm-was{color:var(--muted);text-decoration:line-through;font-size:14px;font-weight:400}

/* Lead feed */
.lm-lead{display:flex;flex-direction:column;gap:10px}
.lm-lead-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.lm-tags{display:flex;flex-wrap:wrap;gap:6px}
.lm-kv{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;font-size:14px}
.lm-kv dt{color:var(--muted)}.lm-kv dd{margin:0}

/* Engagement mini bar chart */
.lm-bars{display:flex;align-items:flex-end;gap:3px;height:36px}
.lm-bars i{flex:1;background:var(--navy);border-radius:2px 2px 0 0;min-height:2px;display:block}

/* Notices */
.lm-notice{background:#fff4e5;border:1px solid #f3d39b;color:#7a4a06;
  padding:12px 14px;border-radius:8px;font-size:14px}
.lm-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:0 0 16px}
.lm-filters .lm-field{margin:0;min-width:150px}

/* ── Browse-leads: gradient hero + live-lead card grid (icon-free) ─────────── */
.lm-feed-hero{
  background:linear-gradient(120deg,var(--navy) 0%,var(--navy-d) 46%,var(--accent-d) 100%);
  color:#fff;border-radius:16px;padding:24px 26px;margin:0 0 20px;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;
  box-shadow:0 14px 30px -14px rgba(76,67,133,.6)}
.lm-feed-hero h1{margin:0;font-size:25px;color:#fff;line-height:1.2}
.lm-feed-hero p{margin:6px 0 0;font-size:15px;color:#e7e3f5;max-width:46ch}
.lm-feed-stats{display:flex;gap:10px;flex-wrap:wrap}
.lm-feed-stat{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.22);
  border-radius:12px;padding:10px 18px;min-width:96px;text-align:center}
.lm-feed-stat b{display:block;font-size:22px;font-weight:800;line-height:1.15}
.lm-feed-stat span{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#ded8f3}

/* Vertical list of full-width lead rows. */
.lm-leadgrid{display:flex;flex-direction:column;gap:12px}

.lm-leadrow{position:relative;background:#fff;border:1px solid var(--line);
  border-radius:12px;padding:16px 20px 16px 24px;overflow:hidden;
  display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease}
.lm-leadrow:hover{transform:translateY(-2px);
  box-shadow:0 14px 28px -18px rgba(31,39,51,.42);border-color:#cfd7df}
.lm-leadrow::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--accent)}
.lm-leadrow.q5::before{background:linear-gradient(180deg,#23b6ad,#f5b301)}
.lm-leadrow.q4::before{background:var(--accent)}
.lm-leadrow.q3::before{background:var(--navy)}
.lm-leadrow.q2::before{background:#8a93a6}
.lm-leadrow.q1::before{background:#c2c9d3}

.lm-leadrow-main{flex:1 1 340px;min-width:0;display:flex;flex-direction:column;gap:11px}
.lm-leadrow-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.lm-leadcard-ref{font-size:16px;font-weight:800;letter-spacing:.3px;color:var(--ink)}
.lm-leadcard-loc{font-size:13px;color:var(--muted)}

.lm-ribbon{font-size:10px;font-weight:800;letter-spacing:.8px;text-transform:uppercase;
  color:#fff;background:var(--accent);padding:3px 9px;border-radius:999px}
.lm-ribbon-hot{background:#e85d2f}
.lm-qbadge{font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px;
  background:#eef2f6;color:#46586a;white-space:nowrap}
.lm-qbadge.q5{background:#fff5e0;color:#a36a00}
.lm-qbadge.q4{background:#e7f6ec;color:var(--accent-d)}
.lm-qbadge.q3{background:#ece9f7;color:var(--navy-d)}

/* Facts laid out as little boxes within the row — equal-width so they line up. */
.lm-facts-inline{display:flex;flex-wrap:wrap;gap:8px}
.lm-facts-inline>div{flex:1 1 132px;display:flex;flex-direction:column;justify-content:center;
  gap:3px;min-width:0;background:#f6f8fa;border:1px solid var(--line);
  border-radius:9px;padding:8px 12px}
.lm-facts-inline dt{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--muted)}
.lm-facts-inline dd{margin:0;font-size:14px;font-weight:700;color:var(--ink);line-height:1.25}

.lm-leadrow-side{display:flex;align-items:center;gap:18px;flex:0 0 auto;margin-left:auto}
.lm-leadcard-price{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap}
.lm-leadcard-price strong{font-size:23px;font-weight:800;color:var(--navy)}
.lm-disc{font-size:11px;font-weight:800;color:var(--accent-d);background:#e3f6f4;
  padding:2px 7px;border-radius:6px}
@media(max-width:560px){
  .lm-leadrow-side{margin-left:0;width:100%;justify-content:space-between;
    padding-top:14px;border-top:1px solid var(--line)}
}

/* Recently-filled (closed) rows — muted, non-interactive history. */
.lm-leadrow.is-closed{background:#fafbfc}
.lm-leadrow.is-closed .lm-leadcard-ref{color:var(--muted)}
.lm-leadrow.is-closed:hover{transform:none;box-shadow:none;border-color:var(--line)}
.lm-leadrow.is-closed::before{background:#c7cfd9}
.lm-leadrow.is-closed .lm-facts-inline>div{background:#f1f3f5;border-color:#e6eaee}
.lm-leadrow.is-closed .lm-facts-inline dd{color:#5a6675}

/* --- Tick-box profile form: grouped sections ------------------------------- */
/* The client profile is dropdowns + checkboxes ONLY (no free text anywhere), so
   it is long. These fieldsets break it into readable, scannable groups. */
.lm-fieldset{border:1px solid var(--line);border-radius:10px;padding:18px 20px 6px;
  margin:0 0 18px;background:#fbfcfd}
.lm-fieldset>legend{padding:0 8px;font-weight:800;font-size:15px;color:var(--navy)}
.lm-fieldset-intro{margin:-6px 0 14px}
.lm-field-wide .lm-checks{margin-top:2px}
@media(min-width:820px){
  .lm-fieldset .lm-checks-2{grid-template-columns:1fr 1fr 1fr}
}

/* --- Rising pricing signals ------------------------------------------------ */
/* The price goes UP with every 3PL that contacts a lead first, so these read as
   urgency (warm), not as a discount (green — see .lm-disc). */
.lm-leadcard-pricebox{display:flex;flex-direction:column;gap:3px;align-items:flex-end}
.lm-rise{font-size:11px;font-weight:800;color:#a8410f;background:#fdece2;
  padding:2px 8px;border-radius:999px;white-space:nowrap}
.lm-nextprice{font-size:11.5px;font-weight:700;color:#a8410f;white-space:nowrap}
.lm-risenote{background:#fdece2;border:1px solid #f5c9ac;border-radius:8px;
  padding:10px 12px;font-size:13.5px;line-height:1.6;color:#8a3a0c;margin:0 0 10px}
.lm-price .lm-rise{font-size:12px;vertical-align:middle}

/* --- Stats charts (admin → Stats) ------------------------------------------ */
/* Plain CSS bars — no chart library, no external requests. */
.lm-chart{display:flex;align-items:flex-end;gap:3px;height:150px;padding:0 0 20px;
  position:relative;overflow-x:auto}
.lm-chart-sm{height:96px}
.lm-chart-col{flex:1 1 0;min-width:10px;height:100%;display:flex;flex-direction:column;
  justify-content:flex-end;align-items:center;position:relative}
.lm-chart-col i{display:block;width:100%;max-width:34px;background:var(--accent);
  border-radius:3px 3px 0 0;transition:background .15s}
.lm-chart-col:hover i{background:var(--accent-d)}
.lm-chart-col span{position:absolute;bottom:-18px;font-size:10px;color:var(--muted);
  white-space:nowrap;line-height:1}
