/* ============================================
   KUESIONER SKRIPSI - PEGADAIAN CHAMPIONSHIP
   Design System & Styles
   ============================================ */

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

/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors - PSS Sleman Green Theme */
  --primary: #00A651;
  --primary-light: #00d468;
  --primary-dark: #008a43;
  --primary-glow: rgba(0, 166, 81, 0.3);
  
  --gold: #FFD700;
  --gold-light: #ffe44d;
  --gold-dark: #ccac00;
  
  --bg-dark: #060b14;
  --bg-card: #0d1320;
  --bg-card-hover: #111827;
  --bg-surface: #141c2e;
  --bg-input: #0f1626;
  
  --glass-bg: rgba(13, 19, 32, 0.75);
  --glass-border: rgba(0, 166, 81, 0.15);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  --text-primary: #f0f4f8;
  --text-secondary: #8b9dc3;
  --text-muted: #5a6d8a;
  --text-accent: #00d468;
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.1);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================
   CSS Reset & Base
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

html {
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background animated gradient */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 166, 81, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 104, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image: 
    url('pitch-lines-dark.svg'),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.04) 80px,
      rgba(255, 255, 255, 0.04) 160px
    );
  background-size: cover, auto;
  background-position: center, left top;
  background-repeat: no-repeat, repeat;
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
}

/* Material Symbols Icon Font */
.material-symbols-rounded {
  font-variation-settings:
    'FILL' 1,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
  line-height: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl);
  overflow: hidden;
}

/* Animated stadium-like gradient bg */
#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    conic-gradient(from 0deg at 50% 50%, 
      rgba(0, 166, 81, 0.15) 0deg, 
      transparent 60deg, 
      rgba(0, 212, 104, 0.1) 120deg, 
      transparent 180deg,
      rgba(255, 215, 0, 0.08) 240deg,
      transparent 300deg,
      rgba(0, 166, 81, 0.15) 360deg
    );
  animation: heroRotate 20s linear infinite;
  z-index: 0;
}

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

/* Floating particles */
#hero::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(0, 166, 81, 0.4), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255, 215, 0, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(0, 212, 104, 0.3), transparent),
    radial-gradient(2px 2px at 80% 60%, rgba(0, 166, 81, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(255, 215, 0, 0.2), transparent),
    radial-gradient(2px 2px at 90% 40%, rgba(0, 212, 104, 0.2), transparent);
  animation: particleFloat 6s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}
.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 166, 81, 0.25);
  top: -10%;
  left: -10%;
  animation: orbFloat1 12s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 215, 0, 0.15);
  bottom: -5%;
  right: -5%;
  animation: orbFloat2 10s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(0, 212, 104, 0.2);
  top: 50%;
  right: 15%;
  animation: orbFloat3 14s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, 40px) scale(1.15); }
}
@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, -30px) scale(1.1); }
}
@keyframes orbFloat3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30px, 50px) scale(0.9); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badges-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-accent);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease-out;
  backdrop-filter: blur(8px);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-md);
  animation: fadeInUp 0.6s ease-out;
  line-height: 1.15;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.1s both;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-meta-item .material-symbols-rounded {
  font-size: 1.1rem;
  color: var(--primary-light);
}

/* Info Chips */
.hero-info-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease-out 0.25s both;
}

.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-muted);
  backdrop-filter: blur(4px);
}

.info-chip .material-symbols-rounded {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* CTA Glow Button */
.hero-cta {
  animation: fadeInUp 0.6s ease-out 0.3s both;
  margin-bottom: var(--space-2xl);
}

.btn-glow {
  box-shadow:
    0 4px 20px var(--primary-glow),
    0 0 60px rgba(0, 166, 81, 0.15);
  animation: ctaGlow 3s ease-in-out infinite alternate;
}

@keyframes ctaGlow {
  0% { box-shadow: 0 4px 20px var(--primary-glow), 0 0 40px rgba(0, 166, 81, 0.1); }
  100% { box-shadow: 0 4px 30px var(--primary-glow), 0 0 80px rgba(0, 166, 81, 0.2); }
}

/* Hero Credit */
.hero-credit {
  font-size: 0.82rem;
  color: var(--text-muted);
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-credit strong {
  color: var(--text-secondary);
}

/* ============================================
   Page Transitions
   ============================================ */
.page-exit {
  animation: pageExit 0.5s ease-in forwards;
}
.page-enter {
  animation: pageEnter 0.6s ease-out forwards;
}

@keyframes pageExit {
  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.98);
  }
}

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

/* Questionnaire header (back button) */
.questionnaire-header {
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  padding: 0 var(--space-xl);
}

.btn-back-landing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 0;
  transition: all var(--transition-base);
}

.btn-back-landing:hover {
  color: var(--primary-light);
}

.btn-back-landing .material-symbols-rounded {
  font-size: 1.1rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 166, 81, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: #1a1a2e;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.3);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* ============================================
   Questionnaire Section
   ============================================ */
#questionnaire {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
}

/* ============================================
   Progress Bar
   ============================================ */
.progress-container {
  margin-bottom: var(--space-2xl);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: rgba(6, 11, 20, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 10px var(--primary-glow);
  width: 25%;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex: 1;
  justify-content: center;
}

.progress-step .step-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.progress-step .step-label {
  display: none;
}

@media (min-width: 640px) {
  .progress-step .step-label {
    display: inline;
  }
}

.progress-step.active {
  color: var(--primary-light);
}

.progress-step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px var(--primary-glow);
}

.progress-step.completed {
  color: var(--text-accent);
}

.progress-step.completed .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ============================================
   Form Steps
   ============================================ */
.form-step {
  display: none;
  animation: fadeInUp 0.5s ease-out;
}

.form-step.active {
  display: block;
}

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

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

.step-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.step-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.step-header h2 .step-icon {
  font-size: 1.6rem;
  color: var(--primary-light);
}

.step-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ============================================
   Glass Card (Question Cards)
   ============================================ */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.glass-card:hover {
  border-color: rgba(0, 166, 81, 0.3);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 166, 81, 0.05);
}

.question-card {
  position: relative;
}

.question-card .question-number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.question-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  line-height: 1.5;
  padding-right: 60px;
}

/* Section divider within steps */
.section-divider {
  margin: var(--space-2xl) 0;
  text-align: center;
  position: relative;
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.section-divider span {
  position: relative;
  background: var(--bg-dark);
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.5px;
}

/* ============================================
   Form Inputs
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

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

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-base);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b9dc3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ============================================
   Radio Buttons (Gender, Screening)
   ============================================ */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.radio-option {
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.radio-option label::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + label {
  background: rgba(0, 166, 81, 0.1);
  border-color: var(--primary);
  color: var(--text-primary);
}

.radio-option input[type="radio"]:checked + label::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--bg-dark);
}

.radio-option label:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

/* ============================================
   Likert Scale
   ============================================ */
.likert-legend {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-xl);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.likert-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.likert-legend-item strong {
  color: var(--primary-light);
  font-weight: 600;
}
.likert-group {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
}

.likert-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.likert-labels span {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  flex: 1;
}

.likert-option {
  flex: 1;
  position: relative;
}

.likert-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.likert-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0;
  min-height: 50px;
}

.likert-option label .likert-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.likert-option label:hover {
  background: rgba(0, 166, 81, 0.05);
  border-color: rgba(0, 166, 81, 0.2);
  color: var(--text-secondary);
  transform: translateY(-2px);
}

.likert-option input[type="radio"]:checked + label {
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.15), rgba(0, 212, 104, 0.1));
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 15px rgba(0, 166, 81, 0.1);
  transform: translateY(-2px);
}

.likert-option input[type="radio"]:checked + label .likert-value {
  color: var(--primary-light);
}

/* Likert scale color variants */
.likert-option:nth-child(1) input[type="radio"]:checked + label {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.likert-option:nth-child(2) input[type="radio"]:checked + label {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
}

.likert-option:nth-child(3) input[type="radio"]:checked + label {
  border-color: #eab308;
  background: rgba(234, 179, 8, 0.1);
  color: #fde047;
}

.likert-option:nth-child(4) input[type="radio"]:checked + label {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
}

.likert-option:nth-child(5) input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.15), rgba(0, 212, 104, 0.1));
  color: var(--primary-light);
}

/* ============================================
   Form Navigation
   ============================================ */
.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.form-nav .nav-left,
.form-nav .nav-right {
  display: flex;
  gap: var(--space-md);
}

/* ============================================
   Screening Error
   ============================================ */
.screening-error {
  display: none;
  padding: var(--space-lg);
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  text-align: center;
  animation: fadeInUp 0.3s ease-out;
}

.screening-error.show {
  display: block;
}

.screening-error h3 {
  color: #fca5a5;
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.screening-error p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Thank You Page
   ============================================ */
#step-thankyou {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

#step-thankyou.hidden {
  display: none;
}

.thankyou-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  box-shadow: 0 0 40px var(--primary-glow);
}

.thankyou-icon .material-symbols-rounded {
  font-size: 3rem;
  color: #fff;
}

@keyframes bounceIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.thankyou-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.thankyou-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

.respondent-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.2);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-xl);
}

.respondent-counter .count {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-light);
}

.respondent-counter .count-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   Admin Panel
   ============================================ */
#admin-panel {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md) var(--space-3xl);
}

#admin-panel.hidden {
  display: none;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.admin-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.admin-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Stats cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
}

.stat-card .stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.stat-card .stat-value.gold {
  color: var(--gold);
}

/* Table */
.admin-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: rgba(0, 166, 81, 0.1);
}

.admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-accent);
  white-space: nowrap;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   Admin Toggle
   ============================================ */
#admin-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  z-index: 1000;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.3;
}

#admin-toggle .material-symbols-rounded {
  font-size: 1.3rem;
}

#admin-toggle:hover {
  opacity: 1;
  border-color: var(--primary);
  color: var(--primary-light);
  box-shadow: 0 0 20px var(--primary-glow);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 14px 28px;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 10000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   Validation Highlight
   ============================================ */
.glass-card.error-highlight,
.confirm-modal-content.error-highlight {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 0 20px rgba(239, 68, 68, 0.15) !important;
  background: rgba(239, 68, 68, 0.05) !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10% { transform: translateX(-6px); }
  20% { transform: translateX(6px); }
  30% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  50% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  70% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
  90% { transform: translateX(-1px); }
}

/* ============================================
   Scroll to top indicator
   ============================================ */
.scroll-top-indicator {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.scroll-top-indicator.show {
  display: flex;
}

.scroll-top-indicator:hover {
  transform: translateY(-3px);
}

/* ============================================
   Utility Classes
   ============================================ */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--text-accent);
}

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  #questionnaire {
    padding: var(--space-md) var(--space-sm) var(--space-2xl);
  }

  .glass-card {
    padding: var(--space-lg);
  }
  
  .question-card .question-number {
    position: static;
    display: inline-block;
    margin-bottom: var(--space-sm);
  }

  .question-label {
    padding-right: 0;
    font-size: 0.9rem;
  }

  .likert-group {
    gap: 4px;
  }

  .likert-option label {
    padding: 10px 2px;
    font-size: 0.8rem;
    min-height: 44px;
  }

  .likert-option label .likert-value {
    font-size: 0.95rem;
  }

  .likert-labels span {
    font-size: 0.6rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .form-nav {
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-nav .nav-left,
  .form-nav .nav-right {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }

  .admin-header {
    flex-direction: column;
    text-align: center;
  }

  .radio-group {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .progress-step .step-label {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    align-items: center;
  }
  
  .likert-option label {
    padding: 8px 2px;
    border-radius: var(--radius-sm);
  }
}

/* ============================================
   Media Reference Section Styles
   ============================================ */
.media-card {
  margin-bottom: var(--space-xl);
}

.media-card-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: var(--space-sm);
}

.media-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.media-box {
  background: var(--bg-input);
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.media-box:hover {
  border-color: var(--primary);
  background: rgba(0, 166, 81, 0.02);
}

.media-box img, 
.media-box video {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.media-box audio {
  width: 100%;
  max-width: 500px;
  margin-top: var(--space-sm);
}

.media-placeholder-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.media-placeholder-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.media-placeholder-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================
   Progress Bar Percentage
   ============================================ */
.progress-bar-fill::after {
  content: attr(data-pct);
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  opacity: 0.9;
}

/* ============================================
   Confetti
   ============================================ */
#confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  left: var(--x);
  border-radius: 2px;
  animation: confettiFall var(--duration) ease-in var(--delay) forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(var(--r));
    opacity: 0;
  }
}

/* ============================================
   Share Section (Thank You page)
   ============================================ */
.share-section {
  margin-top: var(--space-xl);
  text-align: center;
}

.share-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ============================================
   Theme Toggle Button
   ============================================ */
#theme-toggle {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 100;
  backdrop-filter: blur(8px);
}

#theme-toggle:hover {
  color: var(--primary-light);
  border-color: var(--primary);
  background: rgba(0, 166, 81, 0.1);
}

#theme-toggle .material-symbols-rounded {
  font-size: 1.2rem;
}

/* ============================================
   Draft Resume Banner
   ============================================ */
.draft-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 166, 81, 0.95), rgba(0, 138, 67, 0.95));
  backdrop-filter: blur(12px);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  z-index: 200;
  animation: slideUp 0.4s ease-out;
}

.draft-banner.hidden {
  display: none !important;
}

.draft-content {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: #fff;
  font-size: 0.9rem;
}

.draft-content .material-symbols-rounded {
  font-size: 1.3rem;
}

.draft-actions {
  display: flex;
  gap: var(--space-sm);
}

.draft-actions .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}

.draft-actions .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ============================================
   Light Theme
   ============================================ */
:root.light-theme, html.light-theme, body.light-theme {
  --bg-dark: #f0f2f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7fa;
  --bg-surface: #e8ecf1;
  --bg-input: #f5f7fa;

  --glass-bg: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --text-accent: #007a3d;

  --primary-glow: rgba(0, 166, 81, 0.2);
}

body.light-theme::before {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 166, 81, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 104, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
}

body.light-theme::after {
  background-image: 
    url('pitch-lines-light.svg'),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 80px,
      rgba(0, 166, 81, 0.1) 80px,
      rgba(0, 166, 81, 0.1) 160px
    );
  background-size: cover, auto;
  background-position: center, left top;
  background-repeat: no-repeat, repeat;
}

body.light-theme #hero::before {
  background:
    conic-gradient(from 0deg at 50% 50%,
      rgba(0, 166, 81, 0.08) 0deg,
      transparent 60deg,
      rgba(0, 212, 104, 0.06) 120deg,
      transparent 180deg,
      rgba(255, 215, 0, 0.04) 240deg,
      transparent 300deg,
      rgba(0, 166, 81, 0.08) 360deg
    );
}

body.light-theme .hero-orb-1 { background: rgba(0, 166, 81, 0.1); }
body.light-theme .hero-orb-2 { background: rgba(255, 215, 0, 0.08); }
body.light-theme .hero-orb-3 { background: rgba(0, 212, 104, 0.08); }

body.light-theme .hero-title {
  color: #111827;
}

body.light-theme .hero-title .highlight {
  background: linear-gradient(135deg, #006b35, var(--primary), #b8960c);
  -webkit-background-clip: text;
  background-clip: text;
}

body.light-theme .hero-subtitle {
  color: #4b5563;
}

body.light-theme .hero-badge {
  background: rgba(0, 166, 81, 0.08);
  border-color: rgba(0, 166, 81, 0.25);
  color: #007a3d;
}

body.light-theme .hero-meta-item {
  color: #4b5563;
}

body.light-theme .hero-meta-item .material-symbols-rounded {
  color: #008a43;
}

body.light-theme .info-chip {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
  color: #4b5563;
}

body.light-theme .hero-credit {
  color: #6b7280;
}

body.light-theme .hero-credit strong {
  color: #374151;
}

/* Glass cards */
body.light-theme .glass-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.light-theme .glass-card:hover {
  border-color: rgba(0, 166, 81, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Question labels */
body.light-theme .question-label {
  color: #111827;
  font-weight: 600;
}

body.light-theme .question-number {
  background: rgba(0, 166, 81, 0.08) !important;
  color: #007a3d !important;
}

/* Step header */
body.light-theme .step-header h2 {
  color: #111827;
}

body.light-theme .step-header p {
  color: #6b7280;
}

body.light-theme .step-icon {
  color: #008a43;
}

/* Radio & Likert */
body.light-theme .radio-option label,
body.light-theme .likert-option label {
  border-color: rgba(0, 0, 0, 0.25);
  color: #111827;
  background: #fff;
}

body.light-theme .radio-option label:hover,
body.light-theme .likert-option label:hover {
  border-color: rgba(0, 166, 81, 0.4);
  background: rgba(0, 166, 81, 0.03);
}

body.light-theme .radio-option input[type="radio"]:checked + label {
  background: rgba(0, 166, 81, 0.08);
  border-color: var(--primary);
  color: #111827;
}

body.light-theme .radio-option label::before {
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .radio-option input[type="radio"]:checked + label::before {
  box-shadow: inset 0 0 0 3px #fff;
}

body.light-theme .likert-option input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: rgba(0, 166, 81, 0.1);
}

body.light-theme .likert-labels span {
  color: #4b5563;
  font-weight: 600;
}

body.light-theme .likert-group {
  border-top-color: rgba(0, 0, 0, 0.15);
}

body.light-theme .likert-value {
  color: #111827;
  font-weight: 500;
}

/* Inputs */
body.light-theme .form-input,
body.light-theme .form-select {
  border-color: rgba(0, 0, 0, 0.25);
  background: #fff;
  color: #111827;
}

body.light-theme .form-input::placeholder {
  color: #6b7280;
}

body.light-theme .form-input:focus,
body.light-theme .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

/* Section dividers */
body.light-theme .section-divider span {
  background: var(--bg-dark);
  color: #007a3d;
  font-weight: 600;
}

body.light-theme .section-divider::before {
  background: rgba(0, 0, 0, 0.1);
}

/* Likert legend */
body.light-theme .likert-legend {
  background: rgba(0, 166, 81, 0.03);
  border-color: rgba(0, 166, 81, 0.15);
}

body.light-theme .likert-legend-item {
  color: #374151;
}

body.light-theme .likert-legend-item strong {
  color: #007a3d;
}

/* Progress */
body.light-theme .progress-container {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.light-theme .progress-bar {
  background: rgba(0, 0, 0, 0.08);
}

body.light-theme .progress-step {
  color: #6b7280;
}

body.light-theme .progress-step.active {
  color: #111827;
}

body.light-theme .progress-step.completed {
  color: #007a3d;
}

body.light-theme .progress-step .step-number {
  background: #e5e7eb;
  border-color: #d1d5db;
  color: #6b7280;
}

body.light-theme .progress-step.active .step-number {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.light-theme .progress-step.completed .step-number {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
}

/* Buttons */
body.light-theme .btn-secondary {
  border-color: rgba(0, 0, 0, 0.15);
  color: #374151;
  background: #fff;
}

body.light-theme .btn-secondary:hover {
  background: #f3f4f6;
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-theme .btn-copy {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  color: #374151;
}

/* Navigation */
body.light-theme .questionnaire-header {
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-theme .btn-back-landing {
  color: #6b7280;
}

body.light-theme .btn-back-landing:hover {
  color: #007a3d;
}

/* Media cards */
body.light-theme .media-box {
  background: #fafbfc;
  border-color: rgba(0, 0, 0, 0.12);
}

body.light-theme .media-card-title {
  color: #007a3d;
}

body.light-theme .media-card-desc {
  color: #4b5563;
}

body.light-theme .media-placeholder-icon {
  color: #9ca3af;
}

body.light-theme .media-placeholder-text {
  color: #6b7280;
}

/* Screening error */
body.light-theme .screening-error {
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Thank you page */
body.light-theme .thankyou-title {
  color: #111827;
}

body.light-theme .thankyou-subtitle {
  color: #4b5563;
}

body.light-theme .respondent-counter .count {
  color: var(--primary);
}

body.light-theme .respondent-counter .count-label {
  color: #6b7280;
}

body.light-theme .share-label {
  color: #6b7280;
}

/* Fixed buttons */
body.light-theme #admin-toggle {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #6b7280;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body.light-theme #theme-toggle {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
  color: #6b7280;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Toast */
body.light-theme .toast.success {
  background: #065f46;
}

body.light-theme .toast.error {
  background: #991b1b;
}


/* ============================================
   HERO LOGOS & GIVEAWAY BADGE
   ============================================ */
.hero-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s ease-out;
}

.logo-img {
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.logo-pss {
  height: 75px;
}

.logo-divider {
  width: 2px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

body.light-theme .logo-divider {
  background: rgba(0,0,0,0.1);
}

.hero-badge-giveaway {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05)) !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  color: var(--gold) !important;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.1);
  animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.1); }
  100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.3); }
}

body.light-theme .hero-badge-giveaway {
  background: rgba(255, 215, 0, 0.15) !important;
  color: #b8960c !important;
}

/* ============================================
   SPIN WHEEL MODAL
   ============================================ */
#spin-wheel-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-wheel-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(6, 11, 20, 0.95);
  backdrop-filter: blur(10px);
}

body.light-theme .spin-wheel-overlay {
  background: rgba(255, 255, 255, 0.95);
}

.spin-wheel-content {
  position: relative;
  z-index: 10000;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

body.light-theme .spin-wheel-content {
  color: var(--text-primary);
}

.wheel-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: var(--space-xl) 0;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--gold);
  background: conic-gradient(
    var(--primary) 0deg 45deg,
    #111 45deg 90deg,
    var(--primary) 90deg 135deg,
    #111 135deg 180deg,
    var(--primary) 180deg 225deg,
    #111 225deg 270deg,
    var(--primary) 270deg 315deg,
    #111 315deg 360deg
  );
  box-shadow: 0 0 30px rgba(0, 166, 81, 0.3), inset 0 0 20px rgba(0,0,0,0.5);
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 30px solid var(--gold);
  z-index: 10;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,0.5));
}

#spin-result {
  animation: fadeUp 0.5s ease-out forwards;
}

#spin-result h3 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
}

body.light-theme #spin-result h3 {
  color: #b8960c;
}

/* ============================================
   ADMIN LOTTERY SECTION
   ============================================ */
.admin-lottery-section {
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

body.light-theme .admin-lottery-section {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.3);
}

.admin-lottery-section h3 {
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

body.light-theme .admin-lottery-section h3 {
  color: #b8960c;
}

.lottery-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}


/* ============================================
   Print styles (for admin data)
   ============================================ */
@media print {
  body::before,
  #hero,
  #admin-toggle,
  #theme-toggle,
  .admin-actions,
  .toast,
  .draft-banner {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .admin-table th,
  .admin-table td {
    color: black;
    border: 1px solid #ccc;
  }
}

/* Admin Tabs */
.admin-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}
.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}
.admin-tab-btn:hover {
  background: var(--surface);
  color: var(--text-primary);
}
.admin-tab-btn.active {
  background: var(--primary);
  color: white;
}

/* SPSS Tables */
.spss-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.spss-table th, .spss-table td {
  padding: 8px 12px;
  text-align: right;
}
.spss-table th:first-child, .spss-table td:first-child {
  text-align: left;
}
.spss-table thead th {
  border-top: 2px solid var(--text-primary);
  border-bottom: 1px solid var(--text-primary);
  color: var(--text-primary);
}
.spss-table tbody tr:last-child td {
  border-bottom: 2px solid var(--text-primary);
}
.spss-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}
.spss-card h3 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.spss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 768px) {
  .spss-grid {
    grid-template-columns: 1fr;
  }
}

.spss-card + .spss-card {
  margin-top: 20px;
}

.status-valid {
  color: #22c55e;
  font-weight: 600;
}
.status-invalid {
  color: #ef4444;
  font-weight: 600;
}

.spss-table td:last-child, .spss-table th:last-child {
  text-align: left;
}

/* ============================================
   PICTURE-IN-PICTURE (PIP) MODAL
   ============================================ */
#pip-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 0;
}

#pip-modal {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#pip-modal.hidden {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
}

.pip-header {
  background: var(--bg-surface);
  padding: 12px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  cursor: grab;
  user-select: none;
}
.pip-header:active {
  cursor: grabbing;
}

.pip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.pip-close {
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1.2rem;
}
.pip-close:hover {
  color: var(--danger);
}

.pip-body {
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pip-item-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.media-box.mini {
  padding: 20px 10px;
  min-height: 100px;
  border-width: 1px;
}

body.light-theme #pip-modal {
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
body.light-theme .pip-header {
  background: #f5f7fa;
}

/* ============================================
   CAROUSEL STYLES
   ============================================ */
.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.2);
}

.carousel-container.mini {
  background: rgba(0,0,0,0.5);
  border-radius: var(--radius-sm);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carousel-media {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.carousel-container.mini .carousel-media {
  max-height: 200px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.carousel-btn:hover {
  background: var(--primary);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-indicator {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

body.light-theme .carousel-container {
  background: #f3f4f6;
}
body.light-theme .carousel-container.mini {
  background: #e5e7eb;
}

/* ============================================
   CAROUSEL IMAGE CLICK HINT
   ============================================ */
.carousel-slide img.carousel-media {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.carousel-slide img.carousel-media:hover {
  transform: scale(1.02);
}

/* ============================================
   FULLSCREEN LIGHTBOX OVERLAY
   ============================================ */
#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 100000;
  justify-content: center;
  align-items: center;
  cursor: zoom-out;
  padding: 20px;
  box-sizing: border-box;
}

#lightbox-overlay.active {
  display: flex;
}

body.lightbox-open {
  overflow: hidden !important;
}

.lightbox-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  transition: background 0.2s;
  z-index: 100001;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Lightbox Navigation Arrows */
.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  transition: background 0.2s;
  z-index: 100001;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 100001;
  backdrop-filter: blur(8px);
}

/* ============================================
   MOBILE RESPONSIVE OPTIMIZATIONS
   ============================================ */
@media (max-width: 768px) {
  /* PIP toggle button */
  #pip-toggle-btn {
    bottom: 16px;
    right: 12px;
    width: 42px;
    height: 42px;
  }

  /* PIP modal: full width on mobile */
  #pip-modal {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 70px;
    max-height: 60vh;
  }

  .pip-body {
    max-height: 45vh;
    overflow-y: auto;
  }

  /* Carousel arrows smaller on mobile */
  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .carousel-btn.prev { left: 6px; }
  .carousel-btn.next { right: 6px; }

  .carousel-indicator {
    font-size: 0.7rem;
    padding: 3px 10px;
  }

  /* Lightbox nav smaller on mobile */
  .lightbox-nav {
    width: 38px;
    height: 38px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  /* Progress bar mobile */
  .progress-steps {
    gap: 2px;
  }

  .progress-step {
    padding: 6px 4px;
  }

  .step-number {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* PIP toggle even more compact */
  #pip-toggle-btn {
    bottom: 12px;
    right: 8px;
    width: 38px;
    height: 38px;
  }

  #pip-modal {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 60px;
  }

  .carousel-media {
    max-height: 250px;
  }

  .carousel-container.mini .carousel-media {
    max-height: 140px;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
  }
}


/* ============================================
   CONFIRM MODAL & SUCCESS PAGE
   ============================================ */
.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: lightboxFadeIn 0.25s ease;
}

.confirm-modal-overlay.hidden {
  display: none;
}

.confirm-modal-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.light-theme .confirm-modal-content {
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.confirm-icon {
  font-size: 3rem;
  color: #fbbf24;
  margin-bottom: 15px;
}

.confirm-modal-content h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.confirm-modal-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* SUCCESS PAGE */
#success-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-surface);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

#success-page.hidden {
  display: none;
}

.success-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.5s ease;
}

body.light-theme .success-content {
  background: #fff;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.success-icon-wrapper {
  margin-bottom: 20px;
}

.success-check {
  font-size: 5rem;
  color: var(--primary);
  filter: drop-shadow(0 0 15px rgba(0, 166, 81, 0.4));
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

body.light-theme .success-title {
  color: var(--primary);
}

.success-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.success-info-box {
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.2);
  padding: 15px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 30px;
}

.success-share p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  80% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
