/* Registro de proveedor por pasos — SharkTask.
   Tokens duplicados intencionalmente desde sharktask-home.css (misma marca fija),
   porque esta página usa el layout "headerremove" (body.body-bg), que no incluye
   el scope .sharktask-home. No leer de Settings > Theme Setup (ver design system). */

.st-wizard {
  --coral: #b2544c;
  --coral-shade: #8e433d;
  --coral-tint: #f3e2df;
  --ink: #25414c;
  --paper: #f9f5ec;
  --surface: #ffffff;
  --muted: #586970;
  --line: #dfe3de;
  --ok: #3f7d5c;
  --ok-tint: #e4efe8;
  --danger: #b3261e;
  --danger-tint: #fbeceb;

  font-family: 'SharkTask', 'Poppins', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.st-wizard * { box-sizing: border-box; }
.st-wizard a { color: var(--coral); text-decoration: none; }
.st-wizard a:hover { color: var(--coral-shade); }
.st-wizard button { font-family: inherit; cursor: pointer; }
.st-wizard input, .st-wizard select, .st-wizard textarea { font-family: inherit; }
.st-wizard ::placeholder { color: #9aa7ab; }

/* ---- Aside (brand + progress) ---- */
.st-wizard-aside {
  position: relative;
  flex: 0 0 380px;
  background: var(--ink);
  color: var(--paper);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.st-wizard-aside::before,
.st-wizard-aside::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249, 245, 236, 0.08);
}
.st-wizard-aside::before { top: -90px; right: -110px; width: 300px; height: 300px; }
.st-wizard-aside::after { bottom: -130px; left: -90px; width: 260px; height: 260px; }

.st-wizard-brand { position: relative; display: flex; align-items: center; margin-bottom: 40px; }
/* This page uses the "headerremove" layout, which doesn't carry the
   .sharktask-home body class, so the shared .sharktask-brand sizing rule
   in sharktask-home.css never applies here -- same reason the color
   tokens at the top of this file are duplicated instead of inherited. */
.st-wizard-brand .sharktask-brand { width: 150px; height: 44px; object-fit: contain; }

.st-wizard-copy { position: relative; }
.st-wizard-copy h2 { color: var(--paper); font-size: 26px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; letter-spacing: -0.02em; }
.st-wizard-copy p { color: var(--paper); font-size: 14px; line-height: 1.7; margin: 0; max-width: 280px; }

.st-wizard-progress { position: relative; display: flex; flex-direction: column; }
.st-progress-item { display: flex; align-items: flex-start; gap: 14px; }
.st-progress-rail { display: flex; flex-direction: column; align-items: center; }
.st-progress-dot {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex: 0 0 auto;
  background: transparent; color: rgba(249, 245, 236, 0.55);
  border: 1.5px solid rgba(249, 245, 236, 0.3);
}
.st-progress-item.is-done .st-progress-dot,
.st-progress-item.is-active .st-progress-dot {
  background: var(--coral); color: var(--paper); border: 2px solid var(--coral);
}
.st-progress-item.is-active .st-progress-dot { box-shadow: 0 0 0 4px rgba(178, 84, 76, 0.28); }
.st-progress-line { width: 1.5px; height: 26px; background: rgba(249, 245, 236, 0.2); }
.st-progress-item.is-done .st-progress-line { background: var(--coral); }
.st-progress-label { padding-top: 5px; padding-bottom: 20px; font-size: 13px; font-weight: 600; color: rgba(249, 245, 236, 0.5); }
.st-progress-item.is-done .st-progress-label,
.st-progress-item.is-active .st-progress-label { color: var(--paper); }

/* ---- Main column ---- */
.st-wizard-main { position: relative; flex: 1; display: flex; flex-direction: column; background: var(--surface); min-width: 0; }
.st-wizard-scroll { flex: 1; overflow-y: auto; padding: 48px 56px 24px; }
.st-panel { max-width: 480px; }
.st-panel[hidden] { display: none; }

.st-wizard-login-hint {
  position: absolute;
  top: 22px;
  right: 32px;
  font-size: 13px;
  color: var(--muted);
  z-index: 5;
}
.st-wizard-login-hint a { color: var(--coral); font-weight: 600; margin-left: 4px; }
.st-wizard-login-hint a:hover { color: var(--coral-shade); }

.st-badge { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); margin-bottom: 10px; }
.st-title { font-size: 25px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.st-subtitle { font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.st-note { font-size: 12.5px; color: #9aa7ab; margin: 0 0 24px; }

.st-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.st-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-field { margin-bottom: 16px; }
.st-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.st-field .st-hint { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.st-input, .st-select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 14px; color: var(--ink); background: #fff; appearance: none;
}
.st-input:focus, .st-select:focus, .st-textarea:focus {
  outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(178, 84, 76, 0.12);
}
.st-input.is-invalid, .st-select.is-invalid { border-color: var(--danger); }
.st-input[readonly] {
  background: var(--paper);
  color: var(--muted);
  cursor: default;
}
.st-error-msg { display: none; font-size: 12px; color: var(--danger); margin-top: 6px; }
.st-error-msg.is-visible { display: block; }
.st-map-wrap { margin-top: 14px; }
.st-map { width: 100%; height: 220px; border-radius: 12px; border: 1.5px solid var(--line); overflow: hidden; background: var(--paper); }
.st-map-wrap .st-hint { margin-top: 6px; }

.st-company-status { display: none; font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.st-company-status.is-visible { display: block; }
.st-company-status.is-checking { color: var(--muted); font-weight: 400; }
.st-company-status.is-valid { color: var(--ok); }
.st-company-status.is-invalid { color: var(--danger); }

.st-phone { display: flex; gap: 8px; }
.st-phone-prefix { flex: 0 0 auto; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--muted); background: #faf9f6; }
.st-phone input { flex: 1; }

.st-password-wrap { position: relative; }
.st-password-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 6px;
}

/* ---- Step 2: account type cards ---- */
.st-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.st-card {
  text-align: left; padding: 20px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line);
}
.st-card svg { margin-bottom: 12px; }
.st-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.st-card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.st-card.is-selected { background: var(--coral-tint); border-color: var(--coral); }
.st-card.is-selected svg path, .st-card.is-selected svg circle { stroke: var(--coral); }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
  padding: 8px 14px; border-radius: 999px; background: #fff; color: var(--muted);
  font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--line);
}
.st-chip.is-selected { background: var(--coral-tint); color: var(--coral-shade); border-color: transparent; }
.st-chip-add { background: #fff; color: var(--muted); border: 1.5px dashed var(--line); }
.st-zone-empty, .st-zone-loading { font-size: 12.5px; color: var(--muted); }

/* ---- Step 3: documents ---- */
.st-doc-list { display: flex; flex-direction: column; gap: 12px; }
.st-doc-card { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 18px 20px; }
.st-doc-card.is-uploaded { border-color: #bcdccb; background: #f3f9f5; }
.st-doc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-doc-name { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.st-doc-tag { font-size: 12px; font-weight: 600; margin-top: 3px; color: var(--coral); }
.st-doc-tag.is-optional { color: #9aa7ab; }
.st-doc-actions { display: flex; gap: 8px; }
.st-doc-btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.st-doc-btn:hover { border-color: var(--coral); }
.st-doc-done { display: flex; align-items: center; gap: 10px; }
.st-doc-done-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--ok); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.st-doc-filename { font-size: 12px; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-doc-replace { background: none; border: none; font-size: 12.5px; font-weight: 600; color: var(--coral); padding: 0; }
.st-doc-error { font-size: 12px; color: var(--danger); margin-top: 8px; display: none; }
.st-doc-error.is-visible { display: block; }

/* ---- Step 4: review ---- */
.st-summary-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 14px; }
.st-summary-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.st-summary-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.st-summary-edit { background: none; border: none; font-size: 12.5px; font-weight: 600; color: var(--coral); padding: 0; }
.st-summary-name { font-size: 14.5px; font-weight: 600; }
.st-summary-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.st-terms { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.st-terms input { margin-top: 3px; }

/* ---- Step 5: success ---- */
.st-success-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 26px; }
.st-success-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.st-success-step { display: flex; gap: 12px; align-items: flex-start; }
.st-success-step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--coral-tint); color: var(--coral-shade);
  font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.st-success-step-text { font-size: 13.5px; color: var(--ink); padding-top: 3px; }

/* ---- Footer nav ---- */
.st-wizard-footer { border-top: 1px solid var(--line); padding: 20px 56px; display: flex; align-items: center; justify-content: space-between; }
.st-btn-back {
  display: flex; align-items: center; gap: 8px; background: none; border: none; font-size: 14px; font-weight: 600;
  padding: 10px 6px; color: var(--ink);
}
.st-btn-back[disabled] { color: #c8ceb9; pointer-events: none; }
.st-btn-next {
  display: flex; align-items: center; gap: 8px; background: var(--coral); color: var(--paper); border: none;
  border-radius: 999px; font-size: 14px; font-weight: 600; padding: 13px 28px; min-width: 140px; justify-content: center;
}
.st-btn-next:hover { background: var(--coral-shade); }
.st-btn-next[disabled] { opacity: 0.65; pointer-events: none; }

.st-form-error {
  display: none; background: var(--danger-tint); color: var(--danger); border-radius: 12px; padding: 12px 16px;
  font-size: 13px; margin-bottom: 20px;
}
.st-form-error.is-visible { display: block; }

/* ---- Camera capture overlay (mobile) ---- */
.st-camera-hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* ---- Responsive ---- */
@media (max-width: 991.98px) {
  .st-wizard { flex-direction: column; }
  .st-wizard-aside { flex: 0 0 auto; padding: 28px 24px; }
  .st-wizard-aside::before, .st-wizard-aside::after { display: none; }
  .st-wizard-copy h2 { font-size: 21px; }
  .st-wizard-copy p { display: none; }
  .st-wizard-progress { flex-direction: row; gap: 6px; margin-top: 18px; }
  .st-progress-item { flex: 1; flex-direction: column; align-items: center; gap: 6px; }
  .st-progress-rail { flex-direction: row; width: 100%; align-items: center; }
  .st-progress-line { width: 100%; height: 1.5px; }
  .st-progress-label { padding: 0; text-align: center; font-size: 10.5px; }
  .st-wizard-scroll { padding: 28px 20px 16px; }
  .st-wizard-login-hint {
    position: static;
    display: block;
    text-align: center;
    padding: 14px 20px 0;
  }
  .st-wizard-footer { padding: 16px 20px 20px; }
  .st-row, .st-row-3, .st-cards { grid-template-columns: 1fr; }
  .st-panel { max-width: none; }
}
