/* MUNDP applications — landing grid + Individual / School / Student Officer forms.
   Extends theme.css: reuses --bg, --bg-subtle, --ink, --ink-2, --hairline, --accent.

   Layout model: application-form.js wraps the form card in `.apply-shell`
   (sticky progress rail + main column, section cards). Without JS the original
   single-card layout below still renders, so every rule is layered:
   base = no-JS fallback, `.apply-shell …` = enhanced. */

/* Application surfaces use the homepage brand navy (--accent-deep) as their
   accent: custom-property inheritance re-points every var(--accent) rule —
   including theme.css focus states — inside these sections. */
.apply-header,
.apply-form-section,
.apply-landing-section {
  --accent: var(--accent-deep);
}

/* ---------- landing: application type cards ---------- */
.apply-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .apply-landing-grid { grid-template-columns: 1fr; }
}

.apply-landing-section { background-color: #f6f6f8 !important; }

.apply-card-link {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 2.25rem 2rem;
  min-height: 220px;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.apply-card-link:hover {
  transform: translateY(-4px);
}

.apply-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  z-index: 0;
}

.apply-card-photo-individual::before { background-image: url("../img/apply-individual-bg.jpg"); }
.apply-card-photo-school::before { background-image: url("../img/apply-school-bg.jpg"); }
.apply-card-photo-officer::before { background-image: url("../img/apply-officer-bg.jpg"); }

.apply-card-title, .apply-card-desc, .apply-card-cta {
  position: relative;
  z-index: 1;
}

.apply-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}

.apply-card-desc {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
}

.apply-card-cta {
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.apply-card-cta::after {
  content: "\2192";
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.apply-card-link:hover .apply-card-cta::after { transform: translateX(4px); }

/* ---------- individual committee chooser ---------- */
.apply-committee-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 56rem;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .apply-committee-grid { grid-template-columns: 1fr; }
}

.apply-card-plain {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  min-height: 150px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.apply-card-plain:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 44px -28px rgba(10, 31, 77, 0.35);
}

.apply-card-abbr {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0;
}

/* ---------- closed applications ---------- */
.apply-card-link.is-closed {
  cursor: default;
}

.apply-card-link.is-closed:hover {
  transform: none;
}

.apply-card-link.is-closed::before {
  opacity: 0.08;
  filter: grayscale(1);
}

.apply-card-link.is-closed .apply-card-title {
  color: var(--ink-2);
}

.apply-card-cta.is-closed-cta {
  color: var(--ink-2);
  font-weight: 500;
  font-style: italic;
}

.apply-card-cta.is-closed-cta::after { content: none; }

/* ---------- page header ---------- */
.apply-header {
  padding-top: 140px;
  padding-bottom: 0.75rem;
  background-color: #f6f6f8 !important;
}

.apply-header-inner {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.apply-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0;
}

.apply-header-inner h1 { margin: 0; }

.apply-intro {
  color: var(--ink-2);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
  max-width: 38rem;
}

.apply-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2) !important;
  text-decoration: none !important;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
}

.apply-back-link::before {
  content: "\2190";
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.apply-back-link:hover { color: var(--ink) !important; }
.apply-back-link:hover::before { transform: translateX(-3px); }

/* ---------- language toggle (FR / EN slider) ---------- */
.lang-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  background: #ececf0;
  border: 1px solid var(--hairline-soft);
  border-radius: 999px;
}

.lang-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--bg);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.lang-toggle[data-active="en"] .lang-thumb { transform: translateX(100%); }

.lang-option {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  padding: 0.4rem 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.2s ease;
}

.lang-option.is-active { color: var(--ink); }

/* ---------- form section + shell ---------- */
.apply-form-section {
  padding-top: 2.25rem;
  padding-bottom: 2rem;
  background-color: #f6f6f8 !important;
}

/* no-JS fallback: the original single card */
.apply-card {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--hairline-soft);
  border-radius: 20px;
  padding: clamp(1.75rem, 5vw, 3rem);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 24px 60px -32px rgba(0, 0, 0, 0.16);
}

/* enhanced: sticky rail + main column */
.apply-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 46rem);
  justify-content: center;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
  width: 100%;
}

.apply-shell .apply-card {
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ---------- progress rail ---------- */
.apply-rail {
  position: sticky;
  top: 116px;
}

.apply-rail-card {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 1.35rem 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px -26px rgba(10, 31, 77, 0.18);
}


.apply-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline-soft);
}

.apply-rail-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.apply-rail-link:hover {
  background: var(--bg-subtle);
  color: var(--ink) !important;
}

.apply-rail-link.is-active {
  background: rgba(10, 31, 77, 0.07);
  color: var(--accent) !important;
}

.apply-rail-num {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e9e9ee;
  color: var(--ink-2);
  font-size: 0.66rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.apply-rail-link.is-active .apply-rail-num {
  background: rgba(10, 31, 77, 0.14);
  color: var(--accent);
}

.apply-rail-link.is-complete .apply-rail-num {
  background: var(--accent);
  color: #fff;
  font-size: 0;
}

.apply-rail-link.is-complete .apply-rail-num::after {
  content: "\2713";
  font-size: 0.66rem;
}

.apply-rail-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.apply-rail-foot {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hairline-soft);
}

.apply-draft-note {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 0.55rem;
  transition: color 0.2s ease;
}

.apply-draft-note.is-flash {
  color: #0f8a3d;
  font-weight: 600;
}

.apply-rail-help { margin-top: 0.85rem; }

.apply-rail-help-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.apply-rail-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.apply-rail-contact:hover { background: #14306e; }

/* after a successful submit the rail retires and the success card centers */
.apply-shell.is-complete {
  display: block;
  max-width: 46rem;
  margin: 0 auto;
}

.apply-shell.is-complete .apply-rail { display: none; }

/* rail collapses to a slim progress card above the form */
@media (max-width: 1079px) {
  .apply-shell {
    display: block;
    max-width: 46rem;
    margin: 0 auto;
  }
  /* The narrow layout only ever surfaced the completion bar here; with that
     gone the card would render empty, so drop the rail entirely. */
  .apply-rail { display: none; }
}

/* ---------- fieldsets ---------- */
/* no-JS fallback: hairline separators inside the single card */
.apply-fieldset {
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.apply-fieldset:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.apply-fieldset-label {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1.2rem;
}

/* enhanced: each fieldset is its own card */

.apply-shell .apply-fieldset {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 1.6rem clamp(1.25rem, 3vw, 2rem) 1.9rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px -26px rgba(10, 31, 77, 0.14);
  scroll-margin-top: 130px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.apply-shell .apply-fieldset:last-of-type { margin-bottom: 1.1rem; padding-bottom: 1.9rem; }

.apply-shell .apply-fieldset:focus-within {
  border-color: rgba(10, 31, 77, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 16px 40px -26px rgba(10, 31, 77, 0.28);
}

.apply-shell .apply-fieldset-label {
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline-soft);
}

/* one-time attention pulse when a submit attempt hits an invalid field */
@keyframes ap-attention {
  0%, 100% { border-color: var(--hairline); }
  35% { border-color: rgba(220, 38, 38, 0.55); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08); }
}

.apply-shell .apply-fieldset.apply-attention { animation: ap-attention 0.9s ease; }

/* ---------- rows + fields ---------- */
.apply-row {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.apply-row:last-child { margin-bottom: 0; }

.apply-row-2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 640px) {
  .apply-row-2 { grid-template-columns: 1fr; }
}

.apply-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.45rem;
  line-height: 1.45;
}

.apply-field .apply-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-2);
  font-weight: 400;
  margin-top: 0.4rem;
  line-height: 1.5;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.78rem 1rem;
  font-size: 1rem; /* >=16px: avoids iOS Safari auto-zoom-on-focus */
  background-color: #fcfcfd;
  border: 1px solid #d8d8de;
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.apply-field input:hover,
.apply-field select:hover,
.apply-field textarea:hover {
  border-color: #b9b9c2;
}

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  background-color: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 31, 77, 0.12);
  outline: none;
}

.apply-field textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.55;
}

.apply-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* unchosen required selects read as placeholders */
.apply-field select:invalid { color: #86868b; }
.apply-field select option { color: var(--ink); }

/* inline validation — only after the user has interacted */
.apply-field input:user-invalid,
.apply-field select:user-invalid,
.apply-field textarea:user-invalid {
  border-color: #dc2626;
  background-color: #fffbfb;
}

.apply-field input:user-invalid:focus,
.apply-field select:user-invalid:focus,
.apply-field textarea:user-invalid:focus {
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* ---------- honeypot (visually hidden, still reachable by bots) ---------- */
.apply-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- submit ---------- */
.apply-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px -14px rgba(10, 31, 77, 0.5);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.apply-submit:hover {
  background: #14306e;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 16px 32px -14px rgba(10, 31, 77, 0.55);
}

.apply-submit:active { background: #071638; transform: translateY(0); }

.apply-submit:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.apply-submit-text { display: inline-flex; align-items: center; gap: 0.5rem; }

.apply-submit-text::after {
  content: "\2192";
  transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.apply-submit:hover .apply-submit-text::after { transform: translateX(3px); }

.apply-submit.is-loading .apply-submit-text::after { content: none; }

@keyframes ap-spin { to { transform: rotate(360deg); } }

.apply-submit.is-loading::before {
  content: "";
  width: 17px;
  height: 17px;
  margin-right: 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ap-spin 0.7s linear infinite;
}

/* ---------- advisor recommendation-letter note ---------- */
.apply-advisor-note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: rgba(10, 31, 77, 0.06);
  border: 1px solid rgba(10, 31, 77, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
}

.apply-advisor-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

.apply-advisor-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.apply-advisor-note a:hover { text-decoration: underline; }

/* ---------- per-form disclaimer ---------- */
.apply-disclaimer {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- closed form notice (injected by form-status.js) ---------- */
.apply-closed {
  text-align: center;
  padding: 2rem 0.5rem;
}

.apply-closed-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 31, 77, 0.08);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
}

.apply-closed-icon svg { width: 28px; height: 28px; }

.apply-closed h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.apply-closed p {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ---------- success / error states ---------- */
.apply-success {
  text-align: center;
  padding: 1.5rem 0;
}

.apply-shell .apply-success {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 3rem 2rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 12px 32px -26px rgba(10, 31, 77, 0.14);
}

@keyframes ap-pop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes ap-draw {
  to { stroke-dashoffset: 0; }
}

.apply-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(10, 31, 77, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.35rem;
  animation: ap-pop 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.apply-success-icon svg { width: 30px; height: 30px; }

.apply-success-icon svg path {
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  animation: ap-draw 0.45s ease-out 0.25s forwards;
}

.apply-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.apply-success p {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.apply-again-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.6rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.apply-again-link:hover { background: #14306e; }

.apply-error {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-left: 3px solid #dc2626;
  color: #b3261e;
  font-size: 0.9rem;
}

.apply-error p { margin: 0; line-height: 1.5; }

/* ---------- word-limited textareas ---------- */
.apply-word-count {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  text-align: right;
  transition: color 0.2s ease;
}

.apply-word-count-warn { color: #b45309; font-weight: 600; }
.apply-word-count-limit { color: #b3261e; font-weight: 600; }

/* ---------- radio groups (Yes/No, consent) ---------- */
.apply-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.apply-radio-option {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding: 0.55rem 1.15rem 0.55rem 0.9rem;
  background: #fcfcfd;
  border: 1px solid #d8d8de;
  border-radius: 999px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.apply-radio-option:hover { border-color: #b9b9c2; }

.apply-radio-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(10, 31, 77, 0.07);
  box-shadow: 0 0 0 1px var(--accent) inset;
}

.apply-radio-option:has(input:focus-visible) {
  box-shadow: 0 0 0 4px rgba(10, 31, 77, 0.15);
}

.apply-radio-option input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ---------- committee/role preference rows ---------- */
.apply-pref-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}

.apply-pref-row:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .apply-pref-row { grid-template-columns: 1fr; }
}

.apply-pref-row select:disabled,
.apply-pref-row option:disabled { color: #b0b0b5; }

/* conditional sub-fields (ICJ role, Historical side) */
.apply-conditional {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  background: var(--bg-subtle);
  border-left: 3px solid rgba(10, 31, 77, 0.35);
  border-radius: 12px;
}

[hidden] { display: none !important; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .apply-card-link,
  .apply-submit,
  .lang-thumb { transition: none; }
  .apply-success-icon,
  .apply-success-icon svg path,
  .apply-shell .apply-fieldset.apply-attention { animation: none; }
  .apply-success-icon svg path { stroke-dashoffset: 0; }
}

/* ---------- discreet admin entry point (registration landing page only) ---------- */
.admin-entry-link {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 20;
}

/* ---- repeatable experience list (data-experience-list) ---- */
.apply-exp-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.apply-exp-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: exp-row-in 0.3s cubic-bezier(0.32, 0.72, 0.28, 1) both;
}

@keyframes exp-row-in {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .apply-exp-row { animation: none; }
}

.apply-exp-num {
  flex-shrink: 0;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 31, 77, 0.06);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.apply-exp-row input { flex: 1; }

.apply-exp-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #a1a1a6;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.apply-exp-remove:hover {
  background: rgba(179, 38, 30, 0.08);
  color: #b3261e;
}

.apply-exp-remove[hidden] { display: none; }

.apply-exp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.7rem;
}

.apply-exp-add {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  border-radius: 10px;
  border: 1px dashed rgba(10, 31, 77, 0.35);
  background: none;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.apply-exp-add:hover {
  background: rgba(10, 31, 77, 0.05);
  border-color: var(--accent);
}

.apply-exp-add[hidden] { display: none; }

.apply-exp-count {
  font-size: 0.78rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* .apply-field label sets display:block at equal-or-higher specificity, so
   this row must qualify with the field class to win and stay a flex row. */
.apply-field label.apply-exp-none {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.apply-field .apply-exp-none input[type="checkbox"] {
  width: 17px;
  height: 17px;
  padding: 0;
  margin: 0;
  flex: none;
  border-radius: 5px;
  accent-color: var(--accent);
  cursor: pointer;
}

.apply-exp-none span {
  font-size: 0.875rem;
  color: var(--ink-2);
  transition: color 0.15s ease;
}

.apply-exp-none:hover span { color: var(--ink); }

[data-experience-list].is-none .apply-exp-rows {
  opacity: 0.4;
  pointer-events: none;
}

[data-experience-list].is-none .apply-exp-none span {
  color: var(--accent);
  font-weight: 500;
}

