/* step-guide.css */
.step-guide {
  margin-block: 2rem;
  position: relative;
}

/* Vertical dashed line connecting steps */
.step-guide::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 24px; /* Center of the 48px circle */
  width: 2px;
  background-image: linear-gradient(to bottom, var(--color-gov-green) 50%, transparent 50%);
  background-size: 2px 10px;
  z-index: 0;
}

[dir="ltr"] .step-guide::before {
  right: auto;
  left: 24px;
}

.step-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-surface-raised);
  border: 2px solid var(--color-gov-green);
  color: var(--color-gov-green);
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--color-paper); /* Cut out background line */
}

.step-item.is-active .step-number {
  background-color: var(--color-gov-green);
  color: white;
}

.step-content {
  background-color: var(--color-surface-raised);
  border: 1px solid var(--color-khaki);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1;
  box-shadow: var(--shadow-paper);
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--color-gov-green);
}

.madam-tip {
  display: flex;
  gap: 1rem;
  background-color: rgba(212, 135, 10, 0.1);
  border-right: 4px solid var(--color-amber);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  align-items: flex-start;
}

[dir="ltr"] .madam-tip {
  border-right: none;
  border-left: 4px solid var(--color-amber);
}

.madam-tip img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}

.madam-tip blockquote {
  font-style: italic;
  margin: 0;
  color: var(--color-ink);
  font-weight: 600;
}

.madam-tip--illustrated {
  --tip-accent: var(--color-gov-green);
  --tip-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 242, 231, 0.96));
  display: flex;
  flex-direction: row-reverse;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(196, 170, 124, 0.45);
  border-right: 4px solid var(--tip-accent);
  background: var(--tip-surface);
  box-shadow: 0 18px 40px rgba(45, 90, 61, 0.08);
}

[dir="ltr"] .madam-tip--illustrated {
  flex-direction: row;
  border-right: 1px solid rgba(196, 170, 124, 0.45);
  border-left: 4px solid var(--tip-accent);
}

.madam-tip--illustrated.madam-tip--warning {
  --tip-accent: var(--color-warning);
}

.madam-tip--illustrated .madam-tip-aside {
  width: 88px;
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.madam-tip--illustrated .madam-tip-illustration {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(196, 170, 124, 0.45);
  box-shadow: 0 10px 24px rgba(45, 90, 61, 0.1);
}

.madam-tip--illustrated .madam-tip-body {
  flex: 1;
  min-width: 0;
}

.madam-tip--illustrated blockquote {
  font-style: normal;
  font-weight: 600;
  line-height: 1.9;
  color: var(--color-text-secondary);
}

.madam-tip--panel {
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
}

.madam-tip--panel img {
  width: 100%;
  max-width: 360px;
  border-radius: 16px;
  box-shadow: var(--shadow-paper);
}

/* Progress Tracker Sidebar */
.progress-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-progress {
  background: var(--color-surface-raised);
  border: 1px solid var(--color-khaki);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.sidebar-progress h3 {
  font-size: 1.125rem;
  border-bottom: 1px solid var(--color-khaki);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.progress-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.progress-step-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-small);
  color: var(--color-text-secondary);
  transition: var(--transition-fast);
}

.progress-step-link.active {
  color: var(--color-gov-green);
  font-weight: bold;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--color-khaki);
  background: var(--color-paper);
}

.progress-step-link.active .progress-dot {
  border-color: var(--color-gov-green);
  background: var(--color-gov-green);
}

@media (max-width: 768px) {
  .madam-tip--illustrated,
  [dir="ltr"] .madam-tip--illustrated {
    flex-direction: column;
    padding: 1rem;
    border-left: 1px solid rgba(196, 170, 124, 0.45);
    border-right: 1px solid rgba(196, 170, 124, 0.45);
    border-top: 1px solid rgba(196, 170, 124, 0.45);
    border-bottom: 4px solid var(--tip-accent);
  }

  .madam-tip--illustrated .madam-tip-aside {
    width: 72px;
    flex: 0 0 auto;
    justify-content: center;
    text-align: center;
  }

  [dir="ltr"] .madam-tip--illustrated .madam-tip-aside {
    text-align: center;
  }

  .madam-tip--illustrated .madam-tip-illustration {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }

  .madam-tip--illustrated blockquote {
    line-height: 1.8;
  }
}
