/* Ninja Excel LMS — Encapsulated Styles */
/* Matches ninjaexcel.com visual language */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

.nelms-root {
  /* Brand palette — from ninjaexcel.com */
  --nelms-blue-900: #062A60;
  --nelms-blue-600: #0554F2;
  --nelms-blue-300: #84B0F7;
  --nelms-blue-100: #E8F0FE;
  --nelms-blue-50: #F0F5FF;
  --nelms-bg: #F6F9FE;
  --nelms-white: #FFFFFF;
  --nelms-text: #062A60;
  --nelms-muted: #5C6B85;
  --nelms-border: #E3EBF7;
  --nelms-green: #34D399;
  --nelms-green-soft: #ECFDF5;
  --nelms-red: #D64545;
  --nelms-red-soft: #FEF2F2;
  --nelms-linkedin: #0A66C2;
  --nelms-radius: 20px;
  --nelms-radius-sm: 12px;
  --nelms-shadow: 0 2px 20px rgba(6, 42, 96, 0.06);
  --nelms-shadow-hover: 0 4px 28px rgba(6, 42, 96, 0.10);

  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--nelms-text);
  background: var(--nelms-bg);
  line-height: 1.6;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.nelms-root *, .nelms-root *::before, .nelms-root *::after {
  box-sizing: inherit;
}

/* Focus visible */
.nelms-root *:focus-visible {
  outline: 2px solid var(--nelms-blue-600);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nelms-root * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Layout */
.nelms-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.nelms-container-wide {
  max-width: 880px;
}
@media (min-width: 1500px) {
  .nelms-container-wide { max-width: 980px; }
}

/* Progress bar — sticky discreet */
.nelms-progress-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 4px;
  background: var(--nelms-border);
  backdrop-filter: blur(6px);
}

.nelms-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nelms-blue-600), var(--nelms-blue-300));
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

/* Steps */
.nelms-main {
  height: calc(100vh - 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px 16px 320px;
  overflow: hidden;
}

@media (min-width: 1500px) {
  .nelms-main { padding: 24px 80px 24px 340px; }
}
@media (max-width: 1280px) {
  .nelms-main { padding: 12px 24px 12px 300px; }
}
@media (max-width: 1100px) {
  .nelms-main { padding: 12px 20px 12px 280px; }
}
@media (max-width: 900px) {
  .nelms-main {
    height: auto;
    min-height: 100vh;
    padding: 80px 20px 24px;
    display: block;
    overflow: visible;
  }
}

.nelms-step {
  display: none;
  width: 100%;
  max-height: 100%;
}

.nelms-step.nelms-active {
  display: block;
}

/* Brand logo (top-left) */
.nelms-brand-logo {
  position: fixed;
  top: 18px;
  left: 24px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nelms-brand-logo img {
  width: 130px;
  max-width: 35vw;
  height: auto;
  object-fit: contain;
  display: block;
}
.nelms-brand-tag {
  display: inline-flex;
  align-items: center;
  background: hsla(220, 95%, 49%, 0.12);
  color: var(--nelms-blue-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
}

/* Card — matching the rounded, soft shadow style */
.nelms-card {
  background: var(--nelms-white);
  border-radius: var(--nelms-radius);
  box-shadow: var(--nelms-shadow);
  padding: 28px 32px;
  margin-bottom: 12px;
  border: 1px solid rgba(227, 235, 247, 0.6);
  transition: box-shadow 0.2s ease;
}

@media (max-width: 600px) {
  .nelms-main {
    height: auto;
    min-height: 100vh;
    padding: 72px 0 24px;
    display: block;
    overflow: visible;
  }
  .nelms-brand-logo {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 10px 14px;
    gap: 6px;
    background: var(--nelms-white);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    border-bottom: 1px solid rgba(227, 235, 247, 0.8);
  }
  .nelms-brand-logo img { width: 100px; }
  .nelms-brand-tag { font-size: 0.62rem; padding: 4px 7px; }
  .nelms-main { padding-top: 64px; }
}

/* Section title (above card) */
.nelms-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--nelms-blue-600);
  margin-bottom: 8px;
}

.nelms-section-desc {
  color: var(--nelms-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Video */
.nelms-video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: var(--nelms-blue-900);
  border-radius: var(--nelms-radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.nelms-video-wrapper iframe,
.nelms-video-wrapper video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.nelms-video-poster {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nelms-blue-900) center/cover no-repeat;
}

.nelms-play-btn {
  width: 88px; height: 88px;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--nelms-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.nelms-play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.nelms-play-btn svg {
  width: 34px; height: 34px;
  fill: var(--nelms-blue-600);
  margin-left: 5px;
}

.nelms-video-done {
  text-align: center;
  padding: 16px 0;
}

.nelms-video-done .nelms-check {
  color: var(--nelms-green);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Buttons — matching ninjaexcel.com CTA style */
.nelms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.4;
}

.nelms-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nelms-btn-primary {
  background: var(--nelms-blue-600);
  color: var(--nelms-white);
  box-shadow: 0 2px 12px rgba(5, 84, 242, 0.25);
}

.nelms-btn-primary:hover:not(:disabled) {
  background: #0446CC;
  box-shadow: 0 4px 16px rgba(5, 84, 242, 0.35);
  transform: translateY(-1px);
}

.nelms-btn-secondary {
  background: var(--nelms-blue-100);
  color: var(--nelms-blue-900);
  border: 1px solid var(--nelms-border);
}

.nelms-btn-secondary:hover:not(:disabled) {
  background: #D8E6FD;
}

.nelms-btn-green {
  background: var(--nelms-green);
  color: var(--nelms-white);
  box-shadow: 0 2px 12px rgba(52, 211, 153, 0.3);
}

.nelms-btn-green:hover:not(:disabled) {
  background: #2bb382;
  transform: translateY(-1px);
}

.nelms-btn-linkedin {
  background: var(--nelms-linkedin);
  color: var(--nelms-white);
}

.nelms-btn-linkedin:hover {
  background: #084e96;
}

.nelms-btn-linkedin svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

.nelms-btn-block {
  width: 100%;
}

/* Quiz */
.nelms-quiz-counter {
  font-size: 0.9rem;
  color: var(--nelms-muted);
  margin-bottom: 6px;
  font-weight: 400;
  letter-spacing: 0;
}

.nelms-quiz-question {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--nelms-blue-900);
  margin-bottom: 20px;
}

.nelms-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nelms-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--nelms-border);
  border-radius: var(--nelms-radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--nelms-white);
}

.nelms-option:hover {
  border-color: var(--nelms-blue-300);
  background: var(--nelms-blue-50);
}

.nelms-option.nelms-selected {
  border-color: var(--nelms-blue-600);
  background: var(--nelms-blue-100);
}

.nelms-option.nelms-correct {
  border-color: var(--nelms-green);
  background: var(--nelms-green-soft);
}

.nelms-option.nelms-incorrect {
  border-color: var(--nelms-red);
  background: var(--nelms-red-soft);
}

.nelms-option.nelms-disabled {
  pointer-events: none;
  opacity: 0.7;
}

.nelms-radio-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--nelms-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.nelms-selected .nelms-radio-circle {
  border-color: var(--nelms-blue-600);
}

.nelms-selected .nelms-radio-dot {
  width: 10px; height: 10px;
  background: var(--nelms-blue-600);
  border-radius: 50%;
}

.nelms-correct .nelms-radio-circle {
  border-color: var(--nelms-green);
}

.nelms-correct .nelms-radio-dot {
  width: 10px; height: 10px;
  background: var(--nelms-green);
  border-radius: 50%;
}

.nelms-incorrect .nelms-radio-circle {
  border-color: var(--nelms-red);
}

.nelms-option-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--nelms-text);
}

.nelms-feedback {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--nelms-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
}

.nelms-feedback-correct {
  background: var(--nelms-green-soft);
  color: #065F46;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.nelms-feedback-incorrect {
  background: var(--nelms-red-soft);
  color: #991B1B;
  border: 1px solid rgba(214, 69, 69, 0.2);
}

.nelms-quiz-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

/* Result */
.nelms-result-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.nelms-result-icon-pass {
  background: var(--nelms-green);
}

.nelms-result-icon-fail {
  background: var(--nelms-red);
}

.nelms-result-title {
  font-size: 1.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
}

.nelms-result-big-score {
  font-size: 4rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1;
}

.nelms-result-msg {
  font-size: 1rem;
  text-align: center;
  color: var(--nelms-muted);
  margin-bottom: 24px;
}

.nelms-result-score {
  font-size: 1.1rem;
  text-align: center;
  color: var(--nelms-muted);
  margin-bottom: 20px;
}

.nelms-result-pass {
  color: var(--nelms-blue-600);
}

.nelms-result-fail {
  color: var(--nelms-red);
}

/* Result actions */
.nelms-result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Form actions */
.nelms-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* Form */
.nelms-form-group {
  margin-bottom: 18px;
}

.nelms-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--nelms-blue-900);
}

.nelms-form-label .nelms-optional {
  color: var(--nelms-muted);
  font-weight: 400;
}

.nelms-form-label .nelms-required {
  color: var(--nelms-red);
  font-weight: 700;
}

.nelms-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--nelms-border);
  border-radius: var(--nelms-radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--nelms-text);
  background: var(--nelms-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nelms-form-input:focus {
  border-color: var(--nelms-blue-600);
  box-shadow: 0 0 0 3px rgba(5, 84, 242, 0.1);
  outline: none;
}

.nelms-form-input.nelms-input-error {
  border-color: var(--nelms-red);
}

.nelms-form-error {
  font-size: 0.8rem;
  color: var(--nelms-red);
  margin-top: 4px;
  font-weight: 700;
}

/* Certificate */
.nelms-cert-restart-row {
  text-align: center;
  margin-bottom: 20px;
}

.nelms-certificate {
  background: var(--nelms-white);
  border: 2px solid var(--nelms-blue-300);
  border-radius: var(--nelms-radius);
  padding: 48px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(5, 84, 242, 0.08);
}

.nelms-certificate::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(5, 84, 242, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(52, 211, 153, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

.nelms-cert-logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.nelms-cert-logo {
  max-height: 48px;
  display: block;
  position: relative;
}

.nelms-cert-subtitle {
  font-size: 0.95rem;
  color: var(--nelms-muted);
  margin-bottom: 12px;
  position: relative;
}

.nelms-cert-course-pill {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}

.nelms-cert-course-pill-text {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--nelms-blue-900);
  background: var(--nelms-blue-50);
  border: 1.5px solid var(--nelms-blue-300);
  border-radius: 40px;
  padding: 10px 28px;
}

.nelms-cert-brand {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--nelms-blue-600);
  text-transform: uppercase;
  margin-bottom: 16px;
  position: relative;
}

.nelms-cert-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--nelms-blue-900);
  margin-bottom: 24px;
  position: relative;
}

.nelms-cert-name {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--nelms-blue-900);
  margin-bottom: 12px;
  position: relative;
}

.nelms-cert-description {
  font-size: 0.9rem;
  color: var(--nelms-muted);
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  position: relative;
}

.nelms-cert-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nelms-muted);
  position: relative;
}

.nelms-cert-company {
  font-size: 1rem;
  color: var(--nelms-muted);
  margin-bottom: 16px;
  position: relative;
}

.nelms-cert-course {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nelms-text);
  margin-bottom: 8px;
  position: relative;
}

.nelms-cert-score {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nelms-green);
  margin-bottom: 16px;
  position: relative;
}

.nelms-cert-meta {
  font-size: 0.8rem;
  color: var(--nelms-muted);
  position: relative;
}

.nelms-cert-actions {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.nelms-btn-link {
  background: none;
  border: none;
  color: var(--nelms-muted);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  padding: 8px;
  text-decoration: none;
}

.nelms-btn-link:hover {
  color: var(--nelms-blue-600);
  text-decoration: underline;
}

.nelms-cert-restart-row {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 8px;
}

/* Helpers */
.nelms-text-center { text-align: center; }
.nelms-mt-16 { margin-top: 16px; }
.nelms-mt-8 { margin-top: 8px; }
.nelms-hidden { display: none !important; }

/* Step indicator dots */
.nelms-step-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}

.nelms-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nelms-border);
  transition: all 0.3s ease;
}

.nelms-step-dot.nelms-dot-active {
  background: var(--nelms-blue-600);
  width: 24px;
  border-radius: 4px;
}

.nelms-step-dot.nelms-dot-done {
  background: var(--nelms-green);
}

/* Responsive */
@media (max-width: 600px) {
  .nelms-container { padding: 0 14px; }
  .nelms-card { padding: 20px; }
  .nelms-certificate { padding: 28px 18px; }
  .nelms-cert-name { font-size: 1.4rem; }
  .nelms-cert-title { font-size: 1.2rem; }
  .nelms-cert-actions { flex-direction: column; }
  .nelms-cert-actions .nelms-btn { width: 100%; }
  .nelms-header-title { font-size: 1rem; }
  .nelms-quiz-nav { flex-direction: column; }
  .nelms-step { padding: 20px 0; }
}

/* Aria live region */
.nelms-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── HubSpot form host ─── */
.nelms-hubspot-host {
  margin-top: 8px;
  min-height: 80px;
}
.nelms-hubspot-host .hs-form-field { margin-bottom: 14px; }
.nelms-hubspot-host label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--nelms-blue-900);
}
.nelms-hubspot-host input[type="text"],
.nelms-hubspot-host input[type="email"],
.nelms-hubspot-host input[type="tel"],
.nelms-hubspot-host input[type="number"],
.nelms-hubspot-host select,
.nelms-hubspot-host textarea {
  width: 100% !important;
  padding: 12px 16px;
  border: 2px solid var(--nelms-border);
  border-radius: var(--nelms-radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--nelms-text);
  background: var(--nelms-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nelms-hubspot-host input:focus,
.nelms-hubspot-host select:focus,
.nelms-hubspot-host textarea:focus {
  border-color: var(--nelms-blue-600);
  box-shadow: 0 0 0 3px rgba(5, 84, 242, 0.1);
  outline: none;
}
.nelms-hubspot-host .hs-button,
.nelms-hubspot-host input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border: none;
  border-radius: var(--nelms-radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--nelms-blue-600);
  color: var(--nelms-white);
  box-shadow: 0 2px 12px rgba(5, 84, 242, 0.25);
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 8px;
}
.nelms-hubspot-host .hs-button:hover,
.nelms-hubspot-host input[type="submit"]:hover {
  background: #0446CC;
  transform: translateY(-1px);
}
.nelms-hubspot-host .hs-error-msgs,
.nelms-hubspot-host .hs-error-msg {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  color: var(--nelms-red);
  font-size: 0.8rem;
  font-weight: 700;
}
.nelms-hubspot-host .legal-consent-container {
  font-size: 0.8rem;
  color: var(--nelms-muted);
  margin-top: 8px;
}

.nelms-form-support {
  font-size: 0.85rem;
  color: var(--nelms-muted);
  margin: -8px 0 16px;
  padding: 10px 14px;
  background: var(--nelms-blue-50);
  border-left: 3px solid var(--nelms-blue-300);
  border-radius: 6px;
}

.nelms-form-fallback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--nelms-radius-sm);
  background: var(--nelms-red-soft);
  color: #991B1B;
  border: 1px solid rgba(214, 69, 69, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
}

/* ─── Resources CTA (discreet secondary) ─── */
.nelms-resources-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.nelms-btn-resources {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nelms-text);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
  cursor: pointer;
}
.nelms-btn-resources:hover,
.nelms-btn-resources:focus-visible {
  color: var(--nelms-blue-600);
  background: transparent;
  border-color: var(--nelms-green);
  text-decoration: none;
}
.nelms-resources-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--nelms-muted);
  padding: 6px 10px;
}
.nelms-resources-soon svg {
  flex-shrink: 0;
}

/* ─── Share final block ─── */
.nelms-share-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 8px 0 24px;
  background: var(--nelms-blue-50);
  border: 1px solid var(--nelms-border);
  border-radius: var(--nelms-radius-sm);
  padding: 18px;
}
.nelms-share-row { display: flex; flex-direction: column; gap: 4px; }
.nelms-share-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--nelms-muted);
}
.nelms-share-value-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}
.nelms-share-value {
  font-size: 0.95rem;
  color: var(--nelms-blue-900);
  font-weight: 700;
  flex: 1;
  line-height: 1.5;
}
.nelms-share-copy {
  background: var(--nelms-white);
  border: 1px solid var(--nelms-border);
  color: var(--nelms-blue-600);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.nelms-share-copy:hover {
  background: var(--nelms-blue-100);
  border-color: var(--nelms-blue-300);
}
.nelms-share-copy-done {
  background: var(--nelms-green-soft);
  border-color: var(--nelms-green);
  color: #065F46;
}

/* ─── Video step extras ─── */
.nelms-card-video {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  max-height: 100%;
}
.nelms-video-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.nelms-video-title-row .nelms-quiz-question {
  font-size: 1.66rem;
  line-height: 1.2;
  margin-bottom: 0;
}
.nelms-mb-0 { margin-bottom: 0 !important; }

/* Constrain video so the whole step (title + video + done + button) always fits the viewport */
.nelms-card-video .nelms-video-wrapper {
  width: min(100%, calc((100vh - 290px) * 16 / 9));
  aspect-ratio: 16 / 9;
  padding-bottom: 0;
  margin-left: auto;
  margin-right: auto;
}
@media (max-height: 760px) {
  .nelms-card-video { padding: 12px 18px; }
  .nelms-card-video .nelms-section-desc { margin-bottom: 10px; font-size: 0.9rem; }
  .nelms-card-video .nelms-video-title-row .nelms-quiz-question { font-size: 1.35rem; }
  .nelms-card-video .nelms-video-wrapper {
    width: min(100%, calc((100vh - 240px) * 16 / 9));
  }
  .nelms-card-video .nelms-video-done { padding: 8px 0; }
  .nelms-card-video + .nelms-form-actions,
  .nelms-card-video ~ .nelms-form-actions { margin-top: 10px; }
}
@media (max-height: 640px) {
  .nelms-card-video .nelms-video-wrapper {
    width: min(100%, calc((100vh - 210px) * 16 / 9));
  }
}

.nelms-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nelms-blue-50);
  color: var(--nelms-blue-600);
  border: 1px solid var(--nelms-blue-300);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.2px;
}
.nelms-duration-badge svg { display: block; }

.nelms-card-video .nelms-video-wrapper {
  border-radius: 14px;
  margin-top: 10px;
}

@media (min-width: 900px) {
  .nelms-card-video { padding: 22px 28px; }
}

/* ─── Stepper lateral (desktop) ─── */
.nelms-stepper {
  position: fixed;
  top: 88px;
  left: 32px;
  width: 260px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-width: thin;
  z-index: 15;
  font-family: inherit;
}
.nelms-stepper::-webkit-scrollbar { width: 6px; }
.nelms-stepper::-webkit-scrollbar-thumb { background: var(--nelms-border); border-radius: 3px; }
.nelms-stepper-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.nelms-stepper-list::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--nelms-border);
  z-index: 0;
}
.nelms-stepper-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 0;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  transition: background 0.2s;
}
.nelms-stepper-circle {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  background: var(--nelms-white);
  border: 2px solid var(--nelms-border);
  color: var(--nelms-muted);
  transition: all 0.2s ease;
}
.nelms-stepper-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nelms-muted);
  line-height: 1.3;
}
.nelms-stepper-done .nelms-stepper-circle {
  background: var(--nelms-green);
  border-color: var(--nelms-green);
  color: var(--nelms-white);
}
.nelms-stepper-done .nelms-stepper-label {
  color: var(--nelms-blue-900);
}
.nelms-stepper-active {
  background: var(--nelms-blue-50);
}
.nelms-stepper-active .nelms-stepper-circle {
  background: var(--nelms-blue-600);
  border-color: var(--nelms-blue-600);
  color: var(--nelms-white);
  box-shadow: 0 4px 12px rgba(5, 84, 242, 0.25);
}
.nelms-stepper-active .nelms-stepper-label {
  color: var(--nelms-blue-600);
  font-weight: 900;
}
.nelms-stepper-locked .nelms-stepper-circle {
  background: var(--nelms-bg);
}
.nelms-stepper-locked .nelms-stepper-circle svg { opacity: 0.55; }

/* Resources CTA dentro del stepper lateral */
.nelms-resources-stepper {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--nelms-border);
  justify-content: flex-start;
  padding-left: 6px;
}
.nelms-resources-stepper .nelms-btn-resources,
.nelms-resources-stepper .nelms-resources-soon {
  font-size: 0.82rem;
  text-align: left;
}

/* Mobile fallback: el stepper se oculta, mostramos recursos inline */
.nelms-resources-mobile { display: none; }

@media (max-width: 900px) {
  .nelms-stepper { display: none; }
  .nelms-resources-mobile { display: flex; }
}

/* ─── Video poster con imagen ─── */
.nelms-video-poster-img { position: relative; overflow: hidden; }
.nelms-video-poster-img::after { content: none; }
.nelms-video-poster-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.nelms-video-poster-img .nelms-play-btn { position: relative; z-index: 1; }

/* ─── Friend share box ─── */
.nelms-friend-share {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--nelms-blue-50);
  border: 1px solid var(--nelms-border);
  border-radius: var(--nelms-radius-sm);
  text-align: left;
}
.nelms-friend-share-title {
  font-size: 1rem;
  font-weight: 900;
  color: var(--nelms-blue-900);
  margin: 0 0 6px;
}
.nelms-friend-share-desc {
  font-size: 0.9rem;
  color: var(--nelms-muted);
  margin: 0 0 12px;
  line-height: 1.5;
}
.nelms-friend-share-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.nelms-friend-share-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--nelms-border);
  border-radius: var(--nelms-radius-sm);
  background: var(--nelms-white);
  color: var(--nelms-blue-900);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 700;
}
.nelms-friend-share-input:focus {
  outline: none;
  border-color: var(--nelms-blue-600);
  box-shadow: 0 0 0 3px rgba(5,84,242,0.1);
}
.nelms-friend-copy {
  padding: 10px 20px !important;
  font-size: 0.85rem !important;
  flex-shrink: 0;
}
.nelms-friend-copy-done {
  background: var(--nelms-green) !important;
}

/* ─── Experience banner (debajo de recursos) ─── */
.nelms-exp-banner {
  margin-top: 16px;
  padding: 12px;
  background: var(--nelms-white);
  border: 1px solid var(--nelms-border);
  border-radius: var(--nelms-radius);
  box-shadow: var(--nelms-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nelms-exp-banner-badge {
  align-self: flex-start;
  background: hsla(158, 64%, 52%, 0.15);
  color: #0f8a5f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.nelms-exp-banner-title {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--nelms-blue-900);
  font-weight: 600;
}
.nelms-exp-banner-title strong {
  font-weight: 900;
  color: var(--nelms-blue-600);
}
.nelms-exp-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--nelms-radius-sm);
}
.nelms-exp-banner-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--nelms-blue-900);
  font-size: 0.82rem;
  font-weight: 700;
}
.nelms-exp-banner-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nelms-exp-check {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: block;
}
.nelms-exp-banner-cta {
  width: 100%;
  padding: 12px 16px !important;
  font-size: 0.85rem !important;
  text-align: center;
}

/* Mobile inline banner */
.nelms-exp-banner-mobile { display: none; }
@media (max-width: 900px) {
  .nelms-exp-banner-mobile {
    display: flex;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .nelms-exp-banner-mobile .nelms-exp-banner-list { font-size: 0.9rem; }
  .nelms-exp-banner-mobile .nelms-exp-banner-cta { font-size: 0.95rem !important; padding: 14px 24px !important; }
}
