.apply-page {
  padding: 3rem 6vw 5rem;
  max-width: 980px;
  margin: 0 auto;
}

.apply-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 0.95;
  margin-bottom: 0.8rem;
}

.apply-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 1.6rem;
}

.progress-wrap {
  margin-bottom: 1.4rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(212, 175, 55, 0.12), transparent 42%),
    var(--panel, #16181f);
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.progress-label,
.progress-percent {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.progress-percent {
  color: var(--muted);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.18);
  overflow: hidden;
  margin-bottom: 1.1rem;
}

.progress-fill {
  height: 100%;
  width: 33.333%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--gold));
  background-size: 200% 100%;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  animation: progressShine 2.2s linear infinite;
}

@keyframes progressShine {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin: 0;
  position: relative;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 64px;
  padding: 0.65rem 0.7rem;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: #0d0f14;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.step-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.step-copy strong {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

.step-copy em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steps li.done {
  border-color: rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.08);
  color: #c8f7d4;
}

.steps li.done .step-dot {
  background: linear-gradient(180deg, #7dffa8, #2ecc71);
  border-color: transparent;
  color: #06210d;
}

.steps li.done .step-dot::after {
  content: "✓";
  font-size: 0.9rem;
}

.steps li.done .step-dot {
  font-size: 0;
}

.steps li.current {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.12), 0 10px 28px rgba(0, 0, 0, 0.2);
  animation: stepPulse 1.6s ease-in-out infinite;
}

.steps li.current .step-dot {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  border-color: transparent;
  color: #1a1404;
  transform: scale(1.05);
}

.steps li.upcoming .step-dot {
  animation: upcomingPulse 1.8s ease-in-out infinite;
}

@keyframes stepPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes upcomingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}

.step-hint {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.45;
  min-height: 2.6em;
  animation: hintIn 0.45s ease;
}

.step-hint strong {
  color: var(--gold-2);
}

.step-hint.swap {
  animation: hintSwap 0.4s ease;
}

@keyframes hintIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hintSwap {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.apply-form {
  background: var(--panel, #16181f);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem;
  overflow: hidden;
}

.form-panel {
  display: none;
}

.form-panel.on {
  display: block;
  animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.panel-head {
  margin-bottom: 1.3rem;
}

.panel-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 0.95;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field-grid label,
.upload-card,
.check {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.field-grid .full { grid-column: 1 / -1; }

.field-grid input,
.field-grid select,
.field-grid textarea {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d0f14;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 500;
}

.field-grid textarea { min-height: 96px; resize: vertical; }

.declare {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.fees-card {
  margin: 1.2rem 0;
  padding: 1.1rem 1.15rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.16), rgba(212, 175, 55, 0.05));
}

.fees-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 0.7rem 0 0.75rem;
}

.fees-grid div {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.22);
}

.fees-grid strong {
  display: block;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.9rem;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.fees-grid span,
.fees-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.sign-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.8rem;
  margin: 0 0 1rem;
}

.sign-grid label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.sign-grid input {
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0d0f14;
  color: var(--ink);
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-weight: 500;
}

.terms-box {
  margin: 1.2rem 0 1.4rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
}

.terms-title {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.terms-lead {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.terms-list {
  margin: 0 0 1rem;
  padding: 0.85rem 0.85rem 0.85rem 1.4rem;
  max-height: 220px;
  overflow-y: auto;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.16);
  background: rgba(0, 0, 0, 0.22);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.5;
  -webkit-overflow-scrolling: touch;
}

.terms-list li + li {
  margin-top: 0.55rem;
}

.terms-list strong {
  color: var(--gold-2);
}

.terms-check {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(0, 0, 0, 0.18);
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.upload-card {
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: #0d0f14;
  cursor: pointer;
}

.upload-title { color: var(--gold-2); }
.upload-note { color: var(--muted); font-weight: 500; font-size: 0.8rem; }

.upload-card input[type="file"] {
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 500;
}

#photo-preview {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  margin-top: 0.7rem;
}

.file-name {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.check {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.check input { margin-top: 0.2rem; }

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.panel-actions .btn {
  min-width: min(100%, 220px);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.form-status.ok {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #c8f7d4;
}

.form-status.err {
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #ffd2ce;
}

.nav-current { color: var(--gold-2) !important; }

@media (max-width: 800px) {
  .field-grid,
  .media-grid,
  .fees-grid,
  .sign-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .steps li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    min-height: 0;
    padding: 0.7rem 0.35rem;
  }

  .step-copy em {
    display: none;
  }

  .step-copy strong {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .panel-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress-fill,
  .steps li.current,
  .steps li.upcoming .step-dot,
  .form-panel.on,
  .step-hint,
  .step-hint.swap {
    animation: none !important;
    transition: none !important;
  }
}
