/* Форма подработки по макету клиента от 10.09.
   №16 и №18 (13.09): окно компактнее (до 760px) и в цветах выбранной схемы —
   шапка акцентом, активная вакансия цветом кнопок схемы, кнопка отклика графитом. */
.job-dialog .modal__box {
  width: min(760px, 100%);
  border: 1px solid var(--k-line, #8A8782);
  border-radius: 28px;
  background: #fff;
  color: #161616;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.job-dialog .modal__head {
  position: relative;
  padding: 12px 68px 10px;
  min-height: 64px;
  border-radius: 0;
  background: var(--k-accent);
  color: var(--k-on, #fff);
  justify-content: center;
  text-align: center;
}
.job-dialog .modal__head h2 {
  margin: 0;
  color: var(--k-brand-ink, var(--k-on, #fff));
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}
/* на голубой и розовой белый заголовок не читается — берём цвет текста схемы */
:is([data-accent="3"], [data-accent="5"]) .job-dialog .modal__head h2 { color: var(--k-on); }
.job-dialog .modal__head h2 span {
  display: block;
  margin-top: 2px;
  color: var(--k-on, #fff);
  font-size: 14px;
  font-weight: 400;
}
.job-dialog .modal__head [data-close] {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: #333;
}
.job-dialog .modal__head [data-close]:hover { background: #fff; }
.job-dialog .modal__body { padding: 18px 24px 0; }
.job-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.job-tabs button {
  border: 0;
  border-radius: 22px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--k-dark, #404040);
  color: #fff;
  font-size: 14.5px;
  line-height: 1.25;
  cursor: pointer;
  transition: background 200ms var(--e), color 200ms var(--e);
}
.job-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 0 0 2px var(--k-on, #fff);
}
.job-tabs button:disabled { opacity: .55; cursor: default; }
.job-tabs button:focus-visible, .job-dialog button:focus-visible { outline: 3px solid var(--k-dark, #404040); outline-offset: 3px; }
.job-form {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  margin: 24px 0 0;
}
.job-form > label { color: #111; font-size: 14px; line-height: 1.3; }
.job-form input:not([type="file"]), .job-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--k-line, #8A8782);
  border-radius: 7px;
  background: #fff;
  color: #161616;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}
.job-form input:not([type="file"]):focus-visible, .job-form textarea:focus-visible {
  outline: 2px solid var(--k-dark, #404040);
  outline-offset: 1px;
  border-color: var(--k-dark, #404040);
}
.job-form input::placeholder, .job-form textarea::placeholder { color: #8a8a8a; opacity: 1; }
.job-form textarea { min-height: 110px; resize: vertical; }
.job-form [for="jbC"] { align-self: start; padding-top: 11px; }
.job-file-info { grid-column: 2; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #666; overflow-wrap: anywhere; margin-top: -6px; }
.job-file-info button { border: 0; background: none; color: #12637d; text-decoration: underline; cursor: pointer; min-height: 32px; }
.job-file-info button[hidden] { display: none; }
.job-error { grid-column: 1 / -1; color: #ae2525; font-size: 13px; }
.job-error:empty { display: none; }
.job-dialog .modal__foot { border: 0; gap: 12px; padding: 16px 24px 20px; }
.job-dialog .modal__foot > [data-close] { display: none; }
.job-dialog .modal__foot .btn {
  min-width: 170px;
  min-height: 44px;
  border: 1px solid var(--k-dark, #404040);
  border-radius: 22px;
  background: var(--k-dark, #404040);
  color: #fff;
  font-size: 15px;
  font-weight: 400;
}
.job-dialog .modal__foot [data-extra] { background: #fff; color: #303030; border-color: var(--k-line, #8A8782); }
.job-dialog .modal__foot button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 800px) {
  .job-dialog .modal__box { border-radius: 22px; }
  .job-form { grid-template-columns: 130px minmax(0, 1fr); gap: 12px 14px; }
  .job-dialog .modal__foot { gap: 10px; padding: 16px 20px 18px; }
  .job-dialog .modal__foot .btn { min-width: 0; flex: 1; }
}
@media (max-width: 520px) {
  .job-dialog .modal__head { padding: 12px 64px 10px 16px; }
  .job-dialog .modal__head h2 { font-size: 18px; }
  .job-dialog .modal__head h2 span { font-size: 13px; }
  .job-dialog .modal__head [data-close] { right: 10px; }
  .job-dialog .modal__body { padding: 14px 16px 0; }
  .job-tabs { grid-template-columns: 1fr; gap: 8px; }
  .job-form { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 18px; }
  .job-form > label:not(:first-child) { margin-top: 6px; }
  .job-form [for="jbC"] { padding-top: 0; }
  .job-form textarea { min-height: 100px; }
  .job-file-info { grid-column: 1; margin-top: 2px; }
  .job-dialog .modal__foot { gap: 8px; padding: 14px 16px; }
  .job-dialog .modal__foot .btn { padding: 8px; }
}
