/**
 * PUBLIC REDESIGN PHASE 2 — Why Choose + Medical Review + How It Works only.
 * Visual target: owner reference (sections 4–6). Does not restyle Phase 1 or below.
 */
.public-home-v2 {
  --p2s-navy: #0b2f4a;
  --p2s-blue: #1a6fb5;
  --p2s-soft: #eef5fb;
  --p2s-border: rgba(26, 111, 181, 0.14);
  --p2s-muted: #5a6d7c;
  --p2s-shadow: 0 6px 18px rgba(11, 47, 74, 0.06);
}

/* ========== 4. WHY PATIENTS CHOOSE ========== */
.public-home-v2 .hp-why-trust.pub-p2 {
  padding-block: 14px !important;
  background: #fff !important;
}

.public-home-v2 .hp-why-trust__head {
  margin-bottom: 12px !important;
  justify-content: center !important;
}

.public-home-v2 .hp-why-trust__head .hp-view-all {
  display: none !important;
}

.public-home-v2 .hp-why-trust__heading {
  margin: 0 auto !important;
  text-align: center !important;
  font-size: clamp(1.2rem, 4vw, 1.55rem) !important;
  color: var(--p2s-navy) !important;
  font-weight: 800 !important;
}

.public-home-v2 .hp-why-trust__subtitle {
  display: none !important;
}

.public-home-v2 .hp-why-trust__grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: var(--pub-container, min(100% - 32px, 1240px));
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 0;
}

.public-home-v2 .hp-why-trust__card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  min-height: 0 !important;
  padding: 14px 10px !important;
  border-radius: 14px !important;
  border: 1px solid var(--p2s-border) !important;
  background: #fff !important;
  box-shadow: var(--p2s-shadow) !important;
}

.public-home-v2 .hp-why-trust__card p {
  display: none !important;
}

.public-home-v2 .hp-why-trust__card h3 {
  margin: 0 !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  color: var(--p2s-navy) !important;
}

.public-home-v2 .hp-why-trust__icon {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
  background: var(--p2s-soft) !important;
  color: var(--p2s-navy) !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
}

.public-home-v2 .hp-why-trust__icon svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
}

@media (min-width: 768px) {
  .public-home-v2 .hp-why-trust__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .public-home-v2 .hp-why-trust__card {
    padding: 18px 14px !important;
  }

  .public-home-v2 .hp-why-trust__card h3 {
    font-size: 0.92rem !important;
  }

  .public-home-v2 .hp-why-trust__icon {
    width: 48px !important;
    height: 48px !important;
  }

  .public-home-v2 .hp-why-trust__icon svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ========== 5. FREE MEDICAL REVIEW ========== */
.public-home-v2 .ilj-mrev.pub-p2 {
  padding-block: 14px !important;
  background: var(--p2s-soft) !important;
}

.public-home-v2 .ilj-mrev__wrap {
  width: var(--pub-container, min(100% - 32px, 1240px));
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 !important;
}

.public-home-v2 .ilj-mrev__visual {
  display: block !important;
  max-width: 100px !important;
  max-height: 140px !important;
  margin: 0 !important;
  align-self: end !important;
  justify-self: center;
}

.public-home-v2 .ilj-mrev__card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 100px !important;
  gap: 10px !important;
  padding: 14px 12px !important;
  border-radius: 18px !important;
  border: 1px solid var(--p2s-border) !important;
  background: #fff !important;
  box-shadow: var(--p2s-shadow) !important;
  align-items: end !important;
}

.public-home-v2 .ilj-mrev__plus {
  display: none !important;
}

.public-home-v2 .ilj-mrev__main {
  min-width: 0;
}

.public-home-v2 .ilj-mrev__title {
  margin: 0 0 6px !important;
  font-size: clamp(1.15rem, 4vw, 1.55rem) !important;
  line-height: 1.2 !important;
  color: var(--p2s-navy) !important;
}

.public-home-v2 .ilj-mrev__title em {
  color: var(--p2s-blue) !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.public-home-v2 .ilj-mrev__secure {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 24px !important;
  padding: 3px 10px !important;
  margin-bottom: 6px !important;
  font-size: 0.72rem !important;
}

.public-home-v2 .ilj-mrev__lead {
  margin: 0 0 10px !important;
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  color: var(--p2s-muted) !important;
}

.public-home-v2 .ilj-mrev__fields {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
}

.public-home-v2 .ilj-mrev__field {
  min-height: 44px !important;
  margin: 0 !important;
  border-radius: 12px !important;
  border: 1px solid var(--p2s-border) !important;
  background: #fff !important;
}

.public-home-v2 .ilj-mrev__field input,
.public-home-v2 .ilj-mrev__field select {
  min-height: 42px !important;
  font-size: 0.88rem !important;
  padding: 8px 10px !important;
}

.public-home-v2 .ilj-mrev__field-ico {
  width: 36px !important;
  color: var(--p2s-blue) !important;
}

.public-home-v2 .ilj-mrev__field-ico svg {
  width: 16px !important;
  height: 16px !important;
}

.public-home-v2 .ilj-mrev__upload {
  margin: 0 0 8px !important;
  padding: 10px !important;
  border-radius: 12px !important;
  min-height: 0 !important;
}

.public-home-v2 .ilj-mrev__upload-label {
  gap: 6px !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
}

.public-home-v2 .ilj-mrev__upload-label svg {
  width: 18px !important;
  height: 18px !important;
}

.public-home-v2 .ilj-mrev__upload-label small {
  display: block !important;
  font-size: 0.7rem !important;
  font-weight: 500 !important;
  color: var(--p2s-muted) !important;
}

.public-home-v2 .ilj-mrev__consent {
  margin: 0 0 10px !important;
  font-size: 0.78rem !important;
  gap: 8px !important;
}

.public-home-v2 .ilj-mrev__actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
}

.public-home-v2 .ilj-mrev__submit,
.public-home-v2 .ilj-mrev__chat {
  min-height: 46px !important;
  border-radius: 999px !important;
  font-size: 0.9rem !important;
  font-weight: 750 !important;
  justify-content: center !important;
}

.public-home-v2 .ilj-mrev__submit {
  background: var(--p2s-navy) !important;
  border-color: var(--p2s-navy) !important;
  color: #fff !important;
}

.public-home-v2 .ilj-mrev__chat {
  display: inline-flex !important;
  background: #fff !important;
  border: 1.5px solid var(--p2s-blue) !important;
  color: var(--p2s-navy) !important;
}

.public-home-v2 .ilj-mrev__visual img,
.public-home-v2 .ilj-mrev__visual picture,
.public-home-v2 .ilj-mrev__visual picture img,
.public-home-v2 .ilj-mrev__doctor {
  max-height: 140px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: bottom center !important;
  border-radius: 0 !important;
}

.public-home-v2 .ilj-mrev__orb {
  display: none !important;
}

/* Hide duplicate trust aside after form (Phase 2 scope cleanup for this block only) */
.public-home-v2 .ilj-trust {
  display: none !important;
}

@media (min-width: 640px) {
  .public-home-v2 .ilj-mrev__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 900px) {
  .public-home-v2 .ilj-mrev__card {
    grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.55fr) !important;
    padding: 18px 18px 14px !important;
    gap: 16px !important;
  }

  .public-home-v2 .ilj-mrev__visual {
    max-width: 200px !important;
    max-height: 260px !important;
  }

  .public-home-v2 .ilj-mrev__visual img,
  .public-home-v2 .ilj-mrev__visual picture img,
  .public-home-v2 .ilj-mrev__doctor {
    max-height: 260px !important;
  }

  .public-home-v2 .ilj-mrev__actions {
    grid-template-columns: 1.2fr 1fr !important;
  }
}

/* ========== 6. HOW IT WORKS ========== */
.public-home-v2 .hp-journey.pub-p2 {
  padding-block: 16px !important;
  background: #fff !important;
}

.public-home-v2 .hp-journey__dots-bg {
  display: none !important;
}

.public-home-v2 .hp-journey__inner {
  width: var(--pub-container, min(100% - 32px, 1240px));
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 0 !important;
}

.public-home-v2 .hp-journey__heading {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 0 14px !important;
  font-size: clamp(1.2rem, 4vw, 1.55rem) !important;
  color: var(--p2s-navy) !important;
}

.public-home-v2 .hp-journey__leaf {
  width: 18px !important;
  height: 18px !important;
  color: var(--p2s-blue) !important;
}

.public-home-v2 .hp-journey__leaf svg {
  width: 18px !important;
  height: 18px !important;
}

.public-home-v2 .hp-journey__grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 0 !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 2px 6px !important;
  margin: 0 !important;
  list-style: none !important;
}

.public-home-v2 .hp-journey__grid::-webkit-scrollbar {
  display: none;
}

.public-home-v2 .hp-journey__step {
  position: relative !important;
  flex: 1 1 0 !important;
  min-width: 68px !important;
  max-width: 120px !important;
  margin: 0 auto !important;
  padding: 0 4px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 6px !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  min-height: 0 !important;
}

.public-home-v2 .hp-journey__step:not(:last-child)::after {
  content: "→" !important;
  position: absolute !important;
  inset-inline-end: -6px !important;
  top: 22px !important;
  font-size: 0.85rem !important;
  color: var(--p2s-blue) !important;
  opacity: 0.75 !important;
  pointer-events: none !important;
}

[dir="rtl"] .public-home-v2 .hp-journey__step:not(:last-child)::after {
  content: "←" !important;
}

.public-home-v2 .hp-journey__icon {
  order: -1 !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--p2s-soft) !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}

.public-home-v2 .hp-journey__icon svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
}

.public-home-v2 .hp-journey__num {
  order: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: var(--p2s-navy) !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  border-radius: 0 !important;
}

.public-home-v2 .hp-journey__label {
  order: 1 !important;
  margin: 0 !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
  font-weight: 750 !important;
  color: var(--p2s-navy) !important;
}

.public-home-v2 .hp-journey__desc {
  display: none !important;
}

.public-home-v2 .hp-journey__trustbar {
  display: none !important;
}

@media (min-width: 768px) {
  .public-home-v2 .hp-journey__grid {
    overflow: visible !important;
    justify-content: center !important;
    gap: 8px !important;
  }

  .public-home-v2 .hp-journey__step {
    min-width: 110px !important;
    max-width: 150px !important;
  }

  .public-home-v2 .hp-journey__icon {
    width: 56px !important;
    height: 56px !important;
  }

  .public-home-v2 .hp-journey__icon svg {
    width: 28px !important;
    height: 28px !important;
  }

  .public-home-v2 .hp-journey__label {
    font-size: 0.82rem !important;
  }

  .public-home-v2 .hp-journey__step:not(:last-child)::after {
    inset-inline-end: -4px !important;
    top: 26px !important;
  }
}
