/* nano-GCC demo — HCLTech-inspired theme
   Observed on hcltech.com: text #14142B, link/accent blue #0F5FDC, light grey surfaces,
   square corners, light-weight large headings, purple accent (130,88,232).
   The site font "HCLTech Roobert" is proprietary, so DM Sans is used as a close geometric stand-in. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,700&display=swap');

:root {
  --ink: #14142b;
  --ink-soft: #4e4b66;
  --blue: #0f5fdc;
  --blue-dark: #0a47a8;
  --violet: #8258e8;
  --teal: #006495;
  --line: #dcdfe8;
  --surface: #f5f5f7;
  --white: #fff;
  --ok: #1a7f4b;
  --warn: #b25e00;
  --err: #c62828;
  --font: 'DM Sans', 'HCLTech Roobert', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; scrollbar-width: none; }
*::-webkit-scrollbar { display: none; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-weight: 300; margin: 0; letter-spacing: -0.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------- buttons (flat, square, like hcltech.com) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border: 1px solid var(--ink);
  background: var(--white); color: var(--ink);
  font-size: 14px; font-weight: 500; letter-spacing: .01em;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--white); text-decoration: none; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.dark { background: var(--ink); color: var(--white); }
.btn.dark:hover { background: var(--blue); border-color: var(--blue); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.ghost { border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink); }
.arrow::after { content: '→'; font-weight: 400; }

/* ---------- form controls ---------- */
label.fld { display: block; font-size: 12px; font-weight: 500; color: var(--ink-soft); margin-bottom: 6px; letter-spacing: .02em; }
input[type=text], input[type=date], input[type=number], input[type=password], input[type=email], select, textarea {
  width: 100%; height: 42px; padding: 0 12px;
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--white); border: 1px solid #b9bdcc; border-radius: 0;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input.invalid, select.invalid { border-color: var(--err); box-shadow: 0 0 0 1px var(--err); }
input[readonly] { background: var(--surface); color: var(--ink-soft); }
.err-text { color: var(--err); font-size: 12px; margin-top: 4px; display: none; }
.invalid + .err-text, .invalid ~ .err-text { display: block; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--white); padding: 12px 22px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; border-left: 4px solid var(--blue);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { border-left-color: var(--err); }
