/* =========================================================
   MVSS STUDIO — epk-intake.css
   Standalone multi-step EPK intake form.
   Inherits tokens from styles.css. Accent (--acc) is swapped
   live to the artist's favorite color once they pick it.
========================================================= */

:root {
  --acc: #00E63E;             /* live accent — overridden in JS */
  --acc-dim: rgba(0, 230, 62, 0.10);
  --acc-glow: rgba(0, 230, 62, 0.28);
  --fieldbg: #0d0d0d;
  --fieldbd: rgba(255, 255, 255, 0.12);
  --maxw: 720px;
}

.epk-body {
  cursor: auto;
  background: var(--bk);
  min-height: 100vh;
}
.epk-body a, .epk-body button, .epk-body input, .epk-body select, .epk-body textarea {
  cursor: auto;
}

/* styles.css has bare-element rules (nav{}, section{}) meant for the marketing
   pages. Neutralise the ones that reach this form's markup — most importantly
   `nav { top: 0 }`, which turned the fixed footer bar into a full-screen
   blur overlay. */
.epk-body nav.epk-nav { top: auto; transition: none; }
.epk-body section.epk-screen { padding: 0; }

/* ---------------- top bar ---------------- */
.epk-bar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bd);
}
.epk-bar-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.epk-bar-logo svg { height: 26px; width: auto; }
.epk-bar-logo svg path { fill: var(--acc); transition: fill .3s; }
.epk-bar-kicker {
  font-size: 10px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--lg);
}
.epk-bar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.epk-bar-save {
  font-family: var(--fb);
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lg); background: transparent;
  border: 1px solid var(--fieldbd); border-radius: 100px;
  padding: 9px 18px; transition: border-color .2s, color .2s;
}
.epk-bar-save:hover { border-color: var(--acc); color: var(--wh); }
.epk-bar-exit {
  font-family: var(--fb);
  font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gr); background: transparent; border: 0;
  padding: 9px 12px; transition: color .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.epk-bar-exit::before { content: '←'; font-size: 12px; line-height: 1; }
.epk-bar-exit:hover { color: var(--wh); }

/* ---------------- progress ---------------- */
.epk-progress {
  position: sticky; top: 59px; z-index: 40;
  background: var(--bk);
  border-bottom: 1px solid var(--bd);
  padding: 14px 28px 12px;
}
.epk-progress.is-hidden { display: none; }
.epk-progress-track {
  height: 3px; background: rgba(255,255,255,.08); border-radius: 100px;
  overflow: hidden; margin-bottom: 10px;
}
.epk-progress-fill {
  height: 100%; background: var(--acc);
  box-shadow: 0 0 12px var(--acc-glow);
  width: 0%; transition: width .5s var(--eoe);
}
.epk-progress-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gr);
}
.epk-progress-meta strong { color: var(--wh); font-weight: 600; }
.epk-progress-steps {
  display: flex; gap: 6px; margin-top: 10px; overflow-x: auto;
  scrollbar-width: none;
}
.epk-progress-steps::-webkit-scrollbar { display: none; }
.epk-step-dot {
  flex-shrink: 0;
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gr); background: transparent;
  border: 1px solid var(--bd); border-radius: 100px;
  padding: 5px 12px; white-space: nowrap;
  transition: all .2s;
}
.epk-step-dot.is-current { color: var(--bk); background: var(--acc); border-color: var(--acc); }
.epk-step-dot.is-done { color: var(--acc); border-color: var(--acc-glow); }

/* ---------------- shell ---------------- */
.epk-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 28px 160px;
}
.epk-screen { animation: epkIn .5s var(--eoe); }
.epk-screen.is-leaving { animation: epkOut .3s var(--eoe) forwards; }
@keyframes epkIn  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes epkOut { to { opacity: 0; transform: translateY(-16px); } }

.epk-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 14px;
}
.epk-h {
  font-family: var(--fd);
  font-size: clamp(34px, 7vw, 60px);
  line-height: .96; letter-spacing: .02em; text-transform: uppercase;
  color: var(--wh); margin-bottom: 16px;
}
.epk-sub { font-size: 14px; line-height: 1.7; color: var(--lg); max-width: 52ch; margin-bottom: 8px; }
.epk-scope-note {
  margin: 20px 0 4px;
  padding: 14px 16px;
  border-left: 2px solid var(--acc);
  background: var(--acc-dim);
  font-size: 12.5px; line-height: 1.6; color: var(--whg);
}

/* ---------------- landing / mode ---------------- */
.epk-modes { display: grid; gap: 16px; margin-top: 36px; }
.epk-mode-card {
  text-align: left;
  background: var(--fieldbg);
  border: 1px solid var(--fieldbd);
  border-radius: 14px;
  padding: 26px 24px;
  transition: border-color .2s, transform .2s, background .2s;
}
.epk-mode-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.epk-mode-card h3 {
  font-family: var(--fd); font-size: 28px; letter-spacing: .04em;
  color: var(--wh); margin-bottom: 6px;
}
.epk-mode-card .epk-mode-time {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc); margin-bottom: 12px; display: block;
}
.epk-mode-card p { font-size: 13px; line-height: 1.6; color: var(--gr); }
.epk-resume-line { margin-top: 28px; font-size: 12px; color: var(--gr); }
.epk-resume-line a { color: var(--acc); }

/* ---------------- fields ---------------- */
.epk-fields { display: grid; gap: 30px; margin-top: 40px; }
.epk-field { display: grid; gap: 8px; }
.epk-label {
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--wh);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.epk-label .epk-opt {
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gr);
}
.epk-label .epk-req { color: var(--acc); font-size: 14px; line-height: 1; }
.epk-help { font-size: 12px; line-height: 1.55; color: var(--gr); }

.epk-input, .epk-textarea, .epk-select {
  width: 100%;
  background: var(--fieldbg);
  border: 1px solid var(--fieldbd);
  border-radius: 9px;
  padding: 13px 14px;
  color: var(--wh);
  font-family: var(--fb); font-size: 14.5px;
  transition: border-color .18s, box-shadow .18s;
}
.epk-textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.epk-input:focus, .epk-textarea:focus, .epk-select:focus {
  outline: none; border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-dim);
}
.epk-input::placeholder, .epk-textarea::placeholder { color: #5a5a5a; }
.epk-select { appearance: none; background-image: none; padding-right: 34px; }
.epk-select-wrap { position: relative; }
.epk-select-wrap::after {
  content: '↓'; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gr); pointer-events: none; font-size: 12px;
}
.epk-field.has-error .epk-input,
.epk-field.has-error .epk-textarea,
.epk-field.has-error .epk-select { border-color: #ff4444; }
.epk-error { font-size: 11.5px; color: #ff6b6b; letter-spacing: .02em; }

/* chips / radio */
.epk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.epk-chip {
  font-family: var(--fb);
  font-size: 12.5px; letter-spacing: .02em;
  color: var(--whg);
  background: var(--fieldbg);
  border: 1px solid var(--fieldbd);
  border-radius: 100px;
  padding: 9px 16px;
  transition: all .16s;
}
.epk-chip:hover { border-color: rgba(255,255,255,.3); color: var(--wh); }
.epk-chip.is-on {
  background: var(--acc); color: var(--bk); border-color: var(--acc);
  font-weight: 600;
}
.epk-radio-cards { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.epk-radio-card {
  text-align: left;
  background: var(--fieldbg); border: 1px solid var(--fieldbd);
  border-radius: 10px; padding: 14px 15px;
  font-size: 13px; color: var(--whg);
  transition: all .16s;
}
.epk-radio-card:hover { border-color: rgba(255,255,255,.3); }
.epk-radio-card.is-on { border-color: var(--acc); background: var(--acc-dim); color: var(--wh); }
.epk-radio-card .epk-rc-title { font-weight: 600; color: var(--wh); display: block; margin-bottom: 2px; }

/* tags input */
.epk-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.epk-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--acc-dim); border: 1px solid var(--acc-glow);
  color: var(--wh); border-radius: 6px; padding: 6px 8px 6px 11px;
  font-size: 12.5px;
}
.epk-tag button { background: none; border: none; color: var(--acc); font-size: 15px; line-height: 1; }
.epk-tag-input { flex: 1; min-width: 140px; background: none; border: none; color: var(--wh); font-size: 14px; padding: 6px; }
.epk-tag-input:focus { outline: none; }
.epk-tags-wrap {
  background: var(--fieldbg); border: 1px solid var(--fieldbd);
  border-radius: 9px; padding: 6px 8px;
  display: flex; flex-wrap: wrap; gap: 7px; align-items: center;
}
.epk-tags-wrap:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
.epk-count { font-size: 10px; color: var(--gr); letter-spacing: .1em; }

/* platform + handle */
.epk-platform-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 8px; align-items: center;
  margin-top: 8px;
}
.epk-platform-row .epk-platform-name { font-size: 12.5px; color: var(--whg); }

/* color */
.epk-color-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.epk-color-swatch {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--fieldbd);
  background: var(--acc);
  box-shadow: 0 0 20px var(--acc-glow);
  transition: background .3s, box-shadow .3s;
}
.epk-color-native { width: 46px; height: 46px; padding: 0; border: 1px solid var(--fieldbd); border-radius: 10px; background: none; }

/* slider */
.epk-slider-wrap { display: grid; gap: 6px; }
.epk-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 100px;
  background: linear-gradient(90deg, var(--acc) 0%, var(--acc) var(--pct,50%), rgba(255,255,255,.12) var(--pct,50%));
}
.epk-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 10px var(--acc-glow); cursor: grab;
}
.epk-slider::-moz-range-thumb {
  width: 18px; height: 18px; border: none; border-radius: 50%;
  background: var(--acc); box-shadow: 0 0 10px var(--acc-glow);
}
.epk-slider-labels { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gr); }

/* rank */
.epk-rank { display: grid; gap: 6px; }
.epk-rank-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--fieldbg); border: 1px solid var(--fieldbd);
  border-radius: 9px; padding: 11px 12px;
  font-size: 13px; color: var(--wh);
}
.epk-rank-item.is-drag { opacity: .4; }
.epk-rank-item .epk-rank-num {
  font-family: var(--fd); font-size: 17px; color: var(--acc); width: 22px; flex-shrink: 0;
}
.epk-rank-item .epk-rank-grip { margin-left: auto; color: var(--gr); cursor: grab; letter-spacing: 2px; }
.epk-rank-item .epk-rank-btns { display: flex; gap: 4px; }
.epk-rank-item .epk-rank-btns button {
  background: none; border: 1px solid var(--fieldbd); color: var(--lg);
  border-radius: 6px; width: 26px; height: 26px; font-size: 12px;
}

/* repeatable groups */
.epk-repeat { display: grid; gap: 12px; }
.epk-repeat-item {
  background: var(--fieldbg); border: 1px solid var(--fieldbd);
  border-radius: 12px; padding: 16px 15px 15px;
  display: grid; gap: 12px;
  position: relative;
}
.epk-repeat-item .epk-repeat-remove {
  position: absolute; top: 10px; right: 10px;
  background: none; border: 1px solid var(--fieldbd); color: var(--lg);
  border-radius: 6px; width: 26px; height: 26px; font-size: 14px; line-height: 1;
}
.epk-repeat-item .epk-repeat-remove:hover { border-color: #ff4444; color: #ff6b6b; }
.epk-repeat-num {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--acc);
}
.epk-add-btn {
  justify-self: start;
  font-family: var(--fb); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--acc); background: var(--acc-dim);
  border: 1px dashed var(--acc-glow); border-radius: 8px;
  padding: 11px 18px; transition: background .2s;
}
.epk-add-btn:hover { background: rgba(0,230,62,.16); }

/* uploads */
.epk-drop {
  border: 1.5px dashed var(--fieldbd); border-radius: 12px;
  padding: 26px 18px; text-align: center;
  background: var(--fieldbg);
  transition: border-color .2s, background .2s;
}
.epk-drop.is-over { border-color: var(--acc); background: var(--acc-dim); }
.epk-drop p { font-size: 12.5px; color: var(--gr); margin-top: 6px; }
.epk-drop .epk-drop-cta {
  color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.epk-drop-hint { font-size: 10.5px; color: #555; letter-spacing: .04em; margin-top: 8px; }
.epk-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.epk-thumb {
  position: relative; border: 1px solid var(--fieldbd); border-radius: 9px;
  overflow: hidden; background: #000; aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
}
.epk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.epk-thumb .epk-thumb-ext {
  font-family: var(--fd); font-size: 20px; color: var(--lg); letter-spacing: .06em;
}
.epk-thumb .epk-thumb-name {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 8.5px; color: var(--whg); background: rgba(0,0,0,.8);
  padding: 3px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.epk-thumb .epk-thumb-remove {
  position: absolute; top: 4px; right: 4px;
  background: rgba(0,0,0,.72); border: none; color: #fff;
  width: 20px; height: 20px; border-radius: 5px; font-size: 12px; line-height: 1;
}
.epk-thumb.is-uploading::after {
  content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.55);
}
.epk-thumb .epk-thumb-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; background: var(--acc); z-index: 2;
  transition: width .2s;
}

/* ---------------- footer nav ---------------- */
.epk-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 28px;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--bd);
}
.epk-nav.is-hidden { display: none; }
.epk-nav-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.epk-btn {
  font-family: var(--fb); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 15px 30px; border-radius: 4px; border: 1px solid transparent;
  transition: transform .15s, background .2s, border-color .2s;
}
.epk-btn-primary { background: var(--acc); color: var(--bk); }
.epk-btn-primary:hover { transform: translateY(-2px); filter: brightness(1.08); }
.epk-btn-ghost { background: transparent; border-color: var(--fieldbd); color: var(--whg); }
.epk-btn-ghost:hover { border-color: rgba(255,255,255,.35); color: var(--wh); }
.epk-btn:disabled { opacity: .4; pointer-events: none; }
.epk-nav-upgrade {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gr);
  background: none; border: none; text-decoration: underline; text-underline-offset: 3px;
}
.epk-nav-upgrade:hover { color: var(--acc); }

/* ---------------- confirmation ---------------- */
.epk-confirm-mark { width: 54px; height: 54px; margin-bottom: 26px; filter: drop-shadow(0 0 14px var(--acc-glow)); }
.epk-confirm-mark path { fill: var(--acc); }
.epk-summary {
  margin-top: 32px; border: 1px solid var(--fieldbd); border-radius: 14px; overflow: hidden;
}
.epk-summary-row {
  display: grid; grid-template-columns: 150px 1fr; gap: 14px;
  padding: 13px 16px; border-bottom: 1px solid var(--bd);
  font-size: 13px;
}
.epk-summary-row:last-child { border-bottom: none; }
.epk-summary-row dt { color: var(--gr); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.epk-summary-row dd { color: var(--wh); }
.epk-confirm-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.epk-missing-list {
  margin-top: 20px; padding: 16px; border-radius: 12px;
  background: rgba(255, 180, 0, .06); border: 1px solid rgba(255,180,0,.2);
}
.epk-missing-list h4 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ffb400; margin-bottom: 8px; }
.epk-missing-list li { font-size: 12.5px; color: var(--whg); margin-left: 16px; line-height: 1.6; }

.epk-toast {
  position: fixed; bottom: 84px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--pn); border: 1px solid var(--acc-glow);
  color: var(--wh); font-size: 12.5px;
  padding: 12px 20px; border-radius: 100px;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
  z-index: 60;
}
.epk-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- responsive ---------------- */
@media (max-width: 620px) {
  .epk-main { padding: 32px 20px 172px; }
  .epk-bar, .epk-progress, .epk-nav { padding-left: 18px; padding-right: 18px; }
  .epk-summary-row { grid-template-columns: 1fr; gap: 3px; }
  .epk-platform-row { grid-template-columns: 1fr; }
  .epk-btn { padding: 14px 22px; flex: 1; text-align: center; }
  .epk-bar-kicker { display: none; }
  /* upgrade link on its own row above the buttons, so nothing wraps mid-word */
  .epk-nav-inner { flex-wrap: wrap; row-gap: 10px; }
  .epk-nav-upgrade { order: -1; flex-basis: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .epk-screen, .epk-screen.is-leaving { animation: none; }
  .epk-progress-fill { transition: none; }
}
