/* The membership header shares the existing native select and accessible menu. */
body:is(.customer-public,.contractor-public)[data-public-page="register"] .public-header nav {
  gap: 15px;
}
body:is(.customer-public,.contractor-public)[data-public-page="register"] .public-header nav > label {
  box-sizing: border-box;
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
body[data-public-page="register"] .public-header nav label::after { content: none; }
body[data-public-page="register"] .public-header nav [data-public-locale] {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%;
}
body.contractor-public[data-public-page="register"] [data-step="0"] > legend::before {
  content: "";
  background: #0875d922 url("company-mark.png") center / auto 75% no-repeat;
}
[data-contractor-registration] label:has(:is(input,select,textarea):required:not(:disabled)) > span[data-i18n]::after,
[data-contractor-registration] :is([data-required-group],[data-permit-declaration]) > legend::after,
[data-contractor-registration] label:has(select[name="postalAddressChoice"]) > span::after,
[data-contractor-registration] [data-proof-kind] > p:first-child::after {
  content: " *"; color: #e74848;
}
[data-contractor-registration] .registration-field-error { display: block; color: #e74848; }
[data-contractor-registration] label[hidden] { display: none !important; }
@media(max-width:650px) {
  body:is(.customer-public,.contractor-public)[data-public-page="register"] .public-header nav {
    display:grid; grid-template-columns:38px 34px minmax(0,1.25fr) minmax(0,1fr); gap:8px;
  }
}

[data-customer-registration] label:has(:is(input:not([type="radio"]), select):required:not(:disabled)) > span[data-i18n]::after,
[data-customer-registration] [data-i18n="customer.public.customerType"]::after,
[data-customer-registration] [data-verification-entry] label > span[data-i18n]::after {
  content: " *";
  color: #d32f2f;
}

/* Keep the native birth date value vertically centered before and after selection. */
body.customer-public [data-customer-registration] input[type="date"][name="birthDate"] {
  display: inline-flex;
  align-items: center;
  padding-block: 0;
  line-height: normal;
}
body.customer-public [data-customer-registration] input[name="birthDate"]::-webkit-datetime-edit {
  flex: 1;
  padding-block: 0;
}
body.customer-public [data-customer-registration] input[name="birthDate"]::-webkit-date-and-time-value {
  margin-block: auto;
}
