/**
 * Diag
 */

.diag-form {
  height: 100%;
}
.diag-form__wrapper {
  height: 100%;
}
.diag-form__restart {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--color-white);
  background-color: var(--color-secondary--1);
  border: 0;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 700;
  line-height: normal;
  padding: 5px 10px;
}

/**
 * Diag Header
 */

.diag-form__header {
  padding: 2rem 4rem 0;
}
.diag-form__title {
  font-size: 1.55rem;
  text-align: center;
  font-weight: 400;
  text-transform: uppercase;
  font-style: italic;
  display: flex;
  flex-direction: column;
}
.diag-form__part-title {
  font-size: 2.1rem;
  text-align: center;
  font-weight: 400;
  line-height: 115%;
  text-transform: initial;
  font-style: normal;
  color: var(--color-secondary--1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
}
.diag-form__wrapper--questions-3 .diag-form__part-title {
  font-size: 1.9rem;
}
.diag-form__wrapper--questions-4 .diag-form__title  {
  margin: 1rem 0 0;
}
.diag-form__wrapper--resume .diag-form__header {
  padding-top: 3rem;
}


.diag-form__part-title-line {
  position: relative;
  display: block;
  width: 128px;
  height: 1px;
  background-color: var(--color-secondary--1);
}
.diag-form__wrapper--questions-1 .diag-form__part-title-line,
.diag-form__wrapper--questions-2 .diag-form__part-title-line {
  width: 80px;
}
.diag-form__wrapper--questions-3 .diag-form__part-title-line,
.diag-form__wrapper--questions-6 .diag-form__part-title-line {
  width: 40px;
}
.diag-form__wrapper--questions-4 .diag-form__part-title-line  {
  width: 175px;
}
.diag-form__wrapper--questions-5 .diag-form__part-title-line {
  width: 135px;
}
.diag-form__wrapper--resume .diag-form__part-title-line  {
  width: 250px;
}
.diag-form__part-title-line--right  {
  margin-left: 1rem;
  margin-right: 0;
}
.diag-form__part-title-line--left {
  margin-left: 0;
  margin-right: 1rem;
}
.diag-form__wrapper--homepage .diag-form__part-title-line--left {
  margin-left: 1rem;
  margin-right: 2rem;
}
.diag-form__wrapper--homepage .diag-form__part-title-line--right {
  margin-left: 2rem;
  margin-right: 1rem;
}
.diag-form__part-title-round {
  width: 8px;
  height: 8px;
  display: block;
  border-radius: 100%;
  background-color: var(--color-secondary--1);
}

.diag-form__step {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--color-white);
  width: 35px;
  height: 35px;
  font-size: 1.1rem;
  line-height: normal;
  background-image: url("../../medias/images/header/number-cover.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-style: italic;
  font-weight: 700;
}


/**
 * Content
 */

.diag-form__content {
  padding: 0 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100% - 146.8px);
}
.diag-form__wrapper--questions-3 .diag-form__content,
.diag-form__wrapper--questions-4 .diag-form__content,
.diag-form__wrapper--questions-6 .diag-form__content,
.diag-form__wrapper--resume .diag-form__content {
  justify-content: initial;
}
.diag-form__wrapper--questions-6 .diag-form__content {
  padding: 0 5rem 3rem;
}
.diag-form__wrapper--resume .diag-form__content {
  overflow: scroll;
  height: calc(100% - 233px);
  padding-bottom: 0;
}
.diag-form__text {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.diag-form__wrapper--homepage .diag-form__text {
  margin-top: 10rem;
}

/**
 * Questions/Answers
 */

.diag-form__question {
  text-align: center;
  font-weight: 700;
  font-size: 1.33rem;
  line-height: normal;
  margin: 0;
}
.diag-form__wrapper--questions-1 .diag-form__question:last-child {
  margin-bottom: 5rem;
}
.diag-form__wrapper--questions-5 .diag-form__question:last-child {
  margin-bottom: 3rem;
}
.diag-form__answers {
  margin: 0 auto;
  width: 100%;
}
.diag-form__wrapper--questions-1 .diag-form__answers {
  max-width: 300px;
}
.diag-form__wrapper--questions-2 .diag-form__answers {
  max-width: 200px;
  margin-top: 3rem;
}
.diag-form__wrapper--questions-3 .diag-form__answers {
  max-width: 350px;
  margin-top: 3rem;
}
.diag-form__wrapper--questions-5 .diag-form__answers {
  max-width: 375px;
}
.diag-form__answers-item {
  margin: 3rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item {
  margin: 2rem 0;
}

.diag-form__wrapper--questions-5 .diag-form__answers-item--small {
  margin: 8px 0 0 0;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item--small .description {
  display: grid;
  gap: 10px;
}
.diag-form__answers-item input {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  margin: 0 1rem 0 0;
  border-radius: 0;
  border: none;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("../../medias/images/input/unchecked.svg");
}
.diag-form__answers-item input:checked {
  background-image: url("../../medias/images/input/checked.svg");
}
.diag-form__answers-item label {
  font-weight: 700;
  font-size: 1.25rem;
  line-height: normal;
}
.diag-form__answers-item-description {
  margin-left: 30px;
}
.diag-form__answers-item-description .help {
  display: grid;
  gap: 2rem;
  grid-template-columns: 21% 30% 13%;
  text-align: center;
  font-size: 12px;
}
.diag-form__answers-item-description .help:first-child {
  grid-template-columns: 1fr 1fr;
  text-align: justify;
  gap: 5rem;
}
.diag-form__answers-item-description .description {
  font-weight: 400;
  font-size: 1rem;
  font-style: italic;
  margin: 0.5rem 0;
  line-height: normal;
}
.diag-form__answers-item-description .info {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0.5rem 0 0;
  display: none;
  line-height: normal;
}
.diag-form__answers-item input:checked + label + .diag-form__answers-item-description .info {
  display: block;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item-description{
  display: none;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item-description .description {
  font-size: 0.9rem;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item input:checked + label + .diag-form__answers-item-description{
  display: block;
}


/**
 * Sub Questions/Answers
 */

.diag-form__answers--sub {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, calc(50% - 1rem));
  margin-top: 1rem;
}
.diag-form__wrapper--questions-5 .diag-form__answers--sub {
  margin: 1rem 0 0;
}
.diag-form__answers-item--sub input {
  margin: 0 0.5rem 0 0;
  width: 15px;
  height: 15px;
}
.diag-form__answers-item--sub label {
  font-weight: 400;
  font-size: 0.9rem;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item--sub {
  margin:  0 0.5rem 0 0;
}
.diag-form__wrapper--questions-5 .diag-form__answers-item--sub .small {
  font-size: 12px;
  text-align: center;
  line-height: 14px;
}
.diag-form__wrapper--questions-5 .diag-form__answers--top {
  align-items: baseline;
}
/**
 * Group
 */

.diag-form__group {
  margin: 0.5rem 1rem 1rem;
}
.diag-form__group .diag-form__question {
  text-align: left;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/**
 * Questions/Answers Grid
 */

.diag-form__answers--grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: calc(40% - 0.5rem) calc(60% - 0.5rem);
}
.diag-form__answers--grid .diag-form__answers-item {
  margin: 0;
}
.diag-form__answers--grid .diag-form__answers-item input {
  margin: 0 0.5rem 0 0;
  width: 15px;
  height: 15px;
}
.diag-form__answers--grid .diag-form__answers-item label {
  font-size: 1rem;
}

/**
 * Resume
 */

.diag-form__resume-item {
  border-bottom: 2px solid var(--color-secondary--1);
  padding: 2rem 0;
  display: flex;
  align-items: flex-start;
}
.diag-form__resume-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.diag-form__resume-number {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  width: 35px;
  height: 35px;
  font-size: 1.1rem;
  line-height: normal;
  background-image: url("../../medias/images/header/number-cover.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  font-style: italic;
  font-weight: 700;
  margin-right: 1rem;
}
.diag-form__resume-content {
  
}
.diag-form__resume-content p {
  line-height: normal; 
}
.diag-form__resume-title {
  color: var(--color-secondary--1);
  font-size: 1.33rem;
  font-weight: 700;
  margin: 0.25rem 0 0.5rem;
}
.diag-form__resume-item p[data-resume] {
  display: none;
}
.diag-form__resume-item p[data-resume].js-active {
  display: block;
}
.diag-form__resume-text-bold {
  font-weight: 700;
  margin: 0.5rem 0 0;
  font-size: 1.15rem;
}
.diag-form__resume-text-light {
  font-weight: 300;
  margin: 0.25rem 0;
}
.diag-form__resume-text-medium {
  margin: 0;
}
.diag-form__resume-text-medium:last-child {
  margin-bottom: 1.5rem;
}
.diag-form__resume-item:last-child .diag-form__resume-text-medium:last-child {
  margin-bottom: 0;
}

/**
 * Next button
 */

.diag-form__next-button {
  position: absolute;
  bottom: 1.5rem;
  right: 0.5rem;
  width: 200px;
}


/**
 * Modal
 */

.modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal.js-active {
  display: block;
}
.modal__wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--color-white);
  padding: 3rem 4rem;
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}
.modal__wrapper p {
  margin: 0;
}
.modal__btns {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
}
.modal__btn {
  padding: 1rem 2rem;
  color: var(--color-white);
}
.modal__btn--yes {
  background-color: var(--color-secondary--1);
  margin-right: 1rem;
}
.modal__btn--no {
  background-color: var(--color-primary--1);
  margin-left: 1rem;
}