/* ==========================================================
   upload.scheffermedia.nl
   Huisstijl: paars #990066, licht #d6008a, donkere overlay
   ========================================================== */

:root {
  --brand: #990066;
  --brand-light: #d6008a;
  --brand-dark: #5c0040;
  --ink: #1c1218;
  --paper: #ffffff;
  --muted: #e3cfda;
  --overlay-from: rgba(15, 6, 12, 0.88);
  --overlay-to: rgba(30, 8, 22, 0.55);
  --card-bg: rgba(24, 12, 20, 0.62);
  --card-border: rgba(255, 255, 255, 0.14);
  --ok: #37c281;
  --err: #ff6b6b;
  --radius: 14px;
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  overflow-x: hidden;
}

/* ---------- Achtergrond fotorotator ---------- */
.bg-rotator {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2.2s ease, transform 12s ease;
}
.bg-slide.active {
  opacity: 1;
  transform: scale(1);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, var(--overlay-from) 0%, var(--overlay-to) 45%, var(--overlay-from) 100%);
}
.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at top left, #3a0a26 0%, var(--ink) 60%);
}

/* ---------- Layout ---------- */
.page {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 56px) 0;
}
.logo img {
  height: 64px;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.35));
}
.topbar-contact {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
}
.topbar-contact a { color: var(--paper); text-decoration: none; }
.topbar-contact a:hover { text-decoration: underline; }

.hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px clamp(16px, 5vw, 56px) 40px;
}

.intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 28px;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand-light);
  margin-bottom: 10px;
}
.intro h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin: 0 0 12px;
}
.intro p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Kaart ---------- */
.card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* ---------- Dropzone ---------- */
.dropzone {
  margin: 22px;
  border: 2px dashed rgba(255,255,255,0.32);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--brand-light);
  background: rgba(214, 0, 138, 0.08);
}
.dropzone svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--brand-light); }
.dropzone-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.dropzone-sub { font-size: 13px; color: var(--muted); }
.dropzone input[type="file"] { display: none; }

.filelist {
  margin: 0 22px;
  max-height: 160px;
  overflow-y: auto;
}
.filelist:not(:empty) { margin-bottom: 6px; }
.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  border-radius: 8px;
}
.file-row:nth-child(odd) { background: rgba(255,255,255,0.04); }
.file-row .fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.file-row .fsize { color: var(--muted); flex-shrink: 0; }
.file-row .fremove {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 16px; line-height: 1; padding: 2px 6px; flex-shrink: 0;
}
.file-row .fremove:hover { color: var(--err); }

.filelist-summary {
  margin: 0 22px 6px;
  font-size: 12px;
  color: var(--muted);
  display: none;
}

/* ---------- Formulier ---------- */
form { display: block; }
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 4px 22px 0;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.field label .opt { font-weight: 400; opacity: .7; }
.field input,
.field textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus,
.field textarea:focus {
  border-color: var(--brand-light);
  background: rgba(255,255,255,0.12);
}
.field textarea { resize: vertical; min-height: 64px; }

.actions {
  padding: 6px 22px 24px;
}
.submit-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  box-shadow: 0 10px 24px rgba(153, 0, 102, 0.35);
}
.submit-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(153,0,102,0.45); }
.submit-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.progress-wrap {
  display: none;
  padding: 0 22px 22px;
}
.progress-bar-track {
  height: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand-light) 100%);
  transition: width .2s ease;
}
.progress-label {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.error-msg {
  display: none;
  margin: 0 22px 14px;
  padding: 10px 14px;
  background: rgba(255,107,107,0.14);
  border: 1px solid rgba(255,107,107,0.4);
  border-radius: 8px;
  font-size: 13px;
  color: #ffd4d4;
}

/* ---------- Succes-scherm ---------- */
.success-screen {
  display: none;
  padding: 48px 32px;
  text-align: center;
}
.success-screen .check {
  width: 64px; height: 64px; margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(55, 194, 129, 0.16);
  display: flex; align-items: center; justify-content: center;
}
.success-screen .check svg { width: 30px; height: 30px; color: var(--ok); }
.success-screen h2 { font-family: var(--font-display); margin: 0 0 8px; }
.success-screen p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 auto; max-width: 380px; }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 18px 20px 26px;
  font-size: 12px;
  color: var(--muted);
}
.footer a { color: var(--muted); }

.privacy-note {
  max-width: 560px;
  margin: 10px auto 0;
  text-align: left;
}
.privacy-note summary {
  cursor: pointer;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  list-style: none;
}
.privacy-note summary::-webkit-details-marker { display: none; }
.privacy-note summary:hover { color: var(--paper); }
.privacy-note-body {
  margin-top: 12px;
  padding: 16px 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}
.privacy-note-body p { margin: 0 0 10px; }
.privacy-note-body p:last-child { margin-bottom: 0; }
.privacy-note-body a { color: var(--paper); }

/* ---------- Responsief ---------- */
@media (max-width: 620px) {
  .formgrid { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .topbar-contact { text-align: left; }
}

/* Toegankelijkheid: focus-ring behouden voor toetsenbordgebruik */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.dropzone:focus-visible {
  outline: 2px solid var(--brand-light);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bg-slide { transition: opacity .4s ease; transform: none !important; }
}
