/* Sherwood Estimates — Ghost Estimate Intake
   Brand tokens from sherwoodestimates.com / Tools forest theme. */
:root {
  --pine: #12281C;
  --forest: #1E3F2D;
  --canopy: #2B5A3F;
  --moss: #6F9449;
  --fern: #E3ECDB;
  --mist: #F4F7F1;
  --bark: #6B4A2F;
  --gold: #F6C521;
  --gold-hi: #FFD84D;
  --gold-shadow: #B8900A;
  --ink: #18231D;
  --muted: #4F5F55;
  --line: #D5DFCF;
  --on-dark: #DBE7D6;
  --on-dark-dim: #C8D6C6;
  --white: #FFFFFF;
  --danger: #9A3B2F;
  --danger-soft: #F8E8E6;
  --radius-card: 22px;
  --radius-btn: 12px;
  --radius-input: 10px;
  --shadow: 0 1px 2px rgba(18,40,28,.06), 0 6px 18px -8px rgba(18,40,28,.22);
  --shadow-hover: 0 2px 4px rgba(18,40,28,.08), 0 14px 28px -10px rgba(18,40,28,.30);
  --header-h: 84px;
  --font-head: "Archivo", "Public Sans", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--mist);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(244,247,241,.90), rgba(244,247,241,.96)),
    url("../assets/hero-forest-1920.webp") center bottom / cover no-repeat;
  filter: grayscale(.35);
}

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--forest); font-weight: 600; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  border-bottom: 3px solid var(--gold);
  background:
    linear-gradient(90deg, rgba(18,40,28,.94) 0%, rgba(30,63,45,.86) 60%, rgba(43,90,63,.80) 100%),
    url("../assets/hero-forest-1920.webp") center 38% / cover no-repeat,
    var(--forest);
}
.site-header .wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(0,0,0,.25);
}
.brand-mark img { width: 36px; height: auto; }
.brand-text { min-width: 0; }
.brand-text strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.brand-text span {
  display: block;
  color: #CFE0C4;
  font-size: 13px;
  font-weight: 500;
}
.header-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
}
.pill svg { width: 14px; height: 14px; }
.header-phone {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .01em;
}
.header-phone:hover { color: var(--gold); }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding: 28px 0 80px;
}
@media (max-width: 920px) {
  .page { grid-template-columns: 1fr; }
  .checklist-col { position: static; }
}

/* Intro */
.intro h1 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--pine);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}
.url-hint {
  font-weight: 700;
  color: var(--forest);
  font-family: var(--font-body);
}
.intro p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
  max-width: 62ch;
}
.intro .limit-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--fern);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--forest);
  font-size: 13.5px;
  font-weight: 600;
}
.limit-note svg { flex: 0 0 auto; margin-top: 2px; }
.quota {
  margin-top: 14px;
}
.quota-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 6px;
}
.meter {
  height: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--canopy), var(--moss));
  border-radius: inherit;
  transition: width .35s ease;
}
.meter.is-warn > span { background: linear-gradient(90deg, #C9841A, var(--gold)); }
.meter.is-full > span { background: var(--danger); }

/* Cards / sections */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 22px 24px 24px;
  margin-top: 20px;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card h2 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 20px;
  color: var(--pine);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h2 .step {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.req-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.req-hint.recommended { color: var(--forest); background: var(--fern); }
.section-lead {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 14.5px;
}

/* Forms */
.grid-2, .grid-3 {
  display: grid;
  gap: 14px 16px;
}
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.loc-grid, .grid-2 + .grid-2, .grid-3 + .grid-2 { margin-top: 14px; }
@media (max-width: 700px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .span-2, .grid-2 .span-2 { grid-column: auto; }
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .loc-grid .city-field { grid-column: 1 / -1; }
}
.span-2 { grid-column: span 2; }
@media (max-width: 700px) { .span-2 { grid-column: auto; } }

label.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--forest);
}
label.field .optional { font-weight: 500; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="url"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* avoid iOS zoom */
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--canopy);
  outline-offset: 1px;
  border-color: var(--canopy);
}
textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.field-error input, .field-error select, .field-error textarea {
  border-color: var(--danger);
}

/* Logo upload */
.logo-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
}
.logo-preview {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  background: var(--mist);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 88px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 8px;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo-preview.has-image { border-style: solid; background: #fff; }

/* Dropzones — keep uncluttered */
.drop {
  border: 1.5px dashed #C4D2B8;
  background: var(--mist);
  border-radius: 16px;
  padding: 22px 16px;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over {
  border-color: var(--canopy);
  background: var(--fern);
}
.drop .drop-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--canopy);
}
.drop p { margin: 0; color: var(--ink); font-weight: 650; font-size: 15px; }
.drop .hint { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.drop .browse {
  display: inline-block;
  margin-top: 10px;
  background: none;
  border: 0;
  color: var(--forest);
  font-weight: 700;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

/* File list + progress */
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-row {
  display: grid;
  grid-template-columns: 28px minmax(0,1fr) auto auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.file-row .ftype {
  width: 28px; height: 28px; border-radius: 7px;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800; letter-spacing: .02em;
  color: #fff;
}
.ftype.pdf { background: #B42318; }
.ftype.zip { background: #5B4B8A; }
.ftype.img { background: var(--canopy); }
.ftype.doc { background: #2F5597; }
.ftype.link { background: #1D6B8A; }
.ftype.logo { background: var(--pine); }
.file-row .fname {
  font-weight: 650;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-row .fmeta { font-size: 12px; color: var(--muted); }
.file-row .fprog { grid-column: 2 / -1; }
.prog {
  height: 6px;
  background: var(--fern);
  border-radius: 999px;
  overflow: hidden;
}
.prog > span {
  display: block; height: 100%; width: 0;
  background: var(--canopy);
  transition: width .25s linear;
}
.prog.done > span { background: var(--moss); width: 100% !important; }
.file-row .remove {
  border: 0; background: none; color: var(--muted); padding: 4px;
  border-radius: 6px;
}
.file-row .remove:hover { background: var(--danger-soft); color: var(--danger); }
.file-row.is-done .fmeta-status { color: var(--canopy); font-weight: 650; }

/* Photo methods */
.methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
@media (max-width: 560px) { .methods { grid-template-columns: 1fr; } }
.method {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: var(--ink);
  font-weight: 650;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.method svg { width: 18px; height: 18px; color: var(--canopy); flex: 0 0 auto; }
.method.is-active {
  border-color: var(--forest);
  background: var(--fern);
  box-shadow: inset 0 0 0 1px var(--forest);
}
.method-panel { display: none; }
.method-panel.is-active { display: block; }
.share-help {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.share-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.share-chips span {
  font-size: 11.5px;
  font-weight: 650;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  color: var(--forest);
}

/* Trades */
.trades {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}
@media (max-width: 640px) { .trades { grid-template-columns: 1fr 1fr; } }
.trade {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}
.trade:has(input:checked) {
  background: var(--fern);
  border-color: var(--canopy);
}
.trade input { accent-color: var(--forest); width: 16px; height: 16px; }

/* Other docs categories */
.other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) { .other-grid { grid-template-columns: 1fr; } }
.other-box h3 {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--forest);
}

/* Checklist column */
.checklist-col {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}
.checklist-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--canopy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.checklist-card h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--pine);
}
.check-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 14px;
}
.ring {
  --p: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: conic-gradient(var(--moss) calc(var(--p) * 1%), var(--fern) 0);
  display: grid;
  place-items: center;
  flex: 0 0 54px;
}
.ring::after {
  content: attr(data-label);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  color: var(--pine);
}
.check-progress .caption { font-size: 13px; color: var(--muted); }
.check-progress .caption strong { display: block; color: var(--pine); font-size: 14px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 550;
}
.check-list li .dot {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid #C4D2B8;
  background: #fff;
  display: grid;
  place-items: center;
}
.check-list li.is-done { color: var(--ink); }
.check-list li.is-done .dot {
  background: var(--canopy);
  border-color: var(--canopy);
  color: #fff;
}
.check-list li.is-done .dot svg { display: block; }
.check-list li .dot svg { display: none; width: 10px; height: 10px; }
.check-list li .mark {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--bark);
  background: var(--mist);
  border-radius: 4px;
  padding: 1px 5px;
}
.check-list li:not(.req) .mark { display: none; }
.check-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.submit-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  padding: 14px 22px;
  transition: background .15s, transform .15s;
  text-decoration: none;
}
.btn-gold {
  background: var(--gold);
  color: #000;
  box-shadow: 0 3px 0 var(--gold-shadow);
  width: 100%;
}
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-gold:disabled {
  background: #E6E4D4;
  color: #7A7A70;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.btn-line {
  background: #fff;
  border-color: var(--forest);
  color: var(--forest);
  box-shadow: none;
}
.btn-line:hover { background: var(--fern); }
.submit-hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Confirmation */
#confirmation { display: none; }
body.is-confirmed #form-view { display: none; }
body.is-confirmed #confirmation { display: block; }
.confirm-card {
  max-width: 640px;
  margin: 36px auto 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  text-align: center;
}
.confirm-check {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--fern);
  color: var(--forest);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 3px var(--gold);
}
.confirm-card h1 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--pine);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 8px;
  line-height: 1.1;
}
.confirm-card .ref {
  display: inline-block;
  margin: 8px 0 16px;
  padding: 6px 12px;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  color: var(--forest);
  font-size: 14px;
}
.confirm-card p { color: var(--muted); margin: 0 0 10px; }
.received {
  text-align: left;
  margin: 22px 0;
  padding: 14px 16px;
  background: var(--mist);
  border-radius: 14px;
  border: 1px solid var(--line);
}
.received h2 {
  font-family: var(--font-head);
  font-size: 14px;
  margin: 0 0 8px;
  color: var(--pine);
}
.received ul { margin: 0; padding: 0 0 0 18px; color: var(--ink); font-size: 14px; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.confirm-actions .btn { width: auto; min-width: 200px; }

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px 36px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: rgba(255,255,255,.55);
}
footer.site-footer a { color: var(--forest); }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  max-width: min(520px, calc(100% - 32px));
  text-align: center;
  background: var(--pine);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transition: .25s ease;
  z-index: 80;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 10px; }
  .brand-mark img { width: 30px; }
  .brand-text strong { font-size: 16px; }
  .header-meta { display: none; }
  .card { padding: 18px 16px 18px; }
  .confirm-card { margin: 20px 0 48px; padding: 28px 18px; }
  .page { padding-top: 18px; }
}

/* After-submit jobs list and add-more banner */
.add-banner {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: var(--fern);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  color: var(--forest);
  font-size: 14.5px;
}
.add-banner[hidden] { display: none; }
.add-banner .text-btn,
button.text-btn {
  border: 0;
  background: none;
  color: var(--forest);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}
.jobs-list {
  text-align: left;
  margin: 24px 0 0;
  padding-top: 8px;
}
.jobs-list h2 {
  font-family: var(--font-head);
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--pine);
}
.jobs-lead { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--mist);
  margin-top: 8px;
  text-align: left;
}
.job-item.is-current { background: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.job-name { margin: 0; font-weight: 700; color: var(--pine); font-size: 14.5px; }
.job-meta { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.btn-sm { padding: 8px 12px; font-size: 13px; width: auto !important; white-space: nowrap; }
.confirm-note { margin: 18px 0 0; font-size: 14px; }
@media (max-width: 640px) {
  .job-item { flex-direction: column; align-items: flex-start; }
  .btn-sm { width: 100% !important; }
}

#view-status { display: none; padding: 48px 0 80px; }
body.is-status #form-view,
body.is-status #confirmation { display: none; }
body.is-status #view-status { display: block; }
body.is-add-files .new-job-only { display: none; }
body.is-add-files #sec-company { display: none; }
body.is-add-files #sec-job { display: none; }
body.is-add-files .intro-new { display: none; }
body.is-add-files .intro-add { display: block; }
.intro-add { display: none; }

.status-card {
  max-width: 560px;
  margin: 24px auto 0;
  background: var(--white);
  border-radius: 28px;
  padding: 40px 32px 36px;
  box-shadow: var(--shadow-hover);
  text-align: center;
  border: 1px solid var(--line);
}
.status-card h1 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--pine);
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.08;
  margin: 0 0 12px;
}
.status-card p { color: var(--muted); margin: 0 0 10px; }
.status-card .status-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 18px;
  background: var(--fern); color: var(--forest);
}
body.is-expired .status-icon,
body.is-error .status-icon { background: var(--danger-soft); color: var(--danger); }
.status-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

.alert {
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
}
.alert[hidden] { display: none !important; }
.alert-error {
  background: var(--danger-soft);
  color: #7a2e25;
  border: 1px solid #e8c4be;
}
.alert-error strong { color: var(--danger); }
.alert ul { margin: 8px 0 0; padding-left: 18px; }

.file-row.is-error .fmeta-status { color: var(--danger); font-weight: 650; }
.file-row.is-error .prog span { background: var(--danger); }
.file-row.is-queued .fmeta-status { color: var(--muted); }

.jobs-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 18px 8px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}
.jobs-panel h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--pine);
  margin: 0 0 4px;
}
.jobs-panel .jobs-lead { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.jobs-panel .job-item { margin-bottom: 10px; }

.job-readonly {
  background: var(--fern);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 0 0 22px;
  color: var(--pine);
}
.job-readonly strong { font-family: var(--font-head); font-weight: 800; }
.job-readonly p { margin: 0; color: var(--muted); font-size: 14.5px; }

.logo-preview:not(.has-image) {
  background: var(--mist);
  border: 1px dashed var(--line);
  border-radius: 16px;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

#submit-btn[disabled],
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

.quota.is-warn .meter span { background: #c47a14; }
.quota.is-over .meter span { background: var(--danger); }

.spin {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--forest);
  border-radius: 50%;
  animation: intake-spin .8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes intake-spin { to { transform: rotate(360deg); } }

/* Draft resume + “uploaded by mistake” note */
.draft-banner {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  margin: 24px 0 0;
  box-shadow: var(--shadow);
}
.draft-banner p { margin: 0 0 14px; color: var(--pine); }
.draft-banner strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
}
.draft-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.draft-actions .btn,
.draft-actions .btn-gold { width: auto; }
.mistake-note, .existing-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}
.existing-note { font-weight: 600; color: var(--forest); }
body.is-draft-offer .intro,
body.is-draft-offer #job-readonly,
body.is-draft-offer #form-alert,
body.is-draft-offer #needs-info-banner,
body.is-draft-offer #deliveries-card,
body.is-draft-offer .main-col > .card,
body.is-draft-offer .checklist-col { display: none; }
body.is-draft-offer .jobs-panel { display: block; }
@media (max-width: 920px) {
  .draft-actions .btn { width: 100%; }
}

.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.job-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.job-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .01em;
  padding: 3px 8px;
  border-radius: 999px;
  line-height: 1.2;
  background: var(--mist);
  color: var(--pine);
}
.job-badge.is-draft { background: #ece8df; color: #5c574c; }
.job-badge.is-received { background: var(--fern); color: var(--forest); }
.job-badge.is-in_progress { background: #f3e3c2; color: #7a5208; }
.job-badge.is-delivered { background: #dcead9; color: var(--canopy); }
.job-badge.is-needs-info { background: var(--danger-soft); color: var(--danger); }
.job-file-chip,
.job-delivery-line {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.job-delivery-line { color: var(--forest); font-weight: 600; }

.needs-info-banner {
  background: #fdf4e8;
  border: 1px solid #e6c48a;
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 20px 0 0;
  color: var(--pine);
}
.needs-info-banner strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  display: block;
  margin: 0 0 4px;
}
.needs-info-banner p { margin: 0; color: #7a5208; font-size: 14.5px; }

.deliveries-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
}
.deliveries-card strong {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--pine);
  font-size: 16px;
}
.deliveries-card ul {
  margin: 10px 0 8px;
  padding-left: 18px;
  color: var(--pine);
}
.deliveries-note { margin: 0; font-size: 13px; color: var(--muted); }
