/**
 * @file
 * Styles for the Assess HAE Impact page.
 */

/* Page-specific styles for assess-hae-impact.html.twig */

/* Hero Section - Interior */

.hero {
  background: none;

  .hero__content {
    .hero__title {
      font-weight: 400;
      -webkit-text-stroke-width: 1px;
      -webkit-text-stroke-color: var(--color-charchol, #1D2D3A);
      font-size: 48px;
    }
  }
}

.hero--interior {
  position: relative;
  overflow: hidden;
}

.hero--interior .hero__background {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero--interior .hero__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
}

.hero--interior .hero__title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero--interior .hero__subtitle {
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero__emphasis {
  font-weight: bold;
}

.hero__decoration {
  position: absolute;
  bottom: 0;
  right: 0;
}

/* Section Styles */
.section--clinical {
  padding: 0px;
  position: relative;
}

.section__decoration {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.section__header {
  text-align: center;
  margin: 0px;
}

.section__title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0px;
}

.section__subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.section__text {
  font-size: 20px;
  line-height: normal;
  text-align: left;
}
/* Cards Grid */
.cards--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cards--assessment .card {
  position: relative;
  padding: 2rem;
  border-radius: 12px;
  overflow: hidden;
}

.card__gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.card__gradient-layer--primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
}

.card__gradient-layer--secondary {
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
}

.card__content {
  position: relative;
  z-index: 1;
}

.card__image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.card__text {
  color: white;
  font-size: 1rem;
  line-height: 1.5;
}

/* Patient Burden Section */
.section--burden {
  background-color: #f8f9fa;
  padding: 4rem 120px;
}

.cards--burden {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card--burden {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card__highlight {
  font-weight: bold;
  color: #007bff;
}

/* AECT Section */
.section--aect {
  padding: 4rem 0;
}

.aect-tool {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.aect-tool__description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.aect-tool__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #e9ecef;
  border-radius: 8px;
}

.aect-tool__fpo {
  font-size: 2rem;
  font-weight: bold;
  color: #6c757d;
}

/* References Section */
.section--references {
  background-color: #f8f9fa;
  padding: 4rem 0;
}

.references__title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.references__list {
  list-style: decimal;
  padding-left: 2rem;
}

.references__item {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Navigation Styles */
.nav--anchor {
  background: #007bff;
  padding: 1rem 0;
}

.nav--anchor .nav__container {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav__anchor {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.nav__anchor:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.section--clinical {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

.section__container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding: 0 var(--container-padding);

  .section__header {
    margin: 0px;
    display: flex;
    flex-direction: column;
    gap: 24px;

    .section__title {
      text-align: start;
      color: var(--White, white);
      font-size: 20px;
      font-family: Agenda;
      font-weight: 700;
      word-wrap: break-word;
      max-width: fit-content;
      background-color: var(--color-coral);
      border-radius: 4px;
      padding: 5px 12px 3px 12px;
    }

    .section__header_desc {
      display: flex;
      flex-direction: column;
      gap: 4px;

      .section__subtitle {
        color: var(--color-charcol, #1d2d3a);
        font-size: 40px;
        font-family: Tilt Neon;
        font-weight: 400;
        word-wrap: break-word;
        margin: 0;
        max-width: 1196px;
        text-align: start;
        line-height: normal;

        @media (max-width: 768px) {
          font-size: 28px;
        }
      }
    }
  }

  .cards--grid {
    grid-template-columns: repeat(auto-fit, minmax(282px, 1fr));
    gap: 1.5rem;
  }

  .cards--assessment {
    .card {
      padding: 62px 24px 24px;
      max-width: 282px;
      box-shadow: -2px 2px 22px 10px rgba(0, 0, 0, 0.1);

      .card__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        img {
          max-width: 80px;
        }

        .card__text {
          color: var(--CHARCOAL, #1d2d3a);
          font-size: 20px;
          font-family: Agenda;
          font-weight: 400;
          word-wrap: break-word;
        }
      }
    }

    .card--clinical {
      .card__gradient {
        z-index: 0;
      }

      .card__gradient-layer--primary {
        height: 32px;
        background: linear-gradient(
          90deg,
          #dee1e3 0%,
          #fffbe6 25%,
          #d4cbbf 60%,
          #edecec 80%,
          #d6d4ba 100%
        );
      }

      .card__gradient-layer--secondary {
        height: 6px;
        background: var(--CHARCOAL, #1d2d3a);
      }
    }
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero--interior .hero__title {
    font-size: 2rem;
  }

  .hero--interior .hero__subtitle {
    font-size: 1rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .cards--grid {
    grid-template-columns: 1fr;
  }

  .cards--burden {
    grid-template-columns: 1fr;
  }

  .nav--anchor .nav__container {
    flex-direction: column;
    gap: 1rem;
  }

  .section--clinical {
    padding: 2.5rem 0;

    .decorative_pipe {
      display: none;
    }

    .section__container {
      .cards--grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 1.5rem;
      }

      .cards--assessment .card {
        width: 100%;
        max-width: none;
      }
    }
  }
}

@media (max-width: 992px) {
  .dropdown-toggle:has(.dropdown-toggle-btn.active) {
    display: block;
    top: 45px;
  }

  .nav-header .navbar-internal__link {
    top: 0;
  }

  /* Hide the dropdown by default */
  .mobile-dropdown-content[hidden] {
    display: none;
  }
}

@media (min-width: 1440px) {
  .section--clinical .section__container {
    padding-left: 0;
    padding-right: 0;
  }
}

.section_sub_title {
  font-size: 20px;
  line-height: 24px;
  font-weight: bold;
  color: #1d2d3a;
  text-align: start;
  margin: 0;
}

.tab-wrap {
  border: 2px solid #f16b50;
  border-radius: 999px;
  display: flex;
  justify-content: center;
  max-width: fit-content;
  margin: 0 auto 40px;
}
.tab-wrap button.active {
  background-color: #f16b50;
  color: #fff !important;
}
.tab-wrap button {
  background-color: transparent;
  color: #f16b50 !important;
  font-size: 20px;
  line-height: 24px;
  transform: unset !important;
  &:hover {
    color: #fff !important;
  }
}

.tab-cont .tab_item_title {
  font-size: 32px;
  line-height: normal;
  font-weight: 400;
  color: #1d2d3a;
  /* flex-direction: column; */
  /* display: flex; */
  margin: 0px;
  font-family: var(--font-tilt-neon);

  @media (max-width: 768px) {
    font-size: 24px;
  }
}

.tab-cont .tab_small_text {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: #1d2d3a;
  margin: 0px;
}

.tab-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.flex-box {
  display: flex;
  align-items: center;
  justify-content: center;

  .flex-box-wrapper {
    display: flex;

    @media (min-width: 1200px) {
      min-width: 1104px;
    }

    @media (max-width: 991px) {
      flex-direction: column;
      gap: 24px;
    }
  }
}

.flex-box .tab_item_img {
  max-width: 681px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;

  @media (max-width: 991px) {
    gap: 24px;
  }

  img {
    width: 100%;
    height: auto;
  }
}

.tab_items_cont {
  padding: 24px;
  border-radius: 24px;
  background-color: #feeee6;
  max-width: 366px;
  height: fit-content;
  margin: auto 0;
  align-self: center;

  p {
    font-size: 24px;
    color: #1d2d3a;
    margin: 0;
    line-height: normal;

    span {
      color: #c94808;
    }
  }

  .large_text {
    font-size: 32px;
    color: #c94808;
    line-height: normal;
    margin-bottom: 4px;
    @media (max-width: 768px) {
      font-size: 24px;
      font-family: "Tilt Neon";
    }
  }
}

.tab_item_cta {
  margin-top: 40px;
  button {
    background-color: transparent !important;
    border-color: #f16b50 !important;
    border: 2px solid #f16b50 !important;
    color: #f16b50 !important;
    padding-right: 48px;
    position: relative;

    &::before,
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 20px;
      background-color: #f16b50;
      border-radius: 10px;
      right: 24px;
    }
    &::after {
      width: 20px;
      height: 3px;
      right: 16px;
    }
    &:hover {
      background-color: #f16b50 !important;
      color: #fff !important;
      &::before,
      &::after {
        background-color: #fff;
      }
    }
  }
}
.pipes-container {
  width: 100px;
}
.section-container {
  max-width: 1200px;
  margin: 0 auto;
}
.hero__title {
  color: #1d2d3a;
  text-shadow: none;
  padding-top: 60px;
  @media (max-width: 768px) {
    padding-top: 40px;
  }

  @media (max-width: 425px) {
    font-size: 36px !important;
    line-height: normal;
  }

  span {
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: var(--color-secondary);
    font-weight: 400;
    opacity: 1;
    animation: blinkThreeTimes 6s ease-in-out forwards;
  }
}

@keyframes blinkThreeTimes {
  0% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  20% {
    opacity: 0;
  } /* Blink 1 */
  30% {
    opacity: 1;
  }
  40% {
    opacity: 0;
  } /* Blink 2 */
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  } /* Blink 3 */
  70% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    color: transparent;
  }
}

.attack-reduction-by-dose-graph-wrapper {
  display: flex;
  gap: 40px;
  flex-direction: column;
  flex: 1;
  width: 100%;

  .attack-reduction-by-dose-graph-inner-wrapper {
    display: flex;
    gap: 24px;
    flex-direction: column;

    @media (max-width: 768px) {
      gap: 24px;
    }

    .attack-reduction-by-dose-graph-title {
      color: var(--color-charcol, #1d2d3a);
      font-family: var(--font-agenda);
      font-size: 20px;
      font-style: normal;
      font-weight: 700;
      line-height: normal;
      text-align: center;
      max-width: 800px;

      /* @media (max-width: 425px) {
        text-align: center;
      } */
    }

    .attack-reduction-by-dose-graph {
      display: flex;
      gap: 24px;
      justify-content: center;

      @media (max-width: 991px) {
        flex-direction: column;
      }

      .attack-reduction-by-dose-graph-image {
        .tab-desktop-image {
          display: block;
          @media (max-width: 480px) {
            display: none;
          }
        }

        .tab-mobile-image {
          display: none;
          @media (max-width: 480px) {
            display: block;
          }
        }
      }

      .attack-reduction-by-dose-graph-percent-wrapper {
        display: flex;
        flex: 1;

        @media (max-width: 991px) {
          justify-content: center;
        }

        .attack-reduction-by-dose-graph-percent {
          display: flex;
          /* width: 296px; */
          width: auto;
          padding: 24px;
          flex-direction: column;
          align-items: flex-start;
          gap: 4px;
          border-radius: 24px;
          background: #feeee6;
          margin: auto 0;

          @media (max-width: 991px) {
            width: auto;
          }

          .attack-reduction-by-dose-graph-percent-image {
            display: flex;
            width: 100%;
          }

          .attack-reduction-by-dose-graph-percent-title-desc-wrapper {
            display: flex;
            gap: 4px;
            flex-direction: column;

            @media (max-width: 768px) {
              gap: 0px;
            }

            .attack-reduction-by-dose-graph-percent-title {
              color: var(--color-dark-coral, #c94808);
              font-family: var(--font-tilt-neon);
              font-size: 32px;
              font-style: normal;
              font-weight: 400;
              line-height: normal;

              @media (max-width: 768px) {
                font-size: 24px;
              }
            }
            .attack-reduction-by-dose-graph-percent-desc {
              color: var(--color-charcol, #1d2d3a);
              font-family: var(--font-agenda);
              font-size: 24px;
              font-style: normal;
              font-weight: 400;
              line-height: normal;
              text-align: left;

              @media (max-width: 768px) {
                font-size: 22px;
              }
            }
          }
        }
      }
    }
  }

  .attack-study-design-button {
    display: flex;

    @media (max-width: 991px) {
      justify-content: center;
    }

    a {
      display: flex;
      height: 48px;
      padding: 12px 16px 12px 24px;
      justify-content: center;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      border: 3px solid var(--color-coral, #f16b50);
      background: var(--color-white, #fff);
      width: fit-content;

      @media (max-width: 425px) {
        width: 100%;
      }

      span {
        color: var(--color-coral, #f16b50);
        font-family: var(--font-agenda);
        font-size: 20px;
        font-style: normal;
        font-weight: 700;
        line-height: normal;
      }
    }
  }
}

/* ============ */

.attack-reduction-by-dose-header {
  display: flex;
  flex-direction: row;
  gap: 40px;

  @media (max-width: 991px) {
    flex-direction: column;
  }

  @media (max-width: 768px) {
    gap: 20px;
  }

  .attack-header-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 764px;

    @media (max-width: 991px) {
      min-width: auto;
    }

    .attack-header-tag {
      display: flex;
      padding: 5px 12px 3px 12px;
      justify-content: center;
      align-items: center;
      gap: 10px;
      border-radius: 4px;
      background: var(--color-coral);
      width: fit-content;
      color: var(--color-white);
      font-weight: 700;

      @media (max-width: 768px) {
        font-size: 20px;
      }
    }

    .attack-header-title {
      color: var(--color-charcol);
      font-family: var(--font-tilt-neon);
      font-size: 40px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;
      display: flex;
      flex-direction: column;

      @media (max-width: 768px) {
        font-size: 28px;
        display: block;
      }
    }

    .attack-header-desc {
      color: var(--color-charcol);
      font-family: var(--font-agenda);
      font-size: 20px;
      font-style: normal;
      font-weight: 400;
      line-height: normal;

      @media (max-width: 768px) {
        font-size: 20px;
      }
    }
  }

  .attack-header-right {
    display: flex;

    @media (max-width: 991px) {
      justify-content: center;
    }
  }
}

.bg-quality-wrapper {
  background-image: linear-gradient(
      rgb(255 255 255 / 60%),
      rgb(255 255 255 / 60%)
    ),
    url(/themes/custom/dawnzerahcp_full/images/pages/patient-reported-outcomes/wall-texture.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#quality-of-life {
  flex-direction: column;
  padding: 30px 0 30px 0;

  @media (min-width: 1300px) {
    background-image: url("/themes/custom/dawnzerahcp_full/images/pipes/desktop-left-pipe.svg");
    background-repeat: no-repeat;
  }

  @media (max-width: 991px) {
    padding: 0px 0 30px 0;
  }

  @media (max-width: 768px) {
    padding: 0;
  }
}

.section-disease-control-wrapper {
  box-shadow: 0 0 24px -4px rgba(81, 88, 97, 0.16);
  background-image: url("/themes/custom/dawnzerahcp_full/images/pages/patient-reported-outcomes/DONI_Circles_HCP_RGB 1.svg");
  background-repeat: no-repeat;
  background-position: right;

  @media (max-width: 768px) {
    background-image: linear-gradient(
        rgb(255 255 255 / 80%),
        rgb(255 255 255 / 80%)
      ),
      url("/themes/custom/dawnzerahcp_full/images/pages/patient-reported-outcomes/DONI_Circles_HCP_RGB 1.svg");
    display: flex;
    flex-direction: column;
    padding: 0px;
  }

  @media (max-width: 551px) {
    background-image: none;
  }
}

.disease-control-wrapper {
  /* background-color: #fff; */
  width: 100%;
  padding: 60px 0;

  @media (max-width: 768px) {
    padding: 60px 0 40px 0;
  }
}

.section--pipes {
  display: none;
}

.footnotes {
  display: flex;
  flex-direction: row;
  gap: 0px;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
  flex-direction: column;
  max-width: 1010px;

  @media (min-width: 426px) and (max-width: 768px) {
    /* padding-bottom: 40px; */
  }
}

.footnote {
  color: var(--color-charcol, #515861);
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  position: relative;
  flex: 1;
  line-height: normal;
  margin-left: 40px;
  @media (max-width: 768px) {
    margin-left: 24px;
  }
}

.quality-of-life-wrapper {
  padding: 40px 0 60px 0;

  @media (max-width: 991px) {
    padding: 40px 0 60px 0;
  }

  @media (max-width: 768px) {
    padding-bottom: 0px;
  }
}

.section__banner_wrapper {
  background-image: linear-gradient(
      rgb(255 255 255 / 60%),
      rgb(255 255 255 / 60%)
    ),
    url(/themes/custom/dawnzerahcp_full/images/pages/patient-reported-outcomes/wall-texture.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  .section__banner {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;

    padding-top: 60px;
    padding-bottom: 60px;

    @media (max-width: 768px) {
      margin: 0px;
      /* padding: 0; */
      padding-top: 40px;
      padding-bottom: 40px;
    }

    .outer-banner {
      text-align: center;
      max-width: 800px;
      margin: 0 auto;

      .event_3 {
        border-radius: 22px;
        border: 2px solid #f59785;
        background: #fff;

        .event_4 {
          border-radius: 20px;
          border: 2px solid #fde5e0;
          background: #fff;

          .event_5 {
            border-radius: 18px;
            background: #fff;
            box-shadow: 0 0 8px 0 #c94808 inset, 0 0 8px 0 #e08a67 inset;

            .inner-banner {
              padding: 40px;
              border-radius: 18px;
              display: flex;
              flex-direction: column;
              gap: 24px;

              @media (max-width: 991px) {
                padding: 32px;
              }

              .section_banner_middle {
                display: flex;
                flex-direction: column;
                gap: 32px;

                .section_banner_short_desc {
                  color: var(--color-charcol, #1d2d3a);
                  text-align: center;
                  font-family: var(--font-agenda);
                  font-size: 20px;
                  font-style: normal;
                  font-weight: 400;
                  line-height: normal;
                }
              }

              .section_banner_footnote {
                color: var(--color-charcol, #1d2d3a);
                font-family: var(--font-agenda);
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                text-align: left;
              }

              .large-numbers-key {
                color: #f16b50;
                text-align: center;
                font-family: Tilt Neon;
                font-size: 32px;
                font-style: normal;
                font-weight: 400;
                line-height: normal;
                margin: 0;

                @media (max-width: 768px) {
                  font-size: 1.5rem;
                }
              }
            }
          }
        }
      }
    }
  }
}

.section_banner_button {
  .btn {
    min-height: 48px;
    padding: 12px 16px 10px 24px;
  }
}

@media (max-width: 768px) {
  .section_banner_button .btn {
    white-space: normal;
  }
}

.mobile-bg-image {
  margin: auto;

  @media (min-width: 551px) {
    display: none;
  }
}

.hero__background img {
  object-fit: none;
  height: -webkit-fill-available;

  @media (max-width: 991px) {
    height: 100%;
    object-fit: cover;
  }
}

.hero {
  @media (max-width: 991px) {
    min-height: 115vw;
  }
}

@media (max-width: 768px) {
  .tab-cont .tab_small_text {
    line-height: normal;
  }
}

.btn-wrapper {
  display: flex;
  justify-content: flex-start;

  @media (max-width: 991px) {
    justify-content: center;
  }
}

.button-container {
  background: #fff;
  border-radius: 999px;
  border: 3px solid #f16b50;
  padding: 12px 16px 12px 24px;
  max-width: 229px;
}

.button {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.btn-text {
  color: #f16b50;
  font-family: Agenda;
  font-size: 20px;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 0;
}

/* Switch Patients Modal Styles */
.switch-patients-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 90%;
  overflow-y: auto;
  max-height: 90vh;
  overscroll-behavior: contain;
  max-width: 1200px;

  .switch-modal-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 2.5rem;
    padding: 2.5rem;

    h2 {
      color: #1d2d3a;
      font-size: 40px;
      font-family: Tilt Neon;
      font-weight: 400;
      word-wrap: break-word;
      margin-block: 0;
    }

    p {
      color: #1d2d3a;
      font-size: 20px;
      font-family: var(--font-agenda);
      font-weight: 400;
      word-wrap: break-word;
      margin-bottom: 0;
      line-height: normal;
      line-height: 1.4;
    }

    .switch-modal-header {
      display: flex;
      flex-direction: row;
      align-items: flex-start;
      justify-content: space-between;
    }

    .inner-chart-container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;

      .inner-chart-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        width: 100%;
        max-width: 823px;

        .chart-heading-container {
          width: 100%;
          display: flex;
          flex-direction: column;
          gap: 0.5rem;

          .chart-heading {
            align-self: stretch;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--color-coral, #f16b50);
            font-size: 2rem;
            font-family: Tilt Neon;
            font-weight: 400;
            word-wrap: break-word;
            max-width: unset;

            sup {
              font-size: initial;
              line-height: normal;
              position: static;
              vertical-align: super;
              top: auto;
            }

            @media (max-width: 768px) {
              margin-bottom: 0;
            }
          }

          .horizontal-bar {
            align-self: stretch;
            height: 0.5rem;
            background: var(--color-charcol);
          }
        }

        .modal-chart-container {
          background: #fff;
          border-radius: 24px;
          padding-inline: 24px;
          width: 100%;
          margin: 0 auto;

          .block-container {
            display: flex;
            flex-direction: row;
            align-items: start;

            .block-1 {
              height: 100%;
              display: flex;
              align-items: center;
              justify-content: center;

              .block-1-inner {
                padding: 2rem;
                border-radius: 1.125rem;
                background: #eeeeee;
                max-width: 223px;
                margin-top: 36px;

                @media (max-width: 768px) {
                  margin-top: 0;
                }
              }
            }

            .connector {
              height: 100%;
              margin-top: 129px;
              .connector-inner {
                width: 120px;
                height: 2px;
                background: var(--color-coral, #f16b50);
              }
            }

            .block-2 {
              height: 100%;

              .block-2-inner {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 1.5rem;

                .block-2-content {
                  display: flex;
                  flex-direction: column;
                  align-items: center;

                  p {
                    margin: 0;
                  }

                  .font-bold {
                    font-weight: 700;
                  }
                }

                .block-2-cell {
                  min-width: min(279px, 100%);

                  .switch-patient-flow-chart-block-2 {
                    align-self: stretch;
                    padding: 2px;
                    background: white;
                    box-shadow: 0px 0px 8px #e08a67;
                    outline: 2px #e2422d solid;
                    overflow: hidden;
                    border-radius: 1.5rem;
                    outline-offset: -2px;
                    flex-direction: column;
                    justify-content: flex-start;
                    align-items: flex-start;
                    display: flex;

                    .common-chart-1 {
                      align-self: stretch;
                      padding: 2px;
                      background: white;
                      overflow: hidden;
                      border-radius: 22px;
                      outline: 2px #f59785 solid;
                      outline-offset: -2px;
                      justify-content: flex-start;
                      align-items: flex-start;
                      display: inline-flex;

                      .common-chart-2 {
                        flex: 1 1 0;
                        padding: 2px;
                        background: white;
                        overflow: hidden;
                        border-radius: 1.25rem;
                        outline: 2px #fde5e0 solid;
                        outline-offset: -2px;
                        justify-content: flex-start;
                        align-items: flex-start;
                        display: flex;

                        .independent-4 {
                          font-weight: 700;
                          flex: 1 1 0;
                          padding: 1.25rem 2rem 1.25rem 2rem;
                          background: #f16b50;
                          box-shadow: 0px 0px 8px #e08a67 inset;
                          overflow: hidden;
                          border-radius: 1.125rem;
                          flex-direction: column;
                          justify-content: flex-start;
                          align-items: flex-start;
                          gap: 1.5rem;
                          display: inline-flex;

                          p {
                            font-weight: 700;
                            max-width: 320px;
                            text-align: center;
                            color: white;
                          }
                        }
                      }
                    }
                  }
                }
              }
            }

            @media (max-width: 768px) {
              flex-direction: column;
              align-items: center;

              .connector {
                margin: 0;
                .connector-inner {
                  width: 2px;
                  height: 40px;
                }
              }
            }
          }
        }

        @media (max-width: 768px) {
          gap: 1.5rem;
          .chart-heading-container {
            .chart-heading {
              font-size: 1.5rem;
            }
          }
        }
      }
    }

    .lower-content {
      ul {
        margin-bottom: 0;
        font-size: 20px;

        li {
          margin-bottom: 0.5rem;
          line-height: 1.4;
        }

        li::marker {
          color: var(--color-coral, #f16b50);
        }
      }

      sup {
        font-size: smaller;
      }
    }

    @media (max-width: 768px) {
      gap: 1.5rem;
      padding: 1.5rem;

      h2 {
        font-size: 28px;
      }
    }
  }

  .font-bold {
    font-weight: 700;
  }

  @media (max-width: 768px) {
    padding: 0;
  }
}

.switch-patients-modal.open {
  display: block;
}

.switch-patients-backdrop {
  display: none;
  position: fixed;
  z-index: 1999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.switch-patients-backdrop.open {
  display: block;
}

.switch-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.switch-modal-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  height: 40px;
  width: 40px;

  .cross-icon {
    width: 40px;
    height: 40px;

    @media (max-width: 768px) {
      height: 24px;
      width: 24px;
      max-width: unset;
    }
  }

  @media (max-width: 768px) {
    margin-top: -10px;
  }
}

.pro-sup {
  top: -0.46em;
  font-size: 60%;
}
.mobile_hide_not {
  display: none;
}
@media (max-width: 768px) {
  .mobile_hide_not {
    display: inline;
    margin-right: 5px;
  }
  .mobile_hide {
    display: none;
  }
}

body.modal-open {
  overflow: hidden;
}

.switch-patients-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 1rem;        /* rounded corners */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;           /* clip content to keep corners rounded */
  box-sizing: border-box;
}

/* inner wrapper handles scroll */
.switch-modal-wrapper {
  max-height: 90vh;
  overflow: hidden;
  padding: 1rem 1.5rem;       /* add some padding so text doesn’t touch border */
  border-radius: inherit;     /* keeps smooth corners inside */
}

@media (max-width: 768px) {
  .switch-patients-modal {
    width: 95%;
    max-width: 95%;
    border-radius: 0.75rem;   /* smaller radius on mobile */
  }

  .switch-modal-wrapper {
    max-height: 85vh;
    padding: 1rem;
    overflow-y: auto;
  }
}
