/* V3.0 beta application — paper form over the ink homepage */
.apply-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.apply-modal.is-open { display: flex; }
body.apply-open { overflow: hidden; }

.apply-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 10, 0.78);
  backdrop-filter: blur(3px);
}

.apply-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 94vw);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f4efe3;
  color: #17150f;
  padding: 30px 32px 28px;
  border: 1px solid rgba(23, 21, 15, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.apply-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #6b655a;
  font-family: "Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 4px 6px;
}
.apply-close:hover { color: #e0432a; }

.apply-kicker {
  display: block;
  font-family: "Plex Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: #e0432a;
}
.apply-head h2 {
  margin: 12px 0 8px;
  font-family: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.apply-head h2 b { color: #e0432a; font-weight: 400; }
.apply-head p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: #6b655a;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.apply-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: "Plex Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #6b655a;
}
.apply-grid label.full { grid-column: 1 / -1; }
.apply-grid input,
.apply-grid select {
  width: 100%;
  border: 1px solid rgba(23, 21, 15, 0.24);
  border-radius: 0;
  background: #fbf8f0;
  color: #17150f;
  font-family: "Archivo", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  padding: 9px 10px;
  outline: none;
  appearance: none;
}
.apply-grid input:focus,
.apply-grid select:focus { border-color: #e0432a; box-shadow: 0 0 0 2px rgba(224, 67, 42, 0.12); }
.apply-grid input::placeholder { color: #a8a091; }

.apply-note {
  margin: 16px 0 8px;
  padding: 9px 11px;
  border-left: 3px solid #e0432a;
  background: rgba(224, 67, 42, 0.06);
  font-size: 11px;
  line-height: 1.7;
  color: #4b463d;
}
.apply-privacy {
  margin: 0 0 18px;
  font-family: "Plex Mono", ui-monospace, monospace;
  font-size: 7.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: #8a8273;
}

.apply-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.apply-submit {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 0;
  background: #e0432a;
  color: #fff;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.apply-submit:hover { background: #b3261e; }
.apply-submit:disabled { opacity: 0.62; cursor: wait; }
.apply-cancel {
  border: 1px solid rgba(23, 21, 15, 0.24);
  background: transparent;
  color: #17150f;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}
.apply-cancel:hover { border-color: #e0432a; color: #e0432a; }

.apply-result { text-align: center; padding: 12px 0 4px; }
.apply-result-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e0432a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}
.apply-result.is-error .apply-result-icon { background: #17150f; }
.apply-result h3 {
  margin: 0 0 8px;
  font-family: "Instrument Serif", "Noto Serif SC", Georgia, serif;
  font-weight: 400;
  font-size: 27px;
}
.apply-result p {
  max-width: 46ch;
  margin: 0 auto 20px;
  font-size: 12px;
  line-height: 1.9;
  color: #6b655a;
}
.apply-result .apply-actions { justify-content: center; }

@media (max-width: 640px) {
  .apply-modal { padding: 12px; }
  .apply-panel { padding: 26px 20px 22px; max-height: calc(100svh - 24px); }
  .apply-grid { grid-template-columns: 1fr; }
  .apply-grid label.full { grid-column: auto; }
  .apply-head h2 { font-size: 30px; }
}
