/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:    #cc0000;
  --red-h:  #a80000;
  --red-glow: rgba(204,0,0,.22);
  --bg:     #080808;
  --card:   #111111;
  --field:  #1a1a1a;
  --border: #2a2a2a;
  --text:   #e0e0e0;
  --muted:  #666;
  --green:  #27ae60;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 52px;
}

/* ---- Header ---- */
.wiz-header {
  text-align: center;
  margin-bottom: 28px;
}
.wiz-header img { height: 36px; }
.wiz-header h1 {
  font-size: 1.35em;
  margin-top: 20px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -.01em;
}
.wiz-header p { font-size: .84em; color: #aaa; margin-top: 6px; }
.wiz-header a { color: var(--red); text-decoration: none; }
.wiz-header a:hover { text-decoration: underline; }

/* ---- Kaart ---- */
.wiz-card {
  background: var(--card);
  border-radius: 14px;
  padding: 36px 40px;
  width: 100%;
  max-width: 560px;
  box-shadow: 0 12px 48px rgba(0,0,0,.65);
  border: 1px solid #1e1e1e;
}

/* ---- Stap-indicator ---- */
.wiz-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 36px;
  position: relative;
}
.wiz-steps::before {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(18px + (100% - 36px) / 6);
  right: calc(18px + (100% - 36px) / 6);
  height: 2px;
  background: var(--border);
}
.wiz-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}
.wiz-step__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: .88em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, box-shadow .3s;
  border: 2px solid var(--border);
}
.wiz-step.active .wiz-step__dot {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-glow);
}
.wiz-step.done .wiz-step__dot {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.wiz-step__label {
  display: block;
  font-size: .68em;
  color: var(--muted);
  margin-top: 7px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.wiz-step.active .wiz-step__label { color: var(--red); }
.wiz-step.done .wiz-step__label   { color: var(--green); }

/* ---- Sectie heading ---- */
.wiz-pane h2 {
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 4px;
  font-weight: 700;
}
.wiz-pane .wiz-sub {
  font-size: .8em;
  color: var(--muted);
  margin-bottom: 24px;
}

/* ---- Formulier velden ---- */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: .73em;
  color: #999;
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.field input,
.field select {
  width: 100%;
  background: var(--field);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 14px;
  font-size: .95em;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.field input:focus,
.field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.field input::placeholder { color: #383838; }
.field select option { background: var(--field); color: var(--text); }

/* Twee velden naast elkaar */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.field-row .field { margin-bottom: 0; }

/* Inline waarschuwing (oranje) */
.field__warn {
  font-size: .76em;
  color: #e67e22;
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
}
.field__warn::before { content: '⚠ '; }
.field__warn.visible { display: flex; }

.field.has-warn input { border-color: #e67e22; box-shadow: 0 0 0 3px rgba(230,126,34,.12); }

/* Inline fout */
.field.has-error input,
.field.has-error select,
.field.has-error .file-drop {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
}
.field__error {
  font-size: .76em;
  color: #e74c3c;
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
}
.field__error::before { content: '⚠ '; }
.field.has-error .field__error { display: flex; }

.field__hint {
  font-size: .74em;
  color: #888;
  margin-top: 4px;
  display: block;
}

/* ---- File drop-zone ---- */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  position: relative;
  background: var(--field);
}
.file-drop:hover, .file-drop.drag-over {
  border-color: var(--red);
  background: #1e1212;
}
.file-drop input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-drop__icon { font-size: 2.2em; display: block; margin-bottom: 10px; }
.file-drop__text { font-size: .84em; color: var(--muted); line-height: 1.6; }
.file-drop--has-logo { padding: 18px 20px; flex-direction: row; align-items: center; gap: 16px; justify-content: flex-start; }
.file-drop__thumb { width: 56px; height: 56px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.file-drop__name {
  font-size: .84em;
  color: var(--red);
  margin-top: 8px;
  font-weight: 600;
  display: none;
}
.file-drop__name.visible { display: block; }

/* ---- Knoppen ---- */
.wiz-btns {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  padding: 13px 22px;
  border: none;
  border-radius: 9px;
  font-size: .95em;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  font-family: inherit;
  letter-spacing: .01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:active { transform: scale(.97); }

.btn--primary {
  flex: 1;
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 18px var(--red-glow);
}
.btn--primary:hover { background: var(--red-h); box-shadow: 0 6px 22px rgba(204,0,0,.35); }

.btn--secondary {
  flex: 0 0 auto;
  background: transparent;
  color: #888;
  border: 1.5px solid var(--border);
}
.btn--secondary:hover { background: var(--field); color: #ccc; border-color: #444; }

.btn--submit {
  flex: 1;
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 16px rgba(39,174,96,.28);
}
.btn--submit:hover { background: #1e9150; }

/* ---- Algemene foutbalk ---- */
.wiz-alert {
  background: rgba(231,76,60,.1);
  border: 1px solid #e74c3c;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .84em;
  color: #e74c3c;
  margin-bottom: 20px;
  display: none;
}
.wiz-alert.visible { display: block; }

/* ---- Succes scherm ---- */
.success-card { text-align: center; padding: 16px 0 8px; }
.success-card__icon { font-size: 3.8em; display: block; margin-bottom: 14px; }
.success-card h2 { font-size: 1.3em; color: var(--green); margin-bottom: 8px; }
.success-card p { color: #bbb; font-size: .88em; line-height: 1.6; }

.embed-block { margin-top: 24px; text-align: left; }
.embed-block label {
  font-size: .72em;
  color: #999;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 7px;
}
#embed-code {
  width: 100%;
  background: #0a0a0a;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: #7ec8e3;
  font-family: 'Courier New', monospace;
  font-size: .78em;
  padding: 12px;
  resize: vertical;
  min-height: 110px;
  outline: none;
}
#embed-code:focus { border-color: var(--red); }

.embed-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.embed-btns .btn { flex: 1; font-size: .88em; padding: 11px; }

.player-preview {
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.player-preview h3 {
  font-size: .72em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
  font-weight: 700;
}

/* ---- Footer ---- */
footer {
  margin-top: 36px;
  font-size: .74em;
  color: #333;
  text-align: center;
}
footer a { color: var(--red); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- Theme keuze kaartjes ---- */
.theme-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.theme-card {
  cursor: pointer;
  display: block;
}
.theme-card input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-card__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 18px 12px 14px;
  text-align: center;
  transition: border-color .2s, background .2s, box-shadow .2s;
  background: var(--field);
}
.theme-card:hover .theme-card__inner {
  border-color: #444;
  background: #1e1e1e;
}
.theme-card input:checked + .theme-card__inner {
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.theme-card__icon  { font-size: 1.8em; line-height: 1; }
.theme-card__title {
  font-size: .82em;
  font-weight: 700;
  color: #ccc;
  letter-spacing: .02em;
}
.theme-card input:checked + .theme-card__inner .theme-card__title { color: var(--red); }
.theme-card__desc  { font-size: .72em; color: var(--muted); }

/* Subtiele achtergrond-hint per kaart */
.theme-card__inner--dark  { background: #111; }
.theme-card__inner--light { background: #1c1c1c; }
.theme-card input:checked + .theme-card__inner--dark  { background: #1a0c0c; }
.theme-card input:checked + .theme-card__inner--light { background: #1a100a; }

/* ---- Responsive ---- */
@media (max-width: 560px) {
  .wiz-card { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field-row .field { margin-bottom: 18px; }
}
@media (max-width: 380px) {
  .wiz-card { padding: 20px 14px; }
  .wiz-steps::before { display: none; }
}
