.apply-main {
  padding: 3.25rem 0 4.5rem;
}

.apply-main h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.apply-card {
  max-width: 40rem;
  margin-top: 1.75rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.apply-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.apply-field span,
.apply-choice-label {
  font-weight: 600;
}

.apply-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.apply-field input,
.apply-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.apply-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.apply-field input:focus,
.apply-field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.apply-choice {
  display: flex;
  gap: 1.25rem;
  margin: 0.15rem 0 0.35rem;
}

.apply-choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.apply-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.apply-dns {
  margin: 0 0 1rem;
}

.apply-dns div {
  margin: 0 0 0.75rem;
}

.apply-dns dt {
  font-weight: 600;
}

.apply-dns dd {
  margin: 0.2rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

#applyKeyValue {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.apply-error {
  margin: 0 0 1rem;
  color: var(--danger);
}

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

.apply-main > .wrap { max-width: 880px; }
.apply-intro { max-width: 42rem; }
.apply-intro .eyebrow { padding: 0; background: transparent; border: 0; color: var(--accent); }
.apply-intro .lede { margin-bottom: 0.75rem; }
.apply-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 2rem 0 0; list-style: none; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt); }
.apply-progress li { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); padding: 1rem; font-size: 0.92rem; font-weight: 600; }
.apply-progress li[aria-current] { color: var(--text); background: var(--surface-2); border-radius: 11px; }
.apply-progress li > span { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; flex: none; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); }
.apply-card { max-width: none; margin-top: 1rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
#applyForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem 1.5rem; }
.apply-form-note, .apply-section-heading, .apply-actions, .apply-field:has(textarea), .apply-field:has(#applyReferredBy), fieldset.apply-field { grid-column: 1 / -1; }
.apply-form-note { color: var(--muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.apply-section-heading { margin: 1rem 0; font-size: 1.25rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); }
.apply-hint { font-weight: 400 !important; font-size: 0.84rem; line-height: 1.55; }
.apply-field textarea { min-height: 6rem; }
#applyUseCase { min-height: 8rem; }
.apply-field input:not([type="radio"]), .apply-field textarea { min-height: 48px; }
.apply-field input[type="radio"] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent-strong); }
fieldset.apply-field { padding: 0; border: 0; }
.apply-choice label { min-height: 44px; }
.apply-actions { flex-wrap: wrap; gap: 0.65rem; margin-top: 1rem; }
.apply-error { padding: 0.8rem 1rem; border: 1px solid var(--danger-border); border-radius: 10px; background: var(--danger-surface); }
#codeForm, #dnsPanel, #applyDone { max-width: 40rem; margin-inline: auto; }
#codeForm > p, #dnsPanel > p, #applyDone > p { margin-bottom: 1rem; }
#applyCode { max-width: 18rem; font-size: 1.5rem; letter-spacing: 0.25em; }
.apply-dns { border: 1px solid var(--border); padding: 1.25rem; border-radius: 10px; background: var(--bg); }
#applyKeyValue { padding: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; user-select: all; }
@media (max-width: 600px) {
  .apply-main { padding-top: 2rem; }
  #applyForm { grid-template-columns: minmax(0, 1fr); }
  .apply-progress li { gap: 0.4rem; padding: 0.8rem 0.5rem; font-size: 0.78rem; }
  .apply-progress li > span { width: 1.4rem; height: 1.4rem; }
  .apply-actions .btn { flex: 1 1 auto; }
}
