/**
 * SCREEN 2 — Exact mobile reference replacement
 * Medical Report Form + Why Patients Trust
 * Does NOT restyle Screen 1 / 3 / 4.
 */

@media (max-width: 767px) {
  /* ========== FORM SECTION — one clear soft-blue box ========== */
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref {
    background: #f3f7fb !important;
    padding: 0.85rem 0 0.9rem !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__wrap {
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 0.85rem !important;
    padding: 1rem 0.9rem 0.9rem !important;
    background: linear-gradient(180deg, #dceafc 0%, #d2e4f8 50%, #c7dcf4 100%) !important;
    border: 1.5px solid #8eb4d8 !important;
    border-radius: 20px !important;
    box-shadow:
      0 14px 32px rgba(11, 47, 91, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__visual,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__secure,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__chat {
    display: none !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__hero {
    display: block !important;
    margin: 0 0 0.7rem !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    grid-template-columns: none !important;
    gap: 0 !important;
    align-items: stretch !important;
    overflow: visible !important;
    position: relative !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__hero::before,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__hero::after {
    content: none !important;
    display: none !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__intro {
    text-align: center !important;
    max-width: 22rem !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: transparent !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__title {
    margin: 0 0 0.3rem !important;
    max-width: none !important;
    font-size: clamp(1.28rem, 5vw, 1.48rem) !important;
    font-weight: 800 !important;
    line-height: 1.18 !important;
    color: #0b2f5b !important;
    letter-spacing: -0.02em !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__title em {
    font-style: normal !important;
    color: #0b2f5b !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__lead {
    margin: 0 !important;
    font-size: 0.84rem !important;
    line-height: 1.35 !important;
    color: #3d5a78 !important;
  }

  /* Inner form area sits inside the soft-blue wrap — no second competing card */
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-top: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__fields {
    display: grid !important;
    gap: 0.4rem !important;
    margin: 0 0 0.5rem !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.18rem !important;
    min-height: 0 !important;
    padding: 0.48rem 0.75rem 0.45rem !important;
    border: 1.5px solid transparent !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(11, 47, 91, 0.05) !important;
  }

  /* Soft tinted field shells — name / mobile / country / treatment */
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--name {
    background: linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%) !important;
    border-color: #b8d0f0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--phone {
    background: linear-gradient(180deg, #f1fbf5 0%, #e6f7ed 100%) !important;
    border-color: #a8dbba !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--country {
    background: linear-gradient(180deg, #fff8f0 0%, #ffefd9 100%) !important;
    border-color: #e8c89a !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--treatment {
    background: linear-gradient(180deg, #f7f3ff 0%, #eee7ff 100%) !important;
    border-color: #cbb8f0 !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field:focus-within {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14) !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field:has(:invalid:not(:placeholder-shown):not(:focus)) {
    border-color: inherit !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field.is-invalid {
    border-color: #f87171 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field-head {
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field-ico {
    width: 18px !important;
    height: 18px !important;
    color: #1d4ed8 !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--phone .ilj-mrev__field-ico {
    color: #15803d !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--country .ilj-mrev__field-ico {
    color: #c2410c !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--treatment .ilj-mrev__field-ico {
    color: #6d28d9 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field-ico .icon,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field-ico svg {
    width: 16px !important;
    height: 16px !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field-label {
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    color: #0b2f5b !important;
    line-height: 1.15 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field input,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field select {
    width: 100% !important;
    flex: none !important;
    min-height: 26px !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 0.92rem !important;
    line-height: 1.3 !important;
    color: #0f172a !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field--treatment select {
    min-height: 30px !important;
  }

  /* Upload — compact row inside the blue box */
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload {
    display: block !important;
    margin: 0 0 0.5rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    min-height: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-label {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.45rem !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0.5rem 0.6rem !important;
    border: 1.5px dashed #6ba3e0 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    text-align: start !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(11, 47, 91, 0.04) !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-ico {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    border-radius: 50% !important;
    background: #dbeafe !important;
    color: #1d4ed8 !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-ico .icon,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-ico svg {
    width: 16px !important;
    height: 16px !important;
    color: #1d4ed8 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.02rem !important;
    text-align: start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-title {
    font-size: 0.82rem !important;
    font-weight: 750 !important;
    color: #0b2f5b !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-label small,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-copy small {
    font-size: 0.64rem !important;
    color: #64748b !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__choose {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0.28rem 0.7rem !important;
    border-radius: 8px !important;
    background: #2563eb !important;
    color: #fff !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__consent {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__form {
    position: relative !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__actions {
    display: grid !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__submit {
    width: 100% !important;
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: #22c55e !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 750 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.4rem !important;
    box-shadow: 0 6px 14px rgba(34, 197, 94, 0.25) !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__submit .icon,
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__submit svg {
    width: 16px !important;
    height: 16px !important;
    color: #fff !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.25rem !important;
    list-style: none !important;
    margin: 0.55rem 0 0 !important;
    padding: 0 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    text-align: start !important;
    padding: 0.05rem !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-ico {
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto !important;
    color: #1d4ed8 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-ico svg {
    width: 14px !important;
    height: 14px !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-item strong {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    color: #0b2f5b !important;
    line-height: 1.15 !important;
  }

  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-item > span:not(.ilj-mrev__trust-ico) {
    display: none !important;
  }

  /* ========== WHY TRUST — larger icons ========== */
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref {
    background: #fff !important;
    padding: 0.85rem 0.65rem 1rem !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__intro {
    text-align: center !important;
    margin: 0 0 0.7rem !important;
    padding: 0 0.25rem !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__heading-text {
    font-size: clamp(1.22rem, 4.8vw, 1.42rem) !important;
    font-weight: 800 !important;
    color: #0b2f5b !important;
    line-height: 1.2 !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__subtitle,
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__divider {
    display: none !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__grid--4 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.4rem !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    gap: 0.35rem !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0.65rem 0.28rem 0.55rem !important;
    background: #fff !important;
    border: 1px solid #e2ebf5 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__icon {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    min-height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    border: 0 !important;
    display: grid !important;
    place-items: center !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    box-shadow: 0 4px 10px rgba(11, 47, 91, 0.08) !important;
    overflow: visible !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__icon svg {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
    display: block !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card--blue .hp-why-trust__icon {
    background: linear-gradient(160deg, #e8f1ff, #d7e9ff) !important;
    color: #1d4ed8 !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card--green .hp-why-trust__icon {
    background: linear-gradient(160deg, #e8faf0, #d4f0e0) !important;
    color: #16a34a !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card--purple .hp-why-trust__icon {
    background: linear-gradient(160deg, #f3e8ff, #e8ddf4) !important;
    color: #7c3aed !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card--orange .hp-why-trust__icon {
    background: linear-gradient(160deg, #fff1e8, #ffe4c8) !important;
    color: #ea580c !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card h3 {
    margin: 0 !important;
    font-size: 0.7rem !important;
    font-weight: 750 !important;
    line-height: 1.22 !important;
    color: #0b2f5b !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
    display: block !important;
    padding-inline: 0.1rem !important;
  }

  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card p {
    margin: 0 !important;
    font-size: 0.62rem !important;
    line-height: 1.28 !important;
    color: #64748b !important;
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    -webkit-line-clamp: unset !important;
  }
}

@media (min-width: 390px) and (max-width: 767px) {
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__grid--4 {
    gap: 0.45rem !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__icon {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__icon svg {
    width: 32px !important;
    height: 32px !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card h3 {
    font-size: 0.74rem !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card p {
    font-size: 0.66rem !important;
  }
}

@media (max-width: 374px) {
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card h3 {
    font-size: 0.64rem !important;
  }
  body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card p {
    font-size: 0.58rem !important;
  }
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-item strong {
    font-size: 0.58rem !important;
  }
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-label {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 0.4rem 0.5rem !important;
  }
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-copy {
    align-items: flex-start !important;
    text-align: start !important;
  }
  body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__choose {
    padding: 0.25rem 0.55rem !important;
    font-size: 0.68rem !important;
  }
}

[dir="rtl"] body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field-head,
[dir="rtl"] body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__trust-item {
  flex-direction: row !important;
}

[dir="rtl"] body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field,
[dir="rtl"] body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field input,
[dir="rtl"] body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__field select {
  text-align: right !important;
}

[dir="rtl"] body.page-home.public-home-v2 .ilj-mrev.pub-p2.ilj-mrev--s2ref .ilj-mrev__upload-copy {
  align-items: flex-end !important;
  text-align: right !important;
}

[dir="rtl"] body.page-home.public-home-v2 .hp-why-trust.pub-p2.hp-why-trust--s2ref .hp-why-trust__card {
  text-align: center !important;
}
