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

* {
  box-sizing: border-box;
}

body {
  font-family: "Outfit", sans-serif;
  background: #f8fafc;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

.reg-page {
  min-height: 100vh;
  display: flex;
}

.reg-image-panel {
  width: 44%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
}
.reg-image-panel img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.reg-image-panel .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.25) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}
.reg-image-panel .expo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.35rem 0.85rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.reg-image-panel h2 {
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.reg-form-panel {
  flex: 1;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-inner {
  width: 100%;
  max-width: 480px;
}

.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}
.brand-header img {
  height: 52px;
  -o-object-fit: contain;
     object-fit: contain;
  margin-bottom: 0.75rem;
}
.brand-header .official-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 20px;
  padding: 0.25rem 0.85rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.field-group {
  margin-bottom: 1.25rem;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #475569;
  margin-bottom: 0.4rem;
}
.field-label .req {
  color: #ef4444;
  margin-left: 2px;
}

.form-control, .form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 0.72rem 0.9rem;
  font-size: 0.9rem;
  font-family: "Outfit", sans-serif;
  color: #0f172a;
  background: #fff;
  width: 100%;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  outline: none;
}
.form-control::-moz-placeholder, .form-select::-moz-placeholder {
  color: #cbd5e1;
}
.form-control::placeholder, .form-select::placeholder {
  color: #cbd5e1;
}

textarea.form-control {
  resize: vertical;
  min-height: 90px;
}

.whatsapp-hint {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
}

.custom-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.custom-radio-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.custom-radio-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.custom-radio-item input {
  accent-color: var(--accent);
  width: 1.1rem;
  height: 1.1rem;
}
.custom-radio-item label {
  cursor: pointer;
  font-size: 0.9rem;
  color: #0f172a;
  margin: 0;
}

.privacy-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1.5px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #78350f;
  line-height: 1.65;
}
.privacy-box .privacy-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.4rem;
}
.privacy-box .privacy-title i {
  font-size: 1rem;
  color: #f59e0b;
}

.privacy-check {
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.privacy-check:has(input:checked) {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: #fafbff;
}
.privacy-check input {
  accent-color: #6366f1;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.privacy-check label, .privacy-check span {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  line-height: 1.5;
}

.error-alert {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: #be123c;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.error-alert ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.btn-submit {
  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-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.38);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit.loading {
  opacity: 0.75;
  pointer-events: none;
}

.success-wrap {
  text-align: center;
  animation: fadeUp 0.45s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.3);
}
.success-icon i {
  color: #fff;
  font-size: 1.4rem;
}

.success-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.success-note {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 2rem;
}

.qr-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}
.qr-card img {
  width: 180px;
  height: 180px;
  display: block;
  margin: 0 auto 1.25rem;
  border-radius: 4px;
}

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

.action-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.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;
}
.btn-print:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

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

.divider-line {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}

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

.mobile-banner {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 0 0 16px 16px;
  display: none;
}

@media (max-width: 991px) {
  .reg-image-panel {
    display: none;
  }
  .mobile-banner {
    display: block;
  }
  .reg-form-panel {
    padding: 1.5rem 1.25rem 2.5rem;
  }
}
@media print {
  .reg-form-panel {
    overflow: visible;
  }
  .btn-print, .btn-register-another, .retrieve-link {
    display: none;
  }
  .qr-card {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
