/* НеоСотрудник wizard popup — light theme */

.n42-emp-popup-overlay {
  --emp-bg: #ffffff;
  --emp-bg-subtle: #f7f7f9;
  --emp-bg-muted: #f0f0f3;
  --emp-border: #e4e4ea;
  --emp-border-hover: #c8c8d4;
  --emp-text: #1a1a22;
  --emp-text-muted: #6b6b78;
  --emp-text-subtle: #9a9aa8;
  --emp-accent: #49179b;
  --emp-accent-hover: #3a127c;
  --emp-accent-soft: rgba(73, 23, 155, 0.1);
  --emp-accent-selected: rgba(73, 23, 155, 0.06);
  --emp-success: #1a9b5c;
  --emp-error: #cc4444;
  --emp-shadow: 0 24px 64px rgba(0, 0, 0, 0.16);

  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.n42-emp-popup-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.n42-emp-popup {
  width: min(100%, 1100px);
  max-height: min(92vh, 900px);
  background: var(--emp-bg);
  border: 1px solid var(--emp-border);
  border-radius: 16px;
  color: var(--emp-text);
  padding: 24px 28px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--emp-shadow);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.24s ease;
  overflow: hidden;
}

.n42-emp-popup-overlay.is-open .n42-emp-popup {
  transform: translateY(0) scale(1);
}

.n42-emp-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--emp-text-muted);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}

.n42-emp-popup-close:hover {
  color: var(--emp-text);
}

.n42-emp-popup-header {
  flex-shrink: 0;
  margin-bottom: 30px;
}

.n42-emp-popup-brand {
  margin: 0 0 4px;
  font-family: "Bounded", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--emp-text);
}

.n42-emp-popup-subbrand {
  margin: 0 0 16px;
  font-family: "Bounded", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--emp-text-muted);
}

.n42-emp-popup-stepper {
  margin-bottom: 8px;
}

.n42-emp-popup-stepper-list {
  display: flex;
  align-items: flex-start;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.n42-emp-popup-step {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.n42-emp-popup-step-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.n42-emp-popup-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Bounded", sans-serif;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.2s, color 0.2s;
  background: #e8e8ee;
  color: #a8a8b4;
}

.n42-emp-popup-step.is-active .n42-emp-popup-step-circle,
.n42-emp-popup-step.is-done .n42-emp-popup-step-circle {
  background: var(--emp-accent);
  color: #fff;
}

.n42-emp-popup-step-line {
  flex: 1;
  height: 2px;
  margin: 0 4px;
  background: #e8e8ee;
  transition: background 0.25s ease;
}

.n42-emp-popup-step-line.is-filled {
  background: var(--emp-accent);
}

.n42-emp-popup-step-label {
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  color: #b0b0bc;
  font-weight: 400;
  padding: 0 0px 0 15px;
}

.n42-emp-popup-step.is-active .n42-emp-popup-step-label {
  color: var(--emp-text);
  font-weight: 600;
}

.n42-emp-popup-step.is-done .n42-emp-popup-step-label {
  color: var(--emp-text-muted);
  font-weight: 500;
}

.n42-emp-popup-step--finish {
  flex: 0 0 auto;
  min-width: 32px;
}

.n42-emp-popup-step--finish .n42-emp-popup-step-row {
  width: auto;
}

.n42-emp-popup-step--finish .n42-emp-popup-step-circle {
  font-size: 15px;
  line-height: 1;
}

.n42-emp-popup-step--finish.is-done .n42-emp-popup-step-circle {
  background: var(--emp-accent);
  color: #fff;
}

.n42-emp-popup-step-label--placeholder {
  visibility: hidden;
  min-height: 1.25em;
  padding: 0;
  max-width: none;
}

.n42-emp-popup-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.n42-emp-popup-body::-webkit-scrollbar {
  width: 6px;
}

.n42-emp-popup-body::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.n42-emp-popup-panel {
  display: none;
}

.n42-emp-popup-panel.is-active {
  display: block;
  box-sizing: border-box;
}

.n42-emp-popup-panel[data-panel="2"].is-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.n42-emp-popup-panel-title {
  margin: 0 0 6px;
  font-family: "Bounded", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--emp-text);
}

.n42-emp-popup-panel-subtitle {
  margin: 0 0 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--emp-text-muted);
  text-align: center;
}

/* Step 1 — type cards */

.n42-emp-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.n42-emp-type-card {
  border: 1px solid var(--emp-border);
  border-radius: 12px;
  padding: 18px 16px 16px;
  background: var(--emp-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.n42-emp-type-card:hover {
  border-color: var(--emp-border-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.n42-emp-type-card.is-selected {
  border-color: var(--emp-accent);
  background: var(--emp-accent-selected);
  box-shadow: 0 4px 16px rgba(73, 23, 155, 0.12);
}

.n42-emp-type-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--emp-accent-soft);
  color: var(--emp-accent);
  display: grid;
  place-items: center;
  font-size: 18px;
  margin-bottom: 12px;
}

.n42-emp-type-card-title {
  margin: 0 0 4px;
  font-family: "Bounded", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--emp-text);
}

.n42-emp-type-card-desc {
  margin: 0 0 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--emp-text-muted);
  line-height: 1.35;
}

.n42-emp-type-card-section {
  margin-bottom: 12px;
}

.n42-emp-type-card-section-title {
  margin: 0 0 8px;
  font-family: "Bounded", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--emp-text);
}

.n42-emp-type-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.n42-emp-type-features li {
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--emp-text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.35;
}

.n42-emp-type-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emp-success);
  font-size: 11px;
}

.n42-emp-type-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.n42-emp-type-tag {
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--emp-bg-muted);
  font-family: "Bounded", sans-serif;
  font-size: 10px;
  color: var(--emp-text-muted);
  line-height: 1.2;
}

.n42-emp-type-select-btn {
  margin-top: auto;
  padding-top: 14px;
}

.n42-emp-type-select-btn span {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--emp-border);
  background: var(--emp-bg-subtle);
  font-family: "Bounded", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--emp-text);
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.n42-emp-type-card.is-selected .n42-emp-type-select-btn span {
  background: var(--emp-accent);
  border-color: var(--emp-accent);
  color: #fff;
}

/* Step 2 — name */

.n42-emp-popup-panel[data-panel="2"] .n42-emp-popup-panel-subtitle {
  margin-bottom: 40px;
}

.n42-emp-name-wrap {
  width: min(100%, 640px);
  max-width: 640px;
  margin: 0 auto;
}

.n42-emp-field {
  position: relative;
  margin-bottom: 18px;
}

.n42-emp-label {
  display: block;
  margin-bottom: 8px;
  font-family: "Bounded", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--emp-text);
}

.n42-emp-popup-overlay input,
.n42-emp-popup-overlay textarea,
.n42-emp-popup-overlay select {
  font-family: "Montserrat", sans-serif;
}

.n42-emp-input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--emp-border);
  background: transparent;
  color: var(--emp-text);
  padding: 12px 0 10px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  box-sizing: border-box;
}

.n42-emp-input::placeholder {
  color: var(--emp-text-subtle);
  font-family: inherit;
}

.n42-emp-input:focus {
  border-bottom-color: var(--emp-accent);
}

.n42-emp-field.has-error .n42-emp-input {
  border-bottom-color: var(--emp-error);
}

.n42-emp-field.has-error .n42-emp-input:focus {
  border-bottom-color: var(--emp-error);
}

.n42-emp-input:-webkit-autofill,
.n42-emp-input:-webkit-autofill:hover,
.n42-emp-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--emp-text);
  caret-color: var(--emp-text);
  -webkit-box-shadow: 0 0 0 1000px var(--emp-bg) inset;
  box-shadow: 0 0 0 1000px var(--emp-bg) inset;
}

.n42-emp-field-error {
  max-height: 0;
  overflow: hidden;
  color: var(--emp-error);
  font-size: 12px;
  font-family: "Bounded", sans-serif;
  padding-top: 4px;
  opacity: 0;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.n42-emp-field-error.has-text {
  max-height: 24px;
  opacity: 1;
}

/* Step 3 — skills */

.n42-emp-skills-grid {
  width: 100%;
}

.n42-emp-skills-cols {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.n42-emp-skills-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.n42-emp-skill-item {
  border: 1px solid var(--emp-border);
  border-radius: 10px;
  background: var(--emp-bg);
  transition: border-color 0.2s, background 0.2s;
  font-family: "Montserrat", sans-serif;
  color: var(--emp-text);
  text-align: left;
}

.n42-emp-skill-item:hover:not(.is-locked) {
  border-color: var(--emp-border-hover);
  background: var(--emp-bg-subtle);
}

.n42-emp-skill-item.is-selected {
  border-color: var(--emp-accent);
  background: var(--emp-accent-selected);
}

.n42-emp-skill-item.is-locked {
  background: var(--emp-bg-subtle);
}

.n42-emp-skill-item-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
}

.n42-emp-skill-item-check {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.n42-emp-skill-item.is-locked .n42-emp-skill-item-check {
  cursor: default;
}

.n42-emp-skill-item-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--emp-accent);
  cursor: pointer;
}

.n42-emp-skill-item.is-locked .n42-emp-skill-item-check input {
  cursor: not-allowed;
}

.n42-emp-skill-item-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.n42-emp-skill-item-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--emp-text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.n42-emp-skill-item-toggle:hover {
  color: var(--emp-text);
}

.n42-emp-skill-item-chevron {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.n42-emp-skill-item.is-expanded .n42-emp-skill-item-chevron {
  transform: rotate(180deg);
}

.n42-emp-skill-item-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.n42-emp-skill-item.is-expanded .n42-emp-skill-item-body {
  grid-template-rows: 1fr;
}

.n42-emp-skill-item-body-inner {
  overflow: hidden;
  min-height: 0;
}

.n42-emp-skill-item-desc {
  margin: 0;
  padding: 0 14px 12px 40px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--emp-text-muted);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.n42-emp-skill-item.is-expanded .n42-emp-skill-item-desc {
  opacity: 1;
  transition-delay: 0.06s;
}

/* Step 4 — contact */

.n42-emp-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 20px;
  max-width: 640px;
  margin: 0 auto;
}

.n42-emp-contact-grid .n42-emp-field--full {
  grid-column: 1 / -1;
}

.n42-emp-contact-methods {
  margin-top: 8px;
}

.n42-emp-contact-methods-title {
  margin: 0 0 12px;
  font-family: "Bounded", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--emp-text);
}

.n42-emp-contact-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.n42-emp-contact-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--emp-border);
  border-radius: 10px;
  background: var(--emp-bg);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: var(--emp-text);
}

.n42-emp-contact-method:hover {
  border-color: var(--emp-border-hover);
  background: var(--emp-bg-subtle);
}

.n42-emp-contact-method.is-selected {
  border-color: var(--emp-accent);
  background: var(--emp-accent-selected);
}

.n42-emp-contact-method input {
  accent-color: var(--emp-accent);
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Step 5 — summary */

.n42-emp-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.n42-emp-summary-card {
  border: 1px solid var(--emp-border);
  border-radius: 12px;
  padding: 16px;
  background: var(--emp-bg-subtle);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.n42-emp-summary-card--wide {
  grid-column: 1 / -1;
}

.n42-emp-summary-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--emp-accent-soft);
  color: var(--emp-accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.n42-emp-summary-content {
  min-width: 0;
  flex: 1;
}

.n42-emp-summary-label {
  margin: 0 0 4px;
  font-family: "Bounded", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--emp-text-muted);
}

.n42-emp-summary-value {
  margin: 0;
  font-family: "Bounded", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--emp-text);
  line-height: 1.3;
}

.n42-emp-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.n42-emp-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--emp-bg);
  border: 1px solid var(--emp-border);
  font-family: "Bounded", sans-serif;
  font-size: 11px;
  color: var(--emp-text-muted);
}

.n42-emp-summary-tag::before {
  content: "✓";
  color: var(--emp-accent);
  font-size: 10px;
}

.n42-emp-summary-ready {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--emp-accent-soft);
  border: 1px solid rgba(73, 23, 155, 0.2);
}

.n42-emp-summary-ready-title {
  margin: 0 0 4px;
  font-family: "Bounded", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--emp-text);
}

.n42-emp-summary-ready-text {
  margin: 0;
  font-family: "Bounded", sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: var(--emp-text-muted);
  line-height: 1.4;
}

/* Footer navigation */

.n42-emp-popup-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--emp-border);
  margin-top: 4px;
}

.n42-emp-btn {
  border: 0;
  border-radius: 10px;
  height: 44px;
  padding: 0 20px;
  font-family: "Bounded", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}

.n42-emp-btn[hidden] {
  display: none !important;
}

.n42-emp-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.n42-emp-btn-back {
  background: var(--emp-bg-subtle);
  color: var(--emp-text);
  border: 1px solid var(--emp-border);
}

.n42-emp-btn-back:not(:disabled):hover {
  background: var(--emp-bg-muted);
  border-color: var(--emp-border-hover);
}

.n42-emp-btn-next,
.n42-emp-btn-submit {
  background: var(--emp-accent);
  color: #fff;
  margin-left: auto;
}

.n42-emp-btn-next:not(:disabled):hover,
.n42-emp-btn-submit:not(:disabled):hover {
  background: var(--emp-accent-hover);
}

.n42-emp-popup-submit-error {
  font-family: "Bounded", sans-serif;
  font-size: 13px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s, max-height 0.2s;
  flex: 1;
  text-align: center;
  color: var(--emp-error);
}

.n42-emp-popup-submit-error.has-text {
  max-height: 40px;
  opacity: 1;
}

body.n42-emp-popup-open {
  overflow: hidden;
}

.n42-emp-success-toast {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 16, 16, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.n42-emp-success-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.n42-emp-success-toast-card {
  display: block;
  width: min(100%, 360px);
  padding: 22px 24px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
  text-align: center;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.24s ease;
}

.n42-emp-success-toast.is-visible .n42-emp-success-toast-card {
  transform: translateY(0) scale(1);
}

.n42-emp-success-toast-text {
  margin: 0;
  font-family: "Bounded", sans-serif;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--emp-success, #1a9b5c);
}

@media (max-width: 900px) {
  .n42-emp-type-grid {
    grid-template-columns: 1fr;
  }

  .n42-emp-popup-step-label {
    font-size: 9px;
    max-width: 72px;
  }

  .n42-emp-summary-grid {
    grid-template-columns: 1fr;
  }

  .n42-emp-summary-card--wide {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .n42-emp-popup-overlay {
    padding: 12px;
  }

  .n42-emp-popup {
    width: min(100%, 100%);
    max-height: 96vh;
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .n42-emp-popup-brand {
    font-size: 16px;
  }

  .n42-emp-popup-panel-title {
    font-size: 16px;
  }

  .n42-emp-skills-cols {
    flex-direction: column;
  }

  .n42-emp-contact-grid,
  .n42-emp-contact-methods-grid {
    grid-template-columns: 1fr;
  }

  .n42-emp-popup-footer {
    flex-wrap: wrap;
  }

  .n42-emp-btn-next,
  .n42-emp-btn-submit {
    width: 100%;
    justify-content: center;
    margin-left: 0;
    order: 2;
  }

  .n42-emp-btn-back {
    order: 1;
  }

  .n42-emp-popup-step-label {
    display: none;
  }
}
