/* Free = friendly reminder; £7 = escalation pack. Styles for the three-field quick start, the
   locked firm/final tabs and the statement preview shown with the offer. Loaded after the
   conversion stylesheets so it wins without !important. */

/* Step 1: three typed fields */
.quick-start-card {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
}
.quick-start-card.hidden { display: none; }
.quick-start-head h2 { margin: 0.1rem 0 0.25rem; }
.quick-start-head .form-hint { margin: 0; }
.quick-start-form {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}
.quick-start-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.quick-start-form input { width: 100%; min-height: 46px; }
.quick-start-form .btn { min-height: 46px; white-space: nowrap; }
#quick-start-status:empty { display: none; }
#quick-start-status { color: #9b2c3c; margin: 0; }
.quick-start-autofill {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal-ink);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.quick-start-autofill:hover { color: var(--teal); }
.invoice-upload.is-collapsed-upload { display: none; }

@media (max-width: 760px) {
  .quick-start-form { grid-template-columns: 1fr; }
  .quick-start-form .btn { width: 100%; }
}

/* Locked firm / final tabs */
.segment-lock {
  display: none;
  margin-left: 0.3rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--lime);
  color: #22300a;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: 1px;
}
.segment.is-locked .segment-lock { display: inline-block; }

.message-panel.is-stage-locked .free-taste-card { display: none; }
.message-panel.is-stage-locked .send-ready-actions .btn {
  opacity: 0.45;
}
.message-panel.is-stage-locked #message-body,
.message-panel.is-stage-locked #message-subject {
  background: #f4f2ec;
  color: #5f635d;
}

.stage-lock-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.9fr);
  gap: 1.25rem;
  align-items: start;
  margin: 0.9rem 0;
  padding: 1.25rem;
  border: 1px solid #b6ded6;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1fbf8, #fffdf8);
  box-shadow: var(--shadow-soft);
}
.stage-lock-card.hidden { display: none; }
.stage-lock-card h3 { margin: 0.15rem 0 0.5rem; font-size: 1.2rem; line-height: 1.2; }
.stage-lock-card p { margin: 0 0 0.6rem; color: #394b46; }
.stage-lock-card ul { margin: 0 0 0.9rem; padding-left: 1.15rem; color: #22332f; }
.stage-lock-card li { margin: 0.2rem 0; }
.stage-lock-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-bottom: 0.6rem; }

@media (max-width: 760px) {
  .stage-lock-card { grid-template-columns: 1fr; }
}

/* Statement preview: a paper-shaped mock of the PDF, filled with the customer's own figures */
.statement-mockup { min-width: 0; }
.statement-mockup-page {
  position: relative;
  overflow: hidden;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid #ddd2c1;
  border-radius: 6px;
  background: #fffefb;
  box-shadow: 0 1px 0 #ece4d6, 0 14px 34px rgba(24, 47, 42, 0.14);
  font-size: 0.78rem;
  color: #17231f;
  user-select: none;
}
.statement-mockup-page .statement-mockup-from {
  margin: 0 0 0.45rem;
  color: #5f635d;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.statement-mockup-page .statement-mockup-title {
  margin: 0 0 0.2rem;
  padding: 0.5rem 0.6rem;
  border-radius: 3px;
  background: #0f5c58;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}
.statement-mockup-page .statement-mockup-meta { margin: 0.35rem 0 0.55rem; color: #5f635d; }
.statement-mockup-page table { width: 100%; border-collapse: collapse; }
.statement-mockup-page td { padding: 0.28rem 0; border-bottom: 1px solid #eee4d5; }
.statement-mockup-page td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 0.5rem; }
.statement-mockup-total td { border-bottom: 0; color: #0a635f; font-weight: 900; font-size: 0.9rem; padding-top: 0.45rem; }
.statement-mockup-page .statement-mockup-basis {
  margin: 0.55rem 0 0;
  padding: 0.4rem 0.5rem;
  border-left: 3px solid #0a7a75;
  background: #eef8f5;
  font-size: 0.7rem;
  color: #22332f;
}
.statement-mockup-fade { display: grid; gap: 0.35rem; margin-top: 0.7rem; }
.statement-mockup-fade span { display: block; height: 0.42rem; border-radius: 3px; background: #ebe5da; }
.statement-mockup-fade span:nth-child(2) { width: 82%; }
.statement-mockup-fade span:nth-child(3) { width: 58%; }
.statement-mockup-stamp {
  position: absolute;
  right: -2.2rem;
  bottom: 1.1rem;
  transform: rotate(-32deg);
  padding: 0.15rem 2.6rem;
  background: rgba(214, 242, 100, 0.92);
  color: #22300a;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
#premium-pack-preview .statement-mockup { max-width: 360px; margin: 0.6rem 0 1rem; }
