/* OKG Tech payment page */

@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 800; font-style: normal; font-display: swap; src: url("/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/nunito-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/nunito-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/nunito-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --indigo: #221d6c;
  --indigo-700: #1a1655;
  --indigo-50: #eeedf7;
  --lime: #b6cc2a;
  --lime-600: #9db320;
  --ink: #1d1b2e;
  --muted: #5c5a70;
  --line: #d9d8e6;
  --bg: #f5f5fa;
  --white: #fff;
  --error: #b42318;
  --error-bg: #fef3f2;
  --warn-bg: #fffaeb;
  --warn: #93370d;
  --check: #fbfcf3;
  --radius: 12px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.5; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--indigo); color: var(--white); border-bottom: 4px solid var(--lime); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--head); }
.brand-mark { font-weight: 800; font-size: 26px; letter-spacing: 1px; }
.brand-sub { font-weight: 700; font-size: 13px; letter-spacing: 3px; color: var(--lime); }
.secure-note { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; opacity: .9; }

/* Card */
main.wrap { padding-top: 28px; padding-bottom: 28px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(34,29,108,.06), 0 8px 24px rgba(34,29,108,.08); padding: 28px; }
h1, h2 { font-family: var(--head); color: var(--indigo); margin: 0 0 4px; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 22px; font-weight: 700; }
.lede { margin: 0 0 20px; color: var(--muted); }

.banner { border-radius: 8px; padding: 10px 14px; margin: 0 0 16px; font-weight: 600; }
.banner-warn { background: var(--warn-bg); color: var(--warn); }
.banner-error { background: var(--error-bg); color: var(--error); }

fieldset { border: 0; margin: 0; padding: 0; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"] {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%; background: var(--white);
}
input:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 1px; }
input[aria-invalid="true"] { border-color: var(--error); }
.money { position: relative; display: flex; align-items: center; }
.money > span { position: absolute; left: 12px; color: var(--muted); font-weight: 600; }
.money input { padding-left: 26px; }

/* Tabs */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 16px; }
.tab {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  font: 700 15px var(--head); color: var(--indigo); background: var(--white);
  border: 2px solid var(--line); border-radius: 10px; padding: 14px 10px; cursor: pointer;
}
.tab[aria-selected="true"] { border-color: var(--indigo); background: var(--indigo-50); }
.badge { background: var(--lime); color: var(--indigo); font: 800 11px var(--head); text-transform: uppercase; letter-spacing: .5px; border-radius: 999px; padding: 2px 8px; }
.tabs.single { grid-template-columns: 1fr; }
.panel { margin-bottom: 8px; }

/* Check */
.check {
  background: var(--check);
  background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(34,29,108,.035) 27px 28px);
  border: 1px solid #cfd6a4; border-radius: 10px; padding: 18px 20px 14px; box-shadow: inset 0 0 0 4px rgba(182,204,42,.12);
}
.check-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.check-holder { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.check-holder input { background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 6px 2px; }
.check-no { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.check-payee { display: flex; align-items: flex-end; gap: 10px; margin: 18px 0 12px; flex-wrap: wrap; }
.check-label { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.check-line { flex: 1; min-width: 120px; border-bottom: 1px solid var(--ink); font-family: var(--head); font-weight: 700; color: var(--indigo); padding: 0 4px 2px; }
.check-amount { border: 1px solid var(--ink); border-radius: 4px; padding: 2px 10px; font-family: var(--mono); font-weight: 700; background: var(--white); }
.check-type { display: flex; gap: 20px; font-size: 14px; margin-bottom: 14px; }
.check-type label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.micr { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; border-top: 1px dashed #c4c9a0; padding-top: 12px; }
.micr-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.micr-input { display: flex; align-items: center; gap: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; }
.micr-input input { border: 0; padding: 8px 0; font-family: var(--mono); letter-spacing: 1px; min-width: 0; }
.micr-input input:focus-visible { outline: none; }
.micr-input:focus-within { outline: 3px solid var(--lime); outline-offset: 1px; }
.micr-sym { font-family: var(--mono); color: var(--ink); font-size: 18px; line-height: 1; }

.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.authorize { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; cursor: pointer; }
.authorize input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--indigo); }

.card-container { min-height: 176px; }
.card-container iframe { display: block; width: 100% !important; height: 176px !important; border: 0; }
.billing { grid-template-columns: 2fr 1fr; margin-top: 14px; }
.field > label { font-weight: 600; font-size: 14px; }
.addr { position: relative; }
.addr-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(34,29,108,.14);
  max-height: 280px; overflow-y: auto;
}
.addr-list li { padding: 10px 14px; cursor: pointer; font-size: 15px; font-weight: 400; }
.addr-list li[aria-selected="true"], .addr-list li:hover { background: var(--indigo-50); }
.addr-list .addr-main { font-weight: 700; color: var(--indigo); }
.addr-list .addr-sub { color: var(--muted); }
.addr-list .addr-credit { padding: 6px 14px 2px; font-size: 11px; color: var(--muted); text-align: right; cursor: default; }
.addr-list .addr-credit:hover { background: transparent; }
.field-error { color: var(--error); font-weight: 600; font-size: 14px; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }

.turnstile { margin: 20px 0 12px; min-height: 65px; }

.pay-btn {
  width: 100%; font: 800 18px var(--head); color: var(--indigo); background: var(--lime);
  border: 0; border-radius: 10px; padding: 16px; cursor: pointer; margin-top: 4px;
}
.pay-btn:hover:not(:disabled) { background: var(--lime-600); }
.pay-btn:disabled { opacity: .55; cursor: not-allowed; }

/* Result */
.result { text-align: center; padding: 12px 0; }
.result-icon { width: 56px; height: 56px; fill: var(--lime-600); }
.result.is-error .result-icon { fill: var(--error); }
.result-list { display: inline-grid; grid-template-columns: auto auto; gap: 4px 16px; text-align: left; margin: 12px 0 0; }
.result-list dt { color: var(--muted); }
.result-list dd { margin: 0; font-family: var(--mono); font-weight: 700; }

.portal { text-align: center; margin: 20px 0 0; }
.portal a { color: var(--indigo); font-weight: 700; }
.site-footer { color: var(--muted); font-size: 13px; text-align: center; padding: 8px 0 32px; }

@media (max-width: 600px) {
  .card { padding: 20px 16px; }
  h1 { font-size: 24px; }
  .grid, .micr { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; }
  .secure-note { font-size: 13px; }
}
