/* ==========================================================================
   Design System & Styling for Identity Theft Cost Calculator
   Aesthetics: Premium Dark Mode, Glassmorphism, Neon/Glow Accent Details,
   Liquid Transitions & Fluid Grid Layouts.
   ========================================================================== */

/* Custom CSS Variables */
:root {
  --font-hero: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Premium Dark Theme Color Palette */
  --bg-main: #060913;
  --bg-card: rgba(13, 20, 38, 0.6);
  --bg-card-border: rgba(255, 255, 255, 0.08);
  --bg-hover: rgba(255, 255, 255, 0.02);
  
  --color-primary: #4f46e5;       /* Royal Indigo */
  --color-primary-glow: rgba(79, 70, 229, 0.4);
  --color-secondary: #06b6d4;     /* Deep Cyan */
  --color-accent: #10b981;        /* Alert Green */
  --color-warning: #f59e0b;       /* Warning Amber */
  --color-danger: #ef4444;        /* Critical Red */
  
  --text-title: #ffffff;
  --text-main: #94a3b8;
  --text-muted: #64748b;
  
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Stunning Interactive Glow Background */
.glow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.15) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  flex: 1;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 100px;
  color: #a5b4fc;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.1);
}

.main-headline {
  font-family: var(--font-hero);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.sub-headline {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-main);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto;
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .container {
    padding-top: 40px;
  }
}

/* Left Column: Info Panel & Bullets */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bullets-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bullet-card {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.bullet-card:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.bullet-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
}

.bullet-card:nth-child(even) .bullet-icon-wrapper {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}

.bullet-content h3 {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  color: var(--text-title);
  margin-bottom: 6px;
  font-weight: 600;
}

.bullet-content p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
}

/* Trust Callout Box */
.trust-signal-box {
  padding: 24px;
  background: linear-gradient(135deg, rgba(13, 20, 38, 0.8) 0%, rgba(25, 33, 56, 0.5) 100%);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: var(--border-radius-md);
  position: relative;
  overflow: hidden;
}

.trust-signal-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--color-secondary);
}

.trust-header {
  margin-bottom: 8px;
}

.trust-source {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #22d3ee;
}

.trust-signal-box p {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
}

.trust-signal-box strong {
  color: var(--text-title);
}

/* Right Column: Premium Widget Panel */
.widget-panel {
  position: sticky;
  top: 40px;
}

.widget-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--font-hero);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
              0 0 40px rgba(79, 70, 229, 0.05);
  position: relative;
  overflow: hidden;
}

.widget-step {
  display: none;
}

.widget-step.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

.widget-title {
  font-family: var(--font-hero);
  font-size: 1.5rem;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 6px;
}

.widget-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Range Sliders Styling */
.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 0.95rem;
  color: var(--text-title);
  font-weight: 500;
  margin-bottom: 10px;
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
}

.range-wrapper input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  outline: none;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.8);
  cursor: pointer;
  border: 3px solid var(--color-primary);
  transition: transform 0.1s;
}

.range-wrapper input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-value {
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  min-width: 80px;
  text-align: right;
}

.input-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 28px 0;
}

/* Email & Name Field Inputs */
.lead-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-field-group label {
  font-size: 0.9rem;
  color: var(--text-title);
  font-weight: 500;
}

.input-field-group label .required {
  color: var(--color-danger);
}

.input-field-group input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-sm);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.input-field-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--color-danger);
  margin-top: -2px;
}

/* Call to Action Button */
.cta-button {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #312e81 100%);
  border: none;
  border-radius: var(--border-radius-md);
  color: #ffffff;
  font-family: var(--font-hero);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(79, 70, 229, 0.45);
  filter: brightness(1.1);
}

.cta-button:active {
  transform: translateY(0);
}

.below-btn-line {
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  color: #a5b4fc;
  margin-top: 14px;
}

.privacy-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* Calculating Spinner State */
.processing-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(79, 70, 229, 0.1);
  border-left-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

.processing-loader h3 {
  font-family: var(--font-hero);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.processing-loader p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.progress-bar-container {
  width: 100%;
  max-width: 280px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 3px;
}

/* Results Display Styling */
.results-header {
  text-align: center;
  margin-bottom: 28px;
}

.status-indicator {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.status-indicator.warning {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  animation: pulse 2s infinite;
}

.results-total {
  font-family: var(--font-hero);
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.results-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.results-breakdown {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.breakdown-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: var(--border-radius-md);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.item-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-title);
}

.item-cost {
  font-family: var(--font-hero);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.item-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.item-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-primary);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.1, 0.8, 0.3, 1);
}

#bar-abuse { background: var(--color-secondary); }
#bar-credit { background: var(--color-warning); }
#bar-labor { background: var(--color-primary); }

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

/* Resolution Callout Card */
.resolution-card {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25) 0%, rgba(6, 182, 212, 0.25) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: var(--border-radius-md);
  margin-bottom: 24px;
  text-align: center;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.resolution-card h3 {
  font-family: var(--font-hero);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.resolution-card p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 18px;
}

.resolution-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: #ffffff;
  color: #0f172a;
  text-decoration: none;
  font-family: var(--font-hero);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.resolution-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
  background: #f8fafc;
}

.btn-subtext {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.reset-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  text-decoration: underline;
  transition: var(--transition-smooth);
}

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

/* Spinner and Buttons Loaders */
.loader {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-left-color: #ffffff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.hidden {
  display: none !important;
}

/* Footer Styling */
.site-footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.2);
  margin-top: auto;
}

.site-footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 10px;
  line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Multiple Choice Quiz Styles */
.quiz-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin-bottom: 28px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-slide {
  display: none;
}

.question-slide.active {
  display: block;
  animation: fadeIn 0.4s ease-out forwards;
}

.question-text {
  font-family: var(--font-hero);
  font-size: 1.25rem;
  color: var(--text-title);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 20px;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.option-btn {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  color: var(--text-title);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 14px;
  outline: none;
}

.option-btn:hover, .option-btn:focus {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.05);
}

.option-btn:active {
  transform: translateX(2px);
}

.option-btn.selected {
  background: rgba(79, 70, 229, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-primary-glow);
}

.option-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.option-btn:hover .option-indicator, .option-btn:focus .option-indicator {
  border-color: var(--color-secondary);
}

.option-btn.selected .option-indicator {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.option-btn.selected .option-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: block;
}

.quiz-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}

.back-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  padding: 4px 8px;
  border-radius: var(--border-radius-sm);
}

.back-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.02);
}

.back-btn svg {
  transition: transform 0.2s;
}

.back-btn:hover svg {
  transform: translateX(-3px);
}

.back-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.question-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Other Quizzes Section */
.other-quizzes-section {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 60px;
  text-align: center;
  width: 100%;
}

.section-title {
  font-family: var(--font-hero);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 36px;
}

.quiz-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.quiz-nav-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--border-radius-md);
  padding: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.quiz-nav-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(6, 182, 212, 0.05);
}

.quiz-nav-card .card-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  margin-bottom: 24px;
  transition: var(--transition-smooth);
}

.quiz-nav-card:hover .card-icon {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.3);
  color: #22d3ee;
}

.quiz-nav-card h3 {
  font-family: var(--font-hero);
  font-size: 1.25rem;
  color: var(--text-title);
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-nav-card p {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.quiz-nav-card .card-link {
  font-family: var(--font-hero);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  margin-top: auto;
}

.quiz-nav-card:hover .card-link {
  color: #ffffff;
}

.quiz-nav-card .card-link svg {
  transition: transform 0.2s;
}

.quiz-nav-card:hover .card-link svg {
  transform: translateX(4px);
}


