/* GMS Vendor Portal — public intake edge.
   Palette lifted from the approved form mock-ups (SyncWave_Doc/screenshots/thinportal):
   deep navy frame, white sheet, navy labels, red required markers, rounded light inputs. */
:root {
  --navy: #0b2a4a;
  --navy-deep: #07203a;
  --navy-ink: #122b48;
  --sheet: #ffffff;
  --page: #e9eef4;
  --ink: #1c2733;
  --muted: #5d6b79;
  --line: #c9d3dd;
  --line-strong: #93a4b5;
  --focus: #1f6fb2;
  --req: #c8102e;
  --ok: #1b7f4b;
  --alert-bg: #fdecea;
  --alert-ink: #8a1c12;
  --error-ink: #b3261e;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 18px 48px rgba(7, 32, 58, 0.22);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--ink);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; color: var(--navy); padding: .5rem .75rem; z-index: 10;
}
.skip-link:focus { left: .5rem; top: .5rem; outline: 3px solid var(--focus); }

/* ---- top bar -------------------------------------------------------------- */
.topbar { color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.topbar-inner {
  max-width: 980px; margin: 0 auto; padding: .9rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: #fff; color: var(--navy); font-weight: 800; letter-spacing: .02em; font-size: .95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: .8rem; opacity: .8; }
.topbar-badge { font-size: .8rem; opacity: .9; white-space: nowrap; }

/* ---- page / card ---------------------------------------------------------- */
.page { flex: 1; padding: 1.75rem 1rem 2.5rem; }
.card {
  max-width: 820px; margin: 0 auto; background: var(--sheet);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 2.25rem 2.5rem 2rem;
}
.card-narrow { max-width: 600px; }
@media (max-width: 640px) { .card { padding: 1.5rem 1.15rem; border-radius: 12px; } }

.eyebrow {
  margin: 0 0 .35rem; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600;
}
/* Shown as written (an email address in capitals is hard to check). */
.eyebrow-plain { letter-spacing: normal; text-transform: none; font-size: .9rem; }
h1 { margin: 0 0 .5rem; font-size: 1.75rem; line-height: 1.2; color: var(--navy-ink); font-weight: 700; }
.lede { margin: 0 0 1.5rem; color: var(--muted); font-size: 1rem; }
.hint { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); }
a { color: var(--focus); }

/* ---- sections ------------------------------------------------------------- */
.section {
  border: 0; padding: 1.5rem 0 .5rem; margin: 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; padding-top: .5rem; }
.section > legend {
  padding: 0; margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 600; color: var(--navy-ink);
}
/* The section name is a real heading inside the legend, styled by the legend. */
.section > legend .section-title { font: inherit; color: inherit; margin: 0; }
.section-intro { margin: 0 0 1rem; color: var(--ink); font-weight: 500; font-size: .95rem; }

/* ---- fields --------------------------------------------------------------- */
.field { margin: 0 0 1.1rem; }
.stack .field { margin-bottom: 1rem; }
label, .label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-ink); margin-bottom: .35rem; }
.req { color: var(--req); font-weight: 700; margin-left: .15rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .65rem .8rem; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus, input[type="file"]:focus {
  outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(31,111,178,.18);
}
.input-wrap { position: relative; }
.input-wrap.has-prefix input { padding-left: 2rem; }
.prefix { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.25rem; }

.radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .2rem 0; }
.radio { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; font-size: .92rem; color: var(--ink); margin: 0; }
.radio input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }

/* certification rows */
.cert { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.25rem; align-items: start; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f9fb; }
.cert-title { display: block; font-weight: 600; color: var(--navy-ink); }
.cert-statement { margin: .25rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.check { display: inline-flex; align-items: center; gap: .5rem; margin: 0; white-space: nowrap; font-weight: 600; font-size: .9rem; }
.check input { width: 22px; height: 22px; accent-color: var(--navy); margin: 0; }
@media (max-width: 560px) { .cert { grid-template-columns: 1fr; } }

/* errors */
.has-error input, .has-error select, .has-error .radio-row, .has-error .cert { border-color: var(--error-ink); }
.field-error { margin: .35rem 0 0; color: var(--error-ink); font-size: .85rem; font-weight: 600; }
.alert { background: var(--alert-bg); color: var(--alert-ink); border: 1px solid #f2b8b5; border-radius: var(--radius); padding: .8rem 1rem; margin: 0 0 1.25rem; font-weight: 500; }

/* ---- documents ------------------------------------------------------------ */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius-lg); padding: 1.75rem 1rem; text-align: center;
  color: var(--navy-ink); background: #fbfcfd; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus, .dropzone.is-over { border-color: var(--focus); background: #eef5fb; outline: none; }
.dropzone-art { color: var(--navy); margin-bottom: .25rem; }
.dropzone-title { margin: 0; font-weight: 700; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.5rem; margin-top: 1.25rem; }
.doc-field input[type="file"] { width: 100%; font: inherit; font-size: .88rem; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.doc-single { margin-top: 1.25rem; max-width: 34rem; }
.cert-statement a { overflow-wrap: anywhere; }
.file-list { list-style: none; padding: 0; margin: .4rem 0 0; font-size: .82rem; color: var(--muted); }
.file-list li { padding: .15rem 0; border-top: 1px dashed var(--line); }
.file-list li:first-child { border-top: 0; }

/* ---- buttons / actions ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; border-radius: var(--radius); padding: .75rem 1.25rem; min-height: 46px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .05s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn-lg { width: 100%; font-size: 1.05rem; padding: .95rem 1.5rem; }
.stack .btn { width: 100%; }
.actions { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.actions .hint { margin-bottom: .9rem; }

/* ---- landing helpers ------------------------------------------------------ */
.steps { margin: 1.75rem 0 0; padding: 0 0 0 1.25rem; color: var(--muted); font-size: .92rem; display: grid; gap: .35rem; }
.steps strong { color: var(--navy-ink); }
.success-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e6f4ec; color: var(--ok); font-size: 1.75rem; font-weight: 800; margin: .25rem 0 1rem; }
.receipt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .04em; background: #f1f5f8; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; display: inline-block; color: var(--navy-ink); }

/* ---- footer --------------------------------------------------------------- */
.foot { color: rgba(255,255,255,.78); font-size: .82rem; }
.foot-inner { max-width: 980px; margin: 0 auto; padding: 1.25rem 1.25rem 2rem; }
.foot p { margin: 0 0 .35rem; }
.foot-meta { opacity: .7; }
