/* Mendfield Desk application form. Intentionally self-contained so the form
   remains styled when the active theme changes. */
.mf-desk-apply {
  --mf-desk-ink: #122d45;
  --mf-desk-blue: #0b6bb5;
  --mf-desk-blue-dark: #164b78;
  --mf-desk-muted: #607184;
  --mf-desk-line: #dce5ed;
  --mf-desk-pale: #f3f7fb;
  box-sizing: border-box;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.5vw, 48px) 0;
  color: var(--mf-desk-ink);
  font: inherit;
  line-height: 1.55;
}
.mf-desk-apply *,
.mf-desk-apply *::before,
.mf-desk-apply *::after { box-sizing: border-box; }
.mf-desk-apply .mf-work-header { max-width: 790px; margin: 0 0 26px; }
.mf-desk-apply .mf-work-kicker {
  margin: 0 0 10px;
  color: var(--mf-desk-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.mf-desk-apply .mf-work-header h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--mf-desk-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.mf-desk-apply .work-lead {
  max-width: 760px;
  margin: 0;
  color: var(--mf-desk-muted);
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}
.mf-desk-apply .work-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.mf-desk-apply .work-points article {
  min-width: 0;
  padding: 21px 22px;
  border: 1px solid var(--mf-desk-line);
  border-radius: 16px;
  background: var(--mf-desk-pale);
}
.mf-desk-apply .work-points article h2 {
  margin: 0 0 9px;
  color: var(--mf-desk-ink);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.mf-desk-apply .work-points article p {
  margin: 0;
  color: var(--mf-desk-muted);
  font-size: .92rem;
  line-height: 1.65;
}
.mf-desk-apply .form-note {
  margin: 0 0 18px;
  padding: 14px 17px;
  border: 1px solid #bddbc7;
  border-radius: 12px;
  background: #f0f8f2;
  color: #1f6337;
  font-size: .95rem;
}
.mf-desk-apply .form-note.is-error {
  border-color: #f0c7c2;
  background: #fff5f4;
  color: #8b2924;
}
.mf-desk-apply .work-form { display: grid; gap: 16px; margin: 0; }
.mf-desk-apply .work-block {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--mf-desk-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(18, 45, 69, .045);
}
.mf-desk-apply .work-block > h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 7px;
  color: var(--mf-desk-ink);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.3;
}
.mf-desk-apply .work-block > h2::before {
  display: block;
  width: 4px;
  height: 22px;
  flex: 0 0 4px;
  border-radius: 4px;
  background: var(--mf-desk-blue);
  content: "";
}
.mf-desk-apply .work-block > p:not(.mf-field-help) {
  margin: 7px 0 19px;
  color: var(--mf-desk-muted);
  font-size: .94rem;
  line-height: 1.65;
}
.mf-desk-apply .work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
  gap: 0 18px;
  align-items: start;
  margin-top: 19px;
}
.mf-desk-apply .mf-field { min-width: 0; margin: 0 0 18px; }
.mf-desk-apply .mf-field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 8px;
  margin: 0 0 7px;
  color: var(--mf-desk-ink);
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.4;
}
.mf-desk-apply .mf-required { color: var(--mf-desk-blue); font-size: .72rem; font-weight: 700; }
.mf-desk-apply .mf-field input:not([type="checkbox"]):not([type="radio"]),
.mf-desk-apply .mf-field select,
.mf-desk-apply .mf-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #cbd7e2;
  border-radius: 10px;
  outline: 0;
  background-color: #fff;
  color: var(--mf-desk-ink);
  box-shadow: none;
  font: inherit;
  font-size:  .96rem;
  line-height: 1.45;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.mf-desk-apply .mf-field textarea { min-height: 118px; resize: vertical; }
.mf-desk-apply .mf-field input::placeholder,
.mf-desk-apply .mf-field textarea::placeholder { color: #7b8b9a; opacity: 1; }
.mf-desk-apply .mf-field input:focus,
.mf-desk-apply .mf-field select:focus,
.mf-desk-apply .mf-field textarea:focus {
  border-color: var(--mf-desk-blue);
  box-shadow: 0 0 0 3px rgba(11, 107, 181, .13);
}
.mf-desk-apply .mf-field input:disabled,
.mf-desk-apply .mf-field select:disabled,
.mf-desk-apply .mf-field textarea:disabled { background: #f4f6f8; cursor: not-allowed; }
.mf-desk-apply .mf-field-help { margin: 6px 0 0; color: var(--mf-desk-muted); font-size: .81rem; line-height: 1.5; }
.mf-desk-apply .mf-conditional-field[hidden] { display: none !important; }
.mf-desk-apply .work-block--submit { padding-top: 24px; }
.mf-desk-apply .work-agree {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 18px;
  padding: 15px 16px;
  border: 1px solid var(--mf-desk-line);
  border-radius: 12px;
  background: var(--mf-desk-pale);
  color: #344b60;
  font-size: .91rem;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
}
.mf-desk-apply .work-agree input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 2px 0 0;
  accent-color: var(--mf-desk-blue);
}
.mf-desk-apply .mf-form-privacy { margin: 0 0 14px; color: var(--mf-desk-muted); font-size: .82rem; }
.mf-desk-apply .mf-apply-submit,
.mf-desk-apply button[type="submit"] {
  display: inline-flex;
  width: auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--mf-desk-blue);
  border-radius: 10px;
  background: var(--mf-desk-blue);
  color: #fff;
  box-shadow: 0 7px 16px rgba(11, 107, 181, .16);
  font: inherit;
  font-size: .96rem;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.mf-desk-apply .mf-apply-submit:hover,
.mf-desk-apply button[type="submit"]:hover { transform: translateY(-1px); background: var(--mf-desk-blue-dark); border-color: var(--mf-desk-blue-dark); box-shadow: 0 10px 22px rgba(11, 107, 181, .20); }
.mf-desk-apply .mf-apply-submit:focus-visible,
.mf-desk-apply button[type="submit"]:focus-visible { outline: 3px solid rgba(11, 107, 181, .3); outline-offset: 3px; }
.mf-desk-apply .mf-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.mf-desk-apply .mf-math-check { margin: 0 0 16px; }
@media (max-width: 860px) {
  .mf-desk-apply .work-points { grid-template-columns: 1fr; gap: 10px; }
  .mf-desk-apply .work-points article { padding: 18px 19px; }
}
@media (max-width: 560px) {
  .mf-desk-apply { padding-top: 20px; padding-bottom: 28px; }
  .mf-desk-apply .work-block { padding: 19px 16px; border-radius: 14px; }
  .mf-desk-apply .work-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .mf-desk-apply .mf-field { margin-bottom: 16px; }
  .mf-desk-apply .mf-apply-submit,
  .mf-desk-apply button[type="submit"] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-desk-apply *, .mf-desk-apply *::before, .mf-desk-apply *::after { transition: none !important; }
}
