.job50-step-intro {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.job50-step-title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  line-height: 1.3;
}

.job50-step-text {
  margin: 0;
  color: #475467;
  font-size: 0.875rem;
}


.job50-register-page-lead {
  margin: 0 0 20px;
  color: #fff;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 500;
}

.job50-register-page-lead a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job50-register-page-lead__login {
  white-space: normal;
}

.job50-register-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0 16px;
}

.job50-register-actions.is-submit-only {
  justify-content: flex-end;
}

.job50-register-actions .button_div,
#wpmem_register_form .job50-register-actions .button_div {
  display: flex;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
}

.job50-register-actions .button_div input[type="submit"] {
  margin: 0;
}

.job50-company-status {
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}

.job50-company-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.job50-company-badge.is-existing {
  background: #ecfdf3;
  color: #027a48;
}

.job50-company-badge.is-new {
  background: #eff8ff;
  color: #175cd3;
}

.job50-company-badge.is-error {
  background: #fef3f2;
  color: #b42318;
}

.job50-company-help {
  color: #475467;
  font-size: 0.9375rem;
}

#wpmem_register_form #vat_number.job50-vat-duplicate {
  border-color: #d92d20;
  box-shadow: 0 0 0 1px #d92d20;
}

#wpmem_register_form .job50-ts-wrapper {
  margin-top: 6px;
}

#wpmem_register_form .button_div {
  position: static;
  right: auto;
  bottom: auto;
}

.job50-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background-color: #ed1c24;
  color: #fff;
  font-family: "Google Sans Flex", "Google Sans", Inter, system-ui, sans-serif;
  font-weight: 300;
  font-variation-settings: "wght" 300;
  letter-spacing: -.05em;
  text-transform: uppercase;
  line-height: .82;
}

#wpmem_register_form .j50-vat-combo.is-locked,
#wpmem_register_form .j50-vat-combo.is-locked .j50-vat-country-wrap,
#wpmem_register_form .j50-vat-combo.is-locked .j50-vat-tomselect,
#wpmem_register_form .j50-vat-combo.is-locked #vat_number {
  cursor: not-allowed;
}

#wpmem_register_form .j50-vat-combo.is-locked .j50-vat-country-wrap,
#wpmem_register_form .j50-vat-combo.is-locked .j50-vat-tomselect {
  pointer-events: none;
}

#wpmem_register_form .j50-vat-combo.is-locked #vat_number {
  background-color: #f8fafc;
}

.job50-recruiter-business-role-field {
  margin-bottom: 24px;
}

.job50-recruiter-business-role-field.is-other-selected {
  margin-bottom: 12px;
}

.job50-recruiter-business-role-other-field {
  margin-bottom: 24px;
}

.job50-recruiter-business-role-field label,
.job50-recruiter-business-role-other-field label {
  display: none !important;
}

.job50-recruiter-business-role-field select,
.job50-recruiter-business-role-other-field input {
  width: 100%;
  padding-right: 44px;
  line-height: 1.35;
}

/* TomSelect visual skin is centralized in job50-core/assets/shared-wizard.css.
   This file only keeps register-flow layout details. */
#wpmem_register_form .job50-register-company-ts.job50-ts-wrapper,
#wpmem_register_form .job50-register-role-ts.job50-ts-wrapper {
  width: 100%;
}

/* Company TomSelect is a single organization picker: once one company is selected,
   hide the search input so it cannot look like a multi-value tag field. */
#wpmem_register_form .job50-register-company-ts.job50-register-company-ts--single-selected .ts-control {
  cursor: default;
}

#wpmem_register_form .job50-register-company-ts.job50-register-company-ts--single-selected .ts-control > input {
  flex: 0 0 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#wpmem_register_form .job50-register-company-ts.job50-register-company-ts--single-selected .ts-dropdown {
  display: none !important;
}

/* Email ownership verification — progressive and automatic.
   Nothing is displayed before a valid email is left. A subtle sending state is
   followed directly by the six-digit input; the manual control appears only as
   a fallback when the automatic request cannot start. */
#wpmem_register_form .job50-email-verification {
  display: block;
  width: 100%;
  margin: -6px 0 18px;
}

#wpmem_register_form .job50-email-verification.is-idle {
  display: none !important;
}

#wpmem_register_form .job50-email-verification__prompt,
#wpmem_register_form .job50-email-verification__sending,
#wpmem_register_form .job50-email-verification__code,
#wpmem_register_form .job50-email-verification__success {
  box-sizing: border-box;
}

#wpmem_register_form .job50-email-verification__prompt[hidden],
#wpmem_register_form .job50-email-verification__sending[hidden],
#wpmem_register_form .job50-email-verification__code[hidden],
#wpmem_register_form .job50-email-verification__success[hidden] {
  display: none !important;
}

/* Manual fallback only. */
#wpmem_register_form .job50-email-verification__prompt {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid #e1e7ed;
  border-radius: 12px;
  background: #fafcfd;
}

#wpmem_register_form .job50-email-verification__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #ffecef;
  color: #ef233c;
  font-size: 17px;
  line-height: 1;
}

#wpmem_register_form .job50-email-verification__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#wpmem_register_form .job50-email-verification__copy strong {
  color: #27313d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

#wpmem_register_form .job50-email-verification__copy span {
  color: #6f7b89;
  font-size: 10px;
  line-height: 1.35;
}

#wpmem_register_form .job50-email-verification__send {
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ef233c;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
}

#wpmem_register_form .job50-email-verification__send:hover {
  color: #c9162c;
}

#wpmem_register_form .job50-email-verification__send:disabled {
  cursor: wait;
  opacity: 0.6;
}

#wpmem_register_form .job50-email-verification__sending {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 24px;
  padding: 1px 2px;
  color: #6f7b89;
  font-size: 11px;
  line-height: 1.35;
}

#wpmem_register_form .job50-email-verification__sending .material-symbols-outlined {
  color: #ef233c;
  font-size: 17px;
  line-height: 1;
  animation: job50EmailVerificationSpin 0.9s linear infinite;
}

@keyframes job50EmailVerificationSpin {
  to { transform: rotate(360deg); }
}

#wpmem_register_form .job50-email-verification__code {
  display: grid;
  gap: 9px;
  padding: 2px 0 0;
}

#wpmem_register_form .job50-email-verification__sent {
  margin: 0;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

#wpmem_register_form .job50-email-verification__digits {
  display: grid;
  grid-template-columns: repeat(6, 42px);
  gap: 6px;
  width: max-content;
  max-width: 100%;
}

#wpmem_register_form input.job50-email-verification__digit {
  width: 42px;
  min-width: 0;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #cdd7e1;
  border-radius: 10px;
  background: #fff;
  color: #27313d;
  font-family: "Google Sans Flex", "Google Sans", Inter, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 800;
  line-height: 44px;
  text-align: center;
  box-sizing: border-box;
}

#wpmem_register_form input.job50-email-verification__digit:focus {
  border-color: #ef233c;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.10);
}

#wpmem_register_form .job50-email-verification__code-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

#wpmem_register_form .job50-email-verification__resend,
#wpmem_register_form .job50-email-verification__change {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #5f6c7b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

#wpmem_register_form .job50-email-verification__resend:disabled {
  color: #98a2b3;
  text-decoration: none;
  cursor: default;
}

#wpmem_register_form .job50-email-verification__success {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid #b9e8ca;
  border-radius: 11px;
  background: #ecfdf3;
  color: #147b42;
}

#wpmem_register_form .job50-email-verification__success .material-symbols-outlined {
  font-size: 18px;
  line-height: 1;
}

#wpmem_register_form .job50-email-verification__success strong {
  margin-right: auto;
  font-size: 11px;
  font-weight: 800;
}

#wpmem_register_form .job50-email-verification__success .job50-email-verification__change {
  color: #147b42;
}

#wpmem_register_form #user_email[readonly] {
  background: #f5f8fa;
  color: #475467;
  cursor: default;
}

/* Existing account — inline guidance instead of starting email verification. */
#wpmem_register_form .job50-email-existing[hidden] {
  display: none !important;
}

#wpmem_register_form .job50-email-existing {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: 100%;
  margin: -6px 0 18px;
  padding: 9px 10px;
  border: 1px solid rgba(239, 35, 60, 0.22);
  border-radius: 12px;
  background: #fff8f9;
  color: #27313d;
  box-sizing: border-box;
}

#wpmem_register_form .job50-email-existing__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #ffecef;
  color: #ef233c;
  font-size: 17px;
  line-height: 1;
}

#wpmem_register_form .job50-email-existing__content {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-top: 1px;
}

#wpmem_register_form .job50-email-existing__message {
  color: #3b4654;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

#wpmem_register_form .job50-email-existing__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

#wpmem_register_form .job50-email-existing__actions a {
  color: #ef233c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#wpmem_register_form .job50-email-existing__actions a:hover {
  color: #c9162c;
}

#wpmem_register_form #user_email[aria-invalid="true"] {
  border-color: rgba(239, 35, 60, 0.62);
  box-shadow: 0 0 0 3px rgba(239, 35, 60, 0.08);
}

@media (max-width: 620px) {
  #wpmem_register_form .job50-email-verification__prompt {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  #wpmem_register_form .job50-email-verification__send {
    grid-column: 2;
    justify-self: start;
  }

  #wpmem_register_form .job50-email-verification__digits {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  #wpmem_register_form input.job50-email-verification__digit {
    width: 100%;
    height: 43px;
    font-size: 20px;
    line-height: 43px;
  }
}

#wpmem_register_form .job50-register-submit-wrap input[type="submit"]:disabled,
#wpmem_register_form .job50-register-submit-wrap button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
}

@media (max-width: 620px) {
  #wpmem_register_form .job50-email-verification__prompt {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
  }

  #wpmem_register_form .job50-email-verification__send {
    grid-column: 2;
    justify-self: start;
  }

  #wpmem_register_form .job50-email-verification__digits {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
  }

  #wpmem_register_form input.job50-email-verification__digit {
    width: 100%;
    height: 45px;
    font-size: 20px;
    line-height: 45px;
  }
}
