/* ASMG Fraud, Waste & Abuse Reporting — styles (build 2026-10-16, multilingual + logo). No external fonts or CDNs. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f8fafb;
  --ink: #14212b;
  --ink-2: #4a5a66;
  --line: #dde3e8;
  --brand: #0b5c7a;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0f5;
  --focus: #1a8fbf;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warn: #8a5a00;
  --warn-soft: #fff5dd;
  --ok: #157347;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 24px rgba(16, 24, 40, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e151b;
    --surface: #16212a;
    --surface-2: #1b2832;
    --ink: #e7eef3;
    --ink-2: #a2b2bd;
    --line: #2a3a46;
    --brand: #4fb3d9;
    --brand-ink: #06202b;
    --brand-soft: #173544;
    --focus: #7fd0ee;
    --danger: #ff8a7f;
    --danger-soft: #3a1c1a;
    --warn: #f2c66d;
    --warn-soft: #33290f;
    --ok: #5fd39a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2 { line-height: 1.2; margin: 0 0 .5rem; }
p { margin: 0 0 .75rem; }
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }
.small { font-size: .875rem; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* ---------- header ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; color: var(--brand); flex: none; }

/* Company logo (assets/logo.*) */
.brand.has-logo { gap: 12px; min-width: 0; }
.brand-logo { display: block; flex: none; line-height: 0; }
.brand-logo img { display: block; height: 56px; width: auto; max-width: 280px; object-fit: contain; }
.brand-divider { width: 1px; height: 36px; background: var(--line); flex: none; }
.brand.has-logo .brand-sub { font-size: .85rem; font-weight: 600; white-space: nowrap; }
/* No dark-mode version supplied: put the logo on a light plate so dark text stays readable */
@media (prefers-color-scheme: dark) {
  .brand-logo.needs-plate { background: #fff; border-radius: 8px; padding: 4px 8px; }
}
@media (max-width: 680px) {
  .brand-logo img { height: 40px; max-width: 190px; }
  .brand-divider, .brand.has-logo .brand-sub { display: none; }
}
@media print {
  .topbar { display: block !important; border: 0; }
  .topbar .top-tools, .topbar .brand-sub, .topbar .brand-divider { display: none !important; }
}
.brand-name { display: block; font-weight: 700; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .8rem; color: var(--ink-2); }
.secure-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--ok);
  border: 1px solid currentColor; border-radius: 999px; padding: 4px 10px;
}
.secure-pill svg { width: 14px; height: 14px; }
.top-tools { display: flex; align-items: center; gap: 10px; }

/* ---------- language menu ---------- */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  font-size: .85rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 5px 12px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; color: var(--brand); }
.lang-menu summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 170px;
  list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.lang-menu a:hover, .lang-menu a:focus-visible { background: var(--brand-soft); outline: none; }
.lang-menu a.is-current { font-weight: 700; color: var(--brand); }

/* ---------- hero & notices ---------- */
.hero { padding: 40px 0 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .4rem; }
.hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); letter-spacing: -.02em; }
.lead { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }

.notices { display: grid; gap: 14px; margin-bottom: 24px; }
.notice { border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); background: var(--surface); }
.notice ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.notice-danger { background: var(--danger-soft); border-color: transparent; }
.notice-danger strong, .notice-error strong { color: var(--danger); }
.notice-error { background: var(--danger-soft); border-color: var(--danger); margin-bottom: 18px; }
.notice-error:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.notice-warn { background: var(--warn-soft); border-color: transparent; }
.notice-warn strong { color: var(--warn); display: block; }

.notice-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.mini h2 { font-size: .95rem; margin-bottom: .3rem; }
.mini p { font-size: .9rem; color: var(--ink-2); margin: 0; }

.examples { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.examples summary { cursor: pointer; font-weight: 600; }
.examples ul { margin: .6rem 0 .2rem; padding-left: 1.2rem; color: var(--ink-2); }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 6px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%; margin-bottom: 14px; }
.tab { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.tab.is-active { background: var(--brand); color: var(--brand-ink); }
.tab:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- card & form ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: 8px 24px 24px; margin-bottom: 28px; }
.card.center { text-align: center; padding: 40px 24px; margin-top: 40px; }
.section { border: 0; padding: 20px 0 6px; margin: 0; border-bottom: 1px solid var(--line); }
.section:last-of-type { border-bottom: 0; }
legend { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; padding: 0; margin-bottom: 14px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: .9rem; }
.optional { font-size: .78rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }

.field { display: block; margin-bottom: 16px; }
.label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: 6px; }
.hint { display: block; font-size: .85rem; color: var(--ink-2); margin: -2px 0 8px; }
.req { color: var(--danger); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.counter { display: block; text-align: right; font-size: .8rem; color: var(--ink-2); margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-block; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 7px 14px; font-size: .9rem; cursor: pointer; user-select: none; }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.drop { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 18px; text-align: center; transition: border-color .15s, background .15s; }
.drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop input[type=file]:focus-visible ~ .drop-label { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.drop-label { display: block; }
.drop-label strong { color: var(--brand); }
.drop-label .hint { margin: 6px 0 0; }
.file-list { list-style: none; margin: 10px 0 0; padding: 0; text-align: left; position: relative; z-index: 1; }
.file-list li { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.file-list li.bad { border-color: var(--danger); color: var(--danger); }

.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; top: 16px; left: 14px; accent-color: var(--brand); width: 18px; height: 18px; }
.choice-body { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 13px 14px 13px 42px; background: var(--surface-2); }
.choice-body strong { display: block; margin-bottom: 2px; }
.choice-body span { font-size: .87rem; color: var(--ink-2); }
.choice input:checked + .choice-body { border-color: var(--brand); background: var(--brand-soft); }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }

.submit-area { padding-top: 18px; }
.ack { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin-bottom: 16px; }
.ack input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

.btn, .btn-secondary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 650; border-radius: 10px; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; padding: 10px 18px;
}
.btn { background: var(--brand); color: var(--brand-ink); }
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-lg { width: 100%; padding: 14px 20px; font-size: 1.05rem; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--line); padding: 6px 12px; font-size: .85rem; }
.btn:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- confirmation ---------- */
.done { text-align: center; padding: 40px 24px; margin-top: 36px; }
.done-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--ok); font-size: 2rem; font-weight: 700; }
.done .lead { margin-left: auto; margin-right: auto; }
.credentials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 16px; text-align: left; }
.cred { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius); padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; }
.cred-label { grid-column: 1 / -1; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); font-weight: 700; }
.cred-value { font: 700 1.35rem/1.2 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; letter-spacing: .03em; word-break: break-all; }
.done .notice { text-align: left; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* ---------- footer ---------- */
.outside { border-top: 1px solid var(--line); padding: 22px 0 10px; }
.outside h2 { font-size: 1rem; }
.outside p { color: var(--ink-2); font-size: .93rem; }
.footer { padding: 18px 0 36px; color: var(--ink-2); font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .notice-grid, .row, .choice-cards, .credentials { grid-template-columns: 1fr; }
  .card { padding: 4px 16px 18px; }
  .hero { padding-top: 26px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; padding: 8px 10px; font-size: .86rem; }
  .secure-pill { display: none; }
}

/* ---------- print (confirmation page) ---------- */
@media print {
  .topbar, .outside, .footer, .actions, .js-copy { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border: 1px solid #999; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
