/* IlajIndia — FREE Medical Review
   Pixel-close match to approved blue-card reference.
   Backend form fields / AJAX / upload unchanged. */

.ilj-mrev {
  --mrev-blue: #0B5FB8;
  --mrev-blue-mid: #0A4F9E;
  --mrev-blue-deep: #073A78;
  --mrev-navy: #052E5F;
  --mrev-field: rgba(4, 36, 78, 0.42);
  --mrev-field-border: rgba(255, 255, 255, 0.22);
  --mrev-gold: #F5C518;
  --mrev-red: #E53935;
  --mrev-radius: 24px;
  position: relative;
  padding: 18px 16px 16px;
  background: #F3F6FA;
  overflow: clip;
}

.ilj-mrev__wrap {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.ilj-mrev__card {
  position: relative;
  border-radius: var(--mrev-radius);
  background: linear-gradient(165deg, #1A7AD4 0%, #0C5EB5 38%, #084A94 72%, #063A78 100%);
  color: #fff;
  box-shadow:
    0 18px 40px rgba(6, 42, 86, 0.22),
    0 4px 12px rgba(6, 42, 86, 0.12);
  overflow: hidden;
  padding: 22px 20px 20px;
}

.ilj-mrev__plus {
  position: absolute;
  top: -18px;
  right: -10px;
  width: 140px;
  height: 140px;
  opacity: 0.14;
  pointer-events: none;
  background:
    linear-gradient(#fff, #fff) center / 34% 10% no-repeat,
    linear-gradient(#fff, #fff) center / 10% 34% no-repeat;
  border-radius: 50%;
}

.ilj-mrev__hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 42%);
  gap: 8px 12px;
  align-items: start;
  margin-bottom: 14px;
  min-height: 150px;
}

.ilj-mrev__intro {
  position: relative;
  z-index: 2;
  padding-top: 4px;
}

.ilj-mrev__title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 5.2vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.ilj-mrev__title em {
  font-style: normal;
  color: var(--mrev-gold);
}

.ilj-mrev__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(3, 30, 70, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.ilj-mrev__secure .icon {
  width: 14px;
  height: 14px;
  color: #fff;
}

.ilj-mrev__lead {
  margin: 0;
  max-width: 34ch;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.ilj-mrev__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: stretch;
  min-height: 170px;
  max-height: 220px;
  pointer-events: none;
}

.ilj-mrev__orb {
  position: absolute;
  width: min(100%, 200px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.55) 0%, rgba(150, 210, 255, 0.35) 42%, transparent 72%);
  z-index: 0;
}

.ilj-mrev__doctor {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 210px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 18px rgba(0, 20, 50, 0.35));
}

/* Form */
.ilj-mrev__form {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 12px;
}

.ilj-mrev__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ilj-mrev__field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--mrev-field);
  border: 1px solid var(--mrev-field-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ilj-mrev__field:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.ilj-mrev__field-ico {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.ilj-mrev__field-ico .icon {
  width: 17px;
  height: 17px;
}

.ilj-mrev__field input,
.ilj-mrev__field select {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
}

.ilj-mrev__field input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.ilj-mrev__field select {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 18px;
}

.ilj-mrev__field select option {
  color: #0b1f3a;
  background: #fff;
}

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

.ilj-mrev__upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 84px;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1.5px dashed rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: center;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.92rem;
  transition: background 160ms ease, border-color 160ms ease;
}

.ilj-mrev__upload-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.ilj-mrev__upload-label .icon {
  width: 26px;
  height: 26px;
  color: #fff;
}

.ilj-mrev__upload-label small {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(210, 230, 255, 0.85);
}

.ilj-mrev__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}

.ilj-mrev__consent input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #3B9AEF;
}

.ilj-mrev__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.ilj-mrev__submit,
.ilj-mrev__chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.ilj-mrev__submit:hover,
.ilj-mrev__chat:hover {
  transform: translateY(-1px);
}

.ilj-mrev__submit .icon,
.ilj-mrev__chat .icon {
  width: 17px;
  height: 17px;
}

.ilj-mrev__submit {
  background: linear-gradient(180deg, #F04540 0%, #E53935 55%, #C62828 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(229, 57, 53, 0.35);
}

.ilj-mrev__chat {
  background: #fff;
  color: #0B5FB8;
  box-shadow: 0 4px 12px rgba(0, 20, 50, 0.12);
}

.ilj-mrev__chat .icon {
  color: #0B5FB8;
}

/* Feature row under card */
.ilj-mrev__features {
  list-style: none;
  margin: 12px 0 0;
  padding: 16px 6px 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: #EEF2F7;
  border-radius: 14px;
}

.ilj-mrev__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 6px 4px;
}

.ilj-mrev__feature-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #0B5FB8;
}

.ilj-mrev__feature-ico .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.ilj-mrev__feature-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0B3D66;
  line-height: 1.25;
  max-width: 12ch;
}

.ilj-mrev .form-alert {
  margin-top: 4px;
}

/* —— Tablet / desktop —— */
@media (min-width: 768px) {
  .ilj-mrev {
    padding: 22px 24px 14px;
  }

  .ilj-mrev__card {
    padding: 28px 32px 26px;
    border-radius: 26px;
  }

  .ilj-mrev__hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    min-height: 200px;
    margin-bottom: 18px;
  }

  .ilj-mrev__title {
    font-size: 2.35rem;
    max-width: 14ch;
  }

  .ilj-mrev__lead {
    font-size: 1rem;
    max-width: 42ch;
  }

  .ilj-mrev__visual {
    min-height: 220px;
    max-height: 280px;
  }

  .ilj-mrev__doctor {
    max-height: 270px;
  }

  .ilj-mrev__orb {
    width: min(100%, 260px);
  }

  .ilj-mrev__fields {
    gap: 12px;
  }

  .ilj-mrev__field {
    min-height: 52px;
  }

  .ilj-mrev__actions {
    gap: 12px;
  }

  .ilj-mrev__features {
    margin-top: 18px;
    padding: 18px 12px 10px;
    gap: 12px;
    background: #EEF2F7;
    border-radius: 16px;
  }

  .ilj-mrev__feature-label {
    font-size: 0.84rem;
    max-width: 14ch;
  }
}

@media (min-width: 1200px) {
  .ilj-mrev__wrap {
    width: min(100% - 48px, 1200px);
  }

  .ilj-mrev__card {
    padding: 32px 36px 28px;
  }

  .ilj-mrev__title {
    font-size: 2.6rem;
  }

  .ilj-mrev__visual {
    max-height: 300px;
  }

  .ilj-mrev__doctor {
    max-height: 290px;
  }
}

@media (max-width: 420px) {
  .ilj-mrev__fields {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ilj-mrev__field {
    min-height: 44px;
    padding: 0 8px;
  }

  .ilj-mrev__field input,
  .ilj-mrev__field select {
    font-size: 0.78rem;
    height: 42px;
  }

  .ilj-mrev__feature-label {
    font-size: 0.65rem;
  }
}

[dir="rtl"] .ilj-mrev__field select {
  background-position: left 2px center;
  padding-right: 0;
  padding-left: 18px;
}

[dir="rtl"] .ilj-mrev__title {
  letter-spacing: 0;
}
