/* ===== Apply page — multi-step form ===== */

.apply-body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(245,197,66,0.10), transparent 60%),
    var(--bg);
}

.apply-main {
  padding: 40px 0 80px;
}

/* HERO */
.apply-hero {
  text-align: center;
  margin-bottom: 50px;
}
.apply-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.apply-hero__sub {
  color: var(--text-mute);
  font-size: clamp(15px, 1.4vw, 17px);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.apply-hero__trust {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
}
.trust-item__icon { font-size: 16px; }
.trust-item strong {
  display: block;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}
.trust-item span {
  display: block;
  color: var(--text-dim);
  font-size: 11.5px;
}

/* PROGRESS */
.form-progress {
  margin: 0 0 36px;
}
.form-progress__bar {
  height: 4px;
  background: var(--bg-card);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}
.form-progress__fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  border-radius: 999px;
  transition: width 0.4s var(--ease);
  box-shadow: 0 0 12px var(--gold-glow);
}
.form-progress__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.form-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.form-progress__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.form-progress__step label {
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: default;
}
.form-progress__step.is-active span {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1206;
  box-shadow: 0 0 12px var(--gold-glow);
}
.form-progress__step.is-active label {
  color: var(--text);
}
.form-progress__step.is-done span {
  background: rgba(245,197,66,0.2);
  border-color: rgba(245,197,66,0.5);
  color: var(--gold);
}
@media (max-width: 640px) {
  .form-progress__step label { display: none; }
}

/* FORM */
.apply-form {
  position: relative;
}
.step {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-card);
  animation: fadein 0.35s var(--ease);
}
.step.is-active { display: block; }
@keyframes fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.step__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.step__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}
.step__lede {
  color: var(--text-mute);
  margin: 0;
  font-size: 14.5px;
}

.field {
  margin-bottom: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}
.field-row > .field {
  margin-bottom: 0;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.field .req {
  color: var(--red);
  margin-left: 2px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.15);
}
.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.55;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%23a8b0bb' d='M6 8.5 1.5 4h9z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  padding-right: 38px;
}
.field input.is-error,
.field select.is-error,
.field textarea.is-error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255,77,77,0.12);
}

/* Chip groups (radio / checkbox) */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  color: var(--text-mute);
  font-weight: 500;
  transition: all 0.18s var(--ease);
  user-select: none;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  pointer-events: none;
}
.chip:hover {
  border-color: rgba(245, 197, 66, 0.5);
  color: var(--text);
  background: var(--bg-3);
}
.chip:has(input:checked) {
  background: linear-gradient(180deg, rgba(245,197,66,0.22), rgba(245,197,66,0.12));
  border-color: var(--gold);
  color: var(--gold-2);
  box-shadow: 0 4px 14px rgba(245,197,66,0.18);
  font-weight: 600;
}
.chip-group.is-error .chip {
  border-color: rgba(255, 77, 77, 0.35);
}

/* Checkbox row (terms) */
.checkbox-row {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400 !important;
  font-size: 14px !important;
  color: var(--text-mute) !important;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 0 !important;
  line-height: 1.55;
}
.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.checkbox-row strong { color: var(--text); }

/* Step navigation */
.step__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  gap: 14px;
}
.step__nav > span {
  /* placeholder for justify-content: space-between on step 1 */
  display: inline-block;
}

/* Commit summary */
.commit-summary {
  margin: 28px 0 12px;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(245,197,66,0.08), rgba(245,197,66,0.02));
  border: 1px solid rgba(245,197,66,0.3);
  border-radius: var(--r-md);
}
.commit-summary h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--gold-2);
}
.commit-summary ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-mute);
  font-size: 14px;
  line-height: 1.65;
}
.commit-summary ol li { margin-bottom: 6px; }

/* SUCCESS state */
.success {
  text-align: center;
  background: linear-gradient(180deg, #1a1308, var(--bg-card));
  border: 1px solid rgba(245,197,66,0.4);
  border-radius: var(--r-xl);
  padding: clamp(36px, 5vw, 60px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 80px var(--gold-soft);
  animation: fadein 0.5s var(--ease);
}
.success__icon {
  font-size: 56px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px var(--gold-glow));
}
.success__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.success__lede {
  color: var(--text-mute);
  font-size: 16px;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.success__steps {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: left;
}
.success__step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.success__step > span {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1206;
  font-family: var(--font-display);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.success__step > div {
  font-size: 14px;
  color: var(--text-mute);
  line-height: 1.55;
}
.success__step strong {
  display: block;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

/* Loading state on submit */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
  position: relative;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: #1a1206;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Field error message */
.field-error {
  display: block;
  color: #ff8a8a;
  font-size: 12.5px;
  margin-top: 6px;
  font-weight: 500;
}
