/* Matches the KRP site: gold accent, dark slate text, rounded inputs. The page is shown inside an iframe on krpgroup.com/payments. */
:root {
  --gold: #b29135;
  --gold-dark: #8f7329;
  --ink: #1e282d;
  --muted: #5d6467;
  --border: #9ea1a2;
  --error: #b3261e;
  --error-bg: #fbeceb;
  --success: #1f6f43;
  --success-bg: #e9f4ee;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.payment {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
}

h1 { font-size: 1.4rem; margin: 0 0 0.25rem; }

.field { margin-bottom: 1.25rem; }

label { display: block; margin-bottom: 6px; }

input[type="text"] {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  color: inherit;
}

input[type="text"]:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

.amount-input { position: relative; }
.amount-input span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.amount-input input { padding-left: 32px; }

.has-error input { border-color: var(--error); }
.field-help, .fine-print { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.field-error { margin: 6px 0 0; font-size: 0.9rem; color: var(--error); }

.button {
  display: inline-block;
  width: 100%;
  min-height: 48px;
  padding: 10px 32px;
  border: 0;
  border-radius: 3px;
  background: var(--gold);
  color: #fff;
  font: inherit;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover, .button:focus { background: var(--gold-dark); }

.notice { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 1.25rem; }
.notice p { margin: 0; }
.notice-error { background: var(--error-bg); color: var(--error); }
.notice-success { background: var(--success-bg); color: var(--success); }

.summary { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 12px; }
.summary p { margin: 0; }
.summary span { color: var(--muted); margin-right: 4px; }

.hpp-frame { display: block; width: 100%; min-height: 600px; border: 0; }

.receipt { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 1rem; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
