:root {
  --apply-line: rgba(245, 245, 247, 0.14);
  --apply-line-strong: rgba(245, 245, 247, 0.28);
  --apply-card: #0b0b0c;
  --apply-muted: rgba(245, 245, 247, 0.64);
  --apply-danger: #ff7a70;
}

.apply {
  background: #000;
  color: var(--white);
  padding: calc(var(--nav) + clamp(56px, 8vw, 96px)) 0 clamp(72px, 9vw, 112px);
}

.apply-wrap {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}

.apply-head h1 {
  max-width: 12em;
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.apply-lede {
  max-width: 36em;
  margin-top: 20px;
  color: var(--apply-muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.apply-notice {
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--apply-line);
  border-left: 3px solid var(--orange);
  border-radius: 16px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(246, 154, 56, 0.08), transparent 46%),
    var(--apply-card);
}

.apply-notice h2 {
  max-width: 30em;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.apply-notice ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: rgba(245, 245, 247, 0.8);
  font-size: 15px;
  line-height: 1.55;
}

.apply-notice li + li { margin-top: 12px; }

.apply-notice code {
  padding: 1px 5px;
  border: 1px solid rgba(245, 245, 247, 0.14);
  border-radius: 5px;
  background: rgba(245, 245, 247, 0.06);
  color: #fff;
  font-size: 0.92em;
}

.apply-form { margin-top: clamp(36px, 5vw, 52px); }

.apply-required {
  margin-bottom: 14px;
  color: var(--apply-muted);
  font-size: 13px;
  text-align: right;
}

.req { color: var(--orange); }

.apply-status {
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 122, 112, 0.42);
  border-radius: 12px;
  background: rgba(255, 122, 112, 0.09);
  color: #ffb9b3;
  font-size: 14px;
  line-height: 1.45;
}

.apply-status:focus { outline: 2px solid var(--orange); outline-offset: 3px; }

.apply-section {
  padding: clamp(32px, 5vw, 46px) 0;
  border-top: 1px solid var(--apply-line);
}

.apply-section-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px 16px;
  margin-bottom: 8px;
}

.apply-step {
  padding-top: 5px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
}

.apply-section-head h2 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.apply-section-head p {
  margin-top: 8px;
  color: var(--apply-muted);
  font-size: 14px;
  line-height: 1.45;
}

.field { margin-top: 26px; }
fieldset.field { min-width: 0; margin: 30px 0 0; padding: 0; border: 0; }

.field > label,
.field > legend {
  display: block;
  max-width: 66ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.field legend { margin-bottom: 8px; }

.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  height: 52px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid var(--apply-line);
  border-radius: 12px;
  background: #0a0a0b;
  color: #fff;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input[type="text"]:hover,
.field input[type="email"]:hover { border-color: var(--apply-line-strong); }

.field input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: none;
  border-color: var(--orange);
  background: #0d0d0e;
  box-shadow: 0 0 0 3px rgba(246, 154, 56, 0.18);
}

.field input[aria-invalid="true"] { border-color: var(--apply-danger); }

.field input::placeholder { color: #6e6e73; }

.field-subhead {
  margin-bottom: 6px;
  color: var(--dim-dark);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-note {
  max-width: 62ch;
  margin: 0 0 16px;
  color: var(--apply-muted);
  font-size: 14px;
  line-height: 1.5;
}

.help {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--dim-dark);
  font-size: 13px;
  line-height: 1.45;
}

.error {
  margin-top: 7px;
  color: var(--apply-danger);
  font-size: 13px;
  line-height: 1.4;
}

.choices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.choices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--apply-line);
  border-radius: 12px;
  background: #0a0a0b;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice:hover {
  border-color: var(--apply-line-strong);
  background: #0e0e10;
}

.choice.is-selected,
.choice:has(input:checked) {
  border-color: rgba(246, 154, 56, 0.7);
  background: rgba(246, 154, 56, 0.07);
}

.choice:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246, 154, 56, 0.16);
}

.choice > input[type="radio"],
.choice-main > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.choice-dot {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #6e6e73;
  border-radius: 50%;
  transition: border-color 0.15s ease;
}

.choice input:checked + .choice-dot { border-color: var(--orange); }

.choice input:checked + .choice-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--orange);
}

.choice-text {
  font-size: 15px;
  line-height: 1.42;
  color: rgba(245, 245, 247, 0.9);
}

.choice-other {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.choice-main {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.choice-other .other-input {
  flex: 1 1 220px;
  width: auto;
  min-width: 0;
  height: 40px;
  margin-top: 0;
  padding: 0 12px;
  font-size: 14px;
}

.dxdiag-how {
  margin: 4px 0 24px;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--orange);
}

.dxdiag-how h3 {
  margin-bottom: 10px;
  color: rgba(245, 245, 247, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dxdiag-how ol {
  margin: 0;
  padding-left: 20px;
  color: var(--apply-muted);
  font-size: 14px;
  line-height: 1.6;
}

.dxdiag-how li + li { margin-top: 4px; }
.dxdiag-how strong { color: #fff; font-weight: 500; }
.dxdiag-how .good { color: #30d158; }

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid rgba(245, 245, 247, 0.2);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(245, 245, 247, 0.08);
  color: #fff;
  font: 500 12px/1.5 var(--font);
  text-align: center;
}

.file-drop {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px dashed rgba(245, 245, 247, 0.24);
  border-radius: 12px;
  background: #0a0a0b;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.file-drop:hover {
  border-color: rgba(246, 154, 56, 0.6);
  background: #0d0d0e;
}

.file-drop:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246, 154, 56, 0.16);
}

.file-drop.has-file {
  border-style: solid;
  border-color: rgba(246, 154, 56, 0.55);
}

.file-input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: var(--orange);
}

.file-label {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

.file-meta {
  max-width: 52%;
  margin-left: auto;
  overflow: hidden;
  color: var(--dim-dark);
  font-size: 13px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-drop.has-file .file-meta { color: rgba(245, 245, 247, 0.82); }

.apply-submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  padding-top: 34px;
  border-top: 1px solid var(--apply-line);
}

.apply-submit {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.apply-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.apply-fine {
  flex: 1 1 300px;
  max-width: 52ch;
  color: var(--dim-dark);
  font-size: 13px;
  line-height: 1.45;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply-success {
  margin-top: clamp(36px, 5vw, 52px);
  padding: clamp(36px, 6vw, 56px);
  border: 1px solid var(--apply-line);
  border-radius: 20px;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(246, 154, 56, 0.12), transparent 55%),
    var(--apply-card);
  text-align: center;
}

.apply-success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--orange);
  color: #1d1d1f;
}

.apply-success-mark svg { width: 28px; height: 28px; }

.apply-success .eyebrow { justify-content: center; }

.apply-success h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.apply-success > p:not(.eyebrow):not(.apply-ref) {
  max-width: 46ch;
  margin: 16px auto 0;
  color: var(--apply-muted);
  font-size: 16px;
  line-height: 1.5;
}

.apply-ref {
  margin: 24px 0;
  color: var(--dim-dark);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.apply-ref strong {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 8px;
  border: 1px solid var(--apply-line);
  border-radius: 6px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.apply-success .pill { margin-top: 4px; }

[hidden] { display: none !important; }

@media (max-width: 640px) {
  .apply-wrap { width: calc(100% - 32px); }
  .apply { padding-top: calc(var(--nav) + 42px); }
  .apply-head h1 { font-size: clamp(38px, 11vw, 52px); }
  .apply-notice { border-radius: 14px; }
  .apply-notice ol { padding-left: 18px; font-size: 14px; }
  .apply-section-head { grid-template-columns: 32px minmax(0, 1fr); gap: 8px 12px; }
  .apply-step { padding-top: 3px; font-size: 11px; }
  .choices-grid { grid-template-columns: 1fr; }
  .choice { padding: 13px 14px; }
  .choice-text { font-size: 14px; }
  .file-meta { max-width: 42%; }
  .apply-submit { width: 100%; }
  .apply-fine { flex-basis: 100%; max-width: none; }
  .apply-success { padding: 32px 20px; }
}
