body.has-modal-open {
  overflow: hidden;
}

.wellness-main-banner__container p {
  margin-bottom: 0;
}

.wellness-main-banner__container {
  max-width: 1140px;
  padding: 16px 16px 48px 16px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 42%;
  gap: 32px;
}

.wellness-main-banner__left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HERO */
.wellness-main-banner__hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  background: #eaf0ff;
  padding-inline: 20px;
  border-radius: 16px;
  gap: 20px;
  overflow: hidden;
}

.wellness-main-banner__hero-content {
  flex: 1;
  padding-block: 20px;
  max-width: 55%;
}

.wellness-main-banner__hero-image {
  max-width: 40%;
}

.wellness-main-banner__hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wellness-main-banner__title :is(p, h1, h2, h3, h4, h5, h6) {
  color: #005E9E;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 700;
}

.wellness-main-banner__title span {
  color: #e11;
}

.wellness-main-banner__subtitle {
  max-width: 75%;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 8px;
  color: #555;
}

/* BENEFITS */
.wellness-main-banner__benefits-wrapper {
  position: relative;
  padding-inline: 16px;
}

.wellness-main-banner__benefits-header {
  position: absolute;
  top: 28px;
  inset-inline: 0;
  margin: 0 auto;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  padding: 10px 32px;
  border: 1px solid #9AB6ED;
  border-radius: 999px;
  color: #005E9E;
  margin-top: -28px;
  text-align: center;
  background: #fff;
}

.wellness-main-banner__benefits-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0px;
}

.wellness-main-banner__benefits-subtitle {
  font-size: 13px;
  line-height: 1.3;
}

.wellness-main-banner__benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 0;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.49) 47.97%, #CCDBF9 100%);
  border: 1px solid #C9D3E9;
  border-radius: 16px;
  padding: 28px;
  padding-top: 56px;
  margin-top: 28px;
}

.wellness-main-banner__benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-inline: 24px;
}

/* 3. The Separator Logic */
/* Target every item EXCEPT every 3rd item (the last in each row) */
.wellness-main-banner__benefit:not(:nth-child(3n))::after {
  content: '';
  position: absolute;
  right: 0;
  inset-block: 0;

  /* Adjust top and height to make the line shorter than the full item height */
  top: 20%;
  height: 60%;

  width: 1px;
  background-color: #C9D3E9;
}

.wellness-main-banner__benefit-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wellness-main-banner__benefit-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wellness-main-banner__benefit p {
  font-size: 13px;
  line-height: 1.4;
  color: #374254;
  text-wrap: balance;
}

/* STEPS */
.wellness-main-banner__steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-inline: 72px;
}

.wellness-main-banner__step-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #A4B6DA87;
  padding: 12px;
  padding-inline-end: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 4px 0px #28293D0A, 0px 8px 16px 0px #60617014;
  cursor: pointer;
}

.wellness-main-banner__step-card-content {
  display: flex;
  flex-direction: column;
}

.wellness-main-banner__step-card-content>span {
  color: #000;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.wellness-main-banner__step-card-content p {
  color: #005E9E;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.wellness-main-banner__step-card-content p span {
  color: #ED1C24;
}

.wellness-main-banner__step-card-icon {
  width: 32px;
  height: 32px;
}

.wellness-main-banner__step-card-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* APP */
.wellness-main-banner__app {
  display: flex;
  justify-content: space-between;
  background: #F4F8FE;
  padding: 10px 20px 0 34px;
  border-radius: 12px;
  overflow: hidden;
}

.wellness-main-banner__app p {
  font-size: 14px;
  line-height: 1.5;
}

.wellness-main-banner__app-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.wellness-main-banner__app-left-content {
  padding-bottom: 10px;
}

.wellness-main-banner__app-left p.title {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #000
}

.wellness-main-banner__app-download-cta {
  display: none;
}

.wellness-main-banner__app-right {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
}

.wellness-main-banner__app-right .stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}








/* WELLNESS PROCESS MODAL */
.wellness-steps-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  /* Use flex by default instead of none to allow transitions */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Hide visually and prevent clicks when closed */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* Smooth fade for the whole modal background */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wellness-steps-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* OVERLAY */
.wellness-steps-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 0;
}

/* DIALOG */
.wellness-steps-modal__dialog {
  position: relative;
  width: min(92vw, 420px);
  max-height: 90vh;

  background: #fff;
  border-radius: 16px;
  overflow: hidden;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);

  transform: translateY(20%);
  opacity: 0;

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.wellness-steps-modal.is-open .wellness-steps-modal__dialog {
  transform: translateY(0);
  opacity: 1;
}

/* CONTENT */
.wellness-steps-modal__content {
  z-index: 1;
  padding: 24px;
  overflow-y: auto;
  max-height: 90vh;
  text-align: center;
}

/* CLOSE */
.wellness-steps-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 34px;
  height: 34px;

  color: #000;
  background: transparent;
  border: none;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  font-size: 24px;
  line-height: 1;

  transition: background .2s ease;
}

.wellness-steps-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* HEADER */
.wellness-steps-modal__header>span {
  color: #000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.wellness-steps-modal__header :is(p, h2, h3, h4, h5, h6) {
  color: #005E9E;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.wellness-steps-modal__header :is(p, h2, h3, h4, h5, h6) span {
  color: #ED1C24;
}

/* STEPS */
.wellness-steps-modal__steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin: 24px 0;
}

.wellness-steps-modal__step {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.wellness-steps-modal__step:not(:last-child)::after {
  content: "";
  position: absolute;
  display: block;

  max-width: 100%;
  height: 100%;

  top: calc(100% - 16px);

  left: 42px;
  right: 42px;

  background-image: url("http://localhost:2502/content/dam/hdfclifeinsurancecompany/wellness/step-connector.svg");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;

  pointer-events: none;
}

.wellness-steps-modal__step:nth-child(even):not(:last-child)::after {
  transform: scaleX(-1);
  transform-origin: center;
}

.wellness-steps-modal__step:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.wellness-steps-modal__step-image {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
}

.wellness-steps-modal__step-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wellness-steps-modal__step p {
  max-width: 40%;
  color: #4B5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 16px;
  text-wrap: balance;
}

/* CTA */
.wellness-steps-modal__cta {
  width: 80%;
  background: red;
  color: #fff;
  padding: 6px 12px;
  margin: 0 auto;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;

  border: 0;
  outline: 0;
  cursor: pointer;
}




/* MOBILE */
@media (max-width: 768px) {
  .wellness-main-banner__container {
    grid-template-columns: 1fr;
  }

  .wellness-main-banner__benefits-wrapper {
    padding-inline: 0;
  }

  .wellness-main-banner__left {
    gap: 20px;
  }

  .wellness-main-banner__hero {
    gap: 0;
  }

  .wellness-main-banner__title :is(p, h1, h2, h3, h4, h5, h6) {
    font-size: 16px;
    text-wrap: balance;
  }

  .wellness-main-banner__subtitle {
    font-size: 13px;
    text-wrap: balance;
  }

  .wellness-main-banner__hero-content {
    max-width: 80%;
  }

  .wellness-main-banner__hero-image {
    position: absolute;
    inset-block: 0;
    right: -6%;
  }

  .wellness-main-banner__hero-image img {
    object-fit: cover;
    overflow: visible;
  }

  .wellness-main-banner__benefits {
    padding: 16px 0;
    padding-top: 48px;
  }

  .wellness-main-banner__benefits-header {
    padding: 6px 24px;
    width: 100%;

  }

  .wellness-main-banner__benefit {
    padding-inline: 8px;
  }

  .wellness-main-banner__steps {
    padding-inline: 0;
  }

  .wellness-main-banner__step-card {
    padding: 8px;
  }

  .wellness-main-banner__step-card-content p {
    font-size: 13px;
  }

  .wellness-steps-modal {
    align-items: flex-end;
  }

  .wellness-steps-modal__dialog {
    width: 100%;
    border-radius: 12px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .wellness-main-banner__app {
    padding: 12px 12px 0;
  }

  .wellness-main-banner__app-left {
    gap: 12px;
  }

  .wellness-main-banner__app-left img {
    margin-bottom: -10%;
  }

  .wellness-main-banner__app-left-content {
    padding-bottom: 12px;
  }

  .wellness-main-banner__app-left p {
    font-size: 12px;
  }

  .wellness-main-banner__app-left p.title {
    font-size: 14px;
  }

  .wellness-main-banner__app-right {
    display: none;
  }

  .wellness-main-banner__app-download-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: #ED1C24;
    border: 1px solid #F9ADAA;
    border-radius: 6px;
    padding: 4px 8px;
    margin-top: 8px;
    text-decoration: none;
  }

  .wellness-form {
    position: static;
  }
}