/**
 * Hybrid Hive Main Stylesheet
 * Responsive, Modern, Human-Centric UI
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');
@import url('variables.css');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glows & Playful Shapes */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.blob-1 {
  width: 450px;
  height: 450px;
  background: var(--color-cyan);
  top: -100px;
  left: -100px;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--color-magenta);
  bottom: 10%;
  right: -150px;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: var(--color-amber);
  top: 40%;
  left: 20%;
  opacity: 0.12;
}

/* App Header & Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: var(--trans-base);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
}

.brand-institution-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.brand-divider {
  width: 1.5px;
  height: 28px;
  background-color: #CBD5E1;
  display: inline-block;
  flex-shrink: 0;
}

.brand-event-img {
  height: 44px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-magenta);
  background: rgba(230, 25, 110, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.brand-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.guideline-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-blue { background: #EFF6FF; color: #1E40AF; }
.icon-magenta { background: #FDF2F8; color: #BE185D; }
.icon-amber { background: #FFFBEB; color: #B45309; }
.icon-emerald { background: #ECFDF5; color: #047857; }
.icon-violet { background: #F5F3FF; color: #6D28D9; }
.icon-cyan { background: #F0F9FF; color: #0369A1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-link-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  transition: var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link-btn:hover {
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.nav-link-btn.highlight {
  background: var(--color-primary);
  color: var(--text-inverse);
  border-color: var(--color-primary);
}

.nav-link-btn.highlight:hover {
  background: var(--color-primary-light);
}

/* Mode pill (Live Google Sheets vs Offline Demo) */
.mode-toggle-btn {
  background: #EEF2F6;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--trans-fast);
}

.mode-toggle-btn:hover {
  background: #E2E8F0;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  display: inline-block;
  box-shadow: 0 0 6px var(--color-emerald);
}

.status-indicator-dot.offline {
  background: var(--color-amber);
  box-shadow: 0 0 6px var(--color-amber);
}

/* Main Layout Container */
.page-container {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 1.5rem auto 4rem;
  padding: 0 1.25rem;
}

/* Hero Section */
.hero-card {
  background: linear-gradient(135deg, #0B4F8A 0%, #1572C4 50%, #00A3E0 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-brand);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.hero-title span {
  color: #FDE047;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.highlight-chip {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-badge {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-xl);
  transform: rotate(3deg);
  transition: var(--trans-bounce);
}

.hero-img-badge:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Public Three-Stage Journey Tracker */
.journey-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-muted);
  cursor: default;
  transition: var(--trans-fast);
}

.journey-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--trans-fast);
}

.journey-step-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.journey-step.active .journey-step-num {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(11, 79, 138, 0.15);
}

.journey-step.active .journey-step-text {
  color: var(--color-primary);
}

.journey-step.completed .journey-step-num {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #FFFFFF;
}

.journey-step.completed .journey-step-text {
  color: var(--text-main);
}

.journey-step-line {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  margin: 0 1rem;
  transition: var(--trans-fast);
}

.journey-step-line.completed {
  background: var(--color-emerald);
}

/* Header Support Badge */
.header-support-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

.header-support-badge a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.header-support-badge a:hover {
  text-decoration: underline;
}

/* Selected Campus Sticky / Top Banner */
.selected-campus-banner {
  background: linear-gradient(135deg, #F0F7FF 0%, #E0F2FE 100%);
  border: 1.5px solid #BAE6FD;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.selected-campus-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(11, 79, 138, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 0.3rem;
}

.selected-campus-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin-bottom: 0.2rem;
}

.selected-campus-meta {
  font-size: 0.88rem;
  color: #334155;
  font-weight: 500;
}

.btn-change-campus {
  background: #FFFFFF;
  border: 1.5px solid #BAE6FD;
  color: var(--color-primary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--trans-fast);
}

.btn-change-campus:hover {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* Stage Card Wrapper */
.stage-card {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

.stage-card.active-stage {
  display: block;
}

.stage-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.stage-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.stage-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

/* Guidelines and Form Sections inside Stage 2 */
.guidelines-card-wrapper,
.form-card-section {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.section-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.step-section-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-magenta);
  margin-bottom: 0.35rem;
}

.step-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* STEP 1: Event Selection Grid */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.event-choice-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: var(--bg-surface);
  cursor: pointer;
  transition: var(--trans-base);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-choice-card:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.event-choice-card.selected {
  border-color: var(--color-primary);
  background: #F0F7FF;
  box-shadow: var(--shadow-brand);
}

.event-card-top,
.event-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 0.95rem;
  width: 100%;
}

.event-city-badge,
.city-pill {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  background: #EFF6FF !important;
  color: var(--color-primary) !important;
  border: 1px solid #BFDBFE !important;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.event-status-badge,
.status-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.event-status-badge.open,
.status-pill.open {
  background: #ECFDF5 !important;
  color: #065F46 !important;
  border: 1px solid #A7F3D0 !important;
}

.event-status-badge.full,
.event-status-badge.closed,
.status-pill.closed,
.status-pill.full {
  background: #FEF2F2 !important;
  color: #991B1B !important;
  border: 1px solid #FECACA !important;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}

.status-pill.closed .badge-dot,
.status-pill.full .badge-dot,
.event-status-badge.closed .badge-dot,
.event-status-badge.full .badge-dot {
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.event-card-title,
.event-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.event-meta-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.85rem 0 1rem;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #475569;
}

/* Learning Section Availability (Bottom of Card) */
.event-sections-box {
  margin-top: 1rem;
  padding: 0.85rem 0.95rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  width: 100%;
}

.sections-box-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #E2E8F0;
}

.sections-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.65rem;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  width: 100%;
  transition: var(--trans-base);
}

.section-row:hover {
  border-color: #CBD5E1;
  background: #F1F5F9;
  transform: translateX(2px);
}

.section-meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.section-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.section-row.available .section-indicator {
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.section-row.full .section-indicator {
  background: #EF4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
}

.section-text-group {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  flex-wrap: wrap;
}

.section-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  color: #0F172A;
  white-space: nowrap;
}

.section-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: #64748B;
  white-space: nowrap;
}

.section-slots-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2.5px 8.5px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-row.available .section-slots-tag,
.section-slots-tag.tag-open,
.section-slot-pill.available .section-slot-count {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.section-row.full .section-slots-tag,
.section-slots-tag.tag-full,
.section-slot-pill.full .section-slot-count {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Fallback protection for legacy/cached grid markup */
.sections-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  width: 100% !important;
}

.section-slot-pill {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 0.45rem 0.65rem !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: var(--radius-sm) !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.section-slot-info {
  display: flex !important;
  align-items: baseline !important;
  gap: 0.35rem !important;
  min-width: 0 !important;
}

.section-slot-name {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.84rem !important;
  color: #0F172A !important;
  white-space: nowrap !important;
}

.section-slot-grades {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: #64748B !important;
  white-space: nowrap !important;
}

.section-slot-count {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  padding: 2.5px 8.5px !important;
  border-radius: var(--radius-full) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.event-capacity-bar-wrap {
  margin-top: 0.75rem;
}

.capacity-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.capacity-progress-track {
  width: 100%;
  height: 7px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.capacity-progress-fill {
  height: 100%;
  background: var(--color-emerald);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.capacity-progress-fill.warning {
  background: var(--color-amber);
}

.capacity-progress-fill.full {
  background: var(--border-error);
}

/* STEP 2: Guidelines Cards & Accordion */
.guidelines-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.guideline-section {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface-subtle);
  overflow: hidden;
  transition: var(--trans-fast);
}

.guideline-header {
  padding: 1.1rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--bg-surface);
  user-select: none;
}

.guideline-header:hover {
  background: #F8FAFC;
}

.guideline-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.guideline-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guideline-icon svg,
.guideline-icon .icon-svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.icon-blue { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }
.icon-magenta { background: #FDF2F8; color: #BE185D; border-color: #FBCFE8; }
.icon-emerald { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.icon-amber { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.icon-cyan { background: #F0F9FF; color: #0369A1; border-color: #BAE6FD; }
.icon-violet { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }

.guideline-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.guideline-toggle-chevron {
  display: block;
  width: 18px;
  height: 18px;
  stroke: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.guideline-section.open .guideline-toggle-chevron {
  transform: rotate(180deg);
}

.guideline-content {
  padding: 1rem 1.35rem 1.35rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  display: none;
}

.guideline-section.open .guideline-content {
  display: block;
}

.guideline-content ul {
  padding-left: 1.4rem;
  margin-top: 0.5rem;
}

.guideline-content li {
  margin-bottom: 0.4rem;
}

/* Mandatory Acknowledgement Box */
.acknowledgement-box {
  background: #FFFBEB;
  border: 2px solid #FCD34D;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ack-checkbox-wrap {
  position: relative;
  margin-top: 0.2rem;
}

.ack-checkbox {
  width: 22px;
  height: 22px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.ack-text-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #78350F;
  cursor: pointer;
  line-height: 1.5;
}

.ack-meta-tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #92400E;
  margin-top: 0.35rem;
}

/* Acknowledgement Box Mandatory Error State */
.acknowledgement-box {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.acknowledgement-box.has-error {
  background: #FEF2F2 !important;
  border: 2.5px solid #EF4444 !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.25) !important;
  animation: errorShake 0.4s ease;
}

.acknowledgement-box.has-error .ack-text-label {
  color: #991B1B !important;
  font-weight: 700 !important;
}

.acknowledgement-box.has-error .ack-checkbox {
  outline: 2px solid #EF4444 !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.3) !important;
}

.ack-error-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #DC2626;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  margin-top: 0.65rem;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
  animation: fieldFadeIn 0.25s ease;
}

.child-card.has-child-error {
  border: 2px solid #EF4444 !important;
  background: #FFFDFD !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.events-grid-error {
  border: 2px solid #EF4444 !important;
  border-radius: var(--radius-md);
  padding: 0.75rem;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2) !important;
  animation: errorShake 0.4s ease;
}

@keyframes errorShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes fieldFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form Groups & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label.has-error {
  color: #DC2626 !important;
  font-weight: 700 !important;
}

.form-label .required,
.required {
  color: #DC2626 !important;
  font-weight: 800 !important;
  margin-left: 3px;
}

.form-label .optional-tag {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
}

.form-control {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-main);
  transition: var(--trans-fast);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 88, 159, 0.15);
}

/* Striking Mandatory Error Outline in Red */
.form-control.is-invalid,
.form-control.error {
  border: 2px solid #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
  color: #991B1B !important;
}

.form-control.is-invalid:focus,
.form-control.error:focus {
  outline: none !important;
  border-color: #DC2626 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.35) !important;
}

.field-error-message {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: #DC2626;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.35rem;
  animation: fieldFadeIn 0.25s ease;
}

.input-help-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Sibling / Multiple Children Container */
.children-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.child-card {
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  background: #FAFCFF;
  position: relative;
  transition: var(--trans-fast);
}

.child-card:hover {
  border-color: var(--color-cyan);
}

.child-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #CBD5E1;
}

.child-badge-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.remove-child-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: #DC2626;
  background: rgba(220, 38, 38, 0.08);
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--trans-fast);
}

.remove-child-btn:hover {
  background: rgba(220, 38, 38, 0.16);
}

/* Photo Consent Pill Selector */
.photo-consent-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.consent-options-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.65rem;
}

.consent-radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--trans-fast);
}

.consent-radio-pill input[type="radio"] {
  accent-color: var(--color-primary);
  width: 18px;
  height: 18px;
}

.consent-radio-pill:has(input:checked) {
  border-color: var(--color-primary);
  background: #F0F7FF;
}

/* Button Bars & Action Buttons */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--trans-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--bg-surface-subtle);
  color: var(--text-main);
  border: 1.5px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: #E2E8F0;
}

.btn-accent {
  background: var(--color-magenta);
  color: var(--text-inverse);
  box-shadow: var(--shadow-magenta);
}

.btn-accent:hover:not(:disabled) {
  background: var(--color-magenta-light);
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-add-sibling {
  background: #F0FDF4;
  color: #15803D;
  border: 1.5px dashed #86EFAC;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--trans-fast);
}

.btn-add-sibling:hover {
  background: #DCFCE7;
  border-color: #22C55E;
}

/* STEP 4: Review Summary */
.review-section-box {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.review-item-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.review-item-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* STEP 5: Success & Downloadable Materials */
.success-banner {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: var(--text-inverse);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

.success-icon-circ {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.success-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.success-subtitle {
  font-size: 1rem;
  opacity: 0.92;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.material-card {
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.material-card.featured {
  border-color: var(--color-magenta);
  background: #FFF9FA;
}

.material-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-magenta);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.material-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.material-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.security-pin-display {
  background: #FEF3C7;
  border: 1px dashed #F59E0B;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.pin-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #B45309;
  text-transform: uppercase;
}

.pin-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.75rem;
  font-weight: 900;
  color: #92400E;
  letter-spacing: 4px;
}

/* Instagram & WhatsApp Story Creator */
.story-creator-card {
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  background: linear-gradient(135deg, #04152D 0%, #072A52 40%, #0B4F8A 75%, #0284C7 100%);
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #FFFFFF;
  box-shadow: 0 20px 40px -15px rgba(11, 79, 138, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.story-creator-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: center;
}

.story-controls-col {
  display: flex;
  flex-direction: column;
}

.story-upload-box {
  background: rgba(255, 255, 255, 0.08);
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-lg);
  transition: all 0.25s ease;
  cursor: pointer;
}

.story-upload-box:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #FDE047;
  transform: translateY(-2px);
}

.story-phone-mockup {
  width: 270px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #000000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 3px rgba(255, 255, 255, 0.18);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.story-phone-camera {
  width: 80px;
  height: 20px;
  background: #000000;
  border-radius: 10px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.story-canvas-container {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04152D;
}

.story-canvas-container canvas {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.btn-story-tab {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-story-tab:hover {
  background: rgba(255, 255, 255, 0.25);
}

.btn-story-tab.active {
  background: #FDE047;
  color: #04152D;
  border-color: #FDE047;
  box-shadow: 0 4px 12px rgba(253, 224, 71, 0.4);
}

/* Instagram Gradient Accents & Tools */
.instagram-gradient-badge {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
}

.story-pan-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pan-dpad {
  display: grid;
  grid-template-columns: repeat(3, 30px);
  grid-template-rows: repeat(3, 30px);
  gap: 4px;
  justify-content: center;
}

.btn-pan-nudge {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}

.btn-pan-nudge:hover {
  background: #FDE047;
  color: #0F172A;
  border-color: #FDE047;
}

.btn-pan-nudge:active {
  transform: scale(0.92);
}

.btn-pan-center {
  font-size: 0.65rem;
  font-weight: 800;
}

.story-tool-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.story-tool-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #FDE047;
}

.story-photo-loaded-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.09);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-photo-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FDE047;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.story-zoom-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
}

.btn-zoom-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s;
}

.btn-zoom-step:hover {
  background: #FDE047;
  color: #0F172A;
  border-color: #FDE047;
}

.story-admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .story-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .story-creator-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .story-phone-mockup {
    width: 240px;
  }
}

.pin-warning {
  font-size: 0.76rem;
  color: #B45309;
  margin-top: 0.25rem;
}

/* Modals & Overlays */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 300px;
  max-width: 420px;
  background: #1E293B;
  color: #FFFFFF;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { background: #065F46; }
.toast.error { background: #991B1B; }

@keyframes toastSlide {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 840px) {
  .hero-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.25rem;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-highlights {
    justify-content: center;
  }
  .hero-visual {
    margin-top: 1.5rem;
  }
  .journey-tracker {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .journey-step-line {
    margin: 0 0.5rem;
  }
  .stage-card {
    padding: 1.5rem 1.15rem;
  }
  .guidelines-card-wrapper,
  .form-card-section {
    padding: 1.25rem 1rem;
  }
  .selected-campus-banner {
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-change-campus {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .journey-step-text {
    display: none;
  }
  .journey-step-num {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .header-support-badge {
    display: none;
  }
  .event-choice-card {
    padding: 1.15rem;
  }
  .event-sections-box {
    padding: 0.7rem 0.75rem;
  }
  .section-row {
    padding: 0.4rem 0.5rem;
  }
  .section-name {
    font-size: 0.8rem;
  }
  .section-sub {
    font-size: 0.7rem;
  }
  .section-slots-tag {
    font-size: 0.7rem;
    padding: 2px 7px;
  }
}

