/* Additional styles for interactive elements */

/* Investment Calculator */
.comparison-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: var(--light-gray);
  border-radius: 8px;
}

.control-group {
  display: flex;
  flex-direction: column;
}

.control-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.control-group input, .control-group select {
  padding: 0.5rem;
  border: 1px solid var(--dark-gray);
  border-radius: 4px;
}

.comparison-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.result-card {
  background-color: white;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.result-card h4 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.result-roi {
  font-size: 1.1rem;
  color: var(--dark-gray);
}

.result-card.baseline .result-value, .result-card.baseline .result-roi {
  color: var(--secondary-color);
}

.result-card.best-case .result-value, .result-card.best-case .result-roi {
  color: var(--success-color);
}

.result-card.worst-case .result-value, .result-card.worst-case .result-roi {
  color: var(--danger-color);
}

.result-card.weighted .result-value, .result-card.weighted .result-roi {
  color: #9b59b6;
}

.result-card.highlight {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 2rem auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--light-gray);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: white;
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-item.company::after {
  border-color: var(--secondary-color);
}

.timeline-item.technology::after {
  border-color: #9b59b6;
}

.timeline-item.regulatory::after {
  border-color: var(--warning-color);
}

.timeline-item.environmental::after {
  border-color: var(--success-color);
}

.timeline-item.projection::after {
  border-color: var(--primary-color);
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.timeline-year {
  position: absolute;
  top: 15px;
  right: -85px;
  font-weight: 700;
  color: var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-year {
  left: -85px;
  right: auto;
}

/* FAQ Section */
.faq-container {
  margin-top: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question h4 {
  margin: 0;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
}

.faq-answer.active {
  padding: 1rem;
  max-height: 500px;
}

/* Expanded Risk Factors and Opportunities */
.risk-factor, .opportunity {
  cursor: pointer;
  transition: all 0.3s;
}

.risk-factor:hover, .opportunity:hover {
  transform: translateY(-2px);
}

.risk-factor.expanded, .opportunity.expanded {
  padding: 1.5rem;
}

/* Milestone Toggles */
.milestone-toggle {
  background-color: var(--light-gray);
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.milestone-toggle::after {
  content: '+';
  font-size: 1.2rem;
}

.milestone-toggle.active::after {
  content: '−';
}

.milestone-content {
  padding: 1rem;
  background-color: white;
  border-radius: 4px;
  margin-bottom: 1rem;
  display: none;
}

/* Responsive adjustments for interactive elements */
@media (max-width: 768px) {
  .comparison-controls {
    flex-direction: column;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item:nth-child(even)::after {
    left: 21px;
  }
  
  .timeline-item:nth-child(even) .timeline-year {
    right: auto;
    left: -45px;
  }
  
  .timeline-year {
    position: absolute;
    left: -45px;
  }
}
