/**
 * Entasher registration — strict brand colors only.
 * Blue #264EFF, Orange #F7A722, White #FFFFFF, Black #000000.
 * No gradients. Tints via rgba only.
 */
:root {
  --blue: #264EFF;
  --orange: #F7A722;
  --white: #FFFFFF;
  --black: #000000;
  --ink: rgba(0, 0, 0, 0.85);
  --ink-light: rgba(0, 0, 0, 0.6);
  --muted: rgba(0, 0, 0, 0.5);
  --bg: rgba(38, 78, 255, 0.04);
  --bg-light: rgba(38, 78, 255, 0.06);
  --surface: #FFFFFF;
  --line: rgba(0, 0, 0, 0.12);
  --line-light: rgba(0, 0, 0, 0.08);
  --focus: 0 0 0 3px rgba(38, 78, 255, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --wrap: 1200px;
  --header-height: 64px;
  --transition: all 0.2s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { border: none; background: none; font-family: inherit; cursor: pointer; }
.hidden { display: none !important; }
/* Focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
/* Shared icon (SVG use) */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}
.icon-sm { width: 20px; height: 20px; }
.icon-lg { width: 32px; height: 32px; }
/* Header */
.register-header.site {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.register-header .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}
.register-header .brand {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--blue);
}
.register-header .nav-cta { display: flex; align-items: center; gap: 10px; }
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: rgba(38, 78, 255, 0.9);
  border-color: rgba(38, 78, 255, 0.9);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-outline {
  background: var(--white);
  color: var(--black);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--blue); }
/* Page layout */
.register-page {
  min-height: calc(100vh - var(--header-height));
  padding: 24px 16px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.register-container {
  width: 100%;
  max-width: 560px;
}
/* Card */
.register-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-sm);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.register-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--blue);
}
.register-card h1 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
}
.register-card .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}
/* Benefit strip (inside card) */
.benefit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line-light);
}
.benefit-strip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-light);
}
.benefit-strip-item .icon { color: var(--blue); }
/* Intent selection (Step 1) */
.intent-options { display: flex; flex-direction: column; gap: 12px; }
.intent-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  background: var(--surface);
}
.intent-option:hover { border-color: var(--blue); background: var(--bg-light); }
.intent-option.selected {
  border-color: var(--blue);
  background: rgba(38, 78, 255, 0.08);
  box-shadow: var(--focus);
}
.intent-option .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(38, 78, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.intent-option .label { font-weight: 800; color: var(--black); margin-bottom: 4px; }
.intent-option .hint { font-size: 13px; color: var(--muted); }
/* Progress */
.progress-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  position: relative;
}
.progress-line {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--line-light);
  border-radius: var(--radius-pill);
  z-index: 0;
}
.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
  z-index: 1;
}
.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.step-circle {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
  transition: var(--transition);
}
.progress-step.active .step-circle {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.progress-step.completed .step-circle {
  background: var(--white);
  border-color: var(--orange);
  font-size: 0;
  color: transparent;
}
.progress-step.completed .step-circle::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.step-label { font-size: 11px; font-weight: 600; color: var(--muted); }
.progress-step.active .step-label { color: var(--blue); }
/* Steps content */
.step-content { display: none; }
.step-content.active { display: block; }
/* Form */
.register-form { display: flex; flex-direction: column; gap: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 6px;
}
.field label .required { color: var(--blue); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: var(--surface);
  color: var(--black);
  transition: var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: var(--focus);
}
.field input.input-error { border-color: var(--orange) !important; box-shadow: 0 0 0 3px rgba(247, 167, 34, 0.18); }
.field-help { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field-error {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--orange);
}
.field-error:not(.hidden) {
  display: flex;
}
.field-error::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F7A722' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4M12 16h.01'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
/* Phone: no gradients, dropdown arrow in brand */
.phone-wrap { display: flex; gap: 0; align-items: stretch; }
.phone-code-wrap { width: 120px; min-width: 120px; flex-shrink: 0; }
.phone-code-wrap select {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: 0;
  padding-right: 32px;
  appearance: none;
  background-color: var(--surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23264EFF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.phone-number-input {
  flex: 1;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: 0;
}
.phone-number-input:focus { border-left: 1.5px solid var(--blue); margin-left: -1.5px; }
/* Chips */
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-light);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}
.chip:hover { border-color: var(--blue); background: rgba(38, 78, 255, 0.08); }
.chip.selected { background: var(--blue); color: var(--white); border-color: var(--blue); }
.chip input { display: none; }
/* Role module */
.role-module { display: none; }
.role-module.active { display: block; }
.module-note {
  background: rgba(38, 78, 255, 0.08);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink-light);
}
.module-note strong { color: var(--blue); }
/* Password strength: brand colors only, no green */
.password-strength { margin-top: 6px; display: flex; gap: 4px; }
.password-strength-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}
.password-strength-bar.on { background: var(--blue); }
.password-strength-bar.weak { background: var(--orange); }
/* Checkbox */
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
  cursor: pointer;
}
.checkbox-row label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.checkbox-row a { color: var(--blue); font-weight: 600; }
/* Form actions */
.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.form-actions .btn { min-height: 44px; }
/* Login link */
.login-link {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.login-link p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.login-link a { color: var(--blue); font-weight: 700; }
/* File upload */
.file-upload {
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  background: var(--bg-light);
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.file-upload:hover { border-color: var(--blue); }
.file-upload input { display: none; }
.file-upload .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Success page (shared) */
.success-page main {
  padding: 40px 20px;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-box { max-width: 560px; width: 100%; text-align: center; }
.success-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.success-icon-wrap .icon { width: 40px; height: 40px; stroke: currentColor; }
.success-icon-wrap--muted { background: rgba(0, 0, 0, 0.08); color: var(--black); }
.success-box h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; color: var(--black); margin-bottom: 12px; }
.success-box .lead { font-size: 16px; color: var(--ink-light); margin-bottom: 28px; line-height: 1.6; }
.success-info {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  border: 1px solid var(--line-light);
  text-align: left;
}
.success-info .item { display: flex; gap: 14px; margin-bottom: 18px; }
.success-info .item:last-child { margin-bottom: 0; }
.success-info .item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(38, 78, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.success-info h3 { font-size: 14px; font-weight: 800; color: var(--black); margin-bottom: 2px; }
.success-info p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }
.success-cta { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.success-cta .btn { min-width: 220px; min-height: 44px; }
/* Minimal footer (Option B) */
.register-footer {
  padding: 24px 20px;
  border-top: 1px solid var(--blue);
  background: var(--white);
  text-align: center;
  font-size: 13px;
  color: var(--black);
}
.register-footer a { color: var(--blue); font-weight: 600; }
@media (max-width: 640px) {
  .register-page { padding: 16px 12px 40px; }
  .register-card { padding: 24px 20px; }
  .field input, .field select, .field textarea { font-size: 16px; min-height: 48px; }
  .btn { min-height: 48px; padding: 14px 20px; }
  .step-circle { width: 32px; height: 32px; font-size: 12px; }
  .phone-code-wrap { width: 110px; min-width: 110px; }
  .benefit-strip { gap: 12px 16px; }
  .success-cta .btn { width: 100%; }
}
