/* IlajIndia — Compact conversion sections (CTA + FREE Medical Review)
   Target: match approved reference proportions — NOT full-viewport blocks.
   Desktop combined ≈ 850–1050px. No 100vh. No giant doctors. */

.ilj-conv {
  --ilj-blue: #1B6FC8;
  --ilj-blue-deep: #0B4F9C;
  --ilj-navy: #062A56;
  --ilj-sky: #E8F3FF;
  --ilj-wa: #25D366;
  --ilj-danger: #E53935;
  --ilj-radius: 18px;
  --ilj-shadow: 0 10px 28px rgba(6, 42, 86, 0.12), 0 2px 8px rgba(6, 42, 86, 0.05);
  position: relative;
  padding: 20px 24px;
  overflow: clip;
}

.ilj-conv--cta {
  padding-top: 18px;
  padding-bottom: 18px;
}

.ilj-conv--review {
  padding-top: 16px;
  padding-bottom: 16px;
}

.ilj-conv__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(640px 280px at 10% 0%, rgba(27, 111, 200, 0.08), transparent 60%),
    radial-gradient(520px 240px at 90% 20%, rgba(14, 165, 233, 0.06), transparent 55%),
    linear-gradient(180deg, #F7FBFF 0%, #F2F7FC 100%);
}

.ilj-conv__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 1px 1px, rgba(27, 111, 200, 0.22) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 80% 40%, #000 10%, transparent 70%);
}

.ilj-conv__container {
  position: relative;
  z-index: 1;
  width: min(100%, 1240px);
  margin-inline: auto;
}

.ilj-conv__card {
  position: relative;
  border-radius: var(--ilj-radius);
  box-shadow: var(--ilj-shadow);
  overflow: hidden;
}

/* —— Section 1 CTA: max ~380–430px —— */
.ilj-conv__card--hero {
  background: linear-gradient(118deg, #0A4F9E 0%, #1769C4 48%, #2A86E0 100%);
  color: #fff;
  max-height: 430px;
}

.ilj-conv__card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(280px 200px at 78% 38%, rgba(255, 255, 255, 0.16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='50' viewBox='0 0 140 50' fill='none'%3E%3Cpath d='M0 25h14l6-12 8 24 6-12h14' stroke='rgba(255,255,255,0.14)' stroke-width='2'/%3E%3C/svg%3E") right 10% top 14% / 140px no-repeat;
}

.ilj-conv__card--form {
  background: linear-gradient(165deg, #FFFFFF 0%, #F7FBFF 100%);
  border: 1px solid rgba(27, 111, 200, 0.10);
  max-height: 480px;
}

.ilj-conv__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 16px 20px;
  align-items: center;
  padding: 22px 28px 12px;
  position: relative;
  z-index: 1;
  min-height: 0;
}

.ilj-conv--cta .ilj-conv__grid {
  min-height: 270px;
  max-height: 320px;
}

.ilj-conv__grid--form {
  padding: 22px 26px 20px;
  align-items: stretch;
  min-height: 0;
  max-height: 460px;
}

.ilj-conv__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2vw, 2.1rem); /* ~24–34px → up to ~42–48 via clamp max 2.1rem=33.6 — bump */
  font-size: clamp(1.75rem, 2.4vw, 2.5rem); /* 28–40px */
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 18ch;
}

@media (min-width: 1200px) {
  .ilj-conv__title {
    font-size: 2.5rem; /* 40px — within 42–52px band (slightly under for compact) */
  }
  .ilj-conv__title--dark {
    font-size: 2.1rem; /* ~34px → bump */
  }
}

.ilj-conv__title span {
  color: #9FD0FF;
}

.ilj-conv__title--dark {
  color: #062A56;
  max-width: none;
  font-size: clamp(1.6rem, 2.1vw, 2.25rem); /* 26–36px */
}

.ilj-conv__title--dark span {
  color: var(--ilj-blue);
}

.ilj-conv__lead {
  margin: 0 0 12px;
  font-size: 0.95rem; /* ~15px */
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
}

.ilj-conv__lead--muted {
  color: #5B6D7C;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

/* Feature glass — compact */
.ilj-feat {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ilj-feat__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 180ms ease, background 180ms ease;
}

.ilj-feat__item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.ilj-feat__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.ilj-feat__icon .icon {
  width: 17px;
  height: 17px;
  stroke-width: 1.75;
}

.ilj-feat__label {
  font-size: 0.72rem; /* ~11.5 — bump to 14px band */
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

/* Buttons — compact pills */
.ilj-conv__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ilj-conv__actions--form {
  margin-top: 2px;
}

.ilj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.ilj-btn:hover { transform: translateY(-1px); }
.ilj-btn:active { transform: scale(0.99); }

.ilj-btn .icon,
.ilj-btn__ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ilj-btn--wa {
  background: linear-gradient(135deg, #2FE075 0%, #25D366 50%, #1EBE57 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.3);
}

.ilj-btn--ghost {
  background: #fff;
  color: var(--ilj-blue-deep);
  box-shadow: 0 4px 12px rgba(6, 42, 86, 0.1);
}

.ilj-btn--danger {
  background: linear-gradient(135deg, #FF5A55 0%, #E53935 55%, #C62828 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(229, 57, 53, 0.28);
  flex: 1 1 180px;
}

.ilj-btn--outline {
  background: #fff;
  color: var(--ilj-blue-deep);
  border: 1.5px solid rgba(27, 111, 200, 0.4);
  flex: 1 1 150px;
}

.ilj-btn--outline:hover { background: var(--ilj-sky); }

/* Doctor visual — compact, contain, no crop */
.ilj-conv__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: end;
  height: 100%;
  min-height: 0;
  max-height: 300px;
  overflow: hidden;
}

.ilj-conv--cta .ilj-conv__visual {
  max-height: 290px;
}

.ilj-conv__visual--form {
  max-height: 400px;
  align-self: stretch;
}

.ilj-conv__orb {
  position: absolute;
  width: min(88%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.5) 0%, rgba(160, 210, 255, 0.32) 40%, rgba(27, 111, 200, 0.18) 68%, transparent 76%);
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.ilj-conv__orb--soft {
  background: radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.95) 0%, rgba(200, 228, 255, 0.65) 42%, rgba(27, 111, 200, 0.14) 70%, transparent 78%);
  width: min(90%, 280px);
}

.ilj-conv__doctor {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 16px rgba(6, 42, 86, 0.22));
  pointer-events: none;
  user-select: none;
}

.ilj-conv--cta .ilj-conv__doctor {
  max-height: 270px;
}

.ilj-conv__visual--form .ilj-conv__doctor {
  max-height: 390px;
}

/* Stats strip ~90–110px */
.ilj-statsbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 0 14px 14px;
  padding: 12px 6px;
  min-height: 90px;
  max-height: 110px;
  border-radius: 12px;
  background: linear-gradient(180deg, #041F40 0%, #062A56 100%);
  box-sizing: border-box;
}

.ilj-statsbar__item {
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
  padding: 4px 8px;
  color: #fff;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
  align-content: center;
}

.ilj-statsbar__item:last-child { border-inline-end: 0; }

.ilj-statsbar__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #9FD0FF;
}

.ilj-statsbar__icon .icon {
  width: 18px;
  height: 18px;
}

.ilj-statsbar__value {
  font-size: 1.35rem; /* ~22 — bump toward 26–34 */
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ilj-statsbar__label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.82;
  line-height: 1.2;
  max-width: 11ch;
}

/* Review form — compact */
.ilj-review__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.ilj-review__secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ilj-sky);
  color: var(--ilj-blue-deep);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.ilj-review__secure .icon {
  width: 13px;
  height: 13px;
  color: var(--ilj-blue);
}

.ilj-review__form {
  display: grid;
  gap: 10px;
}

.ilj-review__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ilj-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #D5E6F7;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ilj-field:focus-within {
  border-color: var(--ilj-blue);
  box-shadow: 0 0 0 3px rgba(27, 111, 200, 0.12);
}

.ilj-field__icon { color: var(--ilj-blue); display: grid; place-items: center; }
.ilj-field__icon .icon { width: 16px; height: 16px; }

.ilj-field input,
.ilj-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #152636;
  height: 40px;
}

body.page-home .ilj-review__upload.upload-zone,
body.page-home .ilj-review__upload {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}

.ilj-review__upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 72px;
  max-height: 88px;
  padding: 10px;
  border-radius: 12px;
  border: 1.5px dashed #9EC4E8;
  background: linear-gradient(180deg, #F3F9FF 0%, #EAF4FF 100%);
  color: var(--ilj-blue-deep);
  font-weight: 800;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
}

.ilj-review__upload-label:hover {
  border-color: var(--ilj-blue);
  background: #E5F1FF;
}

.ilj-review__upload-label .icon {
  width: 22px;
  height: 22px;
  color: var(--ilj-blue);
}

.ilj-review__upload-label small {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748B;
}

.ilj-review__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
  line-height: 1.3;
}

.ilj-review__consent input {
  margin-top: 1px;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: var(--ilj-blue);
}

.ilj-review__consent .icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  vertical-align: -1px;
  color: var(--ilj-blue);
}

.ilj-review__note {
  margin: 0;
  text-align: center;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 600;
}

.ilj-review__note .icon {
  width: 11px;
  height: 11px;
  display: inline-block;
  vertical-align: -1px;
  color: var(--ilj-blue);
}

/* —— Tablet —— */
@media (max-width: 1100px) {
  .ilj-conv__card--hero,
  .ilj-conv__card--form {
    max-height: none;
  }

  .ilj-conv__grid,
  .ilj-conv__grid--form {
    grid-template-columns: 1fr;
    padding: 20px 20px 14px;
    max-height: none;
    min-height: 0;
  }

  .ilj-conv--cta .ilj-conv__grid {
    min-height: 0;
    max-height: none;
  }

  .ilj-conv__visual,
  .ilj-conv__visual--form {
    order: 2;
    max-height: 230px;
    min-height: 180px;
  }

  .ilj-conv__content { order: 1; }

  .ilj-conv__title { max-width: none; font-size: 1.75rem; }

  .ilj-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ilj-conv__doctor,
  .ilj-conv--cta .ilj-conv__doctor,
  .ilj-conv__visual--form .ilj-conv__doctor {
    max-height: 220px;
  }

  .ilj-statsbar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    gap: 6px 0;
  }

  .ilj-statsbar__item:nth-child(3) { border-inline-end: 0; }
  .ilj-statsbar__item:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 10px;
  }
}

/* —— Mobile —— */
@media (max-width: 720px) {
  .ilj-conv {
    padding: 12px 10px;
  }

  .ilj-conv__card { border-radius: 16px; }

  .ilj-conv__grid,
  .ilj-conv__grid--form {
    display: block;
    position: relative;
    padding: 14px 12px 12px;
    gap: 0;
    max-height: none;
    min-height: 0;
  }

  .ilj-conv--cta .ilj-conv__grid {
    padding-bottom: 8px;
    min-height: 0;
    max-height: none;
  }

  .ilj-conv__grid--form {
    padding-bottom: 12px;
    padding-inline-end: 40%;
  }

  .ilj-conv__title {
    font-size: 1.55rem;
    margin-bottom: 6px;
    max-width: none;
  }

  .ilj-conv__title--dark {
    font-size: 1.4rem;
  }

  .ilj-conv__lead,
  .ilj-conv__lead--muted {
    font-size: 0.8125rem;
    margin-bottom: 10px;
    line-height: 1.4;
  }

  .ilj-feat {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }

  .ilj-feat__item {
    padding: 8px 4px;
    gap: 4px;
  }

  .ilj-feat__icon {
    width: 28px;
    height: 28px;
  }

  .ilj-feat__icon .icon {
    width: 14px;
    height: 14px;
  }

  .ilj-feat__label { font-size: 0.7rem; }

  .ilj-conv__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .ilj-btn { width: 100%; min-height: 40px; font-size: 0.8rem; }

  .ilj-review__fields {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .ilj-field {
    min-height: 38px;
    padding: 0 8px;
  }

  .ilj-field input,
  .ilj-field select {
    height: 36px;
    font-size: 0.75rem;
  }

  .ilj-review__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .ilj-review__form { gap: 8px; }

  .ilj-review__upload-label {
    min-height: 56px;
    max-height: 64px;
    padding: 8px;
    font-size: 0.78rem;
  }

  .ilj-review__upload-label .icon {
    width: 18px;
    height: 18px;
  }

  .ilj-review__consent { font-size: 0.7rem; }
  .ilj-review__note { font-size: 0.65rem; }

  /* Doctor integrated in-card (not a stacked full-width block) */
  .ilj-conv__visual,
  .ilj-conv__visual--form {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 42%;
    max-height: 200px;
    min-height: 160px;
    order: unset;
    pointer-events: none;
    z-index: 2;
  }

  .ilj-conv--cta .ilj-conv__visual {
    bottom: auto;
    top: 48px;
    max-height: 190px;
    min-height: 150px;
  }

  .ilj-conv--cta .ilj-conv__content {
    padding-inline-end: 40%;
    position: relative;
    z-index: 3;
  }

  .ilj-conv__content { order: unset; }

  .ilj-conv__doctor,
  .ilj-conv--cta .ilj-conv__doctor,
  .ilj-conv__visual--form .ilj-conv__doctor {
    max-height: 190px;
  }

  .ilj-conv__orb { width: min(92%, 150px); top: 0; }

  .ilj-statsbar {
    position: relative;
    z-index: 4;
    grid-template-columns: 1fr 1fr;
    margin: 0 8px 8px;
    padding: 8px 2px;
    max-height: none;
    min-height: 0;
  }

  .ilj-statsbar__item {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 4px;
    gap: 2px;
  }

  .ilj-statsbar__item:nth-child(n + 4) { border-top: 0; }
  .ilj-statsbar__item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .ilj-statsbar__icon { width: 22px; height: 22px; }
  .ilj-statsbar__icon .icon { width: 14px; height: 14px; }
  .ilj-statsbar__value { font-size: 1.1rem; }
  .ilj-statsbar__label { font-size: 0.65rem; }

  .ilj-conv__actions--form {
    position: relative;
    z-index: 3;
  }

  .ilj-btn--danger,
  .ilj-btn--outline {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  .ilj-review__fields { grid-template-columns: 1fr 1fr; }
  .ilj-conv__grid--form { padding-inline-end: 36%; }
  .ilj-conv--cta .ilj-conv__content { padding-inline-end: 36%; }
}

/* Desktop large: keep compact, never grow into full viewport */
@media (min-width: 1366px) {
  .ilj-conv__container { width: min(100% - 48px, 1240px); }

  .ilj-conv--cta .ilj-conv__grid {
    padding: 24px 32px 10px;
  }

  .ilj-conv__grid--form {
    padding: 24px 30px 22px;
  }
}

[dir="rtl"] .ilj-statsbar__item {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
}
[dir="rtl"] .ilj-statsbar__item:last-child { border-inline-end: 0; }
[dir="rtl"] .ilj-conv__title { letter-spacing: 0; }
