/* Nokia New Hire Kit — placeholder brand tokens.
   Replace --nk-blue and --nk-font once Nokia assets arrive. */
:root {
  --nk-blue: #124191;
  --nk-blue-dark: #0d2f6b;
  --nk-blue-tint: #eef3fb;
  --nk-ink: #12161f;
  --nk-muted: #5b6472;
  --nk-line: #dde3ec;
  --nk-bg: #f5f7fa;
  --nk-white: #ffffff;
  --nk-error: #b3261e;
  --nk-ok: #1c6c3c;
  --nk-radius: 10px;
  --nk-font: 'Helvetica Neue', Helvetica, Arial, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--nk-font);
  color: var(--nk-ink);
  background: var(--nk-bg);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ---------- Layout ---------- */
.nk-header {
  background: var(--nk-white);
  border-bottom: 1px solid var(--nk-line);
  padding: 18px 24px;
}

.nk-header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.nk-logo {
  height: 26px;
  width: auto;
}

/* Placeholder wordmark until the real Nokia asset is supplied. */
.nk-logo-placeholder {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--nk-blue);
  text-transform: uppercase;
}

.nk-header-label {
  font-size: 13px;
  color: var(--nk-muted);
  border-left: 1px solid var(--nk-line);
  padding-left: 14px;
}

.nk-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.nk-main--wide { max-width: 860px; }

.nk-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--nk-line);
  background: var(--nk-white);
  padding: 18px 24px;
  font-size: 12px;
  color: var(--nk-muted);
  text-align: center;
}

/* ---------- Card ---------- */
.nk-card {
  background: var(--nk-white);
  border: 1px solid var(--nk-line);
  border-radius: var(--nk-radius);
  padding: 36px;
  max-width: 520px;
  margin: 0 auto;
}

.nk-card--wide { max-width: 640px; }

h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 10px;
  font-weight: 700;
}

h2 {
  font-size: 16px;
  margin: 0 0 14px;
  font-weight: 700;
}

.nk-lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--nk-muted);
  margin: 0 0 28px;
}

/* ---------- Form ---------- */
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

input[type="text"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--nk-line);
  border-radius: 6px;
  background: var(--nk-white);
  color: var(--nk-ink);
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--nk-blue);
  box-shadow: 0 0 0 3px rgba(18, 65, 145, 0.14);
}

.nk-hint {
  font-size: 12px;
  color: var(--nk-muted);
  margin: 8px 0 0;
}

button {
  margin-top: 20px;
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 600;
  color: var(--nk-white);
  background: var(--nk-blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover:not(:disabled) { background: var(--nk-blue-dark); }
button:disabled { opacity: 0.55; cursor: not-allowed; }

.nk-btn-secondary {
  background: transparent;
  color: var(--nk-blue);
  border: 1px solid var(--nk-blue);
}

.nk-btn-secondary:hover:not(:disabled) {
  background: var(--nk-blue-tint);
  color: var(--nk-blue);
}

/* ---------- Messages ---------- */
.nk-msg {
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.nk-msg.is-visible { display: block; }

.nk-msg--error {
  background: #fdecea;
  border: 1px solid #f3c3bf;
  color: var(--nk-error);
}

.nk-msg--ok {
  background: #e9f4ed;
  border: 1px solid #bfdfcb;
  color: var(--nk-ok);
}

/* ---------- Redemption summary ---------- */
.nk-summary { margin-top: 26px; }

.nk-summary dl {
  margin: 0;
  border-top: 1px solid var(--nk-line);
}

.nk-summary div.nk-row {
  display: flex;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--nk-line);
  font-size: 14px;
}

.nk-summary dt {
  flex: 0 0 44%;
  color: var(--nk-muted);
  margin: 0;
}

.nk-summary dd {
  flex: 1;
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}

.nk-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--nk-blue-tint);
  color: var(--nk-blue);
  margin-bottom: 14px;
}

/* ---------- Typeform host (full-bleed) ---------- */

/* The form page drops all page chrome and hands the whole viewport to the
   widget. 100dvh tracks mobile browser chrome; 100vh is the fallback. */
body.nk-form-page {
  display: block;
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--nk-white);
}

.nk-form-fullscreen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--nk-white);
}

/* Typeform's injected stylesheet leaves the iframe at the browser default
   300x150 inside a custom container, so force both to fill. */
.nk-form-fullscreen .tf-v1-widget,
.nk-form-fullscreen .tf-v1-widget iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
}

.nk-form-fallback {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  padding: 16px 18px;
  border-radius: 6px;
  background: #fdecea;
  border: 1px solid #f3c3bf;
  color: var(--nk-error);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  display: none;
}

.nk-form-fallback.is-visible { display: block; }

/* ---------- Utility ---------- */
.nk-center { text-align: center; }
.nk-hidden { display: none !important; }

.nk-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--nk-white);
  border-radius: 50%;
  animation: nk-spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 8px;
}

@keyframes nk-spin { to { transform: rotate(360deg); } }

@media (max-width: 560px) {
  .nk-card { padding: 26px 20px; }
  .nk-main { padding: 28px 16px 44px; }
  .nk-summary div.nk-row { flex-direction: column; gap: 3px; }
  .nk-summary dt { flex: none; }
}
