@import url(https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap);
:root {
  --accent: #6366f1;
  --accent-dark: #4f46e5;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.check-wrap {
  width: 100%;
  max-width: 440px;
}

.brand-top {
  text-align: center;
  margin-bottom: 2rem;
}
.brand-top img {
  height: 50px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 0.75rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.brand-top .tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
  border-radius: 20px;
  padding: 0.25rem 0.85rem;
}

.ticket-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.section-sub {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
}

.input-group-styled {
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  background: #f8fafc;
  transition: border-color 0.18s, box-shadow 0.18s;
  margin-bottom: 0.5rem;
}
.input-group-styled:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: #fff;
}
.input-group-styled .phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border-right: 1.5px solid #e2e8f0;
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
}
.input-group-styled input {
  border: none;
  background: transparent;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Outfit", sans-serif;
  color: #0f172a;
  letter-spacing: 0.04em;
  flex: 1;
  outline: none;
  min-width: 0;
}
.input-group-styled input::-moz-placeholder {
  font-weight: 400;
  color: #cbd5e1;
  letter-spacing: 0;
}
.input-group-styled input::placeholder {
  font-weight: 400;
  color: #cbd5e1;
  letter-spacing: 0;
}

.error-msg {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  color: #be123c;
  font-size: 0.82rem;
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.75rem;
  display: none;
}

.btn-find {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.22s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}
.btn-find:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.38);
}
.btn-find:active {
  transform: translateY(0);
}

.loading-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.divider {
  border: none;
  border-top: 1px dashed #e2e8f0;
  margin: 1.5rem 0;
}

.not-registered-link {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}
.not-registered-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.not-registered-link a:hover {
  text-decoration: underline;
}

.loader-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 10;
  border-radius: 20px;
}
.loader-overlay.d-none {
  display: none !important;
}
.loader-overlay .spinner-lg {
  width: 44px;
  height: 44px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.loader-overlay p {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin: 0;
}

.not-found-state {
  text-align: center;
  animation: fadeUp 0.4s ease;
}

.nf-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.nf-icon {
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 2px solid #fecdd3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f43f5e;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}

.nf-pulse-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(244, 63, 94, 0.18);
  animation: nf-pulse 2s ease-out infinite;
}

@keyframes nf-pulse {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  100% {
    transform: scale(1.15);
    opacity: 0;
  }
}
.nf-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.nf-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.nf-number {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.15rem 0.75rem;
  letter-spacing: 0.05em;
  margin: 0.25rem 0;
  font-family: monospace;
}

.nf-redirect-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1.5px solid rgba(245, 158, 11, 0.25);
  color: #b45309;
  border-radius: 20px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.nf-redirect-pill i {
  font-size: 0.75rem;
}
.nf-redirect-pill strong {
  font-size: 0.9rem;
  color: #92400e;
  min-width: 1ch;
  display: inline-block;
  text-align: center;
}

.btn-register-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  text-decoration: none;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transition: all 0.22s ease;
  margin-bottom: 0.75rem;
}
.btn-register-now:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.38);
}
.btn-register-now:active {
  transform: translateY(0);
}

.btn-try-again {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  background: none;
  border: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.15s;
}
.btn-try-again:hover {
  color: var(--accent);
}

.badge-result {
  display: none;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.visitor-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.visitor-details {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.ticket-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 -2rem;
  position: relative;
}
.ticket-divider::before {
  content: "";
  flex: 1;
  border-top: 1.5px dashed #e2e8f0;
}
.ticket-divider .hole {
  width: 20px;
  height: 20px;
  background: #f1f5f9;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1.5px solid #e2e8f0;
}
.ticket-divider::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed #e2e8f0;
}

.qr-section {
  text-align: center;
  padding: 1.75rem 0 1.25rem;
}
.qr-section img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.urn-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.urn-box .urn-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}
.urn-box .urn-code {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: monospace;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.btn-print {
  width: 100%;
  padding: 0.85rem;
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: "Outfit", sans-serif;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.btn-print:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.btn-back {
  background: none;
  border: none;
  font-family: "Outfit", sans-serif;
  font-size: 0.82rem;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.4rem;
  transition: color 0.15s;
}
.btn-back:hover {
  color: var(--accent);
}

.page-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: #cbd5e1;
}

@media (max-width: 576px) {
  body {
    padding: 1rem;
  }
  .ticket-card {
    padding: 1.75rem 1.25rem;
  }
}
@media print {
  body {
    background: #fff;
    padding: 0;
  }
  .btn-find, .btn-back, #searchArea {
    display: none !important;
  }
  .ticket-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
