@import url("colors.css");

h1 {
  font-size: 56px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--partner-bulstradlifebgpostbank-heading);
  padding-bottom: 10px;
}

@media (max-width: 767px) {
  h1 {
    font-size: 36px;
    font-weight: 600;
    line-height: 48px;
  }
}

h2 {
  color: var(--partner-bulstradlifebgpostbank-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.01em;
  text-align: center;
}

@media (max-width: 767px) {
  h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.01em;
    text-align: left;
  }
}

h3 {
  color: var(--partner-bulstradlifebgpostbank-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 36px;
  text-align: left;
}

.special-offer, .vote, .specialists, .sections {
  max-width: 1280px;
  margin: auto;
}

/*
  the background image is in the .introduction and needs to be stretched to full width
  also the background color in the specialists section
  this is fixed with css instead of rewriting the html structure
*/
.homepage > div {
  width: 100%;
  padding-left: unset;
  padding-right: unset;

  & > div:not(.swiper-wrapper, .swiper-pagination, .sticky-continue-container > div, .sections-container > .header, .sections > .header) {
    display: flex;
    flex-flow: column;
    align-items: center;

    & > div:not(.sections > .header) {
      width: 1170px;
      padding-left: 15px;
      padding-right: 15px;
    }

    @media (max-width: 767px) {
      & > div:not(.sections > .header) {
        width: unset;
      }

      /* button quick fix */
      & > div.medical-opinion-button {
        width: 100%;

        & > a {
          width: 100%;
          text-align: center;
        }
      }
    }
  }
}

/*introduction*/

.introduction {
  background: url('./homepage/introduction.jpg');
  background-size: cover;
  color: #fff;
  margin: auto;
  min-height: 710px;
}

@media (max-width: 767px) {
  .introduction {
    background: url('./homepage/introduction-mobile.png');
    background-size: cover;
    min-height: unset;
    background-position: top center;
  }
}

.introduction .header {
  padding-top: 135px;
  padding-bottom: 90px;
}

@media (max-width: 767px) {
  .introduction .header {
    height: 660px;
    display: flex;
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.introduction .header .header-container {
  margin: auto 448px 0 0;
}

@media (max-width: 767px) {
  .introduction .header .header-container {
    margin: 0;
    margin-bottom: 25px;
  }
}

@media (min-width: 769px) and (max-width: 1200px) {
  .introduction .header .header-container {
    margin-right: 0;
  }
}

.introduction p {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  color: var(--partner-bulstradlifebgpostbank-body);
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  .introduction p {
    font-size: 18px;
    line-height: 28px;
  }
}

.continue-button {
  padding: 13px 26px;
  background: var(--partner-bulstradlifebgpostbank-primary);
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  color: white !important;
  text-align: center;
}

.continue-button div {
  margin: auto;
  display: flex;
}

.continue-button img {
  margin-left: 5px;
}

.introduction .button-section p {
  margin: auto 0 auto 0;
  padding-left: 15px;
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
  text-align: left;
}

@media (max-width: 767px) {
  .introduction .button-section p {
    padding: 16px 0;
  }
}

.introduction .header .button-section {
  display: flex;
}

@media (max-width: 767px) {
  .introduction .header .button-section {
    flex-direction: column;
  }
}

/*sections*/

.sections .boxes {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: -90px;
  position: relative;
}

.sections {
  padding: 0 0 80px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.sections .header h2 {
  margin-top: 80px;
}

.sections .header p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  text-align: center;
  color: var(--partner-bulstradlifebgpostbank-body);
}

@media (max-width: 767px) {
  .sections .header {
    padding-left: 15px;
    padding-right: 15px;
  }

  .sections .header h2 {
    text-align: left;
  }

  .sections .header p {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    text-align: left;
  }
}

.sections .boxes .box {
  position: relative;
  z-index: 3;
  background-color: white;
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-radius: 15px;
}

.sections .boxes .box .percentage {
  font-size: 56px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--partner-bulstradlifebgpostbank-heading);
  margin-bottom: 10px;
}

.sections .boxes .box p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: var(--partner-bulstradlifebgpostbank-body);
  margin: auto;
}

.sections .blocks {
  display: flex;
  flex-direction: column;
  margin: 48px 0;
}

.sections .blocks .block {
  display: flex;
}

@media (min-width: 1024px) {
  .sections .blocks .block:nth-child(2) {
    margin-top: -40px;
    margin-bottom: 25px;
  }

  .sections .blocks .block:nth-child(3) {
    margin-top: -50px;
  }
}

@media (max-width: 767px) {
  .sections .blocks .block {
    flex-direction: column-reverse;
  }

  .sections .blocks .section-2-img {
    width: 100%;
  }

  .sections .blocks .block:nth-child(2) img {
    order: 1;
  }
}

.sections .blocks .block .text {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding-right: 32px;
  width: 50%;
}

@media (max-width: 767px) {
  .sections .blocks .block .text {
    width: 100%;
    text-align: center;
    padding-right: 0;
  }
}

.sections .blocks .block .text h3 {
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .sections .blocks .block .text h3 {
    text-align: left;
  }
}

.sections .blocks .block .text p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.sections .blocks .block p {
  color: var(--partner-bulstradlifebgpostbank-body);
}

.sections .blocks .block img {
  display: flex;
  width: 50%;
  margin: auto 0;
}

@media (max-width: 767px) {
  .sections .blocks .block .section-2-img {
    width: 100%;
    margin-top: 20px;
    scale: 1;
  }
}

@media (max-width: 767px) {
  .sections .blocks .block img {
    width: 100%;
  }
}

.sections .blocks .block .text .checkmarks .checkmark {
  display: flex;
  margin-bottom: 16px;
}

.sections .blocks .block .text .checkmarks .checkmark img {
  width: 28px;
}

.sections .blocks .block .text .checkmarks .checkmark p {
  margin: auto 0 auto 16px;
  text-align: left;
}

.sections .blocks .block .text .checkmarks {
  padding: 8px 16px;
}

.sections a {
  color: white;
  padding: 16px 32px;
  background: var(--partner-bulstradlifebgpostbank-primary);
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: left;
}

.medical-opinion-button {
  display: inline-block;
}

.medical-opinion-button {
  display: inline-block;
}

@media (max-width: 767px) {
  .medical-opinion-button {
    display: flex;
    margin: auto;
  }
}

/*specialists*/

.specialists-container {
  & .specialists {
    & > div {
      & > .container {
        padding-left: 0;
        padding-right: 0;
        width: unset;

        & .row {
          display: flex;
          gap: 30px;
          flex-wrap: wrap;
          margin-left: 0;
          margin-right: 0;

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

          &::before {
            content: unset;
            display: unset;
          }

          & .col-sm-4 {
            width: unset;
            padding-left: 0;
            padding-right: 0;
            flex: 0 0 calc((100% / 3) - (60px / 3)); /* 2 x gap / 3 */

            @media (max-width: 767px) {
              flex: 0 0 100%;
            }
          }

          & .col-sm-12 {
            padding-left: 0;
          }
        }
      }
    }
  }
}

.specialists {
}

.specialists .header p {
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  text-align: left;
  color: var(--partner-bulstradlifebgpostbank-body);
  padding-bottom: 5px;
}

@media (max-width: 767px) {
  .specialists .header p {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
    text-align: left;
  }
}

.specialists .header h2 {
  font-size: 40px;
  font-weight: 600;
  line-height: 56px;
  letter-spacing: -0.01em;
  color: var(--partner-bulstradlifebgpostbank-text-2);
  text-align: left;
}

@media (max-width: 767px) {
  .specialists .header h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    text-align: left;
  }
}

.specialists-container .container {
  margin: 0;
}

.pointer-events-none {
  pointer-events: none;
}

.fill-button-secondary-light {
  fill: var(--partner-bulstradlifebgpostbank-secondary) !important;
  fill-opacity: 0.1 !important;
}

.fill-button-secondary {
  fill: var(--partner-bulstradlifebgpostbank-secondary) !important;
}

.text-secondary {
}

.button {
  cursor: auto !important;
}

button,
[type='button'],
[type='reset'],
[type='submit'] {
  all: unset;
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
  border: none;
}

/*ranges slider*/

.range-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  padding: 16px 0 80px 0;
  width: 100%;
}

.thumb-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--partner-bulstradlifebgpostbank-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.thumb-label img {
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
}

#slider {
  width: 100%;
  height: 10px;
  background: #EAECF0;
  outline: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  position: relative;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--partner-bulstradlifebgpostbank-secondary);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.not-sure {
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%);
  color: var(--partner-bulstradlifebgpostbank-body);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: left;
}

.thumb-left {
  position: absolute;
  left: 16px;
  top: 48px;
  transform: translateX(-50%);
}

.thank-you-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
}

@media (max-width: 768px) {
  .thank-you-text {
    margin-top: 30px;
  }
}

.thumb-right {
  position: absolute;
  right: 16px;
  top: 48px;
  transform: translateX(50%);
}

.slider-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  background-color: var(--partner-bulstradlifebgpostbank-secondary);
  color: white;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  display: block;
}

.slider-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  top: 36px;
  border-width: 8px;
  border-style: solid;
  border-color: var(--partner-bulstradlifebgpostbank-secondary) transparent transparent transparent;
  transform: translateX(-50%);
}

/*swiper*/

.mySwiper {
  padding: 48px 64px 80px 0 !important;
  background-color: #fff;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  border-radius: 5px;
}

.swiper .box {
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  height: 210px;
  border-radius: 15px;
  border: 2px solid var(--partner-bulstradlifebgpostbank-border);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.swiper .box .percentage {
  font-size: 56px;
  font-weight: 600;
  line-height: 64px;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--partner-bulstradlifebgpostbank-heading);
  width: calc(100vw - 150px);
}

@media (max-width: 1280px) {
  .swiper {
    display: block;
  }

  .boxes {
    display: none;
  }
}

@media (min-width: 990px) {
  .swiper {
    display: none !important;
  }

  .boxes {
    display: grid;
  }
}

.swiper .box p {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: var(--partner-bulstradlifebgpostbank-body);
  margin: auto;
  margin-top: 10px;
}

.swiper .swiper-pagination {
  padding-bottom: 28px;
}

.swiper-pagination-bullet {
  width: 11px !important;
  height: 11px !important;
  margin: 0 4px !important;
  background-color: var(--partner-bulstradlifebgpostbank-border) !important;
}

.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: #8B8B8B;
}

#doctor-list-operations {
  @media (max-width: 767px) {
    margin-bottom: 100px;
  }
}

#doctor-list-operations {
  display: flex;
  flex-direction: column;
}

/*sticky continue */

.sticky-continue-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(7px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px 0;
  z-index: 3;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.sticky-continue-container.visible {
  opacity: 1;
}

.sticky-continue-container div {
  max-width: 1170px;
  padding: 8px 15px;
  display: flex;
  margin: auto;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .sticky-continue-container div {
    padding: 8px 40px;
    flex-direction: column;
  }
}

.sticky-continue-container .continue-button {
  background: var(--partner-bulstradlifebgpostbank-primary);
}

@media (max-width: 768px) {
  .sticky-continue-container .continue-button {
    order: 1;
    width: fit-content;
    margin: auto;
  }
}

.sticky-continue-container p {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  text-align: left;
  color: var(--partner-bulstradlifebgpostbank-body);
  margin: auto 0;
}

@media (max-width: 767px) {
  .sticky-continue-container p {
    margin: 0 auto 16px auto;
    text-align: center;
  }
}

/* Doctor info styling */

.doctor-info {
  position: static;
  transform: none;
  margin: 20px auto;
  padding: 16px;
  width: auto;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  flex-direction: column;
  text-align: left;
}

@media (min-width: 768px) {
  .doctor-info {
    position: absolute;
    top: 50%;
    right: -250px;
    left: auto;
    transform: translateY(-50%);
    padding: 12px 24px;
  }
}

.doctor-info-wrapper {
  right: 23%;
  top: 200px;
  transform: translateX(50%);
  width: auto;
  position: absolute;
  text-align: left;
}

@media (min-width: 768px) {
  .doctor-info-wrapper {
    right: 21%;
    top: 280px;
    transform: translateY(-50%);
  }
}

.doctor-info .role {
  font-size: 12px;
  line-height: 12px;
  font-weight: 300;
  margin: 0;
}

@media (min-width: 768px) {
  .doctor-info .role {
    font-size: 16px;
    line-height: 24px;
  }
}

.doctor-info .name {
  font-size: 16px;
  line-height: 16px;
  font-weight: 700;
  margin: 0;
}

@media (min-width: 768px) {
  .doctor-info .name {
    font-size: 24px;
    line-height: 24px;
  }
}

.doctor-info .description {
  font-size: 12px;
  line-height: 12px;
  font-style: italic;
  font-weight: 400;
  margin: 0;
}

@media (min-width: 768px) {
  .doctor-info .description {
    font-size: 16px;
    line-height: 24px;
  }
}
