.decision-tree-div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}

.section-decision-tree {
  background: var(--color-blue-97, #f2f7fc);
}

.decision-tree-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

#tree-question {
  color: var(--color-text-base, #1a1a1a);
  text-align: justify;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

#breadcrumbs {
  color: var(--color-background-primary, #06c);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  /* display: flex; */
  display: block;
  gap: 8px;
  align-items: center;
}

.tree-breadcrumb-item {
  word-break: break-all;
  color: var(--color-background-primary, #06c);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
}
.tree-breadcrumb-separator {
  color: var(--color-text-base, #1a1a1a);
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  margin: 0px 8px;
}

.question {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  margin: 10px 0;
}

.choice-button {
  overflow-wrap: break-word;
  min-width: 339px;
  max-width: 339px;
  display: flex;
  padding: 24px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 8px;
  border: 1px solid var(--color-blue-87, #bfdfff);
  background: var(--color-white, #fff);
  color: rgba(0, 102, 204, 1);
}

.choice-button:hover {
  background: var(--color-background-primary, #06c);
  color: rgba(255, 255, 255, 1);
}

.final-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  align-self: stretch;
  width: 100%;
}
.final-link-after {
  color: var(--color-text-base, #1a1a1a);
  text-align: justify;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%; /* 24px */
}
.final-link a {
  color: var(--color-text-primary, #06c);
  text-align: center;
  text-decoration: none;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px; /* 114.286% */
  padding: 12px 16px;
  border-radius: 4px;
  border: 2px solid var(--color-border-primary, #06c);
  background: var(--color-white, #fff);
  display: flex;
  padding: 12px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.final-link a:hover {
  text-decoration: underline;
}

.back-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary, #06c);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  padding: 8px;
}

.back-button:hover {
  background-color: #f0f0f0;
}

.pre-text-decision-tree {
  display: flex;
  flex-direction: column;
  color: var(--color-text-base, #1a1a1a);
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.title-decision-tree {
  color: var(--color-text-base, #1a1a1a);
  text-align: justify;
  font-family: Inter;
  font-size: 32px;
  font-style: normal;
  line-height: 150%;
}

.richedi-tree {
  font-weight: 400;
}

.assistenza-tree {
  font-weight: 800;
}

.button-question-container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.title-bread-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.final-link-text {
  color: var(--color-text-base, #1a1a1a);
  text-align: center;
  font-family: Inter;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: 150%; /* 36px */
}

.per-text {
  color: var(--color-text-base, #1a1a1a);
  font-family: Inter;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px; /* 155.556% */
}
.breadcrumb-per {
  display: none;
  align-items: center;
  gap: 24px;
}

/* Hide the buttons and show the select dropdown on small screens */
@media (max-width: 600px) {
  #tree-question {
    font-size: 16px;
    font-weight: 500;
  }
  .breadcrumb-per {
    display: none;
  }
  .choice-button {
    display: none;
  }
  #options-select {
    display: block;
    margin-top: 16px;
  }

  /* Style the button container */
  .button-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  .advance-button,
  .back-button {
    margin-top: 40px;
    width: 99px;
    height: 40px;
    display: flex;
    padding: 10px 10px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--color-text-inverse, #fff);
    text-align: center;

    /* link/sans-bold-sm */
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 16px;
    border-radius: 8px;
    text-align: center;
  }
  .advance-button {
    background: var(--color-background-primary, #06c);
    color: rgba(255, 255, 255, 1);
  }
  .back-button {
    color: var(--color-background-primary, #06c);
  }
  .decision-tree-div {
    gap: 56px;
  }
}

@media (min-width: 601px) {
  .choice-button {
    display: block;
  }
  #options-select {
    display: none;
  }
  .section-decision-tree {
    padding: 72px 96px;
  }
  .advance-button {
    display: none;
  }
  #decision-tree {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 33px;
  }
}

/* Hide the select dropdown by default */
#options-select {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid var(--color-border-secondary, #5c6f82);
  background: var(--color-background-inverse, #fff);
  color: var(--color-text-base, #1a1a1a);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
