/* ===========================================================================
   HAMERZ EXPO REGISTRY — Guest Registration
   Mobile-first · Premium · Focused
   =========================================================================== */

.guest {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Ambient background — subtle, never distracting */
.guest-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.guest-bg .g-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: orb-float 14s ease-in-out infinite alternate;
}
.guest-bg .g-orb.one { width: 480px; height: 480px; background: rgba(0, 99, 102, 0.35); top: -160px; inset-inline-end: -120px; }
.guest-bg .g-orb.two { width: 380px; height: 380px; background: rgba(45, 255, 30, 0.06); bottom: -140px; inset-inline-start: -100px; animation-delay: 3s; }
.guest-bg .g-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
@keyframes orb-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-30px, 24px, 0) scale(1.08); }
}

/* ---------------------------------------------------------------------------
   Header
   --------------------------------------------------------------------------- */
.guest-header {
  padding: 22px 20px 10px;
  text-align: center;
}
.guest-header .gh-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.gh-top-divider {
  width: 1px;
  height: 34px;
  background: var(--border-strong);
}
.gh-expo {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}
.guest-header .brand-logo {
  height: 52px;
}
.g-simorgh {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 88vh;
  width: auto;
  max-width: 100%;
  opacity: 0.32;
  filter: blur(2px) drop-shadow(0 0 90px rgba(45, 255, 30, 0.25));
  pointer-events: none;
  animation: simorgh-float 16s ease-in-out infinite alternate;
}
@keyframes simorgh-float {
  from { opacity: 0.27; transform: translate(-50%, -50%) scale(1); }
  to   { opacity: 0.36; transform: translate(-50%, -50%) scale(1.06); }
}
@media (orientation: portrait) {
  .g-simorgh { height: auto; width: 92vw; }
}
.guest-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(45, 255, 30, 0.3);
  background: rgba(45, 255, 30, 0.07);
  color: var(--brand-green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.guest-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 8px var(--brand-green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.guest-header h1 {
  font-size: clamp(1.55rem, 4.5vw, 2.2rem);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.guest-header .gh-subtitle {
  color: var(--brand-lime);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.guest-header .gh-intro {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 460px;
  margin-inline: auto;
  line-height: 1.9;
}

/* ---------------------------------------------------------------------------
   Main card
   --------------------------------------------------------------------------- */
.guest-main {
  flex: 1;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 14px 16px 40px;
  display: flex;
  flex-direction: column;
}
.guest-card {
  background: rgba(17, 22, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px 20px 26px;
}
@media (min-width: 640px) {
  .guest-card { padding: 38px 40px 34px; }
}

/* ---------------------------------------------------------------------------
   Steps
   --------------------------------------------------------------------------- */
.wizard-step { animation: step-in 0.35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.step-title { font-size: 1.25rem; margin-bottom: 4px; }
.step-desc { color: var(--text-muted); font-size: 13.5px; margin-bottom: 22px; }

/* Person type selector */
.type-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .type-grid { grid-template-columns: 1fr 1fr; } }

.type-card {
  position: relative;
  text-align: center;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  user-select: none;
}
.type-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.type-card .tc-icon {
  width: 54px; height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all var(--speed) var(--ease);
}
.type-card .tc-icon svg { width: 26px; height: 26px; }
.type-card h3 { font-size: 16px; margin-bottom: 4px; }
.type-card p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.type-card .tc-check {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand-green);
  color: #071008;
  display: grid; place-items: center;
  opacity: 0; transform: scale(0.5);
  transition: all var(--speed) var(--ease);
}
.type-card .tc-check svg { width: 14px; height: 14px; }
.type-card.selected {
  border-color: var(--brand-green);
  background: rgba(45, 255, 30, 0.04);
  box-shadow: var(--glow-green);
}
.type-card.selected .tc-icon { background: rgba(45,255,30,0.1); color: var(--brand-green); }
.type-card.selected .tc-check { opacity: 1; transform: scale(1); }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 520px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.cat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-primary);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--speed) var(--ease);
  user-select: none;
}
.cat-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.cat-card .cc-icon {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  display: grid; place-items: center;
  color: var(--text-muted);
  transition: all var(--speed) var(--ease);
}
.cat-card .cc-icon svg { width: 21px; height: 21px; }
.cat-card .cc-body { flex: 1; min-width: 0; }
.cat-card .cc-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.cat-card .cc-desc { font-size: 11.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card .cc-check {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  display: grid; place-items: center;
  color: #071008;
  transition: all var(--speed) var(--ease);
}
.cat-card .cc-check svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: all var(--speed) var(--ease); }
.cat-card.selected {
  border-color: var(--brand-green);
  background: rgba(45, 255, 30, 0.04);
  box-shadow: 0 0 0 1px rgba(45,255,30,0.25), 0 0 16px rgba(45,255,30,0.12);
}
.cat-card.selected .cc-icon { background: rgba(45,255,30,0.1); color: var(--brand-green); border-color: rgba(45,255,30,0.3); }
.cat-card.selected .cc-check { background: var(--brand-green); border-color: var(--brand-green); }
.cat-card.selected .cc-check svg { opacity: 1; transform: scale(1); }

/* Review list */
.review-list { display: flex; flex-direction: column; gap: 0; }
.review-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-primary);
}
.review-row:last-child { border-bottom: none; }
.review-row .rr-label { color: var(--text-muted); font-size: 13px; flex: none; }
.review-row .rr-value { color: var(--text-primary); font-size: 14px; font-weight: 600; text-align: end; }
.review-cats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.review-cats .badge { margin: 0; }

/* Footer nav */
.wizard-nav { display: flex; gap: 12px; margin-top: 26px; }
.wizard-nav .btn { flex: 1; }
.wizard-nav .btn-back { flex: 0 0 auto; min-width: 116px; }

/* Consent */
.consent {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-primary);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.9;
  text-align: center;
}

/* ---------------------------------------------------------------------------
   Success screen
   --------------------------------------------------------------------------- */
.success-hero { text-align: center; padding: 30px 8px 8px; }
.success-ring {
  position: relative;
  width: 110px; height: 110px;
  margin: 0 auto 26px;
}
.success-ring .sr-circle {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(45,255,30,0.2);
  border-top-color: var(--brand-green);
  animation: spin 2.4s linear infinite;
}
.success-ring .sr-inner {
  position: absolute; inset: 14px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  display: grid; place-items: center;
  color: var(--brand-green);
}
.success-ring .sr-inner svg { width: 42px; height: 42px; animation: pop-in 0.5s var(--ease); }
@keyframes pop-in { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Registration disabled */
.disabled-panel {
  text-align: center;
  padding: 44px 24px;
}
.disabled-panel .dp-icon {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-primary);
  display: grid; place-items: center;
  color: var(--warning);
}
.disabled-panel .dp-icon svg { width: 34px; height: 34px; }

/* Guest footer */
.guest-footer {
  text-align: center;
  padding: 10px 20px 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .guest-header .brand-logo { height: 40px; }
  .gh-expo { height: 40px; max-width: 120px; }
  .gh-top-divider { height: 26px; }
}
