/* =====================================================================
   Application and request forms: design-partner.html, signup.html, and the
   form on contact.html. Two columns on wide screens: a short intro with a
   two-tone title on the left, the form in a raised card on the right.
   Fields sit in a 12-column grid inside the card, grouped by hairlines,
   with the submit button in a footer strip.
   ===================================================================== */

.apply {
  max-width: calc(var(--content-w) + 2 * 24px);
  margin: 0 auto;
  padding: 72px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 32px;
}
.apply-intro, .apply-card, .apply-direct { grid-column: 1 / -1; }

.apply-intro {
  display: flex; flex-direction: column; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.apply-title {
  font-size: clamp(2.25rem, 4.2vw, 3.125rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.02em;
  margin: 0;
}
.apply-title span { display: block; }
.apply-title .muted { color: var(--text-muted); }
.apply-lead {
  color: var(--text-muted);
  font-size: 1.25rem; line-height: 1.5;
  max-width: 26rem;
  margin: 18px 0 0;
}
.apply-checks { list-style: none; margin: 22px 0 32px; padding: 0; display: grid; gap: 6px; }
.apply-checks li {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--text-muted); font-size: 1.0625rem;
}
.apply-checks li::before {
  content: ""; flex: none; width: 12px; height: 12px; transform: translateY(1px);
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5 4.5 9.5 10.5 2.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 6.5 4.5 9.5 10.5 2.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.apply-direct { color: var(--text-dim); font-size: 1.0625rem; margin: 0; }
.apply-direct a { color: var(--accent); }
/* The intro carries the "contact us" line on wide screens; on narrow ones it
   moves below the card so the form comes first after the intro. */
.apply-intro .apply-direct { display: none; }

/* ---- the card ---------------------------------------------------------- */
.apply-card {
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .apply-card { background: var(--bg-elev-2); }
.apply-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 16px;
  padding: 24px;
}
.apply-fields > * { grid-column: 1 / -1; min-width: 0; }
.apply-rule { border: 0; border-top: 1px solid var(--border); margin: 0; }

.apply-field > label,
.apply-group > legend {
  display: block; padding: 0;
  color: var(--text-muted); font-size: 0.975rem;
  margin: 0 0 8px;
}
.apply-field .opt { color: var(--text-dim); }
.apply-card input:not([type="radio"]):not([type="checkbox"]),
.apply-card textarea {
  border-radius: 6px; padding: 10px 12px;
  background: var(--bg);
}
.apply-card textarea { min-height: 104px; }
.apply-card input::placeholder, .apply-card textarea::placeholder { color: var(--text-dim); }

.apply-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.apply-choices { display: grid; gap: 8px; padding-top: 2px; }
.apply-choice {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.975rem; cursor: pointer;
}
.apply-choice input {
  width: 16px; height: 16px; margin: 0; flex: none;
  accent-color: var(--accent); cursor: pointer;
}
.apply-choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.apply-hint { color: var(--text-dim); font-size: 0.9rem; margin: 10px 0 0; }
.apply-hint a { color: var(--accent); }

.apply-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.apply-foot p { color: var(--text-dim); font-size: 0.9rem; margin: 0; flex: 1 1 260px; }
.apply-foot .btn { height: 44px; }
.apply-card #formNotice:empty { display: none; }
.apply-card #formNotice { padding: 0 24px; }

/* Spam trap: a real person never sees or fills this in. */
.apply-trap { position: absolute; left: -9999px; }

/* ---- how a seat works ---------------------------------------------------- */
.apply-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
  counter-reset: step;
}
.apply-steps li {
  counter-increment: step;
  border-top: 1px solid var(--border);
  padding: 20px 0 24px;
}
.apply-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: 0.85rem; color: var(--accent);
  margin-bottom: 10px;
}
.apply-steps h3 { font-size: 1.125rem; font-weight: 500; margin: 0 0 6px; }
.apply-steps p { color: var(--text-muted); margin: 0; font-size: 0.975rem; line-height: 1.55; }

@media (max-width: 799px) {
  .apply { padding-top: 48px; }
  .apply-foot .btn { width: 100%; }
}
@media (min-width: 800px) {
  .apply-fields { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .apply-fields .half { grid-column: span 6; }
  .apply-steps { grid-template-columns: repeat(4, 1fr); gap: 0 24px; }
}
@media (min-width: 1100px) {
  .apply { padding-top: 96px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .apply-intro { grid-column: 1 / span 6; }
  .apply-card { grid-column: 7 / span 6; align-self: start; }
  .apply-intro .apply-direct { display: block; }
  .apply > .apply-direct { display: none; }
}
