/* ==========================================================================
   Verify a money receipt  —  /verify-receipt/
   Loaded alongside page-head.css.

   A verdict page. Whoever is looking at it is holding a piece of paper and
   wants one question answered from across a desk, so the answer is a banner
   they cannot miss, and the detail sits under it for the line-by-line
   comparison that actually catches an altered receipt.

   Green and red are used here and nowhere else on the site. That is
   deliberate: this is the one page whose whole purpose is pass or fail, and
   the house gold would say neither. They are darkened well past the usual web
   green and red so the text on them stays readable, and each carries a mark
   as well as a colour so the verdict does not depend on seeing colour at all.
   ========================================================================== */

.vfy-section { background: var(--page-alt); }

.vfy-lead {
  max-width: 62ch;
  margin: 0 0 26px;
  color: var(--ink-soft);
  font-size: .97rem;
  line-height: 1.85;
}

/* ------------------------------------------------------------- the verdict --- */
.vfy-result {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 680px;
  margin: 0 0 24px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border-left: 5px solid;
}
.vfy-result--ok {
  background: #eef7f0;
  border-color: #1f7a45;
  color: #14532d;
}
.vfy-result--bad {
  background: #fdf0ee;
  border-color: #a92d1c;
  color: #7f1d1d;
}

.vfy-result__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 800;
}
.vfy-result--ok .vfy-result__mark { background: #1f7a45; color: #fff; }
.vfy-result--bad .vfy-result__mark { background: #a92d1c; color: #fff; }

.vfy-result__title {
  margin: 2px 0 5px;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.vfy-result__note { margin: 0; font-size: .93rem; line-height: 1.7; }

/* The instruction to compare, not just to read the tick. */
.vfy-compare {
  max-width: 680px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: .92rem;
  line-height: 1.75;
}

/* --------------------------------------------------------------- the record --- */
.vfy-table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.vfy-table th,
.vfy-table td {
  padding: 12px 18px;
  text-align: left;
  font-size: .93rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.vfy-table tr:last-child th,
.vfy-table tr:last-child td { border-bottom: 0; }
.vfy-table th {
  width: 38%;
  color: var(--muted);
  font-weight: 600;
}
.vfy-table td { color: var(--ink); font-weight: 600; }

/* Machine-written strings: a receipt number and a bank reference get compared
   character by character, and a proportional font makes that harder than it
   needs to be. */
.vfy-mono {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: .88rem !important;
  letter-spacing: .02em;
}

.vfy-table__amount { background: rgb(var(--accent-rgb) / 10%); }
.vfy-table__amount td strong { font-size: 1.1rem; }

.vfy-again { margin: 22px 0 0; font-size: .92rem; }
.vfy-again a { color: var(--accent-deep); font-weight: 700; }

/* ---------------------------------------------------------------- a failure --- */
.vfy-advice {
  max-width: 680px;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.8;
}
.vfy-advice ul { margin: 8px 0 0; padding-left: 20px; }
.vfy-advice li { margin-bottom: 7px; }
.vfy-advice__contact { margin-top: 14px; }

/* ------------------------------------------------------------------ the form --- */
.vfy-form {
  max-width: 520px;
  padding: 26px 26px 28px;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.vfy-field { margin-bottom: 18px; }
.vfy-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}
.vfy-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page);
  color: var(--ink);
  font-size: .95rem;
  font-family: inherit;
}
.vfy-field input:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
#receipt_no {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.vfy-field__hint {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .8rem;
}

.vfy-submit {
  width: 100%;
  padding: 13px 28px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--ink);
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.vfy-submit:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.vfy-submit:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 575.98px) {
  .vfy-result { padding: 18px; gap: 13px; }
  .vfy-result__title { font-size: 1.06rem; }
  .vfy-table th, .vfy-table td { padding: 10px 13px; font-size: .88rem; }
  /* Label above value: at 38% of a phone screen the label column wraps every
     heading onto three lines and squeezes the value that is being compared. */
  .vfy-table th { width: 42%; }
  .vfy-form { padding: 20px 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .vfy-submit { transition: none; }
}
