/* Step-by-step instruction flow viewer */

.instruction-flow-root {
  min-height: 100vh;
  background: #f3f4f6;
  padding: 2rem 1.5rem 3rem;
}

.instruction-flow {
  max-width: 960px;
  margin: 0 auto;
}

.instruction-flow-page-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  color: #374151;
  margin: 0 0 2rem;
}

.instruction-flow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
}

.instruction-flow-step {
  display: flex;
  align-items: center;
}

.instruction-flow-step-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  background: #fff;
  border: 2px solid #d1d5db;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.instruction-flow-step-line {
  display: block;
  width: 64px;
  height: 2px;
  background: #d1d5db;
  margin: 0 0.25rem;
}

.instruction-flow-step.is-completed .instruction-flow-step-circle {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.instruction-flow-step.is-completed .instruction-flow-step-line {
  background: #2563eb;
}

.instruction-flow-step.is-active .instruction-flow-step-circle {
  background: #fff;
  border-color: #f97316;
  color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.15);
}

.instruction-flow-body {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.instruction-flow-card {
  flex: 1;
  max-width: 720px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 2rem;
  text-align: center;
}

.instruction-flow-title {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.75rem;
}

.instruction-flow-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.instruction-flow-subtitle strong {
  font-weight: 700;
  color: #374151;
}

.instruction-flow-media {
  background: #eff6ff;
  border-radius: 12px;
  padding: 1rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.instruction-flow-image {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.instruction-flow-footer-subtitle {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9375rem;
  color: #6b7280;
  margin: 1.25rem 0 0;
  line-height: 1.5;
}

.instruction-flow-footer-subtitle strong {
  font-weight: 700;
  color: #374151;
}

.instruction-flow-footer-subtitle a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.instruction-flow-footer-subtitle a:hover {
  color: #1d4ed8;
}

.instruction-flow-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #6b7280;
  transition: all 0.2s ease;
}

.instruction-flow-nav:hover:not(:disabled) {
  background: #f9fafb;
  color: #374151;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.instruction-flow-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.instruction-flow-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  font-family: 'Quicksand', sans-serif;
}

.instruction-flow-empty h1 {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #111827;
}

.instruction-flow-empty p {
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.instruction-flow-close-btn {
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  color: #374151;
}

@media (max-width: 768px) {
  .instruction-flow-body {
    flex-direction: column;
  }

  .instruction-flow-nav {
    position: static;
  }

  .instruction-flow-step-line {
    width: 32px;
  }

  .instruction-flow-card {
    padding: 1.5rem 1rem;
  }
}
