.wl-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: calc(var(--sn-h, 72px) + 36px) 24px 60px;
}

@media (max-width: 720px) {
  .wl-container {
    padding: calc(var(--sn-h, 64px) + 24px) 16px 48px;
  }
}

/* ---------- Queue position ---------- */

.wl-queue {
  display: flex;
  align-items: stretch;
  gap: 22px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border-radius: 12px;
  border: 1px solid rgba(232, 168, 97, 0.28);
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(232, 168, 97, 0.14), transparent 70%),
    rgba(20, 16, 14, 0.85);
}

.wl-queue[hidden] {
  display: none;
}

.wl-queue-pos {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(232, 168, 97, 0.1);
  border: 1px solid rgba(232, 168, 97, 0.25);
  text-align: center;
}

.wl-queue-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243, 197, 143, 0.8);
}

.wl-queue-pos strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(120deg, #f3c58f, #e8a861 50%, #d9793f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}

.wl-queue-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.wl-queue-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.wl-queue-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
}

.wl-form-alert {
  margin: 10px 0 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(200, 50, 50, 0.4);
  background: rgba(100, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

@media (max-width: 640px) {
  .wl-queue {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }
  .wl-queue-pos {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .wl-queue-pos strong {
    font-size: 30px;
  }
}

/* ---------- WL application form ---------- */

.wlf {
  max-width: 860px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.wlf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(245, 238, 231, 0.6);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}

.wlf-back:hover {
  color: #fff;
}

.wlf-hero {
  margin-bottom: 26px;
}

.wlf-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #e8a861;
}

.wlf-hero h1 {
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.15;
  color: #faf7f3;
}

.wlf-hero p {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(245, 238, 231, 0.68);
}

.wlf-tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.wlf-tips li {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(232, 168, 97, 0.12);
  background: rgba(16, 14, 13, 0.8);
}

.wlf-tip-icon {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(232, 168, 97, 0.1);
  border: 1px solid rgba(232, 168, 97, 0.22);
  color: #f3c58f;
}

.wlf-tips strong {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
  color: #faf7f3;
}

.wlf-tips span {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245, 238, 231, 0.6);
}

.wlf-tips a {
  color: #f3c58f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wlf-progress {
  position: sticky;
  top: calc(var(--sn-h, 72px) + 12px);
  z-index: 20;
  margin-bottom: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(232, 168, 97, 0.16);
  background: rgba(14, 12, 11, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.wlf-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wlf-progress-text {
  font-size: 14px;
  color: rgba(245, 238, 231, 0.7);
}

.wlf-progress-text strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.wlf-draft {
  font-size: 12px;
  color: rgba(245, 238, 231, 0.45);
  text-align: right;
}

.wlf-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.wlf-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9793f, #e8a861 60%, #f3c58f);
  transition: width .4s ease;
}

.wlf-progress.is-complete .wlf-progress-bar span {
  background: linear-gradient(90deg, #3fae68, #63c987);
}

.wlf-questions {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wlf-loading {
  padding: 40px 20px;
  text-align: center;
  color: rgba(245, 238, 231, 0.5);
}

.wlf-error {
  color: #ed7b7b;
}

.wlf-q {
  padding: 22px 22px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(14, 13, 12, 0.9);
  transition: border-color .25s, box-shadow .25s;
}

.wlf-q:focus-within {
  border-color: rgba(232, 168, 97, 0.4);
  box-shadow: 0 0 0 4px rgba(232, 168, 97, 0.06), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.wlf-q-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  cursor: text;
}

.wlf-q-num {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(232, 168, 97, 0.3);
  background: rgba(232, 168, 97, 0.1);
  color: #f3c58f;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .25s, border-color .25s, color .25s;
}

.wlf-q.is-done .wlf-q-num {
  background: rgba(99, 201, 135, 0.14);
  border-color: rgba(99, 201, 135, 0.45);
}

.wlf-q.is-done .wlf-q-num span {
  visibility: hidden;
}

.wlf-q.is-done .wlf-q-num::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  border-left: 2px solid #7bed9a;
  border-bottom: 2px solid #7bed9a;
  transform: translateY(-2px) rotate(-45deg);
}

.wlf-q-title {
  padding-top: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: #faf7f3;
}

.wlf .wlf-textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  border-radius: 10px !important;
  background: rgba(6, 6, 6, 0.75) !important;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
  transition: border-color .2s;
}

.wlf .wlf-textarea::placeholder {
  color: rgba(245, 238, 231, 0.3);
}

.wlf .wlf-textarea.is-missing {
  border-color: rgba(237, 123, 123, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(237, 123, 123, 0.1) !important;
}

.wlf-q-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(245, 238, 231, 0.42);
  font-variant-numeric: tabular-nums;
}

.wlf .wl-form-alert {
  margin-top: 20px;
}

.wlf-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(232, 168, 97, 0.16);
  background:
    radial-gradient(360px 120px at 100% 100%, rgba(232, 168, 97, 0.1), transparent 70%),
    rgba(14, 12, 11, 0.9);
}

.wlf-actions-note {
  margin: 0;
  max-width: 360px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(245, 238, 231, 0.55);
}

.wlf-actions-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.wlf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, border-color .2s, color .2s, filter .2s;
}

.wlf-btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(245, 238, 231, 0.8);
}

.wlf-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.wlf-btn-primary {
  border: 0;
  background: linear-gradient(135deg, #f3c58f 0%, #e8a861 45%, #d9793f 100%);
  color: #1b1009;
  box-shadow: 0 10px 26px rgba(232, 168, 97, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.wlf-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(232, 168, 97, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.wlf-btn:disabled {
  opacity: .6;
  cursor: wait;
}

@media (max-width: 720px) {
  .wlf-tips {
    grid-template-columns: 1fr;
  }

  .wlf-q {
    padding: 18px 16px 14px;
  }

  .wlf-q-title {
    font-size: 15px;
  }

  .wlf-progress {
    top: calc(var(--sn-h, 64px) + 8px);
    padding: 12px 14px;
  }

  .wlf-progress-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .wlf-draft {
    text-align: left;
  }

  .wlf-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
  }

  .wlf-actions-btns {
    flex-direction: column-reverse;
  }

  .wlf-btn {
    width: 100%;
  }
}
