/* ===============================
   Register Page Styles (register.css)
================================ */
.register-page {
  padding: 38px 0 80px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.18), transparent 30%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.14), transparent 28%),
              linear-gradient(135deg, #f8fafc 0%, #eef6ff 100%);
  min-height: calc(100vh - 82px);
}

.intro-card {
  background: linear-gradient(135deg, rgba(6, 26, 61, 0.98), rgba(11, 42, 90, 0.95));
  border-radius: 28px;
  padding: 24px;
  color: #fff;
  margin-bottom: 24px;
  box-shadow: 0 18px 45px rgba(6, 26, 61, 0.20);
}

.intro-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #fcd34d;
}

.intro-content h2 {
  font-size: 28px;
  font-weight: 950;
  margin: 0 0 8px;
  line-height: 1.3;
}

.intro-content p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.8;
}

.register-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

.panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.panel-head {
  padding: 24px 24px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #fafcfd;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.panel-head h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 950;
  color: #0f172a;
}

.panel-head p {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.wizard-step-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 9px 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 900;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.wizard-step-pill span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 10.5px;
}

.wizard-step-pill.active {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.wizard-step-pill.active span {
  background: #1d4ed8;
}

.panel-body {
  padding: 24px;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.step-title-box {
  margin-bottom: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 14px;
}

.step-title-box h4 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 950;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-title-box h4 i {
  color: #1d4ed8;
}

.step-title-box p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: grid;
  gap: 6px;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 13px;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: #1d4ed8;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 850;
  font-size: 14px;
  color: #0f172a;
  outline: none;
  transition: .2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.8;
}

.helper {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 800;
}

/* Upload & ID Cards */
.upload-area {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 20px;
  padding: 16px;
}

.upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.upload-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.upload-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 950;
  color: #0f172a;
}

.upload-info small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 800;
  margin-top: 2px;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #fff;
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 950;
  font-size: 13px;
  cursor: pointer;
  transition: .2s ease;
}

.file-btn:hover {
  background: #1d4ed8;
}

.file-btn input {
  display: none;
}

.id-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.id-upload-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.id-upload-box strong {
  font-size: 12.5px;
  font-weight: 950;
  color: #0f172a;
}

.id-preview-frame {
  height: 120px;
  background: #f1f5f9;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.id-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.id-preview-frame img[src] {
  display: block;
}

.privacy-note {
  margin-top: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 11.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-card-preview {
  margin-top: 14px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  display: none;
}

.image-card-preview.show {
  display: block;
}

.image-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.image-preview-head strong {
  font-size: 13px;
  font-weight: 950;
}

.image-preview-head span {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
}

.main-preview-frame {
  height: 180px;
  border-radius: 12px;
  background: #f1f5f9;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.main-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-actions {
  display: flex;
  gap: 8px;
}

.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.work-preview-item {
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  position: relative;
  background: #f1f5f9;
}

.work-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Wizard Actions */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.step-counter {
  font-size: 13px;
  font-weight: 900;
  color: #64748b;
}

.wizard-actions-right {
  display: flex;
  gap: 10px;
}

.mini-btn, .submit-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-family: inherit;
  font-weight: 950;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  transition: .2s ease;
}

.mini-btn.dark { background: #f1f5f9; color: #0f172a; }
.mini-btn.dark:hover { background: #e2e8f0; }

.mini-btn.blue, .submit-btn { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; }
.mini-btn.blue:hover, .submit-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(29, 78, 216, 0.22); }

.mini-btn.red { background: #fee2e2; color: #dc2626; }
.mini-btn.red:hover { background: #fecaca; }

.mini-btn.green { background: #16a34a; color: #fff; }
.mini-btn.green:hover { background: #15803d; }

.mini-btn.gold { background: #fef3c7; color: #92400e; }

/* Sidebar Stack */
.side-stack {
  display: grid;
  gap: 16px;
}

.side-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.side-card h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 950;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.side-card h4 i {
  color: #1d4ed8;
}

.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.side-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #475569;
  line-height: 1.6;
}

.side-card li i {
  color: #16a34a;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Crop Modal */
.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(5px);
}

.crop-modal.show {
  display: flex;
}

.crop-box {
  width: min(720px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  max-height: 92vh;
  overflow: auto;
}

.crop-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.crop-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 950;
  color: #0f172a;
}

.crop-head p {
  margin: 0;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 800;
}

.crop-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 16px;
}

.crop-image-wrap {
  height: 300px;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.crop-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.crop-side {
  display: grid;
  gap: 12px;
}

.crop-preview-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
}

.crop-preview-card strong {
  display: block;
  font-size: 12px;
  font-weight: 950;
  color: #0f172a;
  margin-bottom: 8px;
}

.crop-preview-body {
  height: 90px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  display: grid;
  place-items: center;
}

.crop-preview {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.crop-help {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 12px;
}

.crop-help h5 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 950;
  color: #0f172a;
}

.crop-help ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.crop-help li {
  font-size: 11px;
  color: #64748b;
  font-weight: 800;
}

.crop-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

/* Responsive */
@media(max-width: 960px) {
  .register-grid {
    grid-template-columns: 1fr;
  }
  .side-stack {
    display: none;
  }
}

@media(max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .id-card-grid {
    grid-template-columns: 1fr;
  }
  .crop-layout {
    grid-template-columns: 1fr;
  }
  .crop-image-wrap {
    height: 220px;
  }
}