/* Apply Now button states on job pages. */
.nv-apply { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.nv-single-aside .nv-apply { display: flex; width: 100%; }
.nv-apply-status { margin: 0; max-width: 520px; font-size: 13.5px; color: var(--nv-muted); }
.nv-apply.is-highlighted .nv-apply-button:not([disabled]):not(.nv-btn--applied) { box-shadow: 0 0 0 4px rgba(255, 202, 2, .55), -4px -4px 10px rgba(255, 255, 255, .85), 6px 8px 16px rgba(3, 44, 149, .28); animation: nv-apply-pulse 1.8s ease-in-out 3; }
@keyframes nv-apply-pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 202, 2, .25), 6px 8px 16px rgba(3, 44, 149, .28); } }
.nv-apply-button svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .nv-apply { display: flex; width: 100%; } .nv-apply .nv-btn { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .nv-apply.is-highlighted .nv-apply-button { animation: none; } }

/* Stable layout: the Apply button keeps its size and place in every state (Apply Now, Submitting…,
   Application received, Applied). The status note sits under it without moving it. */
.nv-apply-button { min-width: 16.5em; justify-content: center; white-space: nowrap; }
.nv-single-actions { align-items: flex-start !important; }
.nv-single-actions .nv-posted-date { display: inline-flex; align-items: center; min-height: 52px; }
.nv-apply { max-width: 100%; }
/* 2.1.2: the status note is for screen readers only; people see it in the popup after applying. */
.nv-apply-status { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
.nv-apply { position: relative; }
@media (max-width: 560px) {
  .nv-apply-button { min-width: 0; width: 100%; white-space: normal; }
  .nv-single-actions .nv-posted-date { min-height: 0; }
}

/* Applied ✓ — a calm "done" state, same size as Apply Now; click opens the status popup. */
.nv-apply-button.nv-btn--applied, .nv-apply-button.nv-btn--applied:hover, .nv-apply-button.nv-btn--applied:focus { background: #eaf6ef; color: #13703f !important; border: 1px solid #bfe3cd; box-shadow: 0 6px 16px rgba(19, 112, 63, .16) !important; animation: none !important; }
.nv-apply-button.nv-btn--applied:hover { background: #def2e6; }
.nv-apply-button.nv-btn--applied svg { width: 19px; height: 19px; stroke-width: 2.6; }

/* Status popup after applying */
.nv-sent__dialog { width: min(100%, 440px); padding: 34px 30px 28px; text-align: center; }
.nv-sent__badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ffca02; color: #0b1320; box-shadow: 0 0 0 8px #fff6d1; margin: 4px auto 18px; animation: nv-sent-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
.nv-sent__badge svg { width: 30px; height: 30px; stroke-width: 2.8; }
.nv-sent__title { margin: 0; font-size: 24px; letter-spacing: -.02em; color: var(--nv-ink); }
.nv-sent__job { margin: 6px 0 0; font-weight: 600; color: var(--nv-blue); }
.nv-sent__note { margin: 14px auto 0; max-width: 34ch; color: var(--nv-muted); font-size: 15px; line-height: 1.55; }
.nv-sent__ref { margin: 14px 0 0; font-size: 13.5px; color: var(--nv-muted); }
.nv-sent__ref strong { color: var(--nv-ink); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.nv-sent__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.nv-sent__actions .nv-btn { min-width: 9.5em; justify-content: center; }
@keyframes nv-sent-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .nv-sent__badge { animation: none; } }
@media (max-width: 560px) { .nv-sent__actions { flex-direction: column-reverse; } .nv-sent__actions .nv-btn { width: 100%; } }
