/* Validation feedback is shown only after an attempted action. */
.hub-validation-error,.hub-validation-message,[data-error="true"]{color:#b42318!important;font-weight:600!important;white-space:normal;overflow-wrap:anywhere}
.hub-validation-error{margin:6px 0 12px;font-size:1rem;line-height:1.4}
input[aria-invalid="true"],select[aria-invalid="true"],textarea[aria-invalid="true"],button[aria-invalid="true"]{border:2px solid #b42318!important;outline-offset:3px}
:where(fieldset,div)[aria-invalid="true"]{outline:2px solid #b42318;outline-offset:3px}

.registration-language{display:block;margin:0 0 16px;font-weight:700;color:#172d71}.registration-language select{display:block;width:100%;max-width:100%;box-sizing:border-box;margin-top:6px;min-height:44px}

html body main .panel .registration-header {display:grid!important;grid-template-columns:44px minmax(0,1fr) 44px!important;align-items:center;gap:6px;width:100%;margin:0 0 12px}
html body main .registration-header h1 {grid-column:2;grid-row:1;text-align:center;font-size:20px!important;margin:0}
html body main .registration-header button.back {position:static;grid-area:1/1;margin:0}
html body main .registration-header .registration-language {grid-area:1/3;display:grid;place-items:center;position:relative;width:44px;height:44px;margin:0;font-size:22px}
.registration-header .registration-language select {position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.registration-header .registration-language:focus-within {outline:2px solid currentColor;border-radius:8px}

html body main .registration-header .registration-language {
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;
  font-size:9px;line-height:1.1;text-align:center;overflow-wrap:anywhere;
}
.registration-globe {font-size:30px;line-height:1}
html body main :is(#create,#business-create,#pm-create) .panel {padding-block:10px}
html body main :is(#create,#business-create,#pm-create) .sub {margin-block:6px}
html body main .registration-step-heading {
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-block:6px;
}
html body main :is(#create-form,#business-create-form,#pm-create-form) label {margin-block:5px 2px}
html body main :is(#create-form,#business-create-form,#pm-create-form) fieldset {margin-block:6px;padding-block:4px}
html body main :is(#create-form,#business-create-form,#pm-create-form)
:is(input:not([type=checkbox],[type=radio],[type=hidden]),select) {min-height:36px!important;height:auto;padding-block:4px!important}

/* Keep programmatic field names while simplifying registration forms. */
#create-form :is(label[for="email"],label[for="phone"],.signup-address>legend),
#pm-create-form :is(label[for="pm-email"],label[for="pm-phone"],.signup-address>legend),
#business-create-form label[for="business-phone"] {
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  margin:0;padding:0;border:0;
}
:is(#create-form,#pm-create-form,#business-create-form) :is(#email,#phone,#pm-email,#pm-phone,#business-phone) {margin-block-start:5px}
.registration-step-heading>.hub-page-count {grid-column:2}
html body main :is(#create-form,#business-create-form,#pm-create-form) .hub-validation-error {margin-block:3px 5px}

#business-create-form .signup-address>legend {
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
  margin:0;padding:0;border:0;
}
#signup-service-picker {
  width:min(calc(100% - 16px),480px);max-height:90dvh;padding:0;
  border:1px solid #dce2eb;border-radius:20px;background:#f8f9fc;color:#192b4b;
}
#signup-service-picker::backdrop {background:#0005}
#signup-service-picker h2 {margin:0;padding:12px 16px}
#signup-services label {
  display:flex;align-items:center;justify-content:space-between;flex-direction:row-reverse;
  gap:12px;margin:0!important;padding:14px 16px;border-top:1px solid #dce2eb;text-align:left;
}
#signup-services input {flex:none;margin:0}
#signup-services-done {display:block;margin:12px auto}
#signup-services-feedback {padding-inline:16px}
#signup-service-status:empty {display:none}
