:root {
  --gold: #a8791f; --gold-light: #d9b35f; --charcoal: #1a1a1a; --cream: #F0E7D5; --muted: #656E78;
  --bg: #faf9f7; --border: #e5ddc9;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--charcoal); }
.hidden { display: none !important; }

#loginScreen, #verifying {
  display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--charcoal); padding: 20px;
}
#loginBox, #verifyBox {
  background: #fff; border-radius: 10px; padding: 40px 36px; width: 360px; text-align: center; border-top: 4px solid var(--gold);
}
#loginBox h1, #verifyBox h1 { font-size: 17px; letter-spacing: 0.03em; margin: 0 0 4px; }
#loginBox .sub { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 18px; }
#loginBox p { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
#loginBox input {
  width: 100%; padding: 11px 12px; margin-bottom: 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 14px;
}
#loginBox button, header #logoutBtn {
  cursor: pointer;
}
#requestLinkBtn {
  width: 100%; padding: 12px; background: var(--charcoal); color: #fff; border: none; border-radius: 5px;
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
#requestLinkBtn:hover { background: var(--gold); }
#requestLinkBtn[disabled] { opacity: 0.6; cursor: not-allowed; }
#loginMsg { font-size: 13px; margin-top: 14px; min-height: 16px; color: var(--muted); }
#loginMsg.success { color: #1c7a3c; }
#loginMsg.error { color: #a3261d; }

header {
  background: var(--charcoal); color: #fff; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between; border-bottom: 4px solid var(--gold);
}
header .logo { font-size: 15px; letter-spacing: 0.04em; font-weight: 700; }
header .sub { color: var(--gold-light); font-size: 12.5px; margin-top: 3px; }
#logoutBtn {
  background: transparent; border: 1px solid var(--gold-light); color: var(--gold-light);
  padding: 7px 15px; border-radius: 4px; font-size: 13px;
}
#logoutBtn:hover { background: var(--gold-light); color: var(--charcoal); }

main { padding: 28px 24px 60px; max-width: 920px; margin: 0 auto; }
.section { margin-bottom: 30px; }
.sectionHeaderRow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sectionHeaderRow h2 { margin: 0; }
h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); margin: 0 0 12px; }

.jobCard, .invoiceCard, .docCard {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; margin-bottom: 12px;
}
.jobCard .top, .invoiceCard .top, .docCard .top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.jobCard .title, .invoiceCard .title, .docCard .title { font-weight: 700; font-size: 14.5px; }
.muted { color: var(--muted); font-size: 13px; }
.jobCard .muted, .invoiceCard .muted, .docCard .muted { margin-top: 3px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.badge.enquiry { background: #eee; color: #555; }
.badge.booked { background: #dcecff; color: #1d5aa8; }
.badge.shot { background: #fff2cf; color: #96770a; }
.badge.gallery_delivered { background: #e3d9f7; color: #5a34a3; }
.badge.paid { background: #d9f2df; color: #1c7a3c; }
.badge.draft, .badge.void { background: #eee; color: #666; }
.badge.sent { background: #dcecff; color: #1d5aa8; }
.badge.overdue { background: #fbdada; color: #a3261d; }
.badge.pending { background: #fff2cf; color: #96770a; }
.badge.signed { background: #d9f2df; color: #1c7a3c; }

.btn {
  display: inline-block; margin-top: 12px; background: var(--gold); color: #fff; border: none; border-radius: 5px;
  padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: #8f6519; }
.btn.secondary { background: #fff; color: var(--charcoal); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--cream); }

.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.payErr { color: #a3261d; font-size: 12.5px; margin-top: 6px; min-height: 14px; }

.payBanner {
  background: #d9f2df; color: #1c7a3c; border: 1px solid #b7e3c4; border-radius: 8px;
  padding: 12px 16px; font-size: 13.5px; margin-bottom: 20px; text-align: center;
}

.empty { color: var(--muted); font-style: italic; padding: 14px; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 8px; }

.contact { text-align: center; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--border); padding-top: 24px; }
.contact a { color: var(--gold); font-weight: 600; text-decoration: none; }

.quoteItems { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13.5px; }
.quoteItems li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.quoteItems li:last-child { border-bottom: none; }

/* Task #89/#95 (21 Jul 2026, Leon: "there was a progress bar across the top of the previous
   client portal") - rebuild of the original horizontal step-path tracker. Gold/cream palette
   matches the rest of the portal (same --gold/--gold-light/--cream tokens above). Collapses
   to a vertical list under 900px, same breakpoint behaviour as the original mu-plugin. */
.progressBar { margin: 14px 0 6px; padding: 16px 10px 6px; background: var(--cream); border-radius: 8px; overflow-x: auto; }
.progressTrack { display: flex; align-items: flex-start; }
.progressStep { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 84px; text-align: center; }
.progressLine { flex: 1 1 auto; height: 2px; background: var(--border); margin-top: 9px; min-width: 8px; }
.progressDot {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff;
  flex: 0 0 auto;
}
.progressLabel { font-size: 10.5px; color: var(--muted); margin-top: 6px; line-height: 1.3; }

.progressStep.done .progressDot { background: var(--gold); border-color: var(--gold); color: #fff; }
.progressStep.done .progressLabel { color: var(--charcoal); }
.progressStep.done + .progressLine { background: var(--gold); }

.progressStep.current .progressDot { background: #1c7a3c; border-color: #1c7a3c; color: #fff; box-shadow: 0 0 0 3px rgba(28,122,60,0.18); }
.progressStep.current .progressLabel { color: #1c7a3c; font-weight: 700; }

.progressStep.upcoming .progressDot { background: #fff; border-color: var(--border); }
.progressStep.upcoming .progressLabel { color: var(--muted); }

.progressExplanation {
  font-size: 13px; color: var(--charcoal); background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; padding: 10px 14px; margin: 10px 0 4px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .progressTrack { flex-direction: column; align-items: flex-start; }
  .progressStep { flex-direction: row; width: 100%; text-align: left; align-items: center; padding: 5px 0; }
  .progressLabel { margin: 0 0 0 10px; font-size: 12.5px; }
  .progressLine { display: none; }
}
