/* =========================================================
   Anonymous reporting form – styles

   BRAND TOKENS
   Replace the values in this block with the exact colours and
   font from the corporate identity manual / website stylesheet.
   Everything else in the file reads from these tokens.
   ========================================================= */
:root {
  --brand:        #0e2240;   /* primary – deep navy            */
  --brand-deep:   #081629;   /* darker shade for hover / band  */
  --brand-sky:    #6f9cc7;   /* secondary – sky blue accent    */
  --brand-tint:   #eaf0f6;   /* very light tint of primary     */

  --font:  "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* neutrals */
  --bg:     #f4f6f9;
  --paper:  #ffffff;
  --ink:    #141c26;
  --muted:  #5e6a78;
  --line:   #d3dae2;
  --error:  #b3261e;
  --error-bg: #fcefee;

  --radius: 6px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--brand-sky);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand); }

/* ---------- Top bar with logo ---------- */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand { display: inline-flex; }

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
}

.topbar-link {
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  padding: .4rem .2rem;
  border-radius: 3px;
}
.topbar-link:hover { color: var(--brand); text-decoration: underline; }

/* ---------- Band with flight path ---------- */
.band {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: var(--paper);
  padding: 2.75rem 1.25rem 6.5rem;
  text-align: center;
}

.flightpath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--brand-sky);
  opacity: .55;
}

.band-title {
  position: relative;
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: .02em;
  color: #dbe6f1;
}

/* ---------- Card ---------- */
.main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: -4.5rem auto 0;
  padding: 0 1.25rem 3rem;
  position: relative;
}

.card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 2px rgba(8, 22, 41, .06), 0 12px 32px rgba(8, 22, 41, .08);
}

@media (min-width: 600px) {
  .card { padding: 2.75rem 3rem; }
}

.card h1 {
  margin: 0 0 .5rem;
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--brand);
}

.intro {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 52ch;
}

/* ---------- Fields ---------- */
.field { margin-bottom: 1.5rem; }

label, .label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
  font-size: .95rem;
}

.tag {
  margin-left: .35rem;
  font-weight: 400;
  font-size: .82rem;
  color: var(--muted);
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  padding: .75rem .85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .15s;
}

textarea { resize: vertical; min-height: 12rem; }

.input-short { max-width: 7rem; }

input:hover, textarea:hover { border-color: var(--muted); }

input:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.topbar-link:focus-visible,
.brand:focus-visible,
.dropzone:focus-within {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus);
}

.hint {
  margin: .35rem 0 0;
  font-size: .88rem;
  color: var(--muted);
}

.hint-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.count {
  flex: none;
  margin: .35rem 0 0;
  font-size: .85rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.human {
  padding: 1.1rem 1.1rem .9rem;
  background: var(--brand-tint);
  border-radius: var(--radius);
}

/* honeypot: hidden from people, visible to bots */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- File upload ---------- */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: 1.75rem 1rem;
  text-align: center;
  font-weight: 400;
  background: var(--bg);
  border: 1.5px dashed var(--muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}

.dropzone:hover,
.dropzone.is-over {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone strong {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-list {
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  font-size: .9rem;
}

.file-list li {
  margin-top: .3rem;
  padding: .4rem .7rem;
  background: var(--bg);
  border-left: 3px solid var(--brand-sky);
  word-break: break-all;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  width: 100%;
  margin-top: .5rem;
  padding: .9rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  text-align: center;
  text-decoration: none;
  color: var(--paper);
  background: var(--brand);
  border: 1.5px solid var(--brand);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s;
}

.btn:hover { background: var(--brand-deep); }
.btn:disabled { opacity: .6; cursor: progress; }

@media (min-width: 600px) {
  .btn { width: auto; min-width: 12rem; }
}

.btn-ghost {
  margin-top: 1.75rem;
  color: var(--brand);
  background: var(--paper);
}
.btn-ghost:hover { background: var(--brand-tint); }

/* ---------- Alert ---------- */
.alert {
  margin-bottom: 1.5rem;
  padding: .85rem 1rem;
  background: var(--error-bg);
  border-left: 4px solid var(--error);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--error);
  font-weight: 500;
  font-size: .95rem;
}
.alert p { margin: 0; }
.alert p + p { margin-top: .3rem; }

/* ---------- Confirmation ---------- */
.card-sent { text-align: center; }
.card-sent .intro { margin-left: auto; margin-right: auto; }

.sent-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  color: var(--brand-sky);
}
.sent-mark svg { width: 100%; height: 100%; }
.sent-mark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw .5s .15s ease-out forwards;
}

.ref {
  display: inline-flex;
  flex-direction: column;
  gap: .15rem;
  margin: 0 auto 1rem;
  padding: 1rem 2rem;
  background: var(--brand-tint);
  border-radius: var(--radius);
}

.ref-label { font-size: .85rem; color: var(--muted); }

.ref-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  user-select: all;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Footnote & footer ---------- */
.footnote {
  margin: 1.5rem 0 0;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}

.footer {
  padding: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer p { margin: 0; }

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .sent-mark path { stroke-dashoffset: 0; }
}
