*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --color-groen_vol: #39870c;
  --color-donkerblauw_vol: #01689b;
}
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: black;
}
.panel {
  width: 100%;
  max-width: 640px;
  border-radius: 1rem;
  padding: 2.5rem 2.5rem 2rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}
.panel__heading {
  font-size: 1.5rem;
  font-weight: 700;
}
.panel__sub {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}
/* ── Field groups ── */
.field {
  margin-bottom: 1.5rem;
}
label.field__label {
  display: block;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
input[type="text"] {
  width: 100%;
  background: #111;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
input[type="text"]:focus {
  border-color: #555;
}
input[type="text"]::placeholder {
  color: #444;
}
/* ── Drop zone ── */
.dropzone {
  border: 2px dashed #2e2e2e;
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.dropzone:hover,
.dropzone.over {
  border: 2px solid #2e2e2e;
  background: white;
  color: black;
}
.dropzone.has-file {
  border-color: white;
  color: white;
  background: var(--color-groen_vol);
}
.dropzone__label span {
  text-decoration: underline;
}
.dropzone__filename {
  margin-top: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#fileInput {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
/* ── Watermark picker ── */
.wm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.wm-option {
  position: relative;
  border: 2px dashed #2e2e2e;
  border-radius: 8px;
  display: flex;
  padding: 0.25rem;
}
.wm-option:hover {
  border: 2px solid #2e2e2e;
  background-color: white;
}
.wm-option input[type="radio"] {
  margin: 0.25rem;
  width: 2rem;
  height: 2rem;
}
.wm-option__card {
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.wm-option:has(input[type="radio"]:checked) {
  color: white;
  background-color: var(--color-groen_vol);
  border: 2px solid white;
  outline: 2px solid black;
}
.wm-option__preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.wm-option__name {
  color: black;
}
.wm-option input[type="radio"]:checked + .wm-option__card .wm-option__name {
  color: white;
}
/* ── Submit ── */
.btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: var(--color-donkerblauw_vol);
  color: white;
  font-weight: 700;
  border: 2px solid var(--color-donkerblauw_vol);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 2rem;
}
.btn:visited {
  color: white;
}
.btn:hover {
  background: #fff;
  color: var(--color-donkerblauw_vol);
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
/* ── Progress overlay ── */
.progress {
  display: none;
  text-align: center;
  padding: 1rem 0 0.5rem;
  color: #666;
}
.progress.visible {
  display: block;
}
/* ── Error banner ── */
.error-banner {
  display: none;
  background: #2a1010;
  border: 1px solid #5a2020;
  color: #f88;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
}
.error-banner.visible {
  display: block;
}
