/* ScormIQ Upload — Netresearch brand (netresearch-branding v2.8.0).
   Fonts are self-hosted (no third-party request ever reaches the visitor's
   browser) — consistent with the page's "server in Germany" promise. They are
   fetched into /static/fonts at image-build time; if absent, the system-font
   fallback stack below keeps the page on-brand. */

@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/raleway-regular.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/raleway-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/raleway-bold.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/static/fonts/opensans-regular.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('/static/fonts/opensans-semibold.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('/static/fonts/opensans-bold.woff2') format('woff2'); }

:root {
  /* Brand palette (netresearch-branding) */
  --color-primary: #2F99A4;
  --color-primary-dark: #257880;
  --color-primary-light: rgba(47, 153, 164, 0.1);
  --color-accent: #FF4D00;          /* accent only — never the main CTA */
  --color-text-primary: #585961;
  --color-text-secondary: #8A8B93;
  --color-background: #FFFFFF;
  --color-background-alt: #F5F5F5;
  --color-border: #CCCDCC;
  --color-border-light: #E5E5E5;
  --color-success: #28A745;
  --color-error: #DC3545;

  --font-headline: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-input: 4px;
  --radius-card: 8px;
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 2px 8px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

/* The hidden attribute must win over the explicit display rules below
   (.selected, .btn-primary, etc. set a display value, which would otherwise
   override the UA [hidden]{display:none} and show them on initial load). */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-background-alt);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header / nav --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-background);
  box-shadow: var(--shadow-nav);
  padding: 16px 0;
}
.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-logo { display: inline-flex; }
.navbar-logo svg { height: 48px; width: auto; display: block; }
.navbar-product {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-primary);
  letter-spacing: 0.01em;
}

/* --- Page / card --- */
.page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card {
  background: var(--color-background);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
}
h1 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  color: var(--color-text-primary);
}
h2 {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 26px;
  margin: 0 0 12px;
  color: var(--color-text-primary);
}
.lead {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: var(--color-text-primary);
  max-width: 60ch;
}

/* --- Dropzone --- */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 44px 24px;
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-background-alt);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover,
.dropzone:focus-visible { border-color: var(--color-primary); background: var(--color-primary-light); outline: none; }
.dropzone.dragover { border-color: var(--color-primary); background: var(--color-primary-light); }
.dropzone-icon { width: 40px; height: 40px; color: var(--color-primary); }
.dropzone-primary { font-size: 18px; color: var(--color-text-primary); }
.dropzone-browse { color: var(--color-primary); font-weight: 600; text-decoration: underline; }
.dropzone-secondary { font-size: 14px; color: var(--color-text-secondary); }

.selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--color-primary-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-input);
}
.selected-name { font-weight: 600; word-break: break-all; }
.link-btn {
  background: none;
  border: none;
  color: var(--color-primary);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
}
.link-btn:hover { color: var(--color-primary-dark); }

.hint {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin: 16px 0 0;
}

/* Honeypot — kept out of view AND out of the a11y tree, but still submitted. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Primary CTA (turquoise; orange is never used for the main button) --- */
.btn-primary {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-input);
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(47, 153, 164, 0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Progress + error --- */
.progress {
  margin-top: 20px;
  height: 8px;
  background: var(--color-border-light);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.2s ease;
}
.form-error {
  color: var(--color-error);
  font-size: 14px;
  margin: 16px 0 0;
  min-height: 1.2em;
}

/* --- Trust row (text-only per ticket v1.2; thin teal icons, no orange) --- */
.trust-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--color-border-light);
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-secondary);
}
.trust-row svg { width: 18px; height: 18px; color: var(--color-primary); flex: 0 0 auto; }

/* --- Confirmation --- */
.confirmation { text-align: center; }
.confirmation-icon { width: 56px; height: 56px; color: var(--color-success); margin-bottom: 8px; }

/* --- Footer (mandatory NR branding) --- */
.footer {
  background: var(--color-text-primary);
  color: #fff;
  padding: 32px 0 24px;
  margin-top: 48px;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a { color: #fff; font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { color: var(--color-primary); }

@media (max-width: 600px) {
  .card { padding: 24px; }
  h1 { font-size: 26px; }
  .lead { font-size: 16px; }
  .page { padding: 24px 16px; }
}
