@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700;800&family=Roboto&display=swap');

.bmi-banner {
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #FFFFFF -10.65%, #C3EAF2 103.46%);
  position: relative;
  max-width: 1085px;
  width: 95%;
  margin: 30px auto;
  border-radius: 10px;
  padding: 30px clamp(30px, 3vw, 60px);
  color: #000;
}

.bmi-banner__close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 40px;
  color: #999;
  text-decoration: none;
}

.bmi-banner__close:hover {
  color: #929498;
}

.bmi-banner__header {
  margin-bottom: 10px;
}

.bmi-banner__header div {
  margin-bottom: 25px;
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 27px);
  color: #000;
  text-align: center;
}

.bmi-banner__header div .bb-highlight {
  color: #0C7872;
  font-weight: 700;
}

.bmi-banner__header .small {
  font-size: 0.9rem;
}

.bmi-banner__cards {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: center;
  margin-top: 5px;
  gap: 25px;
}

.bmi-banner__card {
  background: #fff;
  padding: 20px 25px 20px 20px;
  border-radius: 20px;
  width: 300px;
  flex: 1 1 300px;
  max-width: 100%;
}

.bmi-banner__card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  padding-bottom: 10px;
}

.bmi-banner__card img {
  display: block;
  height: 70px;
  width: 70px;
  flex-shrink: 0;
}

.bmi-banner__card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: normal;
}

.bmi-banner__card .bmi-banner__card-text {
  margin: 0;
  font-size: 15px;
  line-height: 22.5px;
}


.bmi-banner__footer {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  gap: 25px;
}

.bmi-banner__footer-text {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.bmi-banner__footer span {
  margin: 0;
  font-size: 15px;
  line-height: 22.5px;
}

.bmi-banner__cta-button {
  background: #148E87;
  font-weight: 700;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px clamp(30px, 5vw, 50px);
  font-size: clamp(16px, 2vw, 20px);
  cursor: pointer;
  margin-right: 20px;
  white-space: nowrap;
}

.bmi-banner__cta-button:hover {
  background: #10736E;
}

.bmi-banner .bmi-links {
  color: #148E87;
  text-decoration: none;
  font-weight: 600;
}

.bmi-banner__dismiss-link {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: #929498;
  text-decoration: none;
}

.bmi-banner__dismiss-link:hover {
  color: #999;
}




/* 
  Underline effect for the free link
 */
.bmi-banner__free-underlined {
  display: inline-block;
  position: relative;
}

.bmi-banner__free-underlined::after {
  content: "";
  position: absolute;
  left: -2px;
  right: 0;
  bottom: 4px;
  height: 7px;
  background-color: #55BDBD;
  border-radius: 5px;
  z-index: 0;
  width: 110%;
}

.bmi-banner__free-underlined span {
  position: relative;
  z-index: 1;
}

.bmi-banner__left-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;
  border-radius: 10px 0 0 10px;
}


.bmi-banner__card.bmi-banner__premium-card {
  display: flex;
  flex-direction: row;
}

.bmi-banner__premium-card .bmi-banner__card-content {
  display: flex;
  flex-direction: column;
}


/* Tablet and smaller laptops */
@media (max-width: 1200px) {
  .bmi-banner__card {
    width: calc(50% - 12.5px);
    min-width: 250px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .bmi-banner {
    padding: 25px 20px;
    margin: 20px auto;
  }

  .bmi-banner__close {
    font-size: 30px;
    top: 15px;
    right: 15px;
  }

  .bmi-banner__header div {
    margin-bottom: 20px;
  }

  .bmi-banner__cards {
    gap: 20px;
  }

  .bmi-banner__card {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .bmi-banner__footer {
    margin-top: 20px;
    gap: 15px;
  }

  .bmi-banner__cta-button {
    margin-right: 0;
    width: 100%;
    max-width: 300px;
  }

  .bmi-banner__dismiss-link {
    position: static;
    display: block;
    text-align: center;
    margin-top: 15px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .bmi-banner {
    padding: 20px 15px;
    margin: 15px auto;
    width: 98%;
  }

  .bmi-banner__close {
    font-size: 25px;
    top: 10px;
    right: 10px;
  }

  .bmi-banner__card {
    padding: 15px;
  }

  .bmi-banner__card-header {
    gap: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .bmi-banner__card img {
    height: 50px;
    width: 50px;
  }

  .bmi-banner__card .bmi-banner__card-text {
    font-size: 14px;
    line-height: 20px;
  }

  .bmi-banner__footer-text {
    font-size: 14px;
    text-align: center;
  }

  .bmi-banner__footer span {
    font-size: 14px;
  }
}