/* ======= EWA 2026 — Apply / Register ======= */
/* Loaded after styles.css. Themed via --c (hot-pink). */

.apply-page { background: var(--bg); --c: #FF0075; min-height: 100vh; }

/* ======= HERO BAND ======= */
.ap-hero {
  position: relative;
  padding: 140px clamp(20px, 4vw, 56px) 50px;
  overflow: hidden;
  isolation: isolate;
}
.ap-hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 12% -10%, rgba(255,0,117,0.28), transparent 55%),
    radial-gradient(ellipse at 92% 0%, rgba(175,102,250,0.20), transparent 55%);
}
.ap-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 20% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 0%, #000 20%, transparent 70%);
}
.ap-hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
.ap-eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ap-eyebrow-row .eyebrow { color: var(--ink-soft); }
.ap-eyebrow-row .ln { flex: 1; height: 1px; background: var(--line); max-width: 120px; }
.ap-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  padding-bottom: 0.04em;
}
.ap-title em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--c);
}
.ap-sub { margin-top: 22px; font-size: 17px; line-height: 1.5; color: var(--ink-soft); max-width: 58ch; }
.ap-sub strong { color: var(--ink); font-weight: 500; }

/* ======= SHELL: stepper + panel ======= */
.ap-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 56px) 120px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
.ap-steps {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid transparent;
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: background 220ms, border-color 220ms;
}
.ap-step:hover { background: rgba(255,255,255,0.03); }
.ap-step.is-active { background: rgba(255,255,255,0.05); border-color: var(--line); }
.ap-step.is-done { opacity: 0.85; }
.ap-step-num {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background 220ms, color 220ms, border-color 220ms;
}
.ap-step.is-active .ap-step-num { background: var(--c); color: #07060a; border-color: var(--c); }
.ap-step.is-done .ap-step-num { background: var(--ink); color: #07060a; border-color: var(--ink); }
.ap-step-meta { display: flex; flex-direction: column; gap: 2px; }
.ap-step-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ap-step-hint { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.ap-progress-track { height: 3px; background: var(--line); margin-top: 18px; position: relative; overflow: hidden; }
.ap-progress-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--c), var(--lavender)); transition: width 420ms cubic-bezier(0.2,0.8,0.2,1); }

/* ======= PANEL ======= */
.ap-panel {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.018);
  padding: clamp(28px, 3.5vw, 48px);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.ap-panel-head { margin-bottom: 30px; }
.ap-panel-kicker { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c); font-weight: 600; margin-bottom: 12px; }
.ap-panel-h {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  padding-bottom: 0.04em;
}
.ap-panel-h em { font-family: var(--display); font-style: normal; font-weight: 800; text-transform: uppercase; color: var(--c); }
.ap-panel-desc { margin-top: 12px; color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 56ch; }

/* step content fade — transform-only so content is never hidden if frames freeze */
.ap-stepwrap { animation: apFade 420ms cubic-bezier(0.2,0.8,0.2,1); }
@keyframes apFade { from { transform: translateY(10px); } to { transform: none; } }

/* ======= ROLE GRID ======= */
.ap-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.ap-role {
  position: relative;
  text-align: left;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 150px;
  transition: transform 300ms cubic-bezier(0.2,0.8,0.2,1), border-color 220ms, background 240ms;
}
.ap-role:hover { transform: translateY(-3px); border-color: var(--rc, var(--c)); background: rgba(255,255,255,0.04); }
.ap-role.is-sel { border-color: var(--rc, var(--c)); background: rgba(255,255,255,0.05); }
.ap-role.is-sel::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--rc, var(--c));
}
.ap-role-top { display: flex; align-items: center; justify-content: space-between; }
.ap-role-ic {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--rc, var(--c));
  transition: background 240ms, color 240ms, border-color 240ms;
}
.ap-role.is-sel .ap-role-ic { background: var(--rc, var(--c)); color: #07060a; border-color: var(--rc, var(--c)); }
.ap-role-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 240ms, color 240ms, border-color 240ms;
}
.ap-role.is-sel .ap-role-check { background: var(--rc, var(--c)); color: #07060a; border-color: var(--rc, var(--c)); }
.ap-role-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.0;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.ap-role-desc { font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); margin-top: auto; }
@media (max-width: 980px) { .ap-roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ap-roles { grid-template-columns: 1fr; } }

.ap-selbar {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ap-selbar-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.ap-selpill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.ap-selpill button {
  display: grid; place-items: center;
  width: 16px; height: 16px;
  color: var(--ink-soft);
  cursor: pointer;
}
.ap-selpill button:hover { color: var(--ink); }
.ap-selpill .pdot { width: 8px; height: 8px; border-radius: 50%; }

/* ======= FORM FIELDS ======= */
.ap-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.ap-field { display: flex; flex-direction: column; gap: 8px; }
.ap-field.full { grid-column: 1 / -1; }
.ap-field label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}
.ap-field label .req { color: var(--c); margin-left: 3px; }
.ap-field label .ap-opt { color: var(--ink-soft); font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 4px; opacity: 0.7; }
.ap-err { color: #FF5470; font-size: 12.5px; line-height: 1.4; margin-top: 3px; font-weight: 500; letter-spacing: 0.01em; }
.ap-err-block { display: block; margin-top: 12px; }
.ap-field.is-error .ap-input, .ap-field.is-error .ap-select, .ap-field.is-error .ap-textarea { border-color: #FF5470; }
.ap-consent.is-error { outline: 1px solid rgba(255,84,112,0.55); outline-offset: 7px; border-radius: 2px; }
.ap-input, .ap-select, .ap-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  transition: border-color 200ms, background 200ms;
}
.ap-textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.ap-input::placeholder, .ap-textarea::placeholder { color: rgba(255,255,255,0.4); }
.ap-input:focus, .ap-select:focus, .ap-textarea:focus { outline: none; border-color: var(--c); background: rgba(255,255,255,0.06); }
.ap-select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 8 8'><path d='M1 2.5L4 5.5L7 2.5' stroke='white' stroke-width='1.2' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.ap-select option { background: #0c0a12; color: var(--ink); }
@media (max-width: 620px) { .ap-fields { grid-template-columns: 1fr; } }

/* track chips */
.ap-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 200ms, border-color 200ms, background 200ms;
}
.ap-chip .cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--cc, var(--ink-soft)); }
.ap-chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.ap-chip.is-on { color: #07060a; background: var(--cc, var(--c)); border-color: var(--cc, var(--c)); }
.ap-chip.is-on .cdot { background: #07060a; }

.ap-cond {
  margin-top: 22px;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  background: rgba(255,255,255,0.015);
}
.ap-cond-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }

/* ======= REVIEW ======= */
.ap-review { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.ap-review-row {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.ap-review-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; padding-top: 3px; }
.ap-review-v { font-size: 15px; color: var(--ink); line-height: 1.5; }
.ap-review-v .muted { color: var(--ink-soft); }
.ap-review-edit { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); font-weight: 600; cursor: pointer; background: none; }
.ap-review-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-review-tags span { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; padding: 5px 10px; border: 1px solid var(--line-strong); }
.ap-consent { margin-top: 24px; display: flex; align-items: flex-start; gap: 12px; }
.ap-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--c); flex-shrink: 0; }
.ap-consent label { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 620px) { .ap-review-row { grid-template-columns: 1fr; gap: 6px; } }

/* ======= ACTION BAR ======= */
.ap-actions {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ap-actions .spacer { flex: 1; }
.ap-step-count { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); }
.btn-apply { background: var(--c); border-color: var(--c); color: #07060a; }
.btn-apply:hover { background: #07060a; color: var(--c); border-color: var(--c); }
.btn-apply:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-apply:disabled:hover { background: var(--c); color: #07060a; }

/* ======= SUCCESS ======= */
.ap-success {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: apFade 500ms ease;
  margin: auto 0;
}
.ap-success-mark {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c);
  color: #07060a;
}
.ap-success h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.012em;
  padding-bottom: 0.04em;
}
.ap-success h2 em { font-family: var(--display); font-style: normal; font-weight: 800; text-transform: uppercase; color: var(--c); }
.ap-success p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.ap-success-roles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.ap-success-roles span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; padding: 6px 12px; border: 1px solid var(--line-strong); }

@media (max-width: 880px) {
  .ap-shell { grid-template-columns: 1fr; gap: 24px; }
  .ap-steps { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .ap-steps::-webkit-scrollbar { display: none; }
  .ap-step { flex: 1 0 auto; min-width: 150px; }
  .ap-step-hint { display: none; }
}

/* ======= COUNTRY SELECT (flags) — shared by Apply + Sponsor ======= */
.cs-field { position: relative; }
.cs-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  cursor: pointer; text-align: left;
}
.cs-trigger .cs-val { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.cs-trigger .cs-val,
.cs-opt-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-flag { font-size: 19px; line-height: 1; flex: none; }
.cs-ph { color: rgba(255,255,255,0.4); }
.cs-caret { flex: none; opacity: 0.6; transition: transform 200ms; }
.cs-field.is-open .cs-caret { transform: rotate(180deg); }
.cs-menu {
  /* This menu always paints on its OWN dark (#0c0a12) surface, so re-pin the
     ink/line tokens to a dark-surface palette right here. Without this, on a
     page or form running a LIGHT palette the options inherit a dark --ink and
     render black-on-black (invisible). One rule fixes every dropdown that
     reuses .cs-menu (country select + sponsorship opportunities). */
  --ink: #f4f1ea;
  --ink-soft: rgba(244,241,234,0.66);
  --line: rgba(255,255,255,0.10);
  --line-strong: rgba(255,255,255,0.20);
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0;
  background: #0c0a12; border: 1px solid var(--line-strong);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
  max-height: 322px; display: flex; flex-direction: column;
}
.cs-search {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid var(--line); color: var(--ink-soft); flex: none;
}
.cs-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--ink); font-family: var(--sans); font-size: 14px;
}
.cs-search input::placeholder { color: rgba(255,255,255,0.4); }
.cs-list { overflow-y: auto; padding: 6px; }
.cs-opt {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  font-family: var(--sans); font-size: 14px; text-align: left; transition: background 150ms;
}
.cs-opt-name { flex: 1; }
.cs-opt:hover { background: rgba(255,255,255,0.06); }
.cs-opt.is-on { background: rgba(255,255,255,0.05); }
.cs-check { color: var(--c, var(--hot-pink)); display: inline-flex; flex: none; }
.cs-empty { padding: 18px; text-align: center; color: var(--ink-soft); font-size: 13px; }
