/*
 * =======================================================
 * Career Form / Job Application
 * =======================================================
 */

/* Базовая секция */
.job-application-section {
  padding: 56px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 45%), radial-gradient(circle at bottom right, rgb(72 130 236 / 0%), transparent 50%), #0b0b0f40;
  position: relative;
  overflow: hidden;
}

.job-application-section::before {
  /* лёгкий светящийся ореол сверху */
  content: "";
  position: absolute;
  inset: -120px -40px auto;
  background: radial-gradient(circle at top center, rgba(59,130,246,0.18), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.job-container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ====== ШАПКА СЕКЦИИ ====== */

.job-header {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 32px;
}

.job-title-main {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 800;
  text-shadow: 0 0 24px rgba(29, 78, 216, .20);
}

.job-subtitle-blurb {
  color: #cbd5e1;
  margin: 0 0 18px;
  max-width: 640px;
}

.job-header-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(15,23,42,0.8);
  font-size: 12px;
  color: var(--muted);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.7);
}

.job-pill-live {
  border-color: rgba(34,197,94,0.65);
  background: linear-gradient(120deg, rgba(34,197,94,0.2), rgba(15,23,42,0.85));
  color: #bbf7d0;
}

.job-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.8);
  animation: job-live-pulse 1.5s infinite;
}

@keyframes job-live-pulse {
  0%   { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0.6); }
  60%  { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Правая карточка в шапке */
.job-header-meta {
  display: flex;
  justify-content: flex-end;
}

.job-header-card {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 14px 12px;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.2), transparent 60%),
              rgba(15,23,42,0.92);
  box-shadow: var(--shadow-1);
}

.job-header-card-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.job-header-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #9ca3af;
}

.job-header-steps li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
}

.job-header-steps li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-blue);
}

/* Адаптив шапки */
@media (max-width: 880px) {
  .job-header {
    grid-template-columns: minmax(0, 1fr);
  }
  .job-header-meta {
    justify-content: flex-start;
  }
}

/* ====== ЛАЙАУТ: САЙДБАР + ФОРМА ====== */

.job-layout {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: flex-start;
}

/* Сайдбар */
.job-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-sidebar-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgb(0 0 0 / 49%), rgb(15 22 40 / 85%));
  box-shadow: var(--shadow-1);
  font-size: 13px;
}



.job-sidebar-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

.job-sidebar-list {
  margin: 0;
  padding-left: 16px;
  color: #9ca3af;
}

.job-sidebar-list li {
  margin-bottom: 4px;
}

.job-sidebar-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.job-sidebar-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: job-live-pulse 1.8s infinite;
}

.job-sidebar-status-label {
  font-size: 12px;
  color: #cbd5e1;
}

.job-sidebar-note {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* Основная колонка */
.job-main {
  min-width: 0;
}

/* ====== ФОРМА И ПАНЕЛИ ====== */

.job-form-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

/* Карточка-панель */
.job-panel {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 16px 16px 14px;
  background: linear-gradient(181deg, rgb(0 0 0 / 39%), rgb(15 23 42 / 70%));
  box-shadow: var(--shadow-1);
  transition: border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}



.job-panel:hover {
  border-color: rgba(148,163,184,0.9);
  box-shadow: var(--shadow-1-hover);
}

.job-panel:hover::before {
  opacity: 1;
}

/* Шапка панели (номер шага + текст) */
.job-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.job-panel-step-badge {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 30% 20%, #e0f2fe, #101010);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 20px 0px rgb(255 255 255 / 96%);
}

.job-panel-step-badge span {
  transform: translateY(0.5px);
}

.job-panel-header-text {
  flex: 1;
}

.panel-title {
  margin: 0 0 3px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #e5e7eb;
}

.panel-subtitle {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

/* Сетка внутри панели */
.panel-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.panel-full-width {
  grid-column: 1 / -1;
}

/* Поля */
.job-field-group {
  display: block;
  margin: 0;
}

.job-label-text {
  display: block;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Текстовые поля / textarea / country-toggle */
.job-input-text:not([type="hidden"]):not([type="submit"]),
.job-textarea-input,
.job-cp-toggle,
.job-cp-toggle:focus-visible {
  width: 100%;
  color: var(--ink);
  background: rgb(0 0 0 / 28%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  outline: none;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.job-textarea-input {
  resize: vertical;
  min-height: 70px;
}

/* focus */
.job-input-text:focus,
.job-textarea-input:focus,
.job-cp-toggle:focus {
  border-color: var(--accent-blue);
  box-shadow: var(--ring);
  background: rgba(15,23,42,1);
}

/* Country picker внутри job формы */
.job-country-picker {
  position: relative;
}

.job-cp-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.job-cp-toggle span:nth-child(1) {
  font-size: 16px;
}

.job-cp-toggle span:nth-child(2) {
  flex: 1;
  text-align: left;
  font-size: 13px;
}

.job-cp-toggle span:nth-child(3) {
  font-size: 12px;
  opacity: 0.8;
}

.job-cp-toggle svg {
  opacity: 0.7;
}

.job-cp-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgb(0 0 0);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  padding: 8px 8px 6px;
}

.job-cp-panel input[type="text"] {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 6px 8px;
  font-size: 13px;
  background: rgb(0 0 0 / 28%);
  color: var(--ink);
  outline: none;
}

.job-cp-panel input[type="text"]:focus {
  border-color: var(--accent-blue);
}

.job-cp-panel .cp-list {
  max-height: 220px;
  overflow-y: auto;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

/* Phone wrap */
.job-phone-wrap {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgb(0 0 0 / 28%);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.job-phone-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: var(--ring);
  background: rgba(15,23,42,1);
}

.job-phone-flag {
  padding-left: 10px;
  font-size: 14px;
}

.job-phone-code {
  padding: 8px 10px 8px 6px;
  font-size: 14px;
  white-space: nowrap;
  user-select: none;
  color: var(--muted);
  border-right: 1px solid var(--border);
}

.job-phone-wrap .job-input-text {
  flex: 1;
  border: none;
  padding: 8px 10px;
  background: transparent;
  box-shadow: none;
  border-radius: 0 8px 8px 0;
}

/* Кнопки-селекторы */
.job-radio-select,
.job-office-select {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.job-select-btn,
.job-office-btn {
  flex-grow: 0;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  transition: all 0.18s ease;

  border: 1px solid var(--border);
  box-shadow: inset 0 0 4px rgba(255,255,255,0.04);
  background: rgba(15,23,42,0.85);
}

.job-select-btn:hover,
.job-office-btn:hover {
  border-color: var(--accent-blue);
  background: rgba(37,99,235,0.18);
}

.job-select-btn.active, .job-office-btn.active {
    background: radial-gradient(circle at top left, rgb(0 0 0 / 22%), transparent 60%), rgb(90 138 251 / 59%);
    color: var(--ink);
    border-color: #ffffff;
    box-shadow: var(--ring);
    font-weight: 700;
    transform: translateY(0);
}

/* Флаг в кнопке офиса */
.job-office-btn[data-flag]::before {
   content: none;
}

/* Ошибки и статус */
.job-error-msg {
  color: #f87171;
  font-size: 11px;
  margin-top: 3px;
  display: block;
  min-height: 13px;
}

.job-submit-row {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-submit-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
    background: linear-gradient(120deg, #000000b3, #000000ab);
    border: none;
    box-shadow: inset 0 0px 20px 3px rgb(255 255 255 / 56%);
}

.job-submit-btn:hover {
  box-shadow: 0 0px 15px 3px rgb(115 115 115);
}

.job-submit-btn:active {
  transform: translateY(0);
  filter: brightness(1);
}

#jl-profile-remove{
    border: none;
    background: none;
    color: #ffffff;
    font-size: 26px;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
#job-profile-chip{
    margin-bottom: 5px;
}

.job-input-text.error,
.job-textarea-input.error {
  border: 1.5px solid #ff3b3b;
  box-shadow: 0 0 0 2px rgba(255, 59, 59, 0.15);
}

.job-error-msg {
  color: #ff3b3b;
  font-size: 12px;
  margin-top: 4px;
}


.job-status-message {
  text-align: center;
  font-size: 13px;
  padding: 3px 0;
  color: var(--muted);
}


/* ===== Nationality autocomplete ===== */
.job-autocomplete{
  position: relative;
}

.job-ac-panel{
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgb(0 0 0);
  box-shadow: 0 18px 40px rgba(15,23,42,0.9);
  overflow: hidden;
}

.job-ac-list{
  max-height: 240px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.job-ac-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid transparent;
}

.job-ac-item:hover{
  border-color: rgba(255,255,255,0.16);
  background: rgba(37,99,235,0.14);
}

.job-ac-flag{
  font-size: 16px;
  line-height: 1;
}

.job-ac-text{
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.job-ac-title{
  font-size: 13px;
  font-weight: 600;
}
.job-ac-sub{
  font-size: 11px;
  color: var(--muted);
}


.job-btn-icon{
  display:inline-flex;
  width:18px;
  height:18px;
  align-items:center;
  justify-content:center;
  color:#fff;            /* чтобы currentColor стал белым */
  margin-right: 4px;
}
.job-btn-icon svg{ display:block; }

#jl-phone{
    border: none;
}

.job-btn-icon svg {
    width:18px !important;
    height:18px!important;
}
#telegram{height:13px!important;}
/* ===========================
   Smart Languages (jl-languages)
   =========================== */

#jlLanguagesWrap .job-textarea-input[readonly]{
  cursor: default;
  opacity: 0.98;
}

/* chips row */
.job-lang-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

/* single chip */
.job-lang-chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.85);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
  box-shadow: inset 0 0 4px rgba(255,255,255,0.04);
}

.job-lang-chip button{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: border-color .18s ease, background-color .18s ease, transform .12s ease;
    align-items: flex-end;
}

.job-lang-chip button:hover{
  border-color: var(--accent-blue);
  background: rgba(37,99,235,0.18);
}

.job-lang-chip button:active{
  transform: translateY(0);
}

/* Add button */
.job-lang-add-btn{
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 8px 12px;
  border-radius: 10px;

  border: 1px solid var(--border);
  background: rgba(15,23,42,0.75);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;

  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.job-lang-add-btn:hover{
  border-color: var(--accent-blue);
  background: rgba(37,99,235,0.14);
  box-shadow: var(--ring);
}

/* Wizard panel */
.job-lang-panel{
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.55);
  box-shadow: 0 18px 40px rgba(15,23,42,0.55);
  padding: 10px;
}

/* Steps */
.job-lang-step{
  display: grid;
  gap: 8px;
}

.job-lang-label{
  font-size: 12px;
  color: var(--muted);
}

/* Next button */
.job-lang-next{
  width: fit-content;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.8);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.job-lang-next:hover{
  border-color: var(--accent-blue);
  background: rgba(37,99,235,0.14);
  box-shadow: var(--ring);
}

/* Levels grid */
.job-lang-levels{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.job-lang-levels button{
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,0.85);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: inset 0 0 4px rgba(255,255,255,0.04);
}

.job-lang-levels button:hover{
  border-color: var(--accent-blue);
  background: rgba(37,99,235,0.18);
}


/* Кнопки офиса: флаг + текст */
.job-office-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Контейнер флага: прячем текст-эмодзи (чтобы не было RO/PL/BG/TH) */
.job-office-btn .office-flag{
  display: inline-flex;
  font-size: 0;     /* ключевое: скрывает текстовый fallback */
  line-height: 0;
}

/* Twemoji вставляет <img class="emoji-flag"> — задаём размер */
.job-office-btn img.emoji-flag{
  width: 18px;
  height: 18px;
  display: inline-block;
}


#jlLangPanel .job-lang-step[data-step="1"]{
  position: relative;
}

.job-ac-more { padding: 10px; }

.job-ac-more-btn{
  width: 100%;
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: #fff;
  color: var(--accent-blue, #00a3ff); /* сине-голубой */
  font-weight: 600;
  cursor: pointer;
}

.job-ac-more-btn:hover{
  background: rgba(255,255,255,.92);
}

.job-ac-more-btn:active{
  transform: translateY(1px);
}



/* Mobile spacing */
@media (max-width: 768px){
  .job-lang-panel{ padding: 10px; }
  .job-lang-add-btn{ width: 100%; }
}



/* ====== АДАПТИВ ====== */

@media (max-width: 960px) {
  .job-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .job-panel {
    padding: 14px 12px 12px;
  }
  .job-title-main {
    font-size: 24px;
  }
  .job-input-text:not([type="hidden"]):not([type="submit"]), .job-textarea-input, .job-cp-toggle, .job-cp-toggle:focus-visible{
      font-size:16px;
  }
}
