/* =====================================================
   SNCBT — register-company.css
   Company / Partner Registration · 2-Step Wizard
   ===================================================== */

:root {
  --bg: #f0f4fb;
  --surface: #ffffff;
  --blue-primary: #1c52a0;
  --blue-mid: #245caa;
  --blue-light: #ddeaf8;
  --blue-lighter: #eef4fc;
  --blue-accent: #4d86d2;
  --sidebar-deep: #0f2138;
  --white: #ffffff;
  --text: #1a2533;
  --text-muted: #5e7a96;
  --border: rgba(28,82,160,0.13);
  --border-strong: rgba(28,82,160,0.28);
  --shadow: 0 2px 12px rgba(28,82,160,0.08);
  --shadow-md: 0 6px 28px rgba(28,82,160,0.12);
  --danger: #c0392b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { overflow-x: hidden; }

body {
  font-family: 'Open Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── TOP HEADER ── */
.reg-header {
  background: var(--sidebar-deep);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.reg-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reg-header-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  padding: 5px;
}

.reg-header-logo-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: white;
}

.reg-header-text .rht-school {
  font-size: 12px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
}

.reg-header-text .rht-portal {
  font-size: 9.5px;
  color: rgba(255,255,255,0.42);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  transition: all 0.2s;
}

.back-link svg { width: 13px; height: 13px; }
.back-link:hover { background: rgba(255,255,255,0.12); color: white; }

/* ── MAIN BODY ── */
.reg-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 48px;
}

.reg-container {
  width: 100%;
  max-width: 640px;
}

/* ── PAGE HEADING ── */
.reg-page-head {
  text-align: center;
  margin-bottom: 28px;
}

.reg-role-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-lighter);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 4px 12px 4px 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.reg-role-chip svg { width: 13px; height: 13px; }
.reg-page-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.reg-page-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto;
}

/* ── STEP PROGRESS ── */
.step-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.step-progress-track {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 14px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  right: calc(-50% + 14px);
  height: 2px;
  background: var(--border);
  z-index: 0;
  transition: background 0.3s;
}

.step-item.done:not(:last-child)::after { background: var(--blue-accent); }

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  z-index: 1;
  transition: all 0.3s;
  position: relative;
}

.step-dot svg { width: 12px; height: 12px; }

.step-item.active .step-dot {
  border-color: var(--blue-primary);
  background: var(--blue-primary);
  color: white;
  box-shadow: 0 0 0 4px rgba(28,82,160,0.12);
}

.step-item.done .step-dot {
  border-color: var(--blue-accent);
  background: var(--blue-accent);
  color: white;
}

.step-label-text {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  transition: color 0.3s;
}

.step-item.active .step-label-text { color: var(--blue-primary); }

.step-progress-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-progress-info {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.step-progress-info span { color: var(--blue-primary); }

.step-bar-track {
  height: 4px;
  background: var(--blue-light);
  border-radius: 4px;
  overflow: hidden;
  width: 120px;
}

.step-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-accent));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ── STEP PANES ── */
.step-pane { display: none; }
.step-pane.active { display: block; animation: fadeUp 0.22s ease; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM CARD ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.form-card-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.form-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-lighter);
  border: 1.5px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.form-card-icon svg { width: 16px; height: 16px; }
.form-card-title { font-size: 13px; font-weight: 800; color: var(--text); }
.form-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ── FORM FIELDS ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-group { margin-bottom: 13px; }
.form-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 700;
}

label .req { color: var(--danger); margin-left: 2px; }

.optional-tag {
  font-size: 9.5px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
input[type="date"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: auto;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(28,82,160,0.09);
  background: white;
}

input.err, select.err, textarea.err {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

textarea { resize: vertical; min-height: 84px; }

.field-hint { font-size: 10.5px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
.field-error { font-size: 10.5px; color: var(--danger); margin-top: 4px; display: none; }
.field-error.show { display: block; }

/* ── COMPANY TYPE TOGGLE ── */
.comp-type-row { display: flex; gap: 9px; }
.ct-radio { display: none; }
.ct-radio + label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: all 0.2s;
}
.ct-radio + label:hover { border-color: var(--blue-mid); background: var(--blue-lighter); }
.ct-radio:checked + label { border-color: var(--blue-mid); background: var(--blue-light); color: var(--blue-primary); }
.ct-radio + label svg { width: 14px; height: 14px; }

/* ── JOB TYPE CHECKBOXES ── */
.jt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jt-check { display: none; }
.jt-check + label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: all 0.2s;
}
.jt-check + label:hover { border-color: var(--blue-mid); background: var(--blue-lighter); }
.jt-check:checked + label { border-color: var(--blue-mid); background: var(--blue-light); color: var(--blue-primary); }
.jt-check-box {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 2px solid var(--border-strong); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.jt-check-box svg { width: 10px; height: 10px; display: none; }
.jt-check:checked + label .jt-check-box {
  background: var(--blue-primary); border-color: var(--blue-primary); color: white;
}
.jt-check:checked + label .jt-check-box svg { display: block; }

/* ── FILE UPLOAD ── */
.file-zone {
  border: 2px dashed var(--border-strong);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s;
  position: relative;
}
.file-zone:hover { border-color: var(--blue-mid); background: var(--blue-lighter); }
.file-zone.has-file { border-color: var(--blue-mid); background: var(--blue-lighter); border-style: solid; }
.file-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-zone-icon { color: var(--blue-accent); margin-bottom: 7px; }
.file-zone-icon svg { width: 28px; height: 28px; }
.file-zone-text { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.file-zone-sub { font-size: 10.5px; color: var(--text-muted); }
.file-chosen { font-size: 11px; font-weight: 700; color: var(--blue-primary); margin-top: 6px; display: none; }
.file-chosen.show { display: block; }

/* ── PASSWORD ── */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center; padding: 4px;
  transition: color 0.2s;
}
.pw-toggle:hover { color: var(--blue-primary); }
.pw-toggle svg { width: 15px; height: 15px; }

.pw-strength { margin-top: 7px; }
.pw-bars { display: flex; gap: 4px; margin-bottom: 3px; }
.pw-bar { height: 3px; flex: 1; border-radius: 2px; background: var(--border); transition: background 0.3s; }
.pw-bar.s1 { background: #e74c3c; }
.pw-bar.s2 { background: #f39c12; }
.pw-bar.s3 { background: var(--blue-mid); }
.pw-bar.s4 { background: var(--blue-accent); }
.pw-strength-text { font-size: 9.5px; font-weight: 700; color: var(--text-muted); }

/* ── TERMS ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-lighter);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.terms-row input[type="checkbox"] {
  width: 15px; height: 15px; flex-shrink: 0;
  margin-top: 2px; accent-color: var(--blue-primary);
}
.terms-text { font-size: 11.5px; color: var(--text); line-height: 1.6; }
.terms-text a { color: var(--blue-primary); font-weight: 700; text-decoration: none; }
.terms-text a:hover { text-decoration: underline; }

/* ── NOTICE ── */
.reg-notice {
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
}
.reg-notice svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.reg-notice.info { background: var(--blue-lighter); border: 1px solid var(--border-strong); color: var(--blue-primary); }
.reg-notice.warn { background: rgba(230,126,34,0.08); border: 1px solid rgba(230,126,34,0.25); color: #8a5800; }

/* ── STEP NAV ── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  min-height: 38px;
  padding: 9px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  color: white;
  box-shadow: 0 3px 10px rgba(28,82,160,0.26);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(28,82,160,0.36); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-outline {
  background: white;
  border: 1.5px solid var(--border-strong);
  color: var(--blue-primary);
}
.btn-outline:hover { background: var(--blue-lighter); }

.btn-spinner {
  display: none;
  width: 15px; height: 15px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-primary.loading .btn-label { display: none; }
.btn-primary.loading .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SUCCESS ── */
.success-screen { display: none; text-align: center; padding: 20px 10px; }
.success-screen.show { display: block; animation: fadeUp 0.3s ease; }

.success-icon {
  width: 72px; height: 72px;
  background: var(--blue-light);
  border: 3px solid var(--blue-mid);
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-primary);
}
.success-icon svg { width: 32px; height: 32px; }

.success-title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.success-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.7; max-width: 420px; margin: 0 auto 20px; }

.status-steps {
  background: var(--blue-lighter);
  border: 1.5px solid var(--border-strong);
  border-radius: 11px;
  padding: 16px 18px;
  margin-bottom: 20px;
  text-align: left;
}
.status-step { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.status-step + .status-step { border-top: 1px solid var(--border); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.blue { background: var(--blue-accent); }
.status-dot.orange { background: #e67e22; }
.status-dot.muted { background: var(--border-strong); }
.status-step-text { font-size: 12px; color: var(--text); line-height: 1.4; }
.status-step-text strong { font-weight: 800; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .reg-body { padding: 22px 14px 40px; }
  .form-row { grid-template-columns: 1fr; }
  .comp-type-row { flex-wrap: wrap; }
  .jt-grid { grid-template-columns: 1fr; }
  .step-nav { flex-wrap: wrap; }
  .step-nav .btn-primary { flex: 1; justify-content: center; }
  .step-bar-track { width: 90px; }
  .form-card { padding: 16px; }
}

@media (max-width: 420px) {
  .reg-header { padding: 0 16px; }
  .reg-header-text .rht-school { font-size: 11px; }
  .step-label-text { display: none; }
  .reg-page-title { font-size: 19px; }
}
