/* Lead page public rendering — layouts from sample HTML templates */

:root {
  --lp-lead-bg: #f4f3ef;
  --lp-lead-surface: #ffffff;
  --lp-lead-surface-soft: #efede7;
  --lp-lead-text: #171714;
  --lp-lead-muted: #6d6b63;
  --lp-lead-border: #deddd7;
  --lp-lead-accent: #1f4d3a;
  --lp-lead-accent-hover: #173c2d;
  --lp-lead-accent-soft: #edf4f0;
  --lp-lead-error: #b42318;
  --lp-lead-success: #2f6a4f;
  --lp-lead-radius: 18px;
  --lp-lead-shadow: 0 18px 55px rgba(26, 26, 22, 0.1);
  --lp-lead-max: 1040px;
  --lp-lead-serif: Georgia, "Times New Roman", serif;
}

.lp-lead-page {
  min-height: 100vh;
  background: var(--lp-lead-bg);
  color: var(--lp-lead-text);
  font-family: var(--font-sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  line-height: 1.5;
  /* So editor device frames (fixed px width) stack like real phones — @media alone uses the browser window. */
  container-type: inline-size;
  container-name: lp-lead;
}

.lp-lead-template-multi_step {
  --lp-lead-bg: #f7f6f2;
  --lp-lead-accent: #9a642b;
  --lp-lead-accent-hover: #74491e;
  --lp-lead-accent-soft: #f3e9dc;
  --lp-lead-radius: 22px;
  --lp-lead-max: 1180px;
  --lp-lead-shadow: 0 20px 70px rgba(43, 35, 24, 0.09);
}

.lp-lead-template-top_image,
.lp-lead-template-video_top {
  --lp-lead-bg: #f5f4f0;
  --lp-lead-accent: #243e33;
  --lp-lead-accent-hover: #182b23;
  --lp-lead-accent-soft: #edf2ef;
  --lp-lead-radius: 22px;
  --lp-lead-max: 940px;
  --lp-lead-shadow: 0 20px 70px rgba(35, 31, 24, 0.09);
}

.lp-lead-template-video_top {
  --lp-lead-max: 980px;
}

.lp-lead-shell {
  width: min(calc(100% - 32px), var(--lp-lead-max));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.lp-lead-brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  margin-bottom: 20px;
}

.lp-lead-brand-bar.is-centered {
  justify-content: center;
}

.lp-lead-brand {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lp-lead-brand-logo {
  display: flex;
  align-items: center;
  max-width: min(100%, 220px);
}

.lp-lead-brand-logo img {
  display: block;
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lp-lead-brand-note {
  color: var(--lp-lead-muted);
  font-size: 0.84rem;
}

.lp-lead-card {
  overflow: hidden;
  background: var(--lp-lead-surface);
  border: 1px solid rgba(23, 23, 20, 0.06);
  border-radius: var(--lp-lead-radius);
  box-shadow: var(--lp-lead-shadow);
}

.lp-lead-card-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.lp-lead-card-experience {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  min-height: 720px;
}

.lp-lead-card-top {
  display: flex;
  flex-direction: column;
}

.lp-lead-page.is-submitted .lp-lead-card-split,
.lp-lead-page.is-submitted .lp-lead-card-experience {
  grid-template-columns: 1fr;
}

.lp-lead-template-video_form .lp-lead-card-split {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.lp-lead-template-video_background {
  --lp-lead-max: 1180px;
  --lp-lead-bg: #0f172a;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lp-lead-video-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(160deg, #1f2937, #0f172a);
}

.lp-lead-video-backdrop-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.lp-lead-shell-overlay {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--lp-lead-max));
  padding: 24px 0 48px;
  min-height: calc(100vh - 0px);
  display: flex;
  flex-direction: column;
}

.lp-lead-brand-bar.is-light {
  color: #fff;
}

.lp-lead-brand-bar.is-light .lp-lead-brand,
.lp-lead-brand-bar.is-light .lp-lead-brand-note {
  color: rgba(255, 255, 255, 0.92);
}

.lp-lead-brand-bar.is-light .lp-lead-brand-logo img {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.lp-lead-video-bg-layout {
  flex: 1 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 36px;
  align-items: stretch;
  padding-top: 48px;
  padding-bottom: 12px;
}

.lp-lead-video-bg-copy {
  color: #fff;
  padding-bottom: 18px;
  max-width: 34rem;
  align-self: end;
}

.lp-lead-video-bg-copy.is-align-top {
  align-self: start;
  padding-top: 8px;
  padding-bottom: 0;
}

.lp-lead-video-bg-copy.is-align-middle {
  align-self: center;
  padding-bottom: 0;
}

.lp-lead-video-bg-copy.is-align-bottom {
  align-self: end;
}

.lp-lead-video-bg-copy .lp-lead-eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.lp-lead-video-bg-headline {
  margin: 0;
  font-family: var(--lp-lead-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.lp-lead-video-bg-subhead {
  margin: 16px 0 0;
  max-width: 30rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.lp-lead-video-bg-fineprint {
  margin: 14px 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
}

.lp-lead-form-panel-float {
  background: var(--lp-lead-surface);
  border: 1px solid rgba(23, 23, 20, 0.08);
  border-radius: calc(var(--lp-lead-radius) + 4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 28px 26px 24px;
  align-self: center;
}

.lp-lead-intro-compact .lp-lead-headline {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.1;
}

.lp-lead-intro-compact .lp-lead-subheadline {
  margin-top: 10px;
  font-size: 0.92rem;
}

.lp-lead-media-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: 0;
}

.lp-lead-focal-picker {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
          user-select: none;
}

.lp-lead-focal-picker[data-focal-dragging="1"] {
  cursor: grabbing;
}

.lp-lead-focal-picker img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.lp-lead-focal-marker {
  position: absolute;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary, #2563eb) 85%, #fff);
  box-shadow: 0 0 0 1px rgb(15 23 42 / 35%);
  pointer-events: none;
}

.lp-lead-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lp-lead-visual,
.lp-lead-story,
.lp-lead-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: #2a2a26;
}

.lp-lead-visual::after,
.lp-lead-story::after,
.lp-lead-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lp-lead-visual::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.06) 58%);
}

.lp-lead-story::after {
  background: linear-gradient(180deg, rgba(28, 21, 14, 0.12), rgba(28, 21, 14, 0.76));
}

.lp-lead-hero::after {
  background: linear-gradient(
    180deg,
    rgba(13, 18, 15, 0.08) 0%,
    rgba(13, 18, 15, 0.2) 42%,
    rgba(13, 18, 15, 0.78) 100%
  );
}

.lp-lead-visual {
  min-height: 720px;
}

.lp-lead-video-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 720px;
  padding: 28px;
  color: #fff;
  overflow: hidden;
  background: #111827;
}

.lp-lead-video-panel.is-align-top {
  justify-content: flex-start;
}

.lp-lead-video-panel.is-align-middle {
  justify-content: center;
}

.lp-lead-video-panel.is-align-bottom {
  justify-content: flex-end;
}

.lp-lead-video-panel.is-empty {
  background: linear-gradient(160deg, #1f2937, #0f172a);
}

.lp-lead-video-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.lp-lead-video-player,
.lp-lead-video-poster-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.lp-lead-video-empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  text-align: center;
  padding: 24px;
}

.lp-lead-video-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.1rem;
  padding-left: 3px;
}

.lp-lead-video-caption {
  position: relative;
  z-index: 1;
  padding: 0 4px;
}

.lp-lead-video-caption .lp-lead-visual-title {
  color: #fff;
}

.lp-lead-video-caption p {
  max-width: 34rem;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.lp-lead-story {
  display: flex;
  min-height: 720px;
  padding: 40px;
}

.lp-lead-story-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.lp-lead-hero {
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  padding: 42px;
}

.lp-lead-visual.is-empty,
.lp-lead-story.is-empty,
.lp-lead-hero.is-empty {
  background: linear-gradient(160deg, #3a463f, #1d2621);
}

.lp-lead-visual-copy,
.lp-lead-hero-copy,
.lp-lead-story-copy {
  position: relative;
  z-index: 2;
}

.lp-lead-visual-copy {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
}

.lp-lead-visual-copy p,
.lp-lead-hero-copy p,
.lp-lead-story-copy p {
  max-width: 31rem;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.6;
}

.lp-lead-visual-title,
.lp-lead-story-copy h1,
.lp-lead-hero-copy h1,
.lp-lead-headline,
.lp-lead-step-title,
.lp-lead-thankyou-headline {
  margin: 0;
  font-family: var(--lp-lead-serif);
  font-weight: 500;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lp-lead-visual-title {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.15;
}

.lp-lead-story-copy h1,
.lp-lead-hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 0.96;
}

.lp-lead-story-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lp-lead-steps-mini {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.lp-lead-steps-mini div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.lp-lead-steps-mini span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 800;
}

.lp-lead-form-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px;
}

.lp-lead-card-experience .lp-lead-form-panel {
  padding: 34px 42px 40px;
}

.lp-lead-card-top .lp-lead-form-panel {
  padding: 34px 42px 42px;
}

.lp-lead-video-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--lp-lead-video-band, #0f172a);
  color: #fff;
}

.lp-lead-video-hero.is-empty {
  background: var(
    --lp-lead-video-band,
    linear-gradient(160deg, #1f2937, #0f172a)
  );
}

.lp-lead-video-hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(62vh, 560px);
  background: #020617;
  overflow: hidden;
}

.lp-lead-video-hero-player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.lp-lead-video-hero-stage .lp-lead-video-empty {
  min-height: 220px;
}

.lp-lead-video-hero-copy {
  display: grid;
  gap: 10px;
  padding: 26px 36px 30px;
}

.lp-lead-video-hero-copy .lp-lead-eyebrow {
  margin: 0;
  color: var(--lp-lead-eyebrow-color, rgba(255, 255, 255, 0.72));
}

.lp-lead-video-hero-title {
  margin: 0;
  font-family: var(--lp-lead-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lp-lead-video-hero-copy p {
  margin: 2px 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.55;
}

.lp-lead-eyebrow,
.lp-lead-step-kicker {
  margin: 0 0 12px;
  color: var(--lp-lead-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Minimal intro eyebrow — overridable via document.eyebrowColor */
.lp-lead-intro .lp-lead-eyebrow {
  color: var(--lp-lead-eyebrow-color, var(--lp-lead-accent));
}

.lp-lead-visual .lp-lead-eyebrow,
.lp-lead-hero .lp-lead-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.lp-lead-headline {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.lp-lead-subheadline,
.lp-lead-step-intro {
  margin: 14px 0 0;
  color: var(--lp-lead-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.lp-lead-benefits {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.lp-lead-benefits li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  color: #373730;
  font-size: 0.95rem;
}

.lp-lead-benefits li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 999px;
  background: color-mix(
    in srgb,
    var(--lp-lead-checkmark-color, var(--lp-lead-accent)) 14%,
    #ffffff
  );
  color: var(--lp-lead-checkmark-color, var(--lp-lead-accent));
  font-size: 0.78rem;
  font-weight: 900;
}

.lp-lead-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--lp-lead-border);
}

.lp-lead-section + .lp-lead-section {
  margin-top: 28px;
}

.lp-lead-section-heading {
  margin-bottom: 16px;
}

.lp-lead-section-heading h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.25;
}

.lp-lead-section-heading p {
  margin: 6px 0 0;
  color: var(--lp-lead-muted);
  font-size: 0.9rem;
}

.lp-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.lp-lead-form-steps {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lp-lead-progress {
  margin-bottom: 34px;
}

.lp-lead-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
  color: var(--lp-lead-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.lp-lead-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--lp-lead-surface-soft);
}

.lp-lead-progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--lp-lead-button-color, var(--lp-lead-accent));
  transition: width 240ms ease;
}

.lp-lead-step-shell {
  display: flex;
  flex: 1 1;
  flex-direction: column;
}

.lp-lead-step {
  animation: lp-lead-fade 220ms ease;
}

@keyframes lp-lead-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lp-lead-step-title {
  max-width: 42rem;
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.lp-lead-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.lp-lead-field {
  display: grid;
  gap: 7px;
}

.lp-lead-field-full {
  grid-column: 1 / -1;
}

.lp-lead-field label {
  color: #31312d;
  font-size: 0.88rem;
  font-weight: 700;
}

.lp-lead-required {
  color: var(--lp-lead-error);
}

.lp-lead-field input,
.lp-lead-field textarea,
.lp-lead-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--lp-lead-border);
  border-radius: 10px;
  background: #fff;
  color: var(--lp-lead-text);
  font: inherit;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.lp-lead-field textarea {
  min-height: 100px;
  resize: vertical;
}

.lp-lead-field input:focus,
.lp-lead-field textarea:focus,
.lp-lead-field select:focus {
  border-color: var(--lp-lead-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--lp-lead-accent) 14%, transparent);
}

.lp-lead-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
}

.lp-lead-checkbox input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  padding: 0;
  accent-color: var(--lp-lead-accent);
}

.lp-lead-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.lp-lead-option-card {
  position: relative;
  display: flex;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--lp-lead-border);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background-color 150ms ease;
}

.lp-lead-option-card:hover {
  transform: translateY(-1px);
  border-color: #c3b7a8;
}

.lp-lead-option-card.is-selected {
  border-color: var(--lp-lead-accent);
  background: var(--lp-lead-accent-soft);
}

.lp-lead-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lp-lead-option-content {
  display: grid;
  gap: 6px;
}

.lp-lead-option-title {
  font-weight: 800;
  line-height: 1.25;
}

.lp-lead-option-description {
  color: var(--lp-lead-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.lp-lead-consent {
  margin: 12px 0 0;
  color: var(--lp-lead-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.lp-lead-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 30px;
}

.lp-lead-actions.is-single {
  justify-content: center;
}

.lp-lead-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 11px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    opacity 160ms ease;
}

.lp-lead-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.lp-lead-btn-primary {
  border: 1px solid var(--lp-lead-button-color, var(--lp-lead-accent));
  background: var(--lp-lead-button-color, var(--lp-lead-accent));
  color: #fff;
}

.lp-lead-btn-primary:hover:not(:disabled) {
  background: color-mix(
    in srgb,
    var(--lp-lead-button-color, var(--lp-lead-accent-hover)) 82%,
    #000000
  );
}

.lp-lead-btn-secondary {
  border: 1px solid var(--lp-lead-border);
  background: #fff;
  color: var(--lp-lead-text);
}

.lp-lead-btn-block {
  width: 100%;
  margin-top: 20px;
}

.lp-lead-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.lp-lead-form-error {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: var(--lp-lead-error);
  font-size: 0.875rem;
}

.lp-lead-fine-print,
.lp-lead-footer-note {
  margin: 18px 0 0;
  color: #8a887f;
  font-size: 0.75rem;
  text-align: center;
}

.lp-lead-form-panel > .lp-lead-footer-note {
  margin-top: auto;
  padding-top: 18px;
}

/* ── Survey editor chrome ────────────────────────────────────────────────── */

.lp-editor-layout.has-survey-inspector {
  grid-template-columns: auto 1fr minmax(280px, 320px);
}

.lp-editor-left-panel--survey-pages {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 300px;
  padding-bottom: 0;
}

.lp-editor-left-panel--survey-pages > .lp-editor-panel-header {
  flex-shrink: 0;
}

.lp-survey-steps-panel {
  flex: 1 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
}

.lp-survey-steps-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, #fff 55%, transparent);
  margin: 0 4px 8px;
}

.lp-survey-steps-list {
  flex: 1 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-survey-step-item-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px;
  align-items: stretch;
}

.lp-survey-step-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.lp-survey-step-item:hover,
.lp-survey-step-item-wrap:hover .lp-survey-step-item {
  background: color-mix(in srgb, #fff 6%, transparent);
}

.lp-survey-step-item.is-active,
.lp-survey-step-item-wrap.is-active .lp-survey-step-item {
  background: color-mix(in srgb, #3b82f6 22%, transparent);
  border-color: color-mix(in srgb, #3b82f6 45%, transparent);
}

.lp-survey-step-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: color-mix(in srgb, #fff 10%, transparent);
  font-size: 11px;
  font-weight: 700;
}

.lp-survey-step-meta {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lp-survey-step-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.65;
}

.lp-survey-step-label {
  font-size: 13px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-survey-step-item-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  opacity: 0;
}

.lp-survey-step-item-wrap:hover .lp-survey-step-item-actions,
.lp-survey-step-item-wrap.is-active .lp-survey-step-item-actions {
  opacity: 1;
}

.lp-survey-step-item-actions .btn-link {
  padding: 2px 6px;
  font-size: 12px;
  color: color-mix(in srgb, #fff 70%, transparent);
}

.lp-survey-add-step {
  margin: 10px 4px 4px;
  width: calc(100% - 8px);
}

.lp-survey-right-panel {
  min-height: 0;
  border-left: 1px solid #0a0c0f;
  background: #121418;
  color: #e8eaed;
  overflow: auto;
}

.lp-survey-inspector .lp-editor-panel-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121418;
}

.lp-survey-inspector-body {
  padding: 12px 16px 24px;
}

.lp-survey-inspector .form-field label,
.lp-survey-inspector .lp-field-hint,
.lp-survey-inspector .lp-lead-options-editor-label,
.lp-survey-inspector .lp-lead-options-editor-hint {
  color: color-mix(in srgb, #fff 70%, transparent);
}

.lp-survey-inspector input,
.lp-survey-inspector textarea,
.lp-survey-inspector select {
  background: #1a1d22;
  border-color: #2a2f38;
  color: #f3f4f6;
}

.lp-survey-inline-title,
.lp-survey-inline-question {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.3;
  resize: vertical;
  padding: 0;
  outline: none;
}

.lp-survey-inline-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 700;
}

.lp-survey-inline-text,
.lp-survey-inline-help {
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  color: #666;
  resize: vertical;
  padding: 0;
  outline: none;
}

.lp-survey-inline-text {
  text-align: center;
  font-size: 1rem;
  line-height: 1.55;
}

.lp-survey-inline-help {
  font-size: 0.95rem;
  font-style: italic;
}

.lp-survey-option.is-editing {
  cursor: default;
  position: relative;
}

.lp-survey-option.is-editing.is-dragging {
  opacity: 0.92;
  box-shadow: 0 8px 24px color-mix(in srgb, #000 16%, transparent);
  background: color-mix(in srgb, #fff 96%, transparent);
}

.lp-survey-option-handle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -4px;
  border: 1px solid color-mix(in srgb, #000 14%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, #fff 88%, transparent);
  color: #666;
  cursor: grab;
  touch-action: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.lp-survey-option.is-editing:hover .lp-survey-option-handle,
.lp-survey-option.is-editing:focus-within .lp-survey-option-handle,
.lp-survey-option.is-dragging .lp-survey-option-handle {
  opacity: 1;
}

.lp-survey-option-handle:active {
  cursor: grabbing;
}

.lp-survey-option-edit {
  flex: 1 1;
  border: none;
  background: transparent;
  font: inherit;
  outline: none;
  min-width: 0;
}

.lp-survey-option-remove {
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 4px 6px;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.lp-survey-option.is-editing:hover .lp-survey-option-remove,
.lp-survey-option.is-editing:focus-within .lp-survey-option-remove {
  opacity: 1;
}

.lp-survey-add-choice {
  border: none;
  background: transparent;
  color: #666;
  font: inherit;
  text-align: left;
  padding: 8px 4px;
  cursor: pointer;
}

.lp-survey-add-choice:hover {
  color: #111;
}

.lp-survey-dropdown-block {
  display: grid;
  gap: 10px;
}

.lp-survey-dropdown-edit-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-survey-edit-choices {
  border: none;
  background: transparent;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-survey-choice-count {
  font-size: 0.85rem;
  color: #666;
}

.lp-survey-choices-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, #000 45%, transparent);
}

.lp-survey-choices-modal {
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 16px;
  border-radius: 12px;
  background: #fff;
  color: #111;
  box-shadow: 0 20px 50px color-mix(in srgb, #000 28%, transparent);
}

.lp-survey-choices-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lp-survey-choices-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.lp-survey-choices-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.lp-survey-choices-modal-hint {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.lp-survey-choices-modal-textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
}

.lp-survey-choices-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lp-survey-inspector-toggles {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.lp-survey-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.lp-survey-toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.lp-assignment-multi-values {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: 8px;
}

/* ── Survey (TypeForm-style) ─────────────────────────────────────────────── */

.lp-lead-template-survey {
  min-height: 100vh;
  background: #f4f4f4;
}

.lp-survey-stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  isolation: isolate;
}

.lp-survey-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.lp-survey-stage-bg-fallback {
  background:
    radial-gradient(circle at 20% 20%, #e8e4dc 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, #ddd6cb 0%, transparent 40%),
    #f0ece4;
}

.lp-survey-stage-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lp-survey-stage-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 40px);
}

.lp-lead-template-survey .lp-lead-brand {
  margin-bottom: 12px;
}

.lp-survey-form {
  position: relative;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  min-height: min(70vh, 640px);
}

.lp-survey-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: color-mix(in srgb, #000 8%, transparent);
  border-radius: 999px;
  overflow: hidden;
}

.lp-survey-progress-bar {
  height: 100%;
  background: var(--lp-lead-button-color, #c4a035);
  transition: width 0.25s ease;
}

.lp-survey-welcome {
  margin: auto;
  width: min(100%, 42rem);
  text-align: center;
  display: grid;
  gap: 18px;
  padding: 48px 12px 80px;
}

.lp-survey-welcome-image {
  margin: 0 auto;
  max-width: 280px;
}

.lp-survey-welcome-image img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.lp-survey-welcome-title {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
}

.lp-survey-welcome-text {
  margin: 0;
  color: #444;
  font-size: 1rem;
  line-height: 1.55;
}

.lp-survey-step {
  margin: auto 0;
  width: min(100%, 44rem);
  padding: 56px 8px 96px;
}

.lp-survey-question-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.lp-survey-qnum {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-top: 4px;
  background: #111;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 4px;
}

.lp-survey-question-body {
  flex: 1 1;
  min-width: 0;
  display: grid;
  gap: 14px;
}

.lp-survey-question-label {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  line-height: 1.3;
  font-weight: 600;
}

.lp-survey-help {
  margin: -4px 0 0;
  color: #666;
  font-size: 0.95rem;
}

.lp-survey-underline-field input,
.lp-survey-underline-field textarea,
.lp-survey-underline-field select {
  width: 100%;
  border: none;
  border-bottom: 2px solid #111;
  border-radius: 0;
  background: transparent;
  padding: 10px 0;
  font: inherit;
  font-size: 1.15rem;
  outline: none;
}

.lp-survey-underline-field input:focus,
.lp-survey-underline-field textarea:focus,
.lp-survey-underline-field select:focus {
  border-bottom-color: #c4a035;
}

.lp-survey-options {
  display: grid;
  gap: 10px;
  max-width: 36rem;
}

.lp-survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #000 12%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, #fff 82%, transparent);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lp-survey-option:hover {
  border-color: color-mix(in srgb, #000 35%, transparent);
}

.lp-survey-option.is-selected {
  border-color: #111;
  border-width: 2px;
  background: color-mix(in srgb, #fff 92%, transparent);
}

.lp-survey-option-letter {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, #000 25%, transparent);
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.lp-survey-option.is-selected .lp-survey-option-letter {
  background: #111;
  border-color: #111;
  color: #fff;
}

.lp-survey-option-label {
  flex: 1 1;
}

.lp-survey-ok {
  width: fit-content;
  min-width: 96px;
  margin-top: 4px;
  background: var(--lp-lead-button-color, #c4a035) !important;
  border-color: var(--lp-lead-button-color, #c4a035) !important;
}

.lp-survey-ok:hover {
  filter: brightness(0.95);
}

.lp-survey-nav {
  position: absolute;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 6px;
}

.lp-survey-nav-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  background: var(--lp-lead-button-color, #c4a035);
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.lp-survey-nav-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.lp-lead-template-survey .lp-lead-thankyou,
.lp-lead-template-survey .lp-lead-scheduling {
  margin: auto;
  width: min(100%, 40rem);
}

.lp-lead-scheduling {
  display: grid;
  gap: 16px;
  min-height: 420px;
  padding: 8px 0 24px;
}

.lp-lead-scheduling-header {
  text-align: center;
}

.lp-lead-scheduling-headline {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0;
}

.lp-lead-scheduling-text {
  margin: 8px auto 0;
  max-width: 32rem;
  color: var(--lp-lead-muted);
}

.lp-lead-scheduling-frame {
  width: 100%;
  min-height: min(70vh, 640px);
  height: 640px;
  border: 1px solid color-mix(in srgb, var(--lp-lead-muted) 28%, transparent);
  border-radius: 12px;
  background: #fff;
}

.lp-lead-scheduling-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed color-mix(in srgb, var(--lp-lead-muted) 40%, transparent);
  border-radius: 12px;
  color: var(--lp-lead-muted);
  font-size: 0.95rem;
}

.lp-lead-scheduling .lp-lead-btn {
  width: min(100%, 320px);
  margin: 0 auto;
}

.lp-lead-thankyou {
  display: grid;
  place-content: center;
  min-height: 420px;
  text-align: center;
  padding: 24px 0;
}

.lp-lead-thankyou-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 999px;
  background: var(--lp-lead-accent-soft);
  color: var(--lp-lead-accent);
  font-size: 1.8rem;
  font-weight: 900;
}

.lp-lead-thankyou-image {
  margin: 0 auto 20px;
  max-width: 320px;
}

.lp-lead-thankyou-image img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.lp-lead-thankyou-headline {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lp-lead-thankyou-text {
  max-width: 30rem;
  margin: 16px auto 0;
  color: var(--lp-lead-muted);
}

.lp-lead-thankyou .lp-lead-btn {
  width: min(100%, 320px);
  margin: 28px auto 0;
}

.lp-lead-preview-shell {
  min-height: 100vh;
}

.lp-lead-preview-banner {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 10px 16px;
  text-align: center;
  background: #171714;
  color: #f8fafc;
  font-size: 0.875rem;
}

.lp-lead-editor-title-input {
  min-width: 140px;
  max-width: 240px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #f9fafb;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.lp-lead-editor-title-input:hover,
.lp-lead-editor-title-input:focus {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.lp-editor-btn-approval {
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  background: #2563eb;
  color: #fff;
}

.lp-editor-btn-approval:hover:not(:disabled) {
  background: #1d4ed8;
}

.lp-editor-btn-approval:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.lp-editor-layout.is-preview-mode {
  grid-template-columns: 1fr;
}

.lp-lead-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.lp-lead-template-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lp-lead-template-card strong {
  font-size: 1rem;
}

.lp-lead-template-card span {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

.lp-lead-template-card:hover {
  border-color: #94a3b8;
}

.lp-lead-template-card.is-selected {
  border-color: var(--lp-lead-accent);
  box-shadow: 0 0 0 1px var(--lp-lead-accent);
}

.lp-lead-editor-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  flex-shrink: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #d7d4cc;
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.lp-lead-preview-step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lp-lead-preview-step-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--lp-lead-border);
  border-radius: 999px;
  background: #fff;
  color: var(--lp-lead-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.lp-lead-preview-step-btn:hover {
  border-color: #b8b6ad;
}

.lp-lead-preview-step-btn.is-active {
  border-color: var(--lp-lead-accent);
  background: var(--lp-lead-accent-soft);
  color: var(--lp-lead-accent);
}

.lp-lead-editor-preview {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  min-height: 100%;
  background: transparent;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.lp-lead-editor-preview .lp-lead-page {
  flex: 1 0 auto;
  min-height: 100%;
}

.lp-lead-editor-preview .lp-lead-shell {
  width: min(calc(100% - 48px), var(--lp-lead-max));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.lp-lead-editor-preview .lp-lead-visual,
.lp-lead-editor-preview .lp-lead-story,
.lp-lead-editor-preview .lp-lead-video-panel {
  min-height: 560px;
}

.lp-lead-editor-preview.lp-lead-template-video_background,
.lp-lead-editor-preview .lp-lead-template-video_background {
  min-height: 640px;
}

.lp-lead-editor-preview .lp-lead-shell-overlay {
  min-height: 640px;
}

/* Lead editor: page sheet fills the canvas under the step toolbar */
.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar) .lp-editor-canvas-scroll {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar) .lp-device-preview-shell {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  min-height: 100%;
  padding: 0;
  align-items: stretch;
}

.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar) .lp-device-preview-viewport {
  width: 100%;
  max-width: none;
  flex: 1 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.lp-editor-canvas-area:has(.lp-lead-editor-preview-toolbar)
  .lp-device-preview-viewport.is-constrained {
  margin: 24px auto;
  min-height: 0;
  flex: 0 0 auto;
  display: block;
}

.lp-lead-page.is-editable .lp-lead-editable {
  cursor: pointer;
  outline: 1px solid transparent;
  outline-offset: 3px;
  border-radius: 6px;
  transition:
    outline-color 140ms ease,
    background-color 140ms ease;
}

.lp-lead-page.is-editable .lp-lead-editable:hover {
  outline-color: color-mix(in srgb, var(--lp-lead-accent) 55%, transparent);
  background-color: color-mix(in srgb, var(--lp-lead-accent) 8%, transparent);
}

.lp-editor-left-panel .form-field.is-lp-edit-target,
.lp-editor-left-panel .lp-fieldset.is-lp-edit-target,
.lp-editor-left-panel .lp-lead-question-card.is-lp-edit-target {
  border-radius: 8px;
}

.lp-editor-left-panel .is-lp-edit-flash {
  animation: lp-lead-edit-flash 1.1s ease;
}

@keyframes lp-lead-edit-flash {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 0%, transparent);
    background-color: transparent;
  }
  20% {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 35%, transparent);
    background-color: color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 12%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
    background-color: transparent;
  }
}

.lp-lead-question-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.lp-lead-color-field-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-lead-color-field-controls select {
  flex: 1 1;
  min-width: 0;
}

.lp-lead-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.lp-lead-color-brand-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.lp-lead-color-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.lp-lead-color-brand-chip span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.lp-lead-color-brand-chip.is-selected {
  border-color: color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 55%, transparent);
  background: color-mix(in srgb, var(--lp-lead-accent, #1f4d3a) 14%, transparent);
}

.lp-lead-options-editor {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.lp-lead-options-editor-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-lead-options-editor-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-muted, #a1a1aa);
}

.lp-lead-options-editor-hint {
  font-size: 11px;
  color: var(--lp-muted, #71717a);
  line-height: 1.35;
}

.lp-lead-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-lead-option-row {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.lp-lead-option-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.lp-lead-option-row-index {
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-muted, #a1a1aa);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lp-lead-option-row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.lp-lead-option-row-actions .btn-link:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/*
 * Narrow / stacked layout for real phones (@media), editor device frames
 * (.lp-device-mobile / tablet), and constrained previews (@container on .lp-lead-page).
 * Specificity must beat .lp-lead-template-video_form .lp-lead-card-split.
 */

/* Editor device preview (viewport is narrowed with CSS width, not the browser window). */
.lp-device-mobile .lp-lead-card-split,
.lp-device-mobile .lp-lead-template-video_form .lp-lead-card-split,
.lp-device-mobile .lp-lead-card-experience,
.lp-device-tablet .lp-lead-card-split,
.lp-device-tablet .lp-lead-template-video_form .lp-lead-card-split,
.lp-device-tablet .lp-lead-card-experience {
  grid-template-columns: 1fr;
}

.lp-device-mobile .lp-lead-visual,
.lp-device-mobile .lp-lead-story,
.lp-device-mobile .lp-lead-video-panel,
.lp-device-tablet .lp-lead-visual,
.lp-device-tablet .lp-lead-story,
.lp-device-tablet .lp-lead-video-panel {
  min-height: 300px;
}

.lp-device-mobile .lp-lead-card-split .lp-lead-visual,
.lp-device-tablet .lp-lead-card-split .lp-lead-visual {
  min-height: 220px;
}

.lp-device-mobile .lp-lead-card-split .lp-lead-visual-copy,
.lp-device-mobile .lp-lead-card-split .lp-lead-visual::after,
.lp-device-tablet .lp-lead-card-split .lp-lead-visual-copy,
.lp-device-tablet .lp-lead-card-split .lp-lead-visual::after {
  display: none;
}

.lp-device-mobile .lp-lead-video-panel,
.lp-device-tablet .lp-lead-video-panel {
  min-height: 0;
  padding: 18px 18px 8px;
  gap: 12px;
}

.lp-device-mobile .lp-lead-video-caption,
.lp-device-tablet .lp-lead-video-caption {
  display: block;
}

.lp-device-mobile .lp-lead-video-bg-layout,
.lp-device-tablet .lp-lead-video-bg-layout {
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
  padding-top: 12px;
}

.lp-device-mobile .lp-lead-video-bg-copy,
.lp-device-tablet .lp-lead-video-bg-copy {
  padding-bottom: 0;
  padding-top: 0;
  order: 1;
  align-self: stretch;
  max-width: none;
}

.lp-device-mobile .lp-lead-form-panel-float,
.lp-device-tablet .lp-lead-form-panel-float {
  order: 2;
  padding: 24px 20px;
  align-self: stretch;
  width: 100%;
  max-width: none;
}

.lp-device-mobile .lp-lead-video-bg-headline,
.lp-device-tablet .lp-lead-video-bg-headline {
  font-size: clamp(1.85rem, 8cqi, 2.6rem);
}

.lp-device-mobile .lp-lead-form-panel,
.lp-device-tablet .lp-lead-form-panel {
  padding: 34px 26px;
}

.lp-device-mobile .lp-lead-option-grid,
.lp-device-tablet .lp-lead-option-grid {
  grid-template-columns: 1fr;
}

.lp-device-mobile .lp-lead-shell-overlay,
.lp-device-tablet .lp-lead-shell-overlay {
  width: min(calc(100% - 24px), var(--lp-lead-max));
  min-height: 0;
  padding: 18px 0 28px;
}

.lp-device-mobile .lp-lead-shell {
  width: min(calc(100% - 18px), var(--lp-lead-max));
  padding: 18px 0 28px;
}

.lp-device-mobile .lp-lead-field-grid {
  grid-template-columns: 1fr;
}

.lp-device-mobile .lp-lead-field-full {
  grid-column: auto;
}

.lp-device-mobile .lp-lead-form-panel {
  padding: 28px 18px;
}

.lp-device-mobile .lp-lead-form-panel-float {
  padding: 22px 16px;
}

.lp-device-mobile .lp-lead-hero {
  min-height: 260px;
  padding: 28px 22px;
}

.lp-device-mobile .lp-lead-actions {
  flex-direction: column-reverse;
}

.lp-device-mobile .lp-lead-actions .lp-lead-btn {
  width: 100%;
}

/* Constrained parent width (works inside DevicePreviewFrame). */
@container lp-lead (max-width: 880px) {
  .lp-lead-card-split,
  .lp-lead-template-video_form .lp-lead-card-split,
  .lp-lead-card-experience {
    grid-template-columns: 1fr;
  }

  .lp-lead-visual,
  .lp-lead-story,
  .lp-lead-video-panel {
    min-height: 300px;
  }

  .lp-lead-card-split .lp-lead-visual {
    min-height: 220px;
  }

  .lp-lead-card-split .lp-lead-visual-copy,
  .lp-lead-card-split .lp-lead-visual::after {
    display: none;
  }

  .lp-lead-video-panel {
    min-height: 0;
    padding: 18px 18px 8px;
    gap: 12px;
  }

  .lp-lead-video-caption {
    display: block;
  }

  .lp-lead-video-bg-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    padding-top: 12px;
  }

  .lp-lead-video-bg-copy {
    padding-bottom: 0;
    padding-top: 0;
    order: 1;
    align-self: stretch;
    max-width: none;
  }

  .lp-lead-form-panel-float {
    order: 2;
    padding: 24px 20px;
    align-self: stretch;
    width: 100%;
    max-width: none;
  }

  .lp-lead-video-bg-headline {
    font-size: clamp(1.85rem, 8cqi, 2.6rem);
  }

  .lp-lead-form-panel {
    padding: 34px 26px;
  }

  .lp-lead-option-grid {
    grid-template-columns: 1fr;
  }

  .lp-lead-shell-overlay {
    width: min(calc(100% - 24px), var(--lp-lead-max));
    min-height: 0;
    padding: 18px 0 28px;
  }
}

@container lp-lead (max-width: 560px) {
  .lp-lead-shell {
    width: min(calc(100% - 18px), var(--lp-lead-max));
    padding: 18px 0 28px;
  }

  .lp-lead-field-grid {
    grid-template-columns: 1fr;
  }

  .lp-lead-field-full {
    grid-column: auto;
  }

  .lp-lead-form-panel {
    padding: 28px 18px;
  }

  .lp-lead-form-panel-float {
    padding: 22px 16px;
  }

  .lp-lead-hero {
    min-height: 260px;
    padding: 28px 22px;
  }

  .lp-lead-actions {
    flex-direction: column-reverse;
  }

  .lp-lead-actions .lp-lead-btn {
    width: 100%;
  }
}

/* Real phone / tablet viewports. */
@media (max-width: 880px) {
  .lp-lead-card-split,
  .lp-lead-template-video_form .lp-lead-card-split,
  .lp-lead-card-experience {
    grid-template-columns: 1fr;
  }

  .lp-lead-visual,
  .lp-lead-story,
  .lp-lead-video-panel {
    min-height: 300px;
  }

  .lp-lead-card-split .lp-lead-visual {
    min-height: 220px;
  }

  .lp-lead-card-split .lp-lead-visual-copy,
  .lp-lead-card-split .lp-lead-visual::after {
    display: none;
  }

  .lp-lead-video-panel {
    min-height: 0;
    padding: 18px 18px 8px;
    gap: 12px;
  }

  .lp-lead-video-caption {
    display: block;
  }

  .lp-lead-video-bg-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: stretch;
    padding-top: 12px;
  }

  .lp-lead-video-bg-copy {
    padding-bottom: 0;
    padding-top: 0;
    order: 1;
    align-self: stretch;
    max-width: none;
  }

  .lp-lead-form-panel-float {
    order: 2;
    padding: 24px 20px;
    align-self: stretch;
    width: 100%;
    max-width: none;
  }

  .lp-lead-video-bg-headline {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .lp-lead-form-panel {
    padding: 34px 26px;
  }

  .lp-lead-option-grid {
    grid-template-columns: 1fr;
  }

  .lp-lead-shell-overlay {
    width: min(calc(100% - 24px), var(--lp-lead-max));
    min-height: 0;
    padding: 18px 0 28px;
  }
}

@media (max-width: 560px) {
  .lp-lead-shell {
    width: min(calc(100% - 18px), var(--lp-lead-max));
    padding: 18px 0 28px;
  }

  .lp-lead-field-grid {
    grid-template-columns: 1fr;
  }

  .lp-lead-field-full {
    grid-column: auto;
  }

  .lp-lead-form-panel {
    padding: 28px 18px;
  }

  .lp-lead-form-panel-float {
    padding: 22px 16px;
  }

  .lp-lead-hero {
    min-height: 260px;
    padding: 28px 22px;
  }

  .lp-lead-actions {
    flex-direction: column-reverse;
  }

  .lp-lead-actions .lp-lead-btn {
    width: 100%;
  }
}

