/* LRG Associates payment page.
   Treated as a remittance document, not a web checkout: coupon masthead,
   label-left ruled rows, underlined fields, a signature rule rather than a
   box, and a document footer that carries the total and the action. */

:root {
  --ink: #13233a;
  --ink-soft: #1d3352;
  --brass: #b8894a;
  --brass-dark: #8f6830;
  --brass-pale: #f3e8d6;
  --paper: #f7f4ee;
  --line: #ded7c9;
  --rule: #c9c0ae;
  --muted: #5d6b7e;
  --danger: #a3261d;
  --ok: #3f6b4f;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
.wrap { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* ---- Header / footer ---- */
.topbar { background: var(--ink); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; }
.topbar__logo { height: 40px; width: auto; display: block; }
.topbar__phone { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: .01em; }
.topbar__phone:hover { color: var(--brass-pale); }

.foot { margin-top: 40px; padding: 20px 0 34px; color: var(--muted); font-size: 13px; text-align: center; }
.foot a { color: var(--muted); }

/* ---- Intro ---- */
.intro { padding: 36px 0 20px; max-width: 620px; }
.eyebrow { margin: 0 0 10px; color: var(--brass-dark); font-size: 11.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.intro h1 { margin: 0; font-family: var(--display); font-size: clamp(30px, 4.4vw, 42px); font-weight: 600; line-height: 1.1; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 16.5px; }

/* ---- The document ---- */
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--ink);
  box-shadow: 0 10px 30px -22px rgba(19, 35, 58, .5);
}

/* Coupon masthead: account + amount, the way a remittance slip opens */
.coupon { display: grid; gap: 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .coupon { grid-template-columns: 1.15fr .85fr; } }
.coupon__side { padding: 24px 28px; }
.coupon__side + .coupon__side { border-top: 1px dashed var(--rule); }
@media (min-width: 720px) {
  .coupon__side + .coupon__side { border-top: 0; border-left: 1px dashed var(--rule); background: var(--paper); }
}
.coupon__label { margin: 0 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-dark); }
.coupon__hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.coupon input {
  width: 100%; border: 0; border-bottom: 1.5px solid var(--ink); background: transparent;
  padding: 4px 0 7px; font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--ink);
}
.coupon input:focus { outline: 0; border-bottom-color: var(--brass); background: #fffdf8; }
.coupon input::placeholder { color: #b4bdc8; font-weight: 500; }
.amount { display: flex; align-items: baseline; gap: 6px; }
.amount > span { font-family: var(--display); font-size: 24px; color: var(--muted); }

/* ---- Sections of the document ---- */
.sheet { padding: 26px 28px 30px; border-bottom: 1px solid var(--rule); }
.sheet:last-of-type { border-bottom: 0; }
.sheet__head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 4px; }
.sheet__num { font-family: var(--display); font-size: 13px; color: var(--brass-dark); letter-spacing: .1em; }
.sheet__title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.sheet__rule { height: 1px; background: var(--brass); opacity: .5; margin: 10px 0 4px; }
.sheet__note { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }

/* Label-left ruled rows */
.rows { display: block; }
.row { display: grid; gap: 4px 20px; padding: 13px 0; border-bottom: 1px solid #efeade; align-items: center; }
.row:last-child { border-bottom: 0; }
@media (min-width: 680px) { .row { grid-template-columns: 210px minmax(0, 1fr); } }
.row > label, .row > .row__label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.row__req { color: var(--brass-dark); }
.row input, .row select {
  width: 100%; height: 34px; padding: 0 2px 2px; font: 16px var(--sans); color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--rule);
}
.row input:focus, .row select:focus { outline: 0; border-bottom: 1.5px solid var(--brass); background: #fffdf8; }
.row input::placeholder { color: #b4bdc8; }
.row__split { display: grid; gap: 12px; }
@media (min-width: 520px) { .row__split { grid-template-columns: 1fr 110px 150px; } }
.row__pair { display: grid; gap: 12px; }
@media (min-width: 520px) { .row__pair { grid-template-columns: 1fr 1fr; } }
.row__sub { display: block; margin-bottom: 3px; font-size: 11.5px; color: var(--muted); }

/* Card fields — same ruled treatment, Collect.js draws inside */
.cjs { height: 34px; border-bottom: 1px solid var(--rule); background: transparent; overflow: hidden; }
.cjs.is-invalid { border-bottom: 1.5px solid var(--danger); }
.stubcard { padding: 12px 14px; border: 1px dashed var(--brass); background: var(--brass-pale); font-size: 14px; }
.cardnote { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---- Authorization, set as document terms ---- */
.terms { margin: 14px 0 0; padding: 0 0 0 22px; counter-reset: term; }
.terms p {
  position: relative; margin: 0 0 11px; padding-left: 4px; font-size: 14.5px; color: var(--ink-soft);
  counter-increment: term;
}
.terms p::before {
  content: counter(term, lower-roman) "."; position: absolute; left: -22px; top: 0;
  font-family: var(--display); font-size: 13.5px; color: var(--brass-dark);
}
.terms p:last-child { margin-bottom: 0; }

.clause {
  margin: 20px 0 0; padding: 16px 0; border-top: 1px dashed var(--rule); border-bottom: 1px dashed var(--rule);
  font-family: var(--display); font-size: 16.5px; line-height: 1.55;
}

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; margin: 18px 0 26px; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brass); flex: none; }

/* Signature sits on a rule, like a signed form */
.sign { display: grid; gap: 22px; }
@media (min-width: 680px) { .sign { grid-template-columns: minmax(0, 1fr) 190px; align-items: end; } }
.sign__pad { position: relative; }
#signaturePad {
  width: 100%; height: 118px; display: block; background: transparent;
  border: 0; border-bottom: 1.5px solid var(--ink); touch-action: none; cursor: crosshair;
}
.sign__caption { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 6px; }
.sign__caption span { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sign__dated { border-bottom: 1.5px solid var(--ink); padding-bottom: 8px; font-family: var(--display); font-size: 17px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brass-dark); font: 600 12.5px var(--sans); cursor: pointer; text-decoration: underline; }
.hint { margin: 7px 0 0; color: var(--muted); font-size: 12.5px; }
.hint.is-ok { color: var(--ok); font-weight: 600; }

/* ---- Document footer: total left, action right ---- */
.docfoot {
  display: grid; gap: 18px; padding: 22px 28px 26px; background: var(--ink); color: #fff;
}
@media (min-width: 680px) { .docfoot { grid-template-columns: 1fr auto; align-items: center; } }
.docfoot__total span { display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.docfoot__total strong { font-family: var(--display); font-size: 30px; font-weight: 600; }
.docfoot__act { display: flex; flex-direction: column; gap: 9px; align-items: stretch; }
@media (min-width: 680px) { .docfoot__act { align-items: flex-end; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 34px; border: 0; border-radius: 2px;
  background: var(--brass); color: var(--ink); font: 700 16px var(--sans); letter-spacing: .02em; cursor: pointer;
}
.btn:hover { background: var(--brass-pale); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.is-busy { position: relative; color: transparent; }
.btn.is-busy::after {
  content: ""; position: absolute; width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid rgba(19,35,58,.35); border-top-color: var(--ink); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.docfoot .hint { color: rgba(255,255,255,.65); text-align: left; }
@media (min-width: 680px) { .docfoot .hint { text-align: right; } }
.formmsg { margin: 0; color: #ffd4cf; font-size: 14px; font-weight: 600; }
.h-captcha { margin: 0 0 4px; }

/* ---- Aside under the document ---- */
.aside { display: grid; gap: 22px; margin-top: 26px; font-size: 14px; color: var(--muted); }
@media (min-width: 680px) { .aside { grid-template-columns: 1fr 1fr; } }
.aside h2 { margin: 0 0 7px; font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.aside a { color: var(--brass-dark); font-weight: 600; }
.aside ol { margin: 0; padding-left: 18px; }
.aside li { margin-bottom: 4px; }

/* ---- Alerts / receipt ---- */
.alert { padding: 13px 17px; margin-bottom: 18px; font-size: 14.5px; border-left: 3px solid; }
.alert--error { background: #fdecea; border-color: var(--danger); color: var(--danger); }
.alert--warn { background: var(--brass-pale); border-color: var(--brass); color: #6b4c18; }
.alert p { margin: 0 0 5px; }
.alert p:last-child { margin: 0; }

.receipt { max-width: 600px; padding: 28px; }
.receipt dl { margin: 0 0 20px; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #efeade; }
.receipt dt { color: var(--muted); font-size: 14px; }
.receipt dd { margin: 0; font-weight: 600; text-align: right; word-break: break-word; }
.btn--ghost { min-height: 44px; padding: 0 22px; background: transparent; border: 1px solid var(--ink); color: var(--ink); font-size: 15px; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
