/* Match Contact us: white card, 8px inputs, bold labels and purple pill button. */
body.career-modal-open { overflow: hidden; }
.career-dialog { position: fixed; inset: 0; margin: auto; width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 12px; background: #fff; color: #333; box-shadow: 0 24px 80px #251a5433; overflow-y: auto; overscroll-behavior: contain; }
.career-dialog::backdrop { background: rgb(37 26 84 / 65%); }
.career-dialog-inner { position: relative; padding: 32px; }
.career-dialog h2 { margin: 0 48px 8px 0; font-size: 28px; font-weight: 700; color: #251a54; }
.career-position { margin: 0 40px 12px 0; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.career-help { font-size: 13px; color: #666; margin: 0 0 24px; }
.career-close { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; background: #f3f3ff; font-size: 28px; line-height: 1; color: #251a54; }
.career-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.career-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.career-field[hidden], .career-dialog form[hidden] { display: none; }
.career-field label { font-size: 14px; font-weight: 700; }
.career-field label > span:not(#career-detail-label) { color: #b42318; }
.career-field input, .career-field select { width: 100%; height: 40px; border: 1px solid rgb(51 51 51 / 20%); border-radius: 8px; padding: 0 10px; background: #fff; font-size: 16px; }
.career-field input[type="file"] { height: auto; min-height: 48px; padding: 8px; font-size: 14px; }
.career-field input::file-selector-button { border: 0; border-radius: 5px; background: #f3f3ff; color: #5025d7; padding: 6px 10px; margin-right: 10px; cursor: pointer; }
.career-field small { font-size: 12px; color: #666; }
.career-full { grid-column: 1 / -1; }
.career-privacy { margin: 20px 0 0; }
.career-privacy a { color: #5025d7; text-decoration: underline; }
.career-submit { display: block; margin: 28px auto 0; padding: 10px 24px; border-radius: 9999px; background: #5025d7; color: #fff; font-size: 16px; font-weight: 700; }
.career-submit:hover { background: #3e1cac; }
.career-submit:disabled { opacity: .65; cursor: wait; }
.career-dialog :is(input, select, button, a):focus-visible { outline: 2px solid #5025d7; outline-offset: 3px; }
.career-status { margin-top: 20px; color: #146b41; font-size: 14px; }
.career-status:empty { display: none; }
.career-status.is-error { color: #b42318; }
.career-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 600px) { .career-dialog-inner { padding: 24px 20px; } .career-fields { grid-template-columns: 1fr; gap: 16px; } .career-dialog h2 { font-size: 24px; } }

/* Keep the native dialog open until the exit animation finishes. */
.career-dialog[open] { animation: career-dialog-in 300ms cubic-bezier(.16, 1, .3, 1) both; }
.career-dialog[open]::backdrop { animation: career-backdrop-in 300ms ease-out both; }
.career-dialog[open].is-closing { animation: career-dialog-out 300ms ease-in both; }
.career-dialog[open].is-closing::backdrop { animation: career-backdrop-out 300ms ease-in both; }
@keyframes career-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes career-dialog-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes career-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes career-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .career-dialog[open], .career-dialog[open]::backdrop { animation: none; }
}
