.apply {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--glass-solid);
}

.apply::backdrop {
  background: rgb(8 12 18 / 0.7);
  backdrop-filter: blur(4px);
}

.apply-form {
  display: grid;
  gap: 16px;
  padding: 24px 28px 20px;
}

.apply-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apply-head h2 {
  font-size: 1.5rem;
}

.close {
  display: inline-flex;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.close:hover {
  color: var(--ink);
}

.close svg {
  width: 22px;
  height: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label,
.field legend {
  font-weight: 600;
  font-size: 0.95rem;
}

.optional,
.hint {
  color: var(--muted);
  font-weight: 400;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
}

.field input[type="text"],
.field input[type="email"] {
  font: inherit;
  color: var(--ink);
  background: rgb(20 27 39 / 0.6);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 10px;
  min-height: 46px;
  padding: 0 14px;
  width: 100%;
}

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

.engines {
  border: 0;
  padding: 0;
  margin: 0;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.engines legend {
  padding: 0;
  margin-bottom: 6px;
}

.engines label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  font-weight: 400;
}

.engines input {
  width: 18px;
  height: 18px;
  accent-color: var(--mint);
}

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

.apply-form .cta {
  justify-self: start;
}

.form-status {
  margin: 0;
  min-height: 1.6em;
}

.form-status.ok {
  color: var(--mint);
}

.form-status.err {
  color: var(--err);
}
