/* ErvoCom Product Security report form
 *
 * Typography and colours follow www.ervocom.ch:
 *   font   Fira Sans (body 300, headings 700 italic)
 *   blue   #005891 primary, #0a4f8b secondary/hover
 *   grey   #6e6e64 muted text, #e6e6e6 light surfaces
 *   shapes rounded panel bottoms, as on the corporate site
 *
 * Fira Sans is self-hosted (SIL OFL 1.1). Nothing is loaded from
 * fonts.googleapis.com: external requests are blocked by the page CSP and
 * would disclose reporter IP addresses to a third party.
 */

@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-sans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fira-sans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/fira-sans-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/fira-sans-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/fira-sans-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/fira-sans-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fira-sans-700-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fira-sans-700-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fira-sans-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fira Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fira-sans-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ervocom-blue: #005891;
  --ervocom-blue-alt: #0a4f8b;
  --ervocom-blue-deep: #00426c;
  --paper: #ffffff;
  --panel: #f4f6f8;
  --panel-border: #dfe5ea;
  --input-border: #c2ccd4;
  --text: #3c3c38;
  --muted: #6e6e64;
  --danger: #b4382e;
  --success: #24754a;
  --radius-panel: 18px;
  --radius-control: 10px;
  --radius-button: 12px;
  --shadow: 0 14px 38px rgba(0, 66, 108, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  /* One continuous page background: the hero and the form area are the same
     surface, panels provide the structure instead of full-width colour bands. */
  background: var(--paper);
  color: var(--text);
  font-family: 'Fira Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ervocom-blue-alt); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ervocom-blue-alt);
  outline-offset: 2px;
}

h1 {
  margin: 0;
  color: var(--ervocom-blue);
  font-size: clamp(30px, 4.4vw, 44px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.1;
}

/* ---------- header ---------- */

.site-header { background: var(--ervocom-blue); color: #fff; }
.header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 241px; height: 32px; }
.top-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.top-nav a { color: #dbe8f1; font-size: 14px; font-weight: 400; }
.top-nav a:hover { color: #fff; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch > span { display: none; }
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 9px;
  border-radius: 16px;
  color: #dbe8f1;
  font-size: 14px;
  font-weight: 400;
}
.lang-switch a:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
.lang-switch a[aria-current="page"] { background: #e6e6e6; color: var(--ervocom-blue); font-weight: 700; }
.accent-line { height: 4px; background: var(--ervocom-blue-alt); }

/* ---------- hero ---------- */

.hero { background: var(--paper); }
.hero-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 6px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--ervocom-blue-alt);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.lead { max-width: 820px; margin: 16px 0 26px; color: #4a4a45; font-size: 19px; }
.notice {
  max-width: 940px;
  margin: 12px 0;
  padding: 15px 18px;
  border-left: 4px solid var(--ervocom-blue);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  background: #eef4f8;
}
.notice-sensitive { border-left-color: #b5b5b0; background: #f1f3f5; color: #555550; }

/* ---------- form ---------- */

.report-form { width: min(1040px, calc(100% - 40px)); margin: 30px auto 72px; }
.form-errors {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #e6c0bc;
  border-left: 4px solid var(--danger);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
  background: #fbf1f0;
  color: #7d2b24;
}
.form-errors:focus { outline: 3px solid var(--danger); outline-offset: 2px; }
.form-errors h2 { margin: 0 0 8px; color: var(--danger); font-size: 18px; font-style: italic; font-weight: 700; }
.form-errors p { margin: 0 0 10px; }
.form-errors ul { margin: 0; padding-left: 20px; }
.form-errors li { margin-bottom: 4px; }
.form-errors a { color: #7d2b24; text-decoration: underline; }
.field-error { margin: 7px 0 0; color: var(--danger); font-size: 13px; font-weight: 400; }
.required-hint { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.form-section {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-top: 4px solid var(--ervocom-blue);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  margin: 0 0 20px;
  padding: 26px 28px 30px;
}
.form-section h2 {
  margin: 0 0 20px;
  color: var(--ervocom-blue);
  font-size: 21px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
}
.grid { display: grid; gap: 22px 26px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
.field { min-width: 0; }
.field label, .radio-field legend { display: block; margin: 0 0 7px; color: var(--text); font-weight: 700; font-size: 14px; }
.field small, .radio-field small { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.req { color: var(--danger); }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select, textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #98a0a6; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ervocom-blue-alt);
  box-shadow: 0 0 0 3px rgba(10, 79, 139, .15);
}
.radio-field { border: 0; padding: 0; margin: 0; }
.radio-field label { display: inline-flex; align-items: center; gap: 7px; margin: 4px 16px 4px 0; font-weight: 400; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--ervocom-blue); width: 17px; height: 17px; }

input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); background: #fffbfb; }
input[aria-invalid="true"]:focus, select[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 56, 46, .16);
}
.radio-field[aria-invalid="true"] legend, .check input[aria-invalid="true"] + span { color: var(--danger); }
.check input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 2px; }

.confirmations .check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 13px 0;
  border-top: 1px solid var(--panel-border);
  font-weight: 300;
}
.confirmations .check:first-of-type { border-top: 0; }
.confirmations .check input { margin-top: 5px; flex: 0 0 auto; }

.submit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 28px;
  border-radius: var(--radius-panel);
  background: var(--ervocom-blue);
  color: #e8f1f7;
  box-shadow: var(--shadow);
}
.submit-panel p { margin: 0; max-width: 690px; font-size: 14px; }
.submit-panel button { background: #e6e6e6; color: var(--ervocom-blue); }
.submit-panel button:hover { background: #fff; }

button, .primary-button, .secondary-button {
  appearance: none;
  display: inline-block;
  border: 0;
  border-radius: var(--radius-button);
  background: var(--ervocom-blue);
  color: #fff;
  padding: 13px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
button, .primary-button, .secondary-button { text-decoration: none; }
button:hover, .primary-button:hover { background: var(--ervocom-blue-alt); text-decoration: none; }
button:disabled { opacity: .7; cursor: wait; }
.secondary-button { background: #e6e6e6; color: var(--text); }
.secondary-button:hover { background: #dadada; text-decoration: none; }

/* ---------- footer ---------- */

footer {
  background: var(--ervocom-blue);
  border-top: 4px solid var(--ervocom-blue-alt);
  color: #fff;
}
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-inner a { color: #dbe8f1; }
.footer-inner a:hover { color: #fff; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
[hidden] { display: none !important; }

/* ---------- success / error pages ---------- */

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--paper);
}
.status-card {
  width: min(720px, 100%);
  background: var(--paper);
  border: 1px solid var(--panel-border);
  border-radius: 0 0 var(--radius-panel) var(--radius-panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-brand {
  background: var(--ervocom-blue);
  border-bottom: 4px solid var(--ervocom-blue-alt);
  padding: 16px 42px;
}
.card-brand img { display: block; width: 200px; height: 26px; }
.success-card .card-brand { border-bottom-color: var(--success); }
.error-card .card-brand { border-bottom-color: var(--danger); }
.status-body { padding: 34px 42px 40px; }
.status-body h1 { font-size: 30px; }
.status-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f5ed;
  color: var(--success);
  font-size: 29px;
  font-weight: 700;
  margin-bottom: 18px;
}
.case-id {
  margin: 26px 0 16px;
  padding: 18px;
  background: #eef4f8;
  border-left: 4px solid var(--ervocom-blue);
  border-radius: 0 var(--radius-button) var(--radius-button) 0;
}
.case-id span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.case-id strong { display: block; margin-top: 3px; font-size: 22px; color: var(--ervocom-blue); letter-spacing: .6px; }
.status-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.secondary-link { font-weight: 700; }
.error-card ul { padding-left: 22px; }
.error-card li { margin-bottom: 4px; }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 28px, 1180px);
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
    gap: 14px;
  }
  .brand-logo { width: 200px; height: 26px; }
  .top-nav { gap: 13px; justify-content: flex-start; }
  .hero-inner, .report-form { width: min(100% - 28px, 1040px); }
  .hero-inner { padding: 36px 0 4px; }
  .grid.two { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .form-section { padding: 22px 18px 24px; }
  .submit-panel { align-items: stretch; flex-direction: column; padding: 22px 18px; }
  .submit-panel button { width: 100%; }
  .card-brand { padding: 14px 22px; }
  .card-brand img { width: 176px; height: 23px; }
  .status-body { padding: 26px 22px 30px; }
}
