/* Mobile conversion test layout — see lib/snippets/mobile-conversion.php.
   Every rule is scoped to body.jl-mc, so pages outside the test are untouched. */

/* ── Hero pitch + button ─────────────────────────────────── */

.jl-mc .jl-mc-hero {
  max-width: 520px;
  margin: 14px 0 0;
}
.jl-mc .jl-mc-hero__pitch {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.45;
  color: #e6edf5;
}
.jl-mc .jl-mc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 20px;
  box-sizing: border-box;
  border-radius: 6px;
  background: #0172b0;
  color: #fff;
  font-family: 'Work Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 150ms ease;
}
.jl-mc .jl-mc-btn:hover,
.jl-mc .jl-mc-btn:focus-visible {
  background: #015d90;
  color: #fff;
}
.jl-mc .jl-mc-btn svg {
  flex: none;
}
.jl-mc .jl-mc-hero__note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: #d3deea;
  text-align: center;
}

/* ── Proof strip ─────────────────────────────────────────── */

.jl-mc .jl-mc-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 0 0 8px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #dce4ec;
}
.jl-mc .jl-mc-proof__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jl-mc .jl-mc-proof__value {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: #0b243c;
}
.jl-mc .jl-mc-proof__label {
  font-size: 13px;
  line-height: 1.35;
  color: #4a5b6d;
}

/* ── Inline question + steps ─────────────────────────────── */

.jl-mc .jl-mc-inline {
  margin: 32px 0 40px;
  max-width: 640px;
}
.jl-mc .jl-mc-q {
  padding: 22px 20px 20px;
  border-radius: 8px;
  background: #f1f5f9;
}
.jl-mc .jl-mc-q__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a5c99;
}
.jl-mc .jl-mc-q__title {
  margin: 0 0 14px;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1.2;
  color: #0b243c;
}
.jl-mc .jl-mc-q__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jl-mc .jl-mc-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 8px 16px;
  box-sizing: border-box;
  border: 1px solid #c2ceda;
  border-radius: 6px;
  background: #fff;
  color: #0b243c;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: none;
}
.jl-mc .jl-mc-opt:hover,
.jl-mc .jl-mc-opt:focus-visible {
  border-color: #0172b0;
  color: #0b243c;
}
.jl-mc .jl-mc-opt svg {
  flex: none;
  color: #4a5b6d;
}

.jl-mc .jl-mc-steps {
  padding: 26px 0 0;
}
.jl-mc .jl-mc-steps__title {
  margin: 0 0 16px;
  font-size: 23px;
  line-height: 1.2;
}
.jl-mc .jl-mc-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: jl-mc-step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.jl-mc .jl-mc-steps__list li {
  counter-increment: jl-mc-step;
  position: relative;
  margin: 0;
  padding: 0 0 0 40px;
  list-style: none;
}
.jl-mc .jl-mc-steps__list li::before {
  content: counter(jl-mc-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0b243c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
  text-align: center;
}
.jl-mc .jl-mc-steps__list p {
  margin: 0;
  padding-top: 2px;
  font-size: 16px;
  line-height: 1.45;
  color: #33475b;
}
.jl-mc .jl-mc-steps__list strong,
.jl-mc .jl-mc-steps__fee strong {
  color: #0b243c;
  font-weight: 600;
}
.jl-mc .jl-mc-steps__fee {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 15px;
  line-height: 1.45;
  color: #33475b;
}

/* The theme styles every p and h2 in the page body through
   `body:not(.home) .entry-content …`, which outranks the rules above.
   Restate the ones it would override with a longer selector. */
body.jl-mc .entry-content .jl-mc-inline p.jl-mc-q__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  color: #0a5c99;
}
body.jl-mc .entry-content .jl-mc-inline p.jl-mc-q__title {
  margin: 0 0 14px;
  font-size: 25px;
  color: #0b243c;
}
body.jl-mc .entry-content .jl-mc-inline h2.jl-mc-steps__title {
  margin: 0 0 16px;
  font-size: 23px;
}
body.jl-mc .entry-content .jl-mc-inline .jl-mc-steps__list p {
  margin: 0;
  font-size: 16px;
  color: #33475b;
}
body.jl-mc .entry-content .jl-mc-inline p.jl-mc-steps__fee {
  margin: 18px 0 0;
  font-size: 15px;
  color: #33475b;
}

/* General block (home page and articles): text, button and note in the box. */
body.jl-mc .entry-content .jl-mc-inline p.jl-mc-q__text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.45;
  color: #33475b;
}
body.jl-mc .entry-content .jl-mc-inline p.jl-mc-q__note {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.3;
  color: #4a5b6d;
  text-align: center;
}
body.jl-mc .entry-content .jl-mc-inline a.jl-mc-btn {
  color: #fff;
  text-decoration: none;
}
.jl-mc .jl-mc-hero--compact {
  margin-top: 18px;
}
/* The home hero centres its copy; keep the button centred with it. */
.jl-mc .inner-wrapper.center .jl-mc-hero {
  margin-left: auto;
  margin-right: auto;
}

/* ── Bottom bar and phone menu: hidden unless on a phone ─── */

.jl-mc .jl-mc-bar,
.jl-mc .jl-mc-menu {
  display: none;
}

@media (max-width: 1200px) {
  /* The burger menu is in use from here down. */
  .jl-mc .jl-mc-menu {
    display: block;
    padding: 0 15px;
  }
  .jl-mc .header-menu .jl-mc-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: 12px;
    padding: 0 16px;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    text-transform: none;
    text-decoration: none;
  }
  .jl-mc .jl-mc-menu a.jl-mc-menu__review {
    background: #0172b0;
    color: #fff;
  }
  .jl-mc .jl-mc-menu a.jl-mc-menu__call {
    border: 1.5px solid #fff;
    color: #fff;
  }
}

@media (max-width: 767px) {
  /* The bottom bar carries the call button, so the fixed phone bar under
     the header goes and gives its 70px back to the page. */
  .jl-mc .header .container + .header-cta {
    display: none !important;
  }

  .jl-mc .jl-mc-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990;
    box-sizing: border-box;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #c9d4df;
  }
  .jl-mc .jl-mc-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    box-sizing: border-box;
    border-radius: 6px;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
  }
  .jl-mc .jl-mc-bar__call {
    border: 1.5px solid #0b243c;
    color: #0b243c;
  }
  .jl-mc .jl-mc-bar__review {
    background: #0172b0;
    color: #fff;
  }

  /* Room for the bar at the end of the page, and 70px less at the top:
     the theme offsets the body by 140px for header + phone bar. */
  body.jl-mc {
    margin-top: 70px;
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* Keep the chat launcher clear of the bar. */
  body.jl-mc #fd-mobile-avatar {
    bottom: 72px !important;
  }

  /* Hero: tighter, and the 9News badge gives way to the button. */
  .jl-mc .module-hero-sub .description img[src*="9news"] {
    display: none;
  }
  .jl-mc .jl-mc-hero {
    max-width: none;
  }
  .jl-mc .jl-mc-hero__pitch {
    font-size: 17px;
  }

  .jl-mc .jl-mc-proof {
    max-width: none;
    margin: 0 -15px 8px;
  }
  .jl-mc .jl-mc-inline {
    margin: 28px 0 36px;
  }
}
