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

:root {
  /* Colony Spark Brand Colors */
  --charcoal-black: #1A1A1A;
  --warm-grey: #4A4A4A;
  --crimson-red: #DE2A47;
  --coral-orange: #FF8E53;
  --coral-orange-light: #FF8E53;

  /* Supporting colors */
  --light-grey: #f7f9fc;
  --medium-grey: #e0e0e0;
  --white: #ffffff;
  --success-green: #27ae60;
  --warning-yellow: #f39c12;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--charcoal-black) 0%, #2A2A2A 50%, var(--warm-grey) 100%);
  min-height: 100vh;
  color: var(--white);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
}

.logo-container {
  margin-bottom: 20px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--medium-grey);
  border-radius: 4px;
  margin-bottom: 40px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  border-radius: 4px;
  width: 20%;
  transition: width 0.3s ease;
}

.step {
  display: none;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  animation: fadeIn 0.3s ease-in;
}

.step.active {
  display: block;
}

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

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--charcoal-black);
}

.section-intro {
  color: var(--warm-grey);
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--warm-grey);
}

input[type="text"],
input[type="number"],
input[type="email"],
select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--medium-grey);
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  background-color: var(--white);
  color: var(--charcoal-black);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--coral-orange);
  box-shadow: 0 0 0 3px rgba(255, 142, 83, 0.1);
}

.helper {
  display: block;
  font-size: 0.875rem;
  color: var(--warm-grey);
  margin-top: 4px;
}

button {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.next-btn, .calculate-btn {
  background: linear-gradient(90deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  color: var(--white);
  margin-top: 20px;
}

.next-btn:hover, .calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 42, 71, 0.3);
}

.prev-btn {
  background: var(--light-grey);
  color: var(--warm-grey);
  margin-right: 10px;
}

.prev-btn:hover {
  background: var(--medium-grey);
}

.source-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.total-check {
  margin-top: 20px;
  padding: 16px;
  background: var(--light-grey);
  border-radius: 8px;
  font-weight: 600;
  color: var(--charcoal-black);
}

.warning {
  color: var(--crimson-red);
  margin-left: 10px;
}

/* Results Styles */
.score-card {
  background: linear-gradient(135deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 40px;
}

.overall-score h3 {
  color: var(--white);
  margin-bottom: 20px;
}

.score-circle {
  width: 200px;
  height: 200px;
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 8px solid rgba(255, 255, 255, 0.3);
}

.score-number {
  font-size: 4rem;
  font-weight: 700;
}

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

.score-grade {
  font-size: 1.5rem;
  margin-top: 10px;
  color: var(--white);
}

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

.metric-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.metric-card h4 {
  margin-bottom: 20px;
  color: var(--charcoal-black);
}

.metric-insight {
  margin-top: 15px;
  font-size: 0.9rem;
  color: var(--warm-grey);
  line-height: 1.5;
}

.metric-insight strong {
  color: var(--charcoal-black);
}

canvas {
  max-height: 250px;
}

/* Hidden Insights Section */
.hidden-insights-section {
  margin: 40px 0;
}

.hidden-insights-section h3 {
  color: var(--charcoal-black);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.insight-card {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.insight-card.danger {
  border-left: 4px solid var(--crimson-red);
}

.insight-card.opportunities {
  background: linear-gradient(to right, rgba(255, 142, 83, 0.05), rgba(255, 142, 83, 0.02));
  border-left: 4px solid var(--coral-orange);
}

.risk-meter {
  width: 100%;
  height: 20px;
  background: var(--medium-grey);
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.risk-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  transition: width 0.5s ease;
}

.risk-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--crimson-red);
  margin-bottom: 15px;
}

.risk-breakdown {
  list-style: none;
  padding: 0;
}

.risk-breakdown li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-grey);
  color: var(--warm-grey);
}

.risk-context {
  margin-top: 15px;
  padding: 15px;
  background: rgba(222, 42, 71, 0.05);
  border-radius: 8px;
  font-size: 0.95rem;
}

.ceiling-stat {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.capacity-visual {
  position: relative;
  margin: 20px 0;
}

.capacity-bar {
  width: 100%;
  height: 40px;
  background: var(--light-grey);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.current-revenue {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-red), var(--coral-orange));
  display: flex;
  align-items: center;
  padding: 0 15px;
  color: white;
  font-weight: 600;
  transition: width 0.5s ease;
}

.capacity-label {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--warm-grey);
  font-weight: 600;
}

.growth-insight {
  color: var(--warm-grey);
  margin-top: 10px;
}

.efficiency-alert {
  background: rgba(255, 142, 83, 0.1);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.efficiency-alert h5 {
  color: var(--coral-orange);
  margin-bottom: 10px;
}

.efficiency-success {
  padding: 15px;
  background: rgba(39, 174, 96, 0.1);
  border-radius: 8px;
  color: var(--success-green);
  margin-top: 15px;
}

/* Competitive positioning styles */
.positioning-badge {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.positioning-badge.clear-differentiator {
  background: linear-gradient(90deg, var(--crimson-red), var(--coral-orange));
  color: white;
}

.positioning-badge.emerging-differentiator {
  background: var(--coral-orange);
  color: white;
}

.positioning-badge.competitive-parity {
  background: var(--warm-grey);
  color: white;
}

.positioning-badge.undifferentiated {
  background: var(--light-grey);
  color: var(--warm-grey);
}

.competitive-factors {
  margin-top: 20px;
}

.competitive-factors h5 {
  color: var(--charcoal-black);
  margin-bottom: 15px;
}

.competitive-item {
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
}

.competitive-item.strength {
  background: rgba(39, 174, 96, 0.1);
  border-left: 3px solid #27ae60;
}

.competitive-item.weakness {
  background: rgba(255, 142, 83, 0.1);
  border-left: 3px solid var(--coral-orange);
}

.impact-text {
  font-size: 0.9rem;
  color: #27ae60;
  margin-top: 5px;
}

.solution-text {
  font-size: 0.9rem;
  color: var(--coral-orange);
  margin-top: 5px;
  font-style: italic;
}

/* Maturity Assessment */
.maturity-stage {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--coral-orange);
  margin-bottom: 10px;
}

.maturity-context {
  color: var(--warm-grey);
  font-style: italic;
  margin-bottom: 20px;
}

.maturity-scores {
  margin-top: 20px;
}

.maturity-metric {
  margin-bottom: 15px;
}

.maturity-metric span {
  display: block;
  margin-bottom: 5px;
  color: var(--warm-grey);
  font-size: 0.9rem;
}

.progress-bar-mini {
  width: 100%;
  height: 8px;
  background: var(--medium-grey);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill-mini {
  height: 100%;
  background: linear-gradient(90deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  transition: width 0.5s ease;
}

.metric-label {
  float: right;
  font-size: 0.8rem;
  color: var(--warm-grey);
  margin-top: 5px;
}

/* Opportunities Section */
.opportunities-intro {
  color: var(--warm-grey);
  margin-bottom: 20px;
}

.opportunity-item {
  padding: 20px;
  background: var(--light-grey);
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.opportunity-item h5 {
  color: var(--coral-orange);
  margin: 0;
}

.opportunity-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #27ae60;
}

.total-opportunity {
  margin-top: 20px;
  padding: 20px;
  background: var(--charcoal-black);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
}

.opportunity-total {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 10px 0;
}

.opportunity-percentage {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Recommendations */
.recommendations {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.recommendations h3 {
  color: var(--charcoal-black);
  margin-bottom: 20px;
}

.recommendation-item {
  background: var(--light-grey);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 4px solid var(--coral-orange);
}

.recommendation-item h4 {
  color: var(--charcoal-black);
  margin-bottom: 10px;
}

.recommendation-item p {
  color: var(--warm-grey);
  line-height: 1.5;
}

/* Priority badges */
.priority-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 10px;
  font-weight: 500;
}

.priority-badge.critical {
  background: rgba(222, 42, 71, 0.1);
  color: var(--crimson-red);
}

.priority-badge.high {
  background: rgba(243, 156, 18, 0.1);
  color: var(--warning-yellow);
}

.priority-badge.medium {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success-green);
}

.impact {
  margin-top: 10px;
  padding: 10px;
  background: var(--light-grey);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--warm-grey);
}

/* Valuation Impact */
.valuation-impact {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 30px;
  border: 2px solid rgba(222, 42, 71, 0.2);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.valuation-impact h3 {
  color: var(--charcoal-black);
  margin-bottom: 20px;
}

.valuation-impact p {
  color: var(--warm-grey);
  margin-bottom: 15px;
}

.valuation-loss {
  font-size: 3rem;
  color: var(--crimson-red);
  margin: 20px 0;
  font-weight: 700;
}

.valuation-detail {
  color: var(--warm-grey);
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--charcoal-black) 0%, var(--warm-grey) 100%);
  color: var(--white);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 30px;
}

.cta-section h3 {
  color: var(--white);
  margin-bottom: 10px;
}

.cta-section p {
  margin-bottom: 20px;
  opacity: 0.9;
}

.calendar-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: linear-gradient(90deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
}

.calendar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(222, 42, 71, 0.3);
}

/* Share Section */
.share-section {
  text-align: center;
  margin-top: 30px;
}

.share-btn {
  background: var(--light-grey);
  color: var(--warm-grey);
  margin: 0 10px;
  border: 2px solid var(--medium-grey);
}

.share-btn:hover {
  background: var(--white);
  border-color: var(--coral-orange);
  color: var(--coral-orange);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.8);
}

footer a {
  color: var(--coral-orange);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: var(--crimson-red);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  h1 {
      font-size: 2rem;
  }

  .source-inputs {
      grid-template-columns: 1fr;
  }

  .share-btn {
      display: block;
      width: 100%;
      margin: 10px 0;
  }

  .step {
      padding: 20px;
  }

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

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

  .opportunity-header {
      flex-direction: column;
      align-items: flex-start;
  }

  .opportunity-value {
      margin-top: 5px;
  }
}

/* Print Styles */
@media print {
  .share-section, footer, .prev-btn, .next-btn, .calculate-btn { 
      display: none; 
  }

  body {
      background: white !important;
      color: black !important;
  }

  .container { 
      max-width: 100%;
      padding: 20px;
  }

  .metric-card { 
      break-inside: avoid;
      background: white !important;
      border: 1px solid #ddd;
      margin-bottom: 20px;
  }

  .score-card {
      background: #f8f9fa !important;
      color: black !important;
      border: 2px solid #ddd;
  }

  .score-number, .score-label, .score-grade {
      color: black !important;
  }

  canvas { 
      max-height: 200px !important; 
  }

  .step {
      box-shadow: none;
      border: 1px solid var(--medium-grey);
      background: white !important;
  }

  h1, h2, h3, h4, h5, h6 {
      color: black !important;
  }

  .metric-insight, .valuation-detail, .recommendation-item p {
      color: #333 !important;
  }

  .valuation-loss {
      color: #d32f2f !important;
  }

  .cta-section {
      background: #f8f9fa !important;
      color: black !important;
      border: 2px solid #ddd;
      page-break-before: always;
  }

  .cta-section h3, .cta-section p {
      color: black !important;
  }

  .calendar-btn {
      background: #007bff !important;
      color: white !important;
      display: inline-block !important;
      padding: 12px 24px;
      text-decoration: none;
      border-radius: 4px;
  }

  /* Add calendar info for print */
  .cta-section::after {
      content: "Schedule your consultation: https://meet.brevo.com/bill-murphy/15min";
      display: block;
      margin-top: 15px;
      font-size: 14px;
      color: #666 !important;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for calculations */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.calculating {
  animation: pulse 1.5s infinite;
}

.step-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--warm-grey);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-indicator.active {
  background: linear-gradient(90deg, var(--crimson-red) 0%, var(--coral-orange) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(222, 42, 71, 0.3);
}

.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--medium-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--warm-grey);
}

.step-indicator.active .step-number {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.company-logo {
  max-width: 120px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}