/* ============================================
   TONY'S BAKERY — Public Portal & Registration CSS
   public.css
   ============================================ */

.public-body {
  background: linear-gradient(160deg, #f5f0ea 0%, #ede8e0 50%, #f5f0ea 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === PUBLIC NAVBAR === */
.public-navbar {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2523 100%);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid var(--cream);
}

.public-navbar .brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
}

.public-navbar .brand-logo {
  font-size: 1.6rem;
}

.public-navbar .brand-name {
  font-weight: 800;
  color: var(--cream);
  font-size: 1.1rem;
  line-height: 1.1;
}

.public-navbar .brand-tagline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* === HERO SECTION === */
.hero-banner {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
  border-bottom: 3px solid var(--cream);
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 60% 40%, rgba(232, 93, 34, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #E85D22;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-desc {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

/* === STICKY FOOTER OR STEPS === */
.public-container {
  max-width: 600px;
  width: 100%;
  margin: -3rem auto 3rem;
  padding: 0 1rem;
  flex: 1;
  position: relative;
  z-index: 10;
}

.public-card {
  background: #fff;
  border-radius: var(--border-radius-xl);
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(232, 93, 34, 0.12);
}

/* Steps Indicator */
.step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: var(--transition);
}

.step-dot.active {
  background: #D32F2F;
  width: 24px;
  border-radius: 4px;
}

/* Ticket calculator preview */
.calc-preview {
  background: #fff5f5;
  border: 1.5px dashed #D32F2F;
  border-radius: var(--border-radius);
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
  display: none;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calc-preview-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #B71C1C;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.calc-preview-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #D32F2F;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.calc-preview-desc {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* Loyalty Stamp Card UI */
.stamp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stamp-slot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed var(--tan);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  position: relative;
  transition: var(--transition);
}

.stamp-slot.active {
  border-color: #D32F2F;
  background: #fff5f5;
  color: #D32F2F;
  border-style: solid;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stamp-slot.reward {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple);
  border-style: solid;
}

.stamp-slot.reward.active {
  background: var(--purple);
  color: #fff;
}

/* Landing Info Cards */
.info-box {
  background: #fdf8f5;
  border: 1px solid rgba(232, 93, 34, 0.15);
  border-radius: var(--border-radius);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.info-box i {
  font-size: 1.25rem;
  color: #E85D22;
  margin-top: 0.15rem;
}

.info-box-content h5 {
  color: #B71C1C;
  margin-bottom: 0.15rem;
}

.info-box-content p {
  font-size: 0.8rem;
  color: var(--gray-600);
  line-height: 1.4;
}

/* Public Footer */
.public-footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--gray-400);
  font-size: 0.8rem;
  border-top: 1px solid var(--gray-200);
  background: #fff;
  margin-top: auto;
}

/* Success Card Decor */
.success-decor {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--success), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  animation: popIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-tickets-badge {
  background: #fff5f5;
  border: 2px solid #D32F2F;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

/* Tab active accent — match admin primary */
.tabs .tab-item.active {
  color: #D32F2F !important;
  border-bottom-color: #D32F2F !important;
  font-weight: 700;
}

/* Form input focus — match admin accent */
.public-body .form-control:focus {
  border-color: #E85D22 !important;
  box-shadow: 0 0 0 3px rgba(232, 93, 34, 0.12) !important;
  outline: none;
}

/* Primary button — admin gradient */
.public-body .btn-primary {
  background: linear-gradient(135deg, #E85D22 0%, #D32F2F 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  transition: all 0.2s ease;
}

.public-body .btn-primary:hover,
.public-body .btn-primary:focus {
  background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%) !important;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.35) !important;
  transform: translateY(-1px);
}

/* ============================================
   Public Registration Portal Mobile Responsive (<= 650px & <= 480px)
   ============================================ */
@media (max-width: 650px) {
  .public-navbar {
    padding: 0.65rem 0.85rem !important;
  }

  .public-navbar .brand-logo {
    font-size: 1.35rem !important;
  }

  .public-navbar .brand-name {
    font-size: 0.95rem !important;
  }

  .public-navbar .brand-tagline {
    font-size: 0.65rem !important;
  }

  .hero-banner {
    padding: 2.25rem 1rem 3.5rem !important;
  }

  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.25 !important;
  }

  .hero-desc {
    font-size: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }

  .public-container {
    margin: -2.25rem auto 1.5rem !important;
    padding: 0 0.5rem !important;
  }

  .public-card {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  /* Public Navigation Tabs */
  #publicTabsHeader {
    display: flex !important;
    width: 100% !important;
    gap: 0.4rem !important;
    margin-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--gray-200) !important;
  }

  #publicTabsHeader .tab-item {
    flex: 1 1 0 !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    padding: 0.65rem 0.35rem !important;
    white-space: nowrap !important;
  }

  /* Form Labels & Inputs */
  .form-group {
    margin-bottom: 1rem !important;
  }

  .form-label {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.35rem !important;
  }

  .form-control,
  select.form-control,
  input[type="text"],
  input[type="tel"],
  input[type="email"] {
    font-size: 0.88rem !important;
    height: 44px !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 10px !important;
  }

  .input-addon {
    font-size: 0.85rem !important;
    padding: 0.5rem 0.65rem !important;
  }

  /* Full-width Submit Button on Mobile */
  #submitFormBtn {
    width: 100% !important;
    height: 50px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.3) !important;
    margin-top: 1rem !important;
  }

  /* Search Input Group on Tab 2 */
  #tab-progress .input-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
  }

  #tab-progress .input-group .input-addon {
    border-radius: 8px !important;
    width: fit-content !important;
  }

  #tab-progress .input-group .btn {
    width: 100% !important;
    height: 44px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 480px) {
  .public-card {
    padding: 1rem 0.75rem !important;
    border-radius: 12px !important;
  }

  .hero-title {
    font-size: 1.35rem !important;
  }

  #publicTabsHeader .tab-item {
    font-size: 0.78rem !important;
    padding: 0.55rem 0.25rem !important;
  }

  #submitFormBtn {
    height: 46px !important;
    font-size: 0.92rem !important;
  }
}