/* KYC web app — supplemental styles on top of Indeed IFL (styles.css) */

#branding .passport-ssr-d1rsnd {
  inline-size: 75px;
  block-size: 20px;
  fill: none;
}

.kyc-logout-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.kyc-indeed-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--ifl-colors-foreground-weak, #767676);
  padding: 1rem 0;
}

/* ---- mi-* landing patterns ---- */

.mi-lang {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.mi-lang button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--ifl-colors-foreground-weak, #767676);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}
.mi-lang button.is-active {
  color: var(--ifl-colors-foreground-action-primary, #004fcb);
  background: var(--ifl-colors-background-primary-weak, #ecf2ff);
}
.mi-lang span {
  color: var(--ifl-colors-border-weak, #e4e2e0);
  line-height: 1.8;
}

.mi-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--ifl-colors-background-status-success-weaker, #e4f7e6);
  color: var(--ifl-colors-foreground-status-success, #1f662c);
  margin-bottom: 0.75rem;
}

.mi-job {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ifl-colors-foreground-strong, #2d2d2d);
}

.mi-lede {
  display: block;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.mi-cta-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 1.25rem 0 1.5rem;
}
.mi-cta-row .passport-ssr-4hyrt1,
.mi-cta-row .btn--primary {
  display: inline-flex;
  inline-size: auto;
  width: auto;
  margin-top: 0 !important;
  text-decoration: none;
  opacity: 1 !important;
  pointer-events: auto !important;
  background-color: var(--ifl-colors-background-action-primary, #004fcb) !important;
  color: var(--ifl-colors-foreground-inverse, #fff) !important;
}
.mi-cta-secondary {
  display: inline-flex;
  align-items: center;
  font-size: 0.9375rem;
  line-height: 1.5;
  white-space: nowrap;
}

.mi-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ifl-colors-border-weak, #e4e2e0);
}
.mi-section h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ifl-colors-foreground-strong, #2d2d2d);
  margin: 0 0 0.75rem;
}

.mi-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mi-step;
}
.mi-steps li {
  display: flex;
  gap: 14px;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.mi-steps li::before {
  counter-increment: mi-step;
  content: counter(mi-step);
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ifl-colors-background-primary-weak, #ecf2ff);
  color: var(--ifl-colors-foreground-action-primary, #004fcb);
  font-weight: 700;
  font-size: 0.8125rem;
  display: grid;
  place-items: center;
}
.mi-steps h3 {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ifl-colors-foreground-strong, #2d2d2d);
}
.mi-steps p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ifl-colors-foreground, #595959);
}
.mi-steps code {
  font-size: 0.8125rem;
  background: var(--ifl-colors-background-weak, #f3f2f1);
  padding: 1px 6px;
  border-radius: 4px;
}

.mi-next {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mi-next li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ifl-colors-foreground, #595959);
}
.mi-next__num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ifl-colors-background-action-primary, #004fcb);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.mi-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--ifl-colors-foreground-weak, #767676);
}

/* ---- KYC page components (Indeed tokens) ---- */

body.kyc-indeed {
  --brand: var(--ifl-colors-background-action-primary, #004fcb);
  --brand-2: #003a9b;
  --accent: var(--ifl-colors-foreground-status-success, #1f662c);
  --warn: #f59e0b;
  --text: var(--ifl-colors-foreground-strong, #2d2d2d);
  --body: var(--ifl-colors-foreground, #595959);
  --muted: var(--ifl-colors-foreground-weak, #767676);
  --line: var(--ifl-colors-border-weak, #e4e2e0);
  --surface: var(--ifl-colors-background-weak, #f3f2f1);
  --surface-2: var(--ifl-colors-background-primary-weak, #ecf2ff);
  --radius: 8px;
  --radius-lg: 12px;
}

body.kyc-indeed .passport-ssr-k6s4t9,
body.kyc-indeed h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ifl-colors-foreground-strong, #2d2d2d);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

body.kyc-indeed .auth-sub,
body.kyc-indeed .passport-ssr-bctmig {
  display: block;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
  font-size: 0.9375rem;
}

body.kyc-indeed .card {
  background: var(--ifl-colors-background-weak, #f3f2f1);
  border: none;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  margin: 0 0 0.875rem;
}
body.kyc-indeed .card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}
body.kyc-indeed .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

body.kyc-indeed .banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  line-height: 1.45;
}
body.kyc-indeed .banner__ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--warn);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
body.kyc-indeed .banner strong {
  display: block;
  color: #78350f;
  margin-bottom: 2px;
}

body.kyc-indeed .brand-dot {
  color: var(--brand);
}

body.kyc-indeed .auth-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

body.kyc-indeed .field {
  display: block;
  margin-bottom: 1rem;
}
body.kyc-indeed .field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
body.kyc-indeed .field input,
body.kyc-indeed .field select,
body.kyc-indeed .field textarea {
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--ifl-colors-border, #949494);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}
body.kyc-indeed .field textarea {
  min-height: 96px;
  height: auto;
}
body.kyc-indeed .field input:focus,
body.kyc-indeed .field select:focus,
body.kyc-indeed .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--surface-2);
}
body.kyc-indeed .field-row {
  display: flex;
  gap: 10px;
}
body.kyc-indeed .field-row > .field {
  flex: 1;
}

body.kyc-indeed .btn--primary,
body.kyc-indeed button.btn--primary,
body.kyc-indeed a.btn--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  background: var(--ifl-colors-background-action-primary, #004fcb);
  color: var(--ifl-colors-foreground-inverse, #fff);
  box-sizing: border-box;
  margin-top: 0.5rem;
}
body.kyc-indeed .btn--primary:hover {
  background: var(--brand-2);
}
body.kyc-indeed .btn--primary:active {
  opacity: 0.9;
}
body.kyc-indeed .btn--ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  box-sizing: border-box;
}
body.kyc-indeed .btn--danger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid #fecaca;
  cursor: pointer;
  font-family: inherit;
  background: #fef2f2;
  color: #991b1b;
}
body.kyc-indeed .btn--primary[disabled] {
  background: var(--line);
  color: var(--muted);
  pointer-events: none;
}
body.kyc-indeed .btn--sm {
  padding: 8px 12px;
  min-height: 32px;
  font-size: 0.8125rem;
  width: auto;
}

body.kyc-indeed .step {
  position: relative;
  padding-left: 42px;
}
body.kyc-indeed .step__num {
  position: absolute;
  left: 0;
  top: 1.25rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--line);
}
body.kyc-indeed .step.is-done .step__num {
  background: var(--ifl-colors-background-status-success, #1f662c);
  color: #fff;
  border-color: var(--ifl-colors-background-status-success, #1f662c);
}
body.kyc-indeed .step__status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  margin-left: 6px;
  vertical-align: middle;
}
body.kyc-indeed .step.is-done .step__status {
  background: var(--ifl-colors-background-status-success-weaker, #e4f7e6);
  color: var(--ifl-colors-foreground-status-success, #1f662c);
}

body.kyc-indeed .progress {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 6px 0 10px;
}
body.kyc-indeed .progress__bar {
  height: 100%;
  background: var(--ifl-colors-background-action-primary, #004fcb);
  transition: width 0.3s;
}

body.kyc-indeed .countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0 10px;
}
body.kyc-indeed .countdown__cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 6px;
  text-align: center;
}
body.kyc-indeed .countdown__num {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
body.kyc-indeed .countdown__lbl {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.kyc-indeed .text-muted { color: var(--muted); }
body.kyc-indeed .center { text-align: center; }
body.kyc-indeed .mt-1 { margin-top: 8px; }
body.kyc-indeed .mt-2 { margin-top: 16px; }
body.kyc-indeed .mb-2 { margin-bottom: 16px; }

body.kyc-indeed .alert {
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}
body.kyc-indeed .alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
body.kyc-indeed .alert-success {
  background: var(--ifl-colors-background-status-success-weaker, #e4f7e6);
  border: 1px solid #a7f3d0;
  color: var(--ifl-colors-foreground-status-success, #1f662c);
}
body.kyc-indeed .alert-info {
  background: var(--ifl-colors-background-primary-weak, #ecf2ff);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
body.kyc-indeed .alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

body.kyc-indeed a:not(.btn--primary):not(.btn--ghost) {
  color: var(--ifl-colors-foreground-action-primary, #004fcb);
  font-weight: 600;
  text-decoration: none;
}
body.kyc-indeed a:not(.btn--primary):not(.btn--ghost):hover {
  text-decoration: underline;
}

body.kyc-indeed .kyc-link-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 1rem 0;
}
