/* ===================================================================
   REGISTRATION FORMS & LIVE BADGE PREVIEW STYLES (LIGHT THEME)
   =================================================================== */

.reg-page-wrapper {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.reg-layout {
  max-width: 820px;
  margin: 0 auto;
}

/* Category Tabs Selector */
.category-switcher {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.cat-tab {
  background: #ffffff;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cat-tab:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  background: #f8fafc;
}

.cat-tab.active-participant {
  border-color: #ea580c;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.cat-tab.active-delegate {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.cat-tab.active-faculty,
.cat-tab.active-vip {
  border-color: #7c3aed;
  background: #f5f3ff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.cat-tab.active-media {
  border-color: #e11d48;
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.15);
}

.cat-icon {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.active-participant .cat-icon { color: #ea580c; }
.active-delegate .cat-icon { color: #0284c7; }
.active-faculty .cat-icon,
.active-vip .cat-icon { color: #7c3aed; }
.active-media .cat-icon { color: #e11d48; }

.cat-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  display: block;
  margin-bottom: 3px;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Form Container */
.form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.form-header {
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-header h2 {
  font-size: 22px;
  color: var(--text-main);
  font-weight: 800;
}

.form-badge-pill {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Groups & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}

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

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
  background: #ffffff;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.section-divider {
  margin: 24px 0 18px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-subtle);
  font-size: 13px;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkbox Row */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* ===================================================================
   STICKY LIVE BADGE PREVIEW (RIGHT COLUMN)
   =================================================================== */
.badge-preview-column {
  position: sticky;
  top: 100px;
}

.preview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.preview-badge-card {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px -8px rgba(15, 23, 42, 0.15), 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1.5px solid var(--border-subtle);
  position: relative;
  background: #ffffff;
  transition: var(--transition);
}

.lanyard-slot {
  width: 50px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 10px;
  margin: 14px auto 8px;
  border: 1px solid #94a3b8;
}

.badge-inner {
  padding: 24px;
  text-align: center;
}

.badge-cat-banner {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.badge-photo-placeholder {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: #f1f5f9;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.preview-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--text-main);
}

.preview-role {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2px;
}

.preview-org {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.preview-qr-box {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 10px;
  border-radius: 12px;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.preview-qr-box canvas, .preview-qr-box img {
  width: 100%;
  height: 100%;
}

.preview-id {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
}

/* ===================================================================
   SUCCESS & CONFIRMATION MODAL
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
  position: relative;
  padding: 36px;
  text-align: center;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--text-main);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  border: 2px solid var(--success);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ticket-pass-card {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 22px 0;
  text-align: left;
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.ticket-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ===================================================================
   3-STEP WIZARD PROGRESS BAR & REFERENCE CARD STYLES
   =================================================================== */
.reg-hero-banner {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f97316 100%);
  border-radius: 16px 16px 0 0;
  padding: 32px 24px 26px;
  color: #ffffff;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.2);
}

.reg-hero-banner h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
}

.reg-hero-banner p {
  font-size: 14px;
  opacity: 0.95;
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.reg-wizard-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.07);
  overflow: hidden;
  margin-bottom: 50px;
}

.reg-wizard-body {
  padding: 36px 36px 40px;
}

/* 3-Step Wizard Stepper */
.stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 650px;
  margin: 0 auto 36px;
  position: relative;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  cursor: default;
}

.step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-node.active .step-circle {
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.22);
}

.step-node.completed .step-circle {
  background: #16a34a;
  color: #ffffff;
}

.step-label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  transition: color 0.2s ease;
}

.step-node.active .step-label {
  color: #0f172a;
}

.step-node.completed .step-label {
  color: #16a34a;
}

.step-connector {
  flex: 1;
  height: 3px;
  background: #e2e8f0;
  margin: -20px 12px 0;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease;
}

.step-connector.completed {
  background: #0284c7;
}

/* Reference Card-Based Form Sections */
.form-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease;
}

.form-section-card:focus-within {
  border-color: #cbd5e1;
}

.section-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 2px solid #0284c7;
  margin-bottom: 20px;
}

.section-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.section-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
}

/* Reference Breakdown Summary Box */
.ticket-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-top: 14px;
}

.ticket-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.ticket-price-val {
  font-size: 20px;
  font-weight: 800;
  color: #0284c7;
  font-family: var(--font-mono);
}

.ticket-price-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Validation Error Highlighting (matches red border in user reference image) */
.form-control.has-error,
select.form-control.has-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18) !important;
}

.field-error-msg {
  color: #dc2626;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* Step 2: Review Table & Summary Grid */
.review-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
}

.review-section-heading {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #0284c7;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  margin: 18px 0 12px;
}

.review-section-heading:first-of-type {
  margin-top: 0;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.review-item {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px 14px;
}

.review-item-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.review-item-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  word-break: break-word;
}

/* Wizard Step Navigation Bar */
.wizard-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

/* Animated Registration Processing Loader Overlay */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.processing-overlay.active {
  display: flex;
  opacity: 1;
}

.processing-modal {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 32px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.processing-spinner-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.processing-spinner-outer {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #e2e8f0;
  border-top-color: #ea580c;
  border-right-color: #0284c7;
  animation: spinOuter 1s linear infinite;
}

.processing-spinner-inner {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid #f1f5f9;
  border-bottom-color: #7c3aed;
  animation: spinInner 1.4s linear infinite reverse;
}

.processing-mascot-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea580c;
}

.processing-yes-logo {
  width: auto;
  height: 32px;
  max-width: 32px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(10, 25, 110, 0.12));
  animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinOuter {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes spinInner {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.processing-status-msg {
  font-size: 13px;
  color: #64748b;
  min-height: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.processing-progress-bar {
  height: 6px;
  width: 100%;
  background: #f1f5f9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.processing-progress-fill {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, #ea580c, #0284c7, #7c3aed);
  background-size: 200% 100%;
  border-radius: 10px;
  animation: progressPulse 1.5s ease-in-out infinite alternate, gradientMove 2s linear infinite;
}

@keyframes progressPulse {
  0% { width: 25%; }
  100% { width: 90%; }
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.processing-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .category-switcher { grid-template-columns: repeat(2, 1fr); }
  .reg-layout { max-width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .review-grid { grid-template-columns: 1fr; }
  .reg-wizard-body { padding: 24px 18px; }
  .stepper-container { max-width: 100%; }
}

@media (max-width: 480px) {
  .category-switcher { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .reg-page-wrapper {
    padding: 76px 10px 40px;
  }

  .reg-wizard-card {
    border-radius: 12px;
    margin: 0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  }

  .reg-hero-banner {
    padding: 16px 14px;
    border-radius: 12px 12px 0 0;
  }

  .reg-hero-banner h1 {
    font-size: 18px;
    gap: 8px;
  }

  .reg-hero-banner p {
    font-size: 11px;
    margin-top: 4px;
  }

  .reg-wizard-body {
    padding: 16px 12px;
  }

  /* Compact Stepper for Mobile */
  .stepper-container {
    margin-bottom: 22px;
    padding: 0 4px;
  }

  .step-node {
    padding: 0 4px;
    gap: 6px;
  }

  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .step-label {
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    max-width: 82px;
  }

  .step-connector {
    margin: -14px 4px 0;
    height: 2px;
  }

  /* Full-width finger-friendly category switcher on mobile */
  .category-switcher {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .cat-tab {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
  }

  .cat-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .cat-title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .cat-desc {
    font-size: 11px;
  }

  /* Form Cards & Inputs */
  .form-section-card {
    padding: 16px 12px;
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .section-card-header {
    padding-bottom: 8px;
    margin-bottom: 14px;
  }

  .section-card-title {
    font-size: 14px;
  }

  .form-control {
    font-size: 14px;
    padding: 10px 12px;
    min-height: 44px;
  }

  select.form-control {
    font-size: 14px;
    min-height: 44px;
  }

  /* Review Summary Table */
  .review-summary-card {
    padding: 16px 12px;
  }

  .review-grid {
    gap: 8px;
  }

  .review-item {
    padding: 8px 10px;
  }

  .review-item-lbl {
    font-size: 10px;
  }

  .review-item-val {
    font-size: 13px;
  }

  /* Wizard Buttons Stack on Mobile */
  .wizard-nav-actions {
    flex-direction: column-reverse;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
  }

  .wizard-nav-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
  }

  #btn-to-step-2 {
    font-size: 15px !important;
    padding: 13px 18px !important;
  }

  /* Ticket Summary Box */
  .ticket-summary-box {
    padding: 12px;
    margin-top: 10px;
  }

  .ticket-price-val {
    font-size: 17px;
  }

  .ticket-price-sub {
    font-size: 11px;
  }

  /* Processing Loader Modal */
  .processing-modal {
    padding: 28px 16px;
    border-radius: 16px;
  }

  .processing-spinner-wrap {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .processing-spinner-inner {
    width: 44px;
    height: 44px;
    top: 10px;
    left: 10px;
  }

  .processing-title {
    font-size: 17px;
  }

  .processing-status-msg {
    font-size: 12px;
  }

  /* Confirmation Step 3 Card */
  .ticket-pass-card {
    padding: 16px 12px;
    border-radius: 12px;
  }

  #step3-qr-img {
    width: 160px;
    height: 160px;
  }

  .ticket-actions .btn {
    font-size: 13px !important;
    padding: 12px 14px !important;
  }
}

@media (max-width: 380px) {
  .step-label {
    font-size: 9px;
    max-width: 68px;
  }

  .reg-hero-banner h1 {
    font-size: 16px;
  }
}

