/* ===========================================================================
   WFH Infrastructure Form — trimmed copy of the Candidate Portal design
   system (public_html/assets/css/app.css). Same tokens, same font stack, so
   the subdomain reads as the same product.
   ========================================================================= */

:root {
  --navy-900: #0a1f35;
  --navy-800: #0f2d49;

  --brand-700: #14497c;
  --brand-600: #1a5f9e;
  --brand-500: #2276bd;
  --brand-050: #eef4fb;

  --bg:            #f1f4f8;
  --surface:       #ffffff;
  --surface-sunk:  #f7f9fc;
  --line:          #dde5ee;
  --line-strong:   #c4d0de;

  --text:       #0f2233;
  --text-soft:  #4c5f73;
  --text-muted: #7d8d9e;
  --text-invert:#eaf1f8;

  --done-fg: #0d6b45;
  --done-bg: #e4f5ed;
  --done-bd: #b3ddc8;

  --err-fg: #a1231b;
  --err-bg: #fdeceb;
  --err-bd: #f3c7c4;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(15, 34, 51, .06);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.011em; color: var(--text); }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.125rem; }
p  { margin: 0; }
a  { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ layout */

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* ----------------------------------------------------------------- top bar */

.topbar {
  background: var(--navy-900);
  color: var(--text-invert);
  border-bottom: 3px solid var(--brand-600);
}
.topbar__inner {
  display: flex; align-items: center;
  gap: 16px; min-height: 62px; flex-wrap: wrap; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--brand-500), var(--brand-700));
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.brand__name { font-weight: 650; font-size: 1rem; line-height: 1.2; display: block; }
.brand__sub  { font-size: .75rem; color: #9fb6cc; line-height: 1.2; display: block; }

/* ------------------------------------------------------------ page heading */

.page-head { padding: 30px 0 22px; }
.page-head h1 { font-size: 1.6rem; }
.page-head p  { color: var(--text-soft); margin-top: 6px; }
.eyebrow {
  font-size: .6875rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 6px;
}

/* ------------------------------------------------------------------- cards */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.card__title { font-size: 1rem; }
.card__hint  { font-size: .8125rem; color: var(--text-muted); margin-top: 2px; }
.card__body  { padding: 22px; }

/* ------------------------------------------------------------------ forms */

.field { margin-bottom: 16px; }
.field__label { display: block; font-size: .8125rem; font-weight: 600; color: var(--text-soft); margin-bottom: 6px; }
.field__label .opt { font-weight: 500; color: var(--text-muted); }
.field__hint  { font-size: .75rem; color: var(--text-muted); margin-top: 6px; }

.input, .select {
  width: 100%; padding: 10px 12px;
  font: inherit; font-size: .9375rem; color: var(--text);
  background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input::placeholder { color: #a8b5c2; }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(34, 118, 189, .16);
}
.input--error, .select--error { border-color: #d98b85; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* Honeypot — off-screen for people, still fillable by a naive bot. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset + .fieldset { margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--line); }
.fieldset__legend {
  padding: 0; margin-bottom: 14px;
  font-size: .6875rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  font: inherit; font-size: .875rem; font-weight: 600;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand-600); color: #fff; }
.btn--primary:hover { background: var(--brand-700); }
.btn--ghost { background: #fff; color: var(--text-soft); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }
.btn--block { width: 100%; }

/* ----------------------------------------------------------------- alerts */

.alert {
  display: flex; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid; font-size: .875rem; line-height: 1.5;
}
.alert--error { color: var(--err-fg); background: var(--err-bg); border-color: var(--err-bd); }
.alert--info  { color: var(--brand-700); background: var(--brand-050); border-color: #c5daf0; }
.alert strong { font-weight: 650; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ----------------------------------------------------------------- success */

.done { padding: 40px 22px; text-align: center; }
.done__mark {
  display: grid; place-items: center;
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%;
  color: var(--done-fg); background: var(--done-bg); border: 2px solid var(--done-bd);
}
.done h1 { font-size: 1.375rem; }
.done p  { color: var(--text-soft); margin-top: 8px; }

/* ---------------------------------------------------------------- utility */

.muted { color: var(--text-muted); }
.small { font-size: .8125rem; }
.required { color: var(--err-fg); }

.footer { padding: 26px 0 40px; text-align: center; font-size: .75rem; color: var(--text-muted); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 560px) {
  .topbar__inner { min-height: 0; }
  .grid-2 { grid-template-columns: 1fr; }
  .card__head, .card__body { padding: 16px; }
  .page-head { padding: 22px 0 16px; }
  .page-head h1 { font-size: 1.3rem; }
}
