/* R56 — corporate registration lookup, validation and wizard navigation. */
.registration-company-form .field-company_legal_details,
.registration-company-form .field-provide_names_now,
.registration-company-form .form-actions {
  grid-column: 1 / -1;
}

/* Keep the requested semantic order stable even if fields are extended later. */
.registration-company-form .field-company_jurisdiction { grid-column: 1; }
.registration-company-form .field-company_directory { grid-column: 2; }
.registration-company-form .field-company_tax_number { grid-column: 1; }
.registration-company-form .field-company_kpp { grid-column: 2; }
.registration-company-form .field-company_short_name { grid-column: 1; }
.registration-company-form .field-company_legal_address_raw { grid-column: 2; }
.registration-company-form .field-signatory_position_nominative { grid-column: 1; }
.registration-company-form .field-signatory_full_name_nominative { grid-column: 2; }
.registration-company-form .field-signatory_initials_surname_nominative { grid-column: 1; }
.registration-company-form .field-company_authority_basis { grid-column: 2; }
.registration-company-form .field-bank_details { grid-column: 1; }
.registration-company-form .field-billing_email { grid-column: 2; }
.registration-company-form .field-contact_name { grid-column: 1; }
.registration-company-form .field-contact_phone { grid-column: 2; }
.registration-company-form .field-registrar_attends { grid-column: 1; }
.registration-company-form .field-currency { grid-column: 2; }
.registration-company-form .field-offline_count { grid-column: 1; }
.registration-company-form .field-online_count { grid-column: 2; }

.registration-company-form .field-bank_details textarea,
.registration-company-form .field-company_legal_details textarea {
  min-height: 168px;
}

/* The verification card is intentionally readable but visually inactive. */
.registration-company-form [data-r46-legal-preview] {
  min-height: 230px;
  border-color: #c8cbc7;
  background: #eef0ed;
  color: #4d514e;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  resize: none;
}
.registration-company-form [data-r46-legal-preview]:hover,
.registration-company-form [data-r46-legal-preview]:focus {
  border-color: #c8cbc7;
  background: #eef0ed;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .02);
  outline: none;
}

/* Initials are generated from the full nominative FIO and cannot be edited. */
.registration-company-form [data-r56-derived-initials] {
  border-color: #c8cbc7;
  background: #eef0ed;
  color: #4d514e;
  cursor: default;
}
.registration-company-form [data-r56-derived-initials]:focus {
  border-color: #c8cbc7;
  background: #eef0ed;
  outline: 2px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

/* Large primary lookup action with an explicit data-retrieval pictogram. */
.r55-company-lookup {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  padding-inline: 18px;
  border: 2px solid color-mix(in srgb, var(--brand-primary) 76%, #000);
  background: var(--brand-primary);
  color: #050505;
  font-weight: 900;
  text-align: left;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-primary) 24%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.r55-company-lookup svg {
  width: 24px;
  height: 24px;
}
.r55-company-lookup i {
  font-style: normal;
  font-size: 22px;
  transition: transform .18s ease;
}
.r55-company-lookup:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-primary) 32%, transparent);
}
.r55-company-lookup:hover:not(:disabled) i { transform: translateX(3px); }
.r55-company-lookup:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-primary) 35%, transparent);
  outline-offset: 3px;
}
.r55-company-lookup:disabled {
  cursor: wait;
  opacity: .78;
}
.r55-company-lookup.is-loading svg { animation: r55-lookup-pulse 1s ease-in-out infinite; }
.r55-company-lookup[hidden] { display: none; }
@keyframes r55-lookup-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(.84); opacity: .52; }
}

.r55-company-lookup-status {
  min-height: 19px;
  margin-top: 2px;
  padding: 9px 11px;
  border-left: 3px solid #909590;
  background: #f1f2f0;
  color: #555a56;
  font-size: 12px;
  line-height: 1.45;
}
.r55-company-lookup-status[hidden] { display: none; }
.r55-company-lookup-status[data-kind="progress"] {
  border-color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
}
.r55-company-lookup-status[data-kind="success"] {
  border-color: #2e7d32;
  background: #edf7ee;
  color: #205c24;
}
.r55-company-lookup-status[data-kind="error"] {
  border-color: var(--danger, #b42318);
  background: #fff0ee;
  color: #8f1f18;
}

/* Placeholder is the requested grey italic mask; entered digits use normal text. */
.registration-company-form input[data-r56-phone]::placeholder {
  color: #969b96;
  font-style: italic;
  opacity: 1;
}
.registration-company-form input[data-r56-phone]:not(:placeholder-shown) {
  font-style: normal;
}

.registration-company-form .field-registrar_attends,
.registration-company-form .field-provide_names_now {
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid #d5d8d4;
  background: #f6f7f5;
  align-content: center;
}
.registration-company-form .field-provide_names_now { margin-top: -4px; }

.field-error input,
.field-error select,
.field-error textarea {
  border-color: #c62828 !important;
  background: #fff8f7 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, .15);
}
.field-error > label {
  color: #a81f19;
}
.field-error .error-text,
.field-error .client-error {
  display: block;
  margin-top: 7px;
  color: #a81f19;
  font-weight: 800;
  line-height: 1.45;
}

/* Individual registration displays only the attendance-history notice. */
.wizard-aside-individual {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.individual-attendance-notice {
  margin: 0 !important;
  padding: 18px 20px;
  border-left: 4px solid var(--brand-primary);
  background: #111;
  color: #e3e3e3 !important;
  font-size: 13px;
  line-height: 1.55;
}

/* Clear first-step affordance: icon plus instruction instead of “Select →”. */
.registration-choice-copy > .registration-choice-prompt {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand-primary);
  font-size: 13px;
  line-height: 1.35;
}
.registration-choice-prompt svg {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
}
.registration-choice-card:hover .registration-choice-prompt svg,
.registration-choice-card:has(input:checked) .registration-choice-prompt svg {
  transform: translateY(-2px);
}
.registration-choice-prompt svg { transition: transform .18s ease; }

.checkout-actions {
  display: grid;
  gap: 10px;
}
.checkout-actions .checkout-back {
  margin-top: 0;
  text-align: center;
}

/* The confirmation panel is dark.  Global ghost buttons inherit dark text,
   therefore the back action must define a visible resting state explicitly. */
.checkout-card .checkout-actions .checkout-back {
  --button-bg: transparent;
  --button-color: #fff;
  border-color: #8a8a8a;
  background: transparent;
  color: #fff;
  opacity: 1;
  visibility: visible;
}
.checkout-card .checkout-actions .checkout-back:hover,
.checkout-card .checkout-actions .checkout-back:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #080808;
}

.wizard-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.wizard-action-buttons .wizard-back {
  min-width: 135px;
}

.checkout-card .legal-payment-note[data-company-payment-identity] {
  display: grid;
  gap: 8px;
  max-width: none;
  margin: 18px 0;
  padding: 22px;
  border: 1px solid #393939;
  border-left: 5px solid var(--brand-primary);
  background: #111;
}
.checkout-card .legal-payment-note[data-company-payment-identity] strong {
  color: #fff;
  font-size: 19px;
  line-height: 1.3;
}
.checkout-card .legal-payment-note[data-company-payment-identity] small {
  color: #b9b9b9;
  font-size: 13px;
  line-height: 1.45;
}

/* The SQA Days / About heading and its breadcrumb remain on a single line. */
.content-page-about.r26-content-head h1 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(28px, 7vw, 112px);
}
.content-page-about.r26-content-head .breadcrumbs {
  flex-wrap: nowrap;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .registration-company-form .field {
    grid-column: 1 / -1 !important;
  }
  .registration-company-form .field-company_legal_details textarea {
    min-height: 280px;
  }
  .r55-company-lookup { min-height: 56px; }
  .wizard-action-buttons {
    width: 100%;
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .wizard-action-buttons .button { width: 100%; }
  .content-page-about.r26-content-head h1 {
    font-size: clamp(26px, 7.2vw, 50px);
    letter-spacing: -.055em;
  }
}

@media (max-width: 420px) {
  .content-page-about.r26-content-head h1 {
    font-size: clamp(23px, 6.8vw, 32px);
  }
  .content-page-about.r26-content-head .breadcrumbs {
    font-size: 9px;
  }
}
