/* OKG Tech onboarding form. The look is pay.okgtech.com's: same colours, fonts,
   card, fields and button, copied from that page's stylesheet. */

@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: 980px; 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: 72px; gap: 16px; }
.brand-logo { display: block; height: 46px; width: auto; }
.brand-logo[hidden] { display: none; }
.brand { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--head); color: inherit; text-decoration: none; }
.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"], input[type="tel"] {
  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; }

.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); }

.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; }
.again-btn { display: block; max-width: 320px; margin: 20px auto 0; text-decoration: none; text-align: center; }

.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 { grid-template-columns: 1fr; }
  .secure-note { font-size: 13px; }
}

/* Onboarding only */
.section { margin: 0 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.section > legend { font: 700 18px var(--head); color: var(--indigo); padding: 0 10px 0 0; float: left; width: 100%; margin-bottom: 10px; }
.section > legend + * { clear: both; }
.section-hint { margin: 0 0 12px; }
.field-wide { grid-column: 1 / -1; }
.field-top { margin-top: 14px; }
/* Laid out wide so a whole section fits on one or two rows: less scrolling. */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.address { grid-template-columns: 130px 1fr 1fr 90px 1fr; }
.address .a-street { grid-column: 2 / -1; }
.address .a-suite { grid-column: 1 / 3; }
.address.no-phone .a-city { grid-column: 3 / 5; }
.address.no-phone .a-state { grid-column: 5; }
.zip-hint { margin: 0 0 10px; }
.upper { text-transform: uppercase; }
.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; margin: 2px 0 14px; }
.tick input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--indigo); }
input[type="file"] { font: inherit; font-size: 15px; border: 1px dashed var(--line); border-radius: 8px; padding: 12px; width: 100%; background: var(--bg); }
.site-block { border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-bottom: 14px; background: #fcfcfe; }
.site-block > .field { margin-bottom: 14px; }
.site-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.site-title { font-family: var(--head); color: var(--indigo); }
.site-contact { margin-top: 14px; font-size: 14px; }
.site-contact summary { cursor: pointer; color: var(--indigo); font-weight: 700; }
.site-contact summary em { font-style: normal; font-weight: 400; color: var(--muted); }
.site-contact .grid { margin-top: 12px; }
.ghost-btn { font: 700 15px var(--head); color: var(--indigo); background: var(--white); border: 2px solid var(--indigo); border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.ghost-btn:hover { background: var(--indigo-50); }
.link-btn { font: inherit; font-size: 14px; color: var(--error); background: none; border: 0; padding: 4px; cursor: pointer; text-decoration: underline; }
.company-banner { background: var(--indigo-50); border-radius: 8px; padding: 12px 14px; margin: 0 0 20px; font-weight: 600; color: var(--indigo); }
.result p { margin: 8px 0 0; }

/* On a phone: one field to a row, except city and state, which share one.
   Last in the file so it wins over the wide layout above. */
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .address { grid-template-columns: 1fr 90px; }
  .address .a-zip, .address .a-street, .address .a-suite, .address .a-phone { grid-column: 1 / -1; }
  .address .a-city, .address.no-phone .a-city { grid-column: 1; }
  .address .a-state, .address.no-phone .a-state { grid-column: 2; }
  .field-wide { grid-column: auto; }
  .site-block { padding: 12px; }
}
