/* Instructions component styling */
.instructions-container {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 30px 0;
  overflow: hidden;
}

.instructions-header {
  background: linear-gradient(135deg, #3c6ac3, #2b4c98);
  color: white;
  padding: 30px;
  text-align: center;
  position: relative;
}

.instructions-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 600;
}

.instructions-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 16px;
}

.instructions-toggle {
  margin-top: 20px;
}

.instructions-section {
  padding: 30px;
  border-bottom: 1px solid #e5e7eb;
}

.instructions-section:last-child {
  border-bottom: none;
}

.instructions-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 22px;
  color: #1f2937;
  position: relative;
  padding-bottom: 10px;
}

.instructions-section h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #3b82f6;
}

/* Risk cards */
.risk-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.risk-card {
  flex: 1;
  min-width: 250px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.risk-card.low-risk {
  background-color: #f0fdf4;
  border-left: 4px solid #22c55e;
}

.risk-card.medium-risk {
  background-color: #fffbeb;
  border-left: 4px solid #f59e0b;
}

.risk-card.high-risk {
  background-color: #fef2f2;
  border-left: 4px solid #ef4444;
}

.risk-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.risk-header h4 {
  margin: 0;
  font-size: 16px;
  color: #1f2937;
}

.risk-card.low-risk .risk-header i {
  color: #22c55e;
}

.risk-card.medium-risk .risk-header i {
  color: #f59e0b;
}

.risk-card.high-risk .risk-header i {
  color: #ef4444;
}

.risk-card ul {
  margin: 0;
  padding-left: 20px;
}

.risk-card li {
  margin-bottom: 8px;
  font-size: 14px;
}

.risk-card li:last-child {
  margin-bottom: 0;
}

/* Scope diagram */
.scope-diagram {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.scope-item {
  flex: 1;
  min-width: 250px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.scope-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.scope-item.broad .scope-circle {
  background-color: #ef4444;
}

.scope-item.medium .scope-circle {
  background-color: #f59e0b;
}

.scope-item.narrow .scope-circle {
  background-color: #22c55e;
}

.scope-content {
  flex: 1;
}

.scope-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #1f2937;
}

.scope-content p {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #6b7280;
}

.scope-content .tag {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.scope-item.broad .tag {
  background-color: #fee2e2;
  color: #b91c1c;
}

.scope-item.medium .tag {
  background-color: #fef3c7;
  color: #b45309;
}

.scope-item.narrow .tag {
  background-color: #dcfce7;
  color: #166534;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: center;
  position: relative;
  max-width: 800px;
  margin: 40px auto 20px;
}

.timeline:before {
  content: '';
  position: absolute;
  top: 25px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: linear-gradient(to right, #22c55e, #f59e0b, #ef4444);
  border-radius: 2px;
}

.timeline-point {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  border: 3px solid;
  margin: 0 auto 15px;
}

.timeline-point.safe .timeline-marker {
  border-color: #22c55e;
}

.timeline-point.moderate .timeline-marker {
  border-color: #f59e0b;
}

.timeline-point.risky .timeline-marker {
  border-color: #ef4444;
}

.timeline-label {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 5px;
}

.timeline-description {
  font-size: 12px;
  color: #6b7280;
}

/* Two columns layout */
.two-columns {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.column {
  flex: 1;
  min-width: 300px;
}

/* Address format */
.address-format {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.address-card {
  flex: 1;
  min-width: 200px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.address-card h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  color: #1f2937;
  text-align: center;
}

.address-example {
  font-size: 13px;
  color: #6b7280;
  border-left: 2px solid #d1d5db;
  padding-left: 10px;
  margin-bottom: 15px;
}

.address-example:last-child {
  margin-bottom: 0;
  border-left-color: #3b82f6;
}

.address-example p {
  margin: 3px 0;
}

/* Compatibility matrix */
.compatibility-matrix {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.matrix-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 8px;
  align-items: center;
}

.matrix-item.safe {
  background-color: #f0fdf4;
}

.matrix-item.moderate {
  background-color: #fffbeb;
}

.matrix-item.risky {
  background-color: #fef2f2;
}

.compatibility-icon {
  flex-shrink: 0;
}

.matrix-item.safe .compatibility-icon i {
  color: #22c55e;
}

.matrix-item.moderate .compatibility-icon i {
  color: #f59e0b;
}

.matrix-item.risky .compatibility-icon i {
  color: #ef4444;
}

.compatibility-content h4 {
  margin: 0 0 5px 0;
  font-size: 14px;
  color: #1f2937;
}

.compatibility-content p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

/* Expert tips */
.tips-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tip {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: #f9fafb;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tip i {
  color: #3b82f6;
  flex-shrink: 0;
}

.tip-content h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #1f2937;
}

.tip-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Footer */
.instructions-footer {
  background: #f3f4f6;
  padding: 20px;
  text-align: center;
  font-size: 16px;
}

.instructions-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.instructions-footer a:hover {
  text-decoration: underline;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .risk-cards,
  .scope-diagram,
  .two-columns {
    flex-direction: column;
  }
  
  .timeline {
    flex-direction: column;
    align-items: flex-start;
    margin: 20px 0;
  }
  
  .timeline:before {
    top: 0;
    bottom: 0;
    left: 8px;
    right: auto;
    width: 4px;
    height: auto;
    background: linear-gradient(to bottom, #22c55e, #f59e0b, #ef4444);
  }
  
  .timeline-point {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    padding-left: 30px;
    text-align: left;
  }
  
  .timeline-marker {
    position: absolute;
    left: 0;
    margin: 0;
  }
  
  .timeline-label {
    margin-right: 10px;
    margin-bottom: 0;
  }
  
  .tips-container {
    grid-template-columns: 1fr;
  }
}