/* Insurance Calculator Modal Styles */
.info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.info-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.info-modal__overlay {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.info-modal__container {
  padding: 2.5rem;
  max-width: 588px;
  width: 90%;
  border-radius: 1.5rem;
  margin: 0 auto;
  max-height: calc(100vh - 5rem);
  background-color: #ffffff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(100vh + 50%)) scale(0.8);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0;
  will-change: transform, opacity;
  z-index: 10000;
}

.info-modal.show .info-modal__container {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.info-modal__header {
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.info-modal__title {
  border: none;
  color: #002b47;
  font-family: var(--font-bold);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding-right: 90px;
  text-align: left;
  line-height: 22px;
  margin-bottom: 2rem;
  font-weight: 700;
}

.info-modal__close-btn {
  position: absolute;
  top: -60px;
  right: -8px;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #002b47;
  border: none;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.info-modal__close-btn:hover {
  background: #4a88f5;
}

.info-modal__body {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  overflow-y: scroll;
  scrollbar-width: none;
  max-height: calc(100vh - 12rem);
  /* animation: fadeInUp 0.6s ease-out 0.2s both; */

  @media (max-width: 767.98px) {
    max-height: calc(100vh - 100%);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.info-modal__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-modal__item-icon {
  flex-shrink: 0;
}

.info-modal__number-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid transparent;
}

.info-modal__number-wrapper .info-modal__number-circle {
  position: absolute;
  width: 28px;
  height: 28px;
  background-color: #cddae2;
  border-radius: 50%;
  bottom: 5px;
  left: 5px;
}

.info-modal__number-wrapper .info-modal__number-arc-main {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 1.9px solid #002b47;
  border-radius: 50%;
  top: 7px;
  right: 3px;
}

.info-modal__number-wrapper .info-modal__number-arc-cut {
  position: absolute;
  width: 30px;
  height: 13px;
  background-color: #ffffff;
  top: 8px;
  right: -5px;
  transform: rotate(50deg);
}

.info-modal__number-wrapper .info-modal__number-digit {
  position: absolute;
  color: #002b47;
  font-family: var(--font-bold);
  top: 4px;
  left: 25px;
  font-weight: 600;
}

.info-modal__item-content {
  flex: 1;
}

.info-modal__item-title {
  color: #002b47;
  font-family: var(--font-semi-bold);
  font-size: 0.875rem;
  line-height: 1.4;
  margin-bottom: 4px;
}

.info-modal__item-description {
  color: #094771;
  font-family: var(--font-medium);
  font-size: 0.875rem;
}

/* Mobile Responsive Styles (below 768px) */
@media (max-width: 768px) {
  .info-modal__overlay {
    align-items: flex-end;
  }

  .info-modal__container {
    max-width: 100%;
    width: 100%;
    border-radius: 1.5rem 1.5rem 0 0;
    max-height: calc(100vh - 2rem);
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem 1.5rem 2.5rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
  }

  .info-modal.show .info-modal__container {
    transform: translateY(0) scale(1);

    @media (max-width: 767.98px) {
      max-height: calc(100vh - 25%);
    }
  }

  .info-modal__header {
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 0 0 1rem 0;
  }

  .info-modal__title {
    border: none;
    color: #002b47;
    font-family: var(--font-bold);
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    padding-right: 0;
    text-align: left;
    font-weight: 700;
  }

  .info-modal__close-btn {
    position: absolute;
    top: -3.5rem;
    right: -0.5rem;
    border-radius: 50%;
    background: #002b47;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    width: 3rem;
    height: 3rem;
    font-size: 32px;
    font-weight: bold;
  }

  .info-modal__close-btn:hover {
    background: #4a88f5;
  }

  .info-modal__body {
    display: flex;
    flex-direction: column;
    row-gap: 1.25rem;
    padding: 0;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    animation: fadeInUp 0.5s ease-out 0.15s both;
    max-height: 250px !important;
    padding-bottom: 48px;
  }

  .info-modal__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
  }

  .info-modal__item-icon {
    height: 3rem;
    width: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .info-modal__number-wrapper {
    position: relative;
    width: 3rem;
    height: 3rem;
    border: 1px solid transparent;
  }

  .info-modal__number-wrapper .info-modal__number-circle {
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    background-color: #cddae2;
    border-radius: 50%;
    bottom: 0.25rem;
    left: 0.25rem;
  }

  .info-modal__number-wrapper .info-modal__number-arc-main {
    position: absolute;
    width: 1.6875rem;
    height: 1.6875rem;
    border: 1.5px solid #002b47;
    border-radius: 50%;
    top: 0.375rem;
    right: 0.125rem;
  }

  .info-modal__number-wrapper .info-modal__number-arc-cut {
    position: absolute;
    width: 1.875rem;
    height: 0.8125rem;
    background-color: #ffffff;
    top: 0.5rem;
    right: -0.25rem;
    transform: rotate(50deg);
  }

  .info-modal__number-wrapper .info-modal__number-digit {
    position: absolute;
    color: #002b47;
    font-family: var(--font-bold);
    top: 0.25rem;
    left: 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
  }

  .info-modal__item-title {
    color: #002b47;
    font-family: var(--font-semi-bold);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
  }

  .info-modal__item-description {
    color: #094771;
    font-family: var(--font-medium);
    font-size: 0.8125rem;
    line-height: 1.4;
  }

  /* Mobile scrollbar styling */
  .info-modal__body::-webkit-scrollbar {
    width: 4px;
  }

  .info-modal__body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
  }

  .info-modal__body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
  }

  .info-modal__body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
  }
}