.wizard-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #111827, #7f1d1d);
  transition: .45s ease;
}

.wizard-splash.hide {
  opacity: 0;
  visibility: hidden;
}

.wizard-splash img {
  max-width: 240px;
  background: white;
  padding: 16px;
  border-radius: 26px;
}

.wizard-loader {
  width: 190px;
  height: 8px;
  margin: 24px auto 0;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  overflow: hidden;
}

.wizard-loader::after {
  content: "";
  display: block;
  width: 65%;
  height: 100%;
  background: #c1121f;
  animation: loadWizard 1s infinite alternate;
}

@keyframes loadWizard {
  from { transform: translateX(-100%); }
  to { transform: translateX(165%); }
}

.wizard-page {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(193,18,31,.16), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(17,24,39,.14), transparent 35%),
    #f8fafc;
}

.wizard-shell {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
}

.wizard-brand {
  position: sticky;
  top: 28px;
  min-height: calc(100vh - 56px);
  padding: 34px;
  border-radius: 34px;
  color: white;
  background: linear-gradient(160deg, rgba(193,18,31,.96), rgba(17,24,39,.97));
  box-shadow: 0 24px 80px rgba(15,23,42,.16);
}

.wizard-brand img {
  width: 100%;
  max-width: 280px;
  background: white;
  padding: 14px;
  border-radius: 24px;
  margin-bottom: 28px;
}

.wizard-brand span {
  display: inline-flex;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-weight: 800;
}

.wizard-brand h1 {
  font-size: 38px;
  line-height: 1.12;
  margin: 22px 0 12px;
  font-weight: 900;
}

.wizard-brand p {
  opacity: .86;
  line-height: 1.6;
}

.wizard-clock-box {
  margin-top: 26px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255,255,255,.13);
}

.wizard-clock-box strong {
  display: block;
  font-size: 36px;
  font-weight: 900;
}

.wizard-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 34px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(15,23,42,.10);
}

.wizard-progress {
  height: 10px;
  border-radius: 999px;
  background: #fee2e2;
  overflow: hidden;
  margin-bottom: 28px;
}

#wizardForm #progressBar {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #c1121f, #111827);
  transition: .3s ease;
}

.wizard-step {
  display: none;
  min-height: 420px;
  animation: fadeSlide .28s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

.wizard-step h2 {
  margin: 0 0 20px;
  font-size: 34px;
  font-weight: 900;
  color: #111827;
}

.wizard-step p {
  color: #6b7280;
}

.welcome-icon {
  width: 160px;
  height: 160px;
  margin: 40px auto;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background: #fee2e2;
  color: #c1121f;
  font-size: 86px;
}

.wizard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

.field {
  text-align: left;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 56px;
  background: white;
}

.wizard-camera {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.wizard-camera video,
.wizard-camera img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 28px;
  background: #111827;
}

.wizard-camera img:not([src]) {
  display: none;
}

.review-box {
  display: grid;
  gap: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  padding: 22px;
}

.review-box div:not(.review-warning) {
  display: grid;
  gap: 4px;
  text-align: left;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.review-box span {
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
}

.review-box strong {
  color: #111827;
}

.review-photo {
  width: 180px;
  height: 135px;
  object-fit: cover;
  border-radius: 20px;
  margin: 0 auto 12px;
}

.review-warning {
  padding: 14px;
  background: #fee2e2;
  color: #991b1b;
  border-radius: 16px;
  font-weight: 800;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 24px;
}

.wizard-btn {
  min-height: 56px;
  padding: 14px 24px;
  border-radius: 18px;
  font-weight: 900;
  width: auto;
}

.wizard-btn.primary {
  background: #c1121f;
}

.wizard-btn.secondary {
  background: #e5e7eb;
  color: #111827;
}

.wizard-btn.success {
  background: #16a34a;
}

.wizard-btn.dark {
  background: #111827;
}

.wizard-admin {
  display: inline-flex;
  gap: 8px;
  margin-top: 22px;
  font-weight: 900;
  color: #991b1b;
}

@media (max-width: 1100px) {
  .wizard-shell {
    grid-template-columns: 1fr;
  }

  .wizard-brand {
    position: relative;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .wizard-page {
    padding: 14px;
  }

  .wizard-card,
  .wizard-brand {
    padding: 22px;
    border-radius: 26px;
  }

  .wizard-grid,
  .wizard-camera {
    grid-template-columns: 1fr;
  }

  .wizard-actions {
    display: grid;
  }

  .wizard-btn {
    width: 100%;
  }

  .wizard-step h2 {
    font-size: 26px;
  }
}

.visitor-pass-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(193,18,31,.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(17,24,39,.14), transparent 35%),
    #f8fafc;
}

.visitor-pass-shell {
  width: 100%;
  max-width: 620px;
}

.visitor-pass {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 34px;
  padding: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 24px 80px rgba(15,23,42,.14);
}

.visitor-pass::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background: linear-gradient(90deg, #c1121f, #111827);
}

.pass-header {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  margin-top: 10px;
}

.pass-header img {
  width: 110px;
  background: white;
  border-radius: 18px;
}

.pass-header span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 900;
  font-size: 12px;
}

.pass-header h1 {
  margin: 8px 0 4px;
  font-size: 25px;
  font-weight: 900;
}

.pass-header p {
  margin: 0;
  color: #6b7280;
}

.pass-success {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  padding: 18px;
  border-radius: 24px;
  background: #dcfce7;
  color: #166534;
  text-align: left;
}

.pass-success i {
  font-size: 42px;
}

.pass-success h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.pass-success p {
  margin: 4px 0 0;
}

.pass-number {
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c1121f, #111827);
  color: white;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
}

.pass-qr {
  display: flex;
  justify-content: center;
  margin: 26px 0;
}

.pass-qr img {
  border-radius: 18px;
}

.pass-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
  border-radius: 26px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
}

.pass-info div {
  display: grid;
  gap: 4px;
  text-align: left;
}

.pass-info span {
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.pass-info strong {
  color: #111827;
}

.pass-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed #d1d5db;
  text-align: center;
  color: #6b7280;
  font-weight: 700;
  font-size: 13px;
}

.pass-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.pass-actions a,
.pass-actions button {
  text-decoration: none;
  color: white;
}

@media print {
  body {
    background: white !important;
  }

  .pass-actions {
    display: none !important;
  }

  .visitor-pass-page {
    padding: 0 !important;
    background: white !important;
  }

  .visitor-pass {
    box-shadow: none !important;
    border: 2px solid #111827;
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .visitor-pass {
    padding: 22px;
    border-radius: 26px;
  }

  .pass-header {
    display: grid;
    text-align: center;
    justify-items: center;
  }

  .pass-info,
  .pass-actions {
    grid-template-columns: 1fr;
  }

  .pass-number {
    font-size: 20px;
  }
}