/* ═══════════════════════════════════════════════════════════════
   Checkit Lead Funnel — modal multi-paso reutilizable
   Tokens de diseño unificados para cualquier landing / detalle
   ═══════════════════════════════════════════════════════════════ */

.c-lead-funnel {
  --lf-brand: var(--s-color-brand-primary, #e85d04);
  --lf-brand-dark: #c2410c;
  --lf-brand-soft: #fff7ed;
  --lf-brand-border: rgba(232, 93, 4, 0.22);
  --lf-success: #059669;
  --lf-success-soft: #ecfdf5;
  --lf-text: #0f172a;
  --lf-text-secondary: #334155;
  --lf-muted: #64748b;
  --lf-muted-light: #94a3b8;
  --lf-border: #e2e8f0;
  --lf-surface: #ffffff;
  --lf-surface-muted: #f8fafc;
  --lf-overlay: rgba(15, 23, 42, 0.58);
  --lf-radius: 18px;
  --lf-radius-sm: 10px;
  --lf-radius-pill: 999px;
  --lf-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  --lf-font-xs: 11px;
  --lf-font-sm: 12px;
  --lf-font-base: 14px;
  --lf-font-lg: 1.05rem;
  --lf-font-xl: 1.35rem;
  --lf-space-xs: 6px;
  --lf-space-sm: 10px;
  --lf-space-md: 16px;
  --lf-space-lg: 22px;
  --lf-hero-min: 210px;
  --lf-dialog-max: min(calc(100dvh - 24px), 760px);
  --lf-dialog-width: min(560px, 100%);
  --lf-z: 10000;

  position: fixed;
  inset: 0;
  z-index: var(--lf-z);
  display: none;
  place-items: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
  overflow: hidden;
  overscroll-behavior: contain;
}

.c-lead-funnel.is-open {
  display: grid;
}

body.c-lead-funnel-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.c-lead-funnel__backdrop {
  position: absolute;
  inset: 0;
  background: var(--lf-overlay);
  backdrop-filter: blur(4px);
}

.c-lead-funnel__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--lf-dialog-width);
  height: auto;
  max-height: var(--lf-dialog-max);
  margin: auto;
  overflow: hidden;
  background: var(--lf-surface);
  border-radius: var(--lf-radius);
  box-shadow: var(--lf-shadow);
  flex-shrink: 0;
}

.c-lead-funnel__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--lf-radius-pill);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.c-lead-funnel__close:hover {
  background: rgba(15, 23, 42, 0.65);
}

.c-lead-funnel__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.c-lead-funnel__hero {
  position: relative;
  flex: 0 0 auto;
  min-height: var(--lf-hero-min);
  overflow: hidden;
  border-radius: var(--lf-radius) var(--lf-radius) 0 0;
  isolation: isolate;
}

.c-lead-funnel__hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.c-lead-funnel__hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.55) 42%, rgba(124, 45, 18, 0.82) 100%),
    linear-gradient(135deg, rgba(5, 150, 105, 0.18) 0%, transparent 55%);
  pointer-events: none;
}

.c-lead-funnel__hero-inner {
  position: relative;
  z-index: 2;
  padding: 18px 56px 20px 22px;
  color: #fff;
}

.c-lead-funnel__hero-logo {
  display: block;
  width: auto;
  max-width: 128px;
  height: 28px;
  margin-bottom: 12px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.c-lead-funnel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: var(--lf-radius-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: var(--lf-font-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d1fae5;
}

.c-lead-funnel__hero h2 {
  margin: 0 0 6px;
  font-size: var(--lf-font-xl);
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  text-wrap: balance;
}

.c-lead-funnel__hero #lead-funnel-subtitle {
  margin: 0;
  font-size: var(--lf-font-sm);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.c-lead-funnel__hero-module {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 6px 12px;
  border-radius: var(--lf-radius-pill);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: var(--lf-font-sm);
  color: #fff;
}

.c-lead-funnel__hero-module i {
  color: #fed7aa;
}

.c-lead-funnel__hero-module strong {
  font-weight: 700;
}

.c-lead-funnel__form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.c-lead-funnel__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.c-lead-funnel[data-funnel-step="2"] .c-lead-funnel__scroll {
  overflow-y: auto;
  max-height: min(46dvh, 380px);
}

.c-lead-funnel__scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.c-lead-funnel__nav {
  padding: 14px 22px 0;
  background: var(--lf-surface);
}

.c-lead-funnel__progress {
  height: 4px;
  border-radius: var(--lf-radius-pill);
  background: var(--lf-border);
  overflow: hidden;
  margin-bottom: 10px;
}

.c-lead-funnel__progress-bar {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--lf-success), var(--lf-brand));
  transition: width 0.3s ease;
}

.c-lead-funnel__steps-label {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  font-size: var(--lf-font-xs);
  color: var(--lf-muted-light);
}

.c-lead-funnel__steps-label li.is-active {
  color: var(--lf-text);
  font-weight: 700;
}

.c-lead-funnel__step {
  padding: 12px 22px 8px;
}

.c-lead-funnel__step h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: var(--lf-font-lg);
  color: var(--lf-text);
}

.c-lead-funnel__step h3 i {
  color: var(--lf-brand);
}

.c-lead-funnel__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.c-lead-funnel__grid label,
.c-lead-funnel__notes {
  display: flex;
  flex-direction: column;
  gap: var(--lf-space-xs);
  font-size: var(--lf-font-sm);
  font-weight: 600;
  color: #475569;
}

.c-lead-funnel__grid input,
.c-lead-funnel__notes textarea {
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: var(--lf-radius-sm);
  font-size: var(--lf-font-base);
  color: var(--lf-text);
  background: var(--lf-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.c-lead-funnel__grid input::placeholder,
.c-lead-funnel__notes textarea::placeholder {
  color: var(--lf-muted-light);
}

.c-lead-funnel__grid input:focus,
.c-lead-funnel__notes textarea:focus {
  outline: none;
  border-color: var(--lf-brand);
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.12);
}

.c-lead-funnel__fieldset {
  border: 0;
  margin: 0 0 14px;
  padding: 0;
}

.c-lead-funnel__fieldset legend {
  margin-bottom: 8px;
  font-size: var(--lf-font-sm);
  font-weight: 700;
  color: #475569;
}

.c-lead-funnel__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 6px;
  border: 1px solid var(--lf-border);
  border-radius: var(--lf-radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--lf-text-secondary);
  transition: border-color 0.2s, background 0.2s;
}

.c-lead-funnel__option:has(input:checked) {
  border-color: var(--lf-brand);
  background: var(--lf-brand-soft);
}

.c-lead-funnel__option input {
  margin-top: 3px;
  accent-color: var(--lf-brand);
}

.c-lead-funnel__option-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.c-lead-funnel__option-copy strong {
  color: var(--lf-text);
}

.c-lead-funnel__option-copy small {
  font-size: var(--lf-font-sm);
  color: var(--lf-muted);
  line-height: 1.4;
}

/* ── Paso 2 · tarjetas de módulo y programa ── */
.c-lead-funnel__step[data-step="2"] h3 {
  margin-bottom: 12px;
}

.c-lead-funnel__option--module {
  align-items: flex-start;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 8px;
}

.c-lead-funnel__option--module:last-child {
  margin-bottom: 0;
}

.c-lead-funnel__option--module .c-lead-funnel__option-copy {
  flex: 1 1 auto;
  min-width: 0;
  gap: 10px;
}

.c-lead-funnel__option-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.c-lead-funnel__option-row strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  text-wrap: balance;
}

.c-lead-funnel__option-price {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--lf-radius-pill);
  background: rgba(232, 93, 4, 0.12);
  color: var(--lf-brand-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.c-lead-funnel__option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.c-lead-funnel__option-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: var(--lf-radius-pill);
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.c-lead-funnel__option--choice {
  margin-bottom: 8px;
}

.c-lead-funnel__option-choice-label {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  text-wrap: balance;
}

.c-lead-funnel__fieldset--modules {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.c-lead-funnel__fieldset--choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.c-lead-funnel__fieldset--choices legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.c-lead-funnel__fieldset--choices .c-lead-funnel__option--choice {
  margin-bottom: 0;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 10px;
}

.c-lead-funnel__fieldset--choices .c-lead-funnel__option--choice input {
  margin-top: 0;
}

.c-lead-funnel__program-chip {
  margin: 0 0 14px;
  border: 1px solid var(--lf-brand-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fffaf5 0%, var(--lf-brand-soft) 100%);
  overflow: hidden;
}

.c-lead-funnel__program-chip summary {
  list-style: none;
}

.c-lead-funnel__program-chip summary::-webkit-details-marker {
  display: none;
}

.c-lead-funnel__program-chip--static {
  padding: 14px;
}

.c-lead-funnel__program-chip-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 14px;
}

.c-lead-funnel__program-chip--static .c-lead-funnel__program-chip-head {
  padding: 0 0 12px;
  cursor: default;
}

.c-lead-funnel__program-chip-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.c-lead-funnel__program-chip-title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  text-wrap: balance;
}

.c-lead-funnel__program-chip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.c-lead-funnel__program-chip-copy strong {
  font-size: 13px;
  color: var(--lf-text);
  line-height: 1.35;
}

.c-lead-funnel__program-chip-copy small {
  font-size: var(--lf-font-sm);
  color: var(--lf-muted);
  line-height: 1.35;
}

.c-lead-funnel__program-chip-badge {
  display: inline-flex;
  align-self: flex-start;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: var(--lf-radius-pill);
  background: rgba(232, 93, 4, 0.14);
  color: var(--lf-brand-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.c-lead-funnel__program-chip-tag {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: var(--lf-radius-pill);
  background: rgba(232, 93, 4, 0.14);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--lf-brand-dark);
  white-space: nowrap;
}

details.c-lead-funnel__program-chip > summary.c-lead-funnel__program-chip-head {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

details.c-lead-funnel__program-chip > summary.c-lead-funnel__program-chip-head .c-lead-funnel__program-chip-copy {
  flex: 1 1 auto;
  min-width: 0;
}

details.c-lead-funnel__program-chip > summary.c-lead-funnel__program-chip-head .c-lead-funnel__program-chip-main {
  align-items: center;
}

.c-lead-funnel__program-chip-chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--lf-muted);
  transition: transform 0.2s ease;
}

.c-lead-funnel__program-chip[open] .c-lead-funnel__program-chip-chevron {
  transform: rotate(180deg);
}

.c-lead-funnel__program-chip-body {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(232, 93, 4, 0.12);
}

.c-lead-funnel__chip-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.c-lead-funnel__chip-stat,
.c-lead-funnel__chip-meta li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(232, 93, 4, 0.1);
  font-size: var(--lf-font-sm);
  color: #475569;
  line-height: 1.35;
}

.c-lead-funnel__chip-stat.is-wide {
  grid-column: 1 / -1;
}

.c-lead-funnel__chip-stat i,
.c-lead-funnel__chip-meta i {
  width: auto;
  margin-top: 0;
  color: var(--lf-brand);
  font-size: 12px;
}

.c-lead-funnel__chip-stat-text {
  display: block;
  width: 100%;
  text-wrap: balance;
}

.c-lead-funnel__chip-price {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(232, 93, 4, 0.12);
  font-size: var(--lf-font-sm);
  color: var(--lf-muted);
  text-align: center;
}

.c-lead-funnel__chip-price strong {
  color: var(--lf-brand-dark);
  font-size: 1rem;
}

.c-lead-funnel__chip-price small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.c-lead-funnel__switch-flow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: var(--lf-font-sm);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.c-lead-funnel__switch-flow:hover {
  color: var(--lf-text);
}

.c-lead-funnel__qualify-block {
  margin-top: 4px;
}

.c-lead-funnel__qualify-block .c-lead-funnel__grid {
  margin-bottom: 4px;
}

.c-lead-funnel__flow-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--lf-muted);
}

.c-lead-funnel__explore-panel {
  margin-bottom: 12px;
}

.c-lead-funnel__step3-summary {
  margin-bottom: 12px;
}

.c-lead-funnel__step-lead {
  margin: 0 0 14px;
  font-size: var(--lf-font-sm);
  line-height: 1.5;
  color: var(--lf-muted);
}

.c-lead-funnel__confirm-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.c-lead-funnel__confirm-card {
  margin-bottom: 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--lf-success-soft);
  border: 1px solid #bbf7d0;
}

.c-lead-funnel__confirm-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.c-lead-funnel__confirm-card-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #dcfce7;
  color: #15803d;
  font-size: 15px;
}

.c-lead-funnel__confirm-card-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.c-lead-funnel__confirm-card-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: var(--lf-font-base);
  line-height: 1.35;
  color: #166534;
}

.c-lead-funnel__confirm-card-price {
  display: block;
  font-size: var(--lf-font-sm);
  line-height: 1.4;
  color: #15803d;
  font-weight: 600;
}

.c-lead-funnel__confirm-card .c-lead-funnel__chip-meta {
  margin-top: 12px;
}

.c-lead-funnel__preview {
  margin: 0 0 12px;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.c-lead-funnel__preview--trust {
  background: linear-gradient(135deg, var(--lf-success-soft), #f0fdf4);
  border: 1px solid #bbf7d0;
  color: #166534;
}

.c-lead-funnel__preview--hot {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.c-lead-funnel__preview--warm {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.c-lead-funnel__preview--cold {
  background: var(--lf-surface-muted);
  border: 1px solid var(--lf-border);
  color: #475569;
}

.c-lead-funnel__preview strong {
  font-size: var(--lf-font-base);
}

.c-lead-funnel__preview span {
  font-size: var(--lf-font-sm);
}

.c-lead-funnel__preview-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #dbeafe;
  background: var(--lf-surface);
  color: var(--lf-text);
  font-size: var(--lf-font-sm);
  font-weight: 700;
  text-decoration: none;
}

.c-lead-funnel__preview-pdf:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.c-lead-funnel__legal {
  margin: 0 0 8px;
  font-size: var(--lf-font-xs);
  line-height: 1.5;
  color: var(--lf-muted-light);
}

.c-lead-funnel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  padding: 12px 22px max(calc(16px + var(--lf-keyboard-offset, 0px)), env(safe-area-inset-bottom));
  border-top: 1px solid var(--lf-border);
  background: var(--lf-surface);
  transition: padding-bottom 0.2s ease;
}

.c-lead-funnel.is-keyboard-open .c-lead-funnel__scroll {
  scroll-padding-bottom: calc(120px + var(--lf-keyboard-offset, 0px));
}

.c-lead-funnel__grid--fast {
  grid-template-columns: 1fr;
  gap: 12px;
}

.c-lead-funnel__step--confirm {
  padding-bottom: 8px;
}

.c-lead-funnel__step3-summary {
  margin-top: 4px;
}

.c-lead-funnel__actions [hidden] {
  display: none !important;
}

/* Botones de navegación del embudo — contraste premium */
.c-lead-funnel__actions #lead-funnel-submit {
  background: linear-gradient(180deg, #34d399 0%, #22c55e 45%, #16a34a 100%) !important;
  border: 1px solid #15803d !important;
  color: #fff !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow:
    0 12px 28px rgba(22, 163, 74, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.16) inset;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14);
}

.c-lead-funnel__actions #lead-funnel-submit:hover,
.c-lead-funnel__actions #lead-funnel-submit:focus-visible {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 50%, #15803d 100%) !important;
  border-color: #16a34a !important;
  color: #fff !important;
  box-shadow: 0 16px 32px rgba(22, 163, 74, 0.45);
}

.c-lead-funnel__actions #lead-funnel-back {
  background: #475569 !important;
  border: 1px solid #334155 !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.c-lead-funnel__actions #lead-funnel-back:hover,
.c-lead-funnel__actions #lead-funnel-back:focus-visible {
  background: #334155 !important;
  border-color: #1e293b !important;
  color: #fff !important;
}

.c-lead-funnel__actions #lead-funnel-next {
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.22);
}

.c-lead-funnel__actions #lead-funnel-submit:not([hidden]) {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
}

.c-lead-funnel__error {
  margin: 0 22px 8px;
  font-size: 13px;
  color: #dc2626;
}

.c-lead-funnel__error-wa {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: #16a34a;
  text-decoration: underline;
}

.c-lead-funnel__switch-flow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: var(--lf-font-sm);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.c-lead-funnel__switch-flow:hover {
  color: var(--lf-text);
}

.c-lead-funnel__package,
.c-lead-funnel__package-head,
.c-lead-funnel__package-meta,
.c-lead-funnel__package-price,
.c-lead-funnel__package-link,
.c-lead-funnel__package-links,
.c-lead-funnel__head,
.c-lead-funnel__module {
  display: none !important;
}

@media (max-width: 767px) {
  .c-lead-funnel {
    --lf-hero-min: 112px;
    --lf-dialog-max: calc(
      100dvh - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom))
    );
    padding:
      max(8px, env(safe-area-inset-top))
      max(8px, env(safe-area-inset-right))
      max(8px, env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    place-items: center;
  }

  .c-lead-funnel__dialog {
    width: min(100%, calc(100vw - 16px));
    max-height: var(--lf-dialog-max);
    min-height: 0;
    margin: 0;
    align-self: center;
    justify-self: center;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.28);
  }

  .c-lead-funnel__hero {
    border-radius: 16px 16px 0 0;
    min-height: var(--lf-hero-min);
  }

  .c-lead-funnel__hero-inner {
    padding: 12px 44px 12px 14px;
  }

  .c-lead-funnel__hero-logo {
    max-width: 100px;
    height: 22px;
    margin-bottom: 8px;
  }

  .c-lead-funnel__eyebrow {
    margin-bottom: 6px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .c-lead-funnel__hero h2 {
    font-size: 1.02rem;
    margin-bottom: 4px;
    line-height: 1.2;
  }

  .c-lead-funnel__hero #lead-funnel-subtitle {
    font-size: 11px;
    line-height: 1.35;
  }

  .c-lead-funnel__hero-module {
    margin-top: 6px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .c-lead-funnel__nav,
  .c-lead-funnel__step {
    padding-left: 14px;
    padding-right: 14px;
  }

  .c-lead-funnel__nav {
    padding-top: 10px;
  }

  .c-lead-funnel__step {
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .c-lead-funnel__step h3 {
    margin-bottom: 10px;
    font-size: 0.98rem;
  }

  .c-lead-funnel__grid input,
  .c-lead-funnel__notes textarea {
    padding: 9px 11px;
    font-size: 16px;
  }

  .c-lead-funnel__actions {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 10px;
    padding-bottom: max(calc(10px + var(--lf-keyboard-offset, 0px)), env(safe-area-inset-bottom));
  }

  .c-lead-funnel__scroll {
    overflow-y: auto;
    max-height: none;
  }

  .c-lead-funnel.is-keyboard-open {
    --lf-dialog-max: calc(
      100dvh - max(6px, env(safe-area-inset-top)) - max(6px, env(safe-area-inset-bottom))
    );
  }

  .c-lead-funnel.is-keyboard-open .c-lead-funnel__dialog {
    max-height: var(--lf-dialog-max);
  }

  .c-lead-funnel.is-keyboard-open .c-lead-funnel__form {
    min-height: 0;
  }

  .c-lead-funnel__error {
    margin-left: 16px;
    margin-right: 16px;
  }

  .c-lead-funnel__steps-label {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .c-lead-funnel__grid {
    grid-template-columns: 1fr;
  }

  .c-lead-funnel__program-chip-head {
    align-items: stretch;
  }

  .c-lead-funnel__program-chip-tag {
    margin-left: 0;
    width: auto;
    margin-top: 0;
  }

  .c-lead-funnel__chip-meta {
    grid-template-columns: 1fr;
  }

  .c-lead-funnel__fieldset--choices {
    grid-template-columns: 1fr;
  }

  .c-lead-funnel__option-pill {
    font-size: 10px;
  }

  .c-lead-funnel__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .c-lead-funnel__actions .c-button {
    width: 100%;
    justify-content: center;
  }

  .c-lead-funnel__actions #lead-funnel-submit:not([hidden]) {
    min-width: 0;
  }
}
