/*
 * Page styles: register. Owned by the page agent for this area; loaded after
 * hostsrc.css and hostsrc-cart.css. Scope every rule to the body class
 * .hs-page-<templatefile> (see header.tpl). Order form pages load Standard
 * Cart's all.min.css after this file, so prefix those rules with "html body".
 *
 * clientregister.tpl (our override): a page title, a short note on why we ask
 * for an address, then the form as a column of tiles, one per section, with a
 * visible label above every field.
 */

/* The "Already registered?" sidebar only repeats the log-in link the page title
   now carries, so the form takes the full width. Only when that card is the
   sidebar's one and only item: anything a hook adds keeps the sidebar. */
.hs-page-clientregister #main-body > .container > .row:has(> .col-lg-4 > .sidebar:only-child > .card:only-of-type[menuitemname="Already Registered"]) > .col-lg-4 { display: none; }
.hs-page-clientregister #main-body > .container > .row:has(> .col-lg-4 > .sidebar:only-child > .card:only-of-type[menuitemname="Already Registered"]) > .primary-content {
  flex: 0 0 100%;
  max-width: 100%;
}

/* Title */
.hs-page-clientregister .hs-reg-head { margin: 8px 0 24px; }
.hs-page-clientregister .hs-reg-title {
  margin: 0 0 8px;
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hs-page-clientregister .hs-reg-lead { margin: 0; color: var(--hs-muted); font-size: 0.9375rem; }
.hs-page-clientregister .hs-reg-lead a,
.hs-page-clientregister .hs-reg-note a {
  color: var(--hs-foreground);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: oklch(1 0 0 / 35%);
  text-underline-offset: 3px;
}
.hs-page-clientregister .hs-reg-lead a:hover,
.hs-page-clientregister .hs-reg-note a:hover { text-decoration-color: currentColor; }
.hs-page-clientregister .hs-reg > .alert { margin-bottom: 16px; }

/* The sidebar may hold a <script> before the card (includes/sidebar.tpl), so
   the card is matched as the only one of its type, not the only child. */
/* Layout: the form, and the note beside it on desktop or above it on phones. */
.hs-page-clientregister .hs-reg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
@media (min-width: 992px) {
  .hs-page-clientregister .hs-reg-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .hs-page-clientregister .hs-reg-note {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
  }
  .hs-page-clientregister #registration { grid-column: 1; grid-row: 1; }
}

/* Tiles: Ash Panel, 14px corners, 8px apart, nothing nested. */
.hs-page-clientregister .hs-reg-note,
.hs-page-clientregister .hs-reg-section {
  background: var(--hs-card);
  border-radius: var(--hs-radius-xl);
  color: var(--hs-foreground);
}
.hs-page-clientregister .hs-reg-section { padding: 24px; margin-bottom: 8px; }
.hs-page-clientregister .hs-reg-note { padding: 20px; }
.hs-page-clientregister .hs-reg-note-title { margin: 0 0 8px; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.hs-page-clientregister .hs-reg-note p { margin: 0 0 6px; color: var(--hs-muted); font-size: 0.875rem; line-height: 1.55; }
.hs-page-clientregister .hs-reg-note p:last-child { margin-bottom: 0; }
.hs-page-clientregister .hs-reg-note-contact { padding-top: 6px; }

.hs-page-clientregister .hs-reg-section-title {
  margin: 0 0 20px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
}
.hs-page-clientregister .hs-reg-section-note {
  margin: -12px 0 20px;
  color: var(--hs-muted);
  font-size: 0.875rem;
}

/* Fields: label above, two side by side where they pair. */
.hs-page-clientregister .hs-reg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 576px) {
  .hs-page-clientregister .hs-reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-page-clientregister .hs-field-wide { grid-column: 1 / -1; }
}
.hs-page-clientregister .hs-field { margin: 0; min-width: 0; }
.hs-page-clientregister .hs-field > label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}
.hs-page-clientregister .hs-optional { color: var(--hs-muted); font-weight: 400; }

.hs-page-clientregister #registration .field,
.hs-page-clientregister #registration .form-control,
.hs-page-clientregister #registration select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  line-height: 1.5;
}
.hs-page-clientregister #registration select { padding-right: 36px; }
/* The phone field sits behind intl-tel-input's flag and dial code (80px wide for
   "+40"); the padding above would put the digits under it. Room by code length. */
.hs-page-clientregister #registration .separate-dial-code #inputPhone { padding-left: 88px; }
.hs-page-clientregister #registration .separate-dial-code.iti-sdc-2 #inputPhone { padding-left: 80px; }
.hs-page-clientregister #registration .separate-dial-code.iti-sdc-4 #inputPhone { padding-left: 96px; }
.hs-page-clientregister #registration .separate-dial-code.iti-sdc-5 #inputPhone { padding-left: 104px; }
.hs-page-clientregister #registration .field:focus {
  border-color: var(--hs-ring) !important;
  box-shadow: 0 0 0 3px var(--hs-ring-soft) !important;
  background-color: var(--hs-fill-hover) !important;
  outline: 0;
}
.hs-page-clientregister #registration .field.is-invalid,
.hs-page-clientregister #registration .form-control.is-invalid {
  border-color: var(--hs-danger) !important;
  background-color: var(--hs-danger-surface) !important;
}
.hs-page-clientregister #registration .field.is-invalid:focus,
.hs-page-clientregister #registration .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px oklch(0.704 0.191 22.216 / 35%) !important;
}
.hs-page-clientregister .hs-field-error {
  margin: 6px 0 0;
  color: var(--hs-danger);
  font-size: 0.8125rem;
  line-height: 1.4;
}
.hs-page-clientregister .field-help-text {
  display: block;
  margin-top: 6px;
  color: var(--hs-muted);
  font-size: 0.8125rem;
}

/* Phone: intl-tel-input wraps the field; it fills the column like the rest. */
.hs-page-clientregister #registration .intl-tel-input { display: block; width: 100%; }
.hs-page-clientregister #registration .intl-tel-input .selected-flag { border-radius: var(--hs-radius-md) 0 0 var(--hs-radius-md); }
.hs-page-clientregister #registration .intl-tel-input .selected-flag:focus-visible {
  outline: 2px solid var(--hs-ring);
  outline-offset: -2px;
}

/* Password: strength meter and the rules on the left, the generator beside it. */
.hs-page-clientregister #passwdFeedback { margin-bottom: 16px; }
.hs-page-clientregister .hs-reg-password-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-top: 16px;
}
.hs-page-clientregister .hs-reg-password-tools .password-strength-meter { flex: 1 1 260px; min-width: 0; }
.hs-page-clientregister .password-strength-meter .progress {
  height: 6px;
  margin: 0 0 8px;
  background: var(--hs-control);
  border-radius: 999px;
}
.hs-page-clientregister #passwordStrengthMeterBar {
  background-image: none !important;
  border-radius: 999px;
  transition: width 160ms ease, background-color 160ms ease;
}
.hs-page-clientregister #passwordStrengthMeterBar.bg-success { background-color: var(--hs-live) !important; }
.hs-page-clientregister #passwordStrengthMeterBar.bg-warning { background-color: var(--hs-muted) !important; }
.hs-page-clientregister #passwordStrengthMeterBar.bg-danger { background-color: var(--hs-danger) !important; }
.hs-page-clientregister #passwordStrengthTextLabel,
.hs-page-clientregister .hs-reg-rules {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: left;
}
.hs-page-clientregister .hs-reg-rules { color: var(--hs-muted) !important; }
.hs-page-clientregister #passwordStrengthTextLabel { color: var(--hs-foreground) !important; font-variant-numeric: tabular-nums; }
.hs-page-clientregister .hs-reg-password-tools .generate-password { flex: 0 0 auto; min-height: 36px; }
.hs-page-clientregister .hs-reg-security-questions { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) {
  .hs-page-clientregister #passwordStrengthMeterBar { transition: none; }
}

/* Checkboxes: the box and its words are one target. */
.hs-page-clientregister .hs-check {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 12px;
  margin: 0;
  padding: 10px 0;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--hs-foreground);
  cursor: pointer;
}
.hs-page-clientregister .hs-check > span { flex: 1 1 0; min-width: 0; }
.hs-page-clientregister .hs-check input[type=checkbox] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  cursor: pointer;
}
.hs-page-clientregister .hs-check input[type=checkbox]:focus-visible {
  outline: 2px solid var(--hs-ring);
  outline-offset: 2px;
}
.hs-page-clientregister .hs-check input[type=checkbox].is-invalid { outline: 2px solid var(--hs-danger); outline-offset: 2px; }
.hs-page-clientregister .hs-check a {
  color: var(--hs-foreground);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: oklch(1 0 0 / 35%);
  text-underline-offset: 3px;
}
.hs-page-clientregister .hs-check .hs-field-error { flex: 0 0 100%; margin-left: 30px; }

/* Submit: the terms right above the one bright button. */
.hs-page-clientregister .hs-reg-submit .hs-reg-tos { margin-bottom: 12px; padding-top: 0; }
.hs-page-clientregister .hs-reg-submit .row.justify-content-center { margin: 0 0 16px; justify-content: flex-start !important; }
.hs-page-clientregister .hs-reg-button {
  width: 100%;
  font-weight: 600;
}
@media (min-width: 576px) {
  .hs-page-clientregister .hs-reg-button { width: auto; min-width: 220px; }
}

/* Phones: a little less padding so fields keep their width. */
@media (max-width: 575.98px) {
  .hs-page-clientregister .hs-reg-head { margin: 4px 0 20px; }
  .hs-page-clientregister .hs-reg-title { font-size: 1.625rem; }
  .hs-page-clientregister .hs-reg-section { padding: 20px 16px; }
  .hs-page-clientregister .hs-reg-note { padding: 16px; }
  .hs-page-clientregister .hs-reg-password-tools .generate-password { width: 100%; min-height: 44px; }
}

/*
 * Business note (includes/hs-business-note.tpl): stands where the company name
 * field was on registration, checkout, account details and contacts. A quiet
 * outlined line, not a tile, so it never nests a card inside a section tile.
 * Checkout loads Standard Cart's all.min.css later, hence "html body" there.
 */
.hs-page-clientregister .hs-biz-note,
html body.hs-page-checkout .hs-biz-note,
.hs-page-clientareadetails .hs-biz-note,
.hs-page-account-contacts-manage .hs-biz-note,
.hs-page-account-contacts-new .hs-biz-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-md);
  background: transparent;
  color: var(--hs-muted);
  font-size: 0.875rem;
  line-height: 1.55;
  text-align: left;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.hs-page-clientregister .hs-biz-note a,
html body.hs-page-checkout .hs-biz-note a,
.hs-page-clientareadetails .hs-biz-note a,
.hs-page-account-contacts-manage .hs-biz-note a,
.hs-page-account-contacts-new .hs-biz-note a {
  color: var(--hs-foreground);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: oklch(1 0 0 / 35%);
  text-underline-offset: 3px;
}
.hs-page-clientregister .hs-biz-note a:hover,
html body.hs-page-checkout .hs-biz-note a:hover,
.hs-page-clientareadetails .hs-biz-note a:hover,
.hs-page-account-contacts-manage .hs-biz-note a:hover,
.hs-page-account-contacts-new .hs-biz-note a:hover { text-decoration-color: currentColor; }
.hs-page-clientregister .hs-biz-note a:focus-visible,
html body.hs-page-checkout .hs-biz-note a:focus-visible,
.hs-page-clientareadetails .hs-biz-note a:focus-visible,
.hs-page-account-contacts-manage .hs-biz-note a:focus-visible,
.hs-page-account-contacts-new .hs-biz-note a:focus-visible {
  outline: 2px solid var(--hs-ring);
  outline-offset: 2px;
  border-radius: 2px;
}
/* Under a company name already on file (shown read-only). */
.hs-page-clientareadetails .form-control + .hs-biz-note,
.hs-page-account-contacts-manage .form-control + .hs-biz-note { margin-top: 8px; }
