/* Bunker Alarms Brand Colors */
:root {
  --bunker-dark: #1a1a2e;
  --bunker-navy: #16213e;
  --bunker-blue: #0f3460;
  --bunker-accent: #ff9500;
  --bunker-success: #00bf63;
  --bunker-warning: #ffc107;
  --bunker-light: #f8f9fa;
  --bunker-text: #333;
  --bunker-muted: #6c757d;

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body.quiz-body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--bunker-dark) 0%, var(--bunker-navy) 50%, var(--bunker-blue) 100%);
  min-height: 100vh;
  color: var(--bunker-text);
  line-height: 1.6;
}

.quiz-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.quiz-header {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.quiz-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: white;
  padding: 10px 16px;
}

.quiz-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.quiz-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Progress */
.progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.progress-bar-wrapper {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

#quiz-progress {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--bunker-accent), #ffab33);
  border-radius: 4px;
  transition: width 0.4s ease;
}

#progress-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 45px;
  text-align: right;
}

/* Main Quiz Container */
#quiz-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Question Card */
.question-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.question-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bunker-dark);
  margin-bottom: 0.5rem;
}

.question-subtitle {
  color: var(--bunker-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Options Grid */
.options-grid {
  display: grid;
  gap: 0.75rem;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bunker-light);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  position: relative;
}

.option-card:hover {
  border-color: var(--bunker-blue);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 52, 96, 0.15);
}

.option-card.selected {
  border-color: var(--bunker-accent);
  background: rgba(233, 69, 96, 0.08);
}

.option-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bunker-navy);
  color: #fff;
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.option-card.selected .option-icon {
  background: var(--bunker-accent);
}

.option-content {
  flex: 1;
}

.option-label {
  font-weight: 600;
  color: var(--bunker-dark);
  display: block;
}

.option-description {
  font-size: 0.85rem;
  color: var(--bunker-muted);
  display: block;
  margin-top: 0.25rem;
}

/* Multi-select indicator */
.check-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.2s;
  flex-shrink: 0;
}

.option-card.selected .check-indicator {
  background: var(--bunker-accent);
  border-color: var(--bunker-accent);
  color: #fff;
}

/* Navigation */
.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding: 0 0.5rem;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

#prev-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#prev-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

#next-btn {
  background: var(--bunker-accent);
  color: #fff;
  margin-left: auto;
}

#next-btn:hover {
  background: #ffab33;
  transform: translateY(-2px);
}

#next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Lead Capture Form */
.lead-capture {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lead-capture h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--bunker-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.lead-capture > p {
  color: var(--bunker-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--bunker-dark);
  margin-bottom: 0.375rem;
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--bunker-blue);
}

.consent-group {
  margin-top: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--bunker-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--bunker-blue);
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--bunker-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: all 0.2s;
}

.submit-btn:hover {
  background: #ffab33;
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.trust-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--bunker-muted);
}

.trust-note i {
  margin-right: 0.25rem;
  color: var(--bunker-success);
}

/* Results Page */
.results-page {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Score Display */
.score-reveal {
  text-align: center;
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 2rem;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.score-circle.high {
  background: linear-gradient(135deg, var(--bunker-success), #00a854);
}

.score-circle.medium {
  background: linear-gradient(135deg, var(--bunker-warning), #ffb300);
}

.score-circle.low {
  background: linear-gradient(135deg, #dc3545, #ff6b6b);
}

.score-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

.score-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--bunker-dark);
  margin-bottom: 0.5rem;
}

.score-description {
  color: var(--bunker-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Vulnerabilities Section */
.vulnerabilities-section {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--bunker-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title i {
  color: var(--bunker-accent);
}

.vulnerability-list {
  list-style: none;
}

.vulnerability-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #fff5f5;
  border-left: 3px solid var(--bunker-accent);
  border-radius: 0 8px 8px 0;
  margin-bottom: 0.75rem;
}

.vulnerability-item i {
  color: var(--bunker-accent);
  margin-top: 2px;
}

.vulnerability-item.positive {
  background: #f0fff4;
  border-left-color: var(--bunker-success);
}

.vulnerability-item.positive i {
  color: var(--bunker-success);
}

/* Recommendations Section */
.recommendations-section {
  margin-bottom: 2rem;
}

.recommendation-cards {
  display: grid;
  gap: 1rem;
}

.recommendation-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bunker-light);
  border-radius: 12px;
  align-items: flex-start;
}

.recommendation-card .priority-badge {
  width: 32px;
  height: 32px;
  background: var(--bunker-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.recommendation-content h4 {
  font-family: var(--font-heading);
  color: var(--bunker-dark);
  margin-bottom: 0.25rem;
}

.recommendation-content p {
  font-size: 0.9rem;
  color: var(--bunker-muted);
}

.recommendation-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: var(--bunker-navy);
  color: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.recommendation-tag.free {
  background: var(--bunker-success);
}

/* CTAs */
.results-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--bunker-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.cta-primary:hover {
  background: #ffab33;
  transform: translateY(-2px);
}

.cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--bunker-light);
  color: var(--bunker-dark);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s;
}

.cta-secondary:hover {
  background: #e9ecef;
}

.cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Footer */
.quiz-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-badges i {
  color: var(--bunker-accent);
}

/* Animations */
.animate-in {
  animation: fadeSlideIn 0.4s ease forwards;
}

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

/* Responsive */
@media (max-width: 600px) {
  .quiz-wrapper {
    padding: 1rem;
  }

  .quiz-title {
    font-size: 1.5rem;
  }

  .quiz-subtitle {
    font-size: 1rem;
  }

  .question-card,
  .lead-capture,
  .results-page {
    padding: 1.5rem;
  }

  .question-title {
    font-size: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .score-circle {
    width: 120px;
    height: 120px;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .cta-row {
    grid-template-columns: 1fr;
  }

  .trust-badges {
    gap: 1rem;
  }
}
