.test-page {
    color: var(--text);
}

.test-page .entry-title {
    font-size: 20px;
}

@media (max-width: 1279px) {
    .test-page {
        margin-top: 60px;
    }
}

.test {
    display: grid;
    grid-template-columns: auto;
    /* grid-template-rows: auto auto auto; */
    grid-template-areas: 
    "progressbar"
    "question"
    "answers"
    "img";
    column-gap: 40px;
    row-gap: 30px;
    margin-top: 20px;
    max-width: 1024px;
    margin-right: auto;
    margin-left: auto;
    min-height: 550px;
}

@media(max-width: 767px) {
 .test {
    row-gap: 10px;
    margin-top: 0;
 }
}

#progress {
    grid-area: progressbar;
    width: 100%;
    accent-color: var(--accent-color);
    height: 20px;
}

.test__question {
    grid-area: question;
    /* justify-self: center; */
    font-weight: 600;
    font-size: 18px;
    line-height: 1.3;
    min-height: 94px;

}

@media(max-width: 767px) {
 .test__question {
    text-align: center;
    font-size: 16px;
    min-height: 0;
 }
}

.test__answers-form {
    grid-area: answers;
    display: flex;
    flex-direction: column;
    position: relative;
}

.test__image {
    grid-area: img;
    border-radius: 20px;
    box-shadow: -8px 6px 13px 0 rgba(0, 0, 0, .102), 5px -2px 9px 0 rgba(0, 0, 0, .09);
    justify-self: center;
    align-self: flex-end;
    /* width: 100%; */
}

.test__answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 20px;
    column-gap: 20px;
    margin-bottom: 30px;
}

@media(max-width: 767px) {
 .test__answers {
    grid-template-columns: auto;
    row-gap: 15px;
    margin-bottom: 20px;
 }
}

@media (hover: hover) {
    .test__answers input:hover {
    cursor: pointer;
    }
    .test__answers label:hover {
        cursor: pointer;
    }
}


.test__answer {
    /* padding: 20px 20px; */
    border-radius: 30px;
    display: flex;
    align-items: center;
    min-height: 72px;
    box-shadow: -5px 4px 8px 0px rgba(0, 0, 0, .102), 3px -2px 3px 0 rgb(249 249 249);
    background-color: var(--white);
}

@media(max-width: 767px) {
 .test__answer {
    font-size: 16px;
    min-height: 52px;
    text-align: center;
    /* padding: 10px 20px; */
 }
}

/* hover эффект */
@media (hover: hover) {
    .test__answer:has(label:hover) {
        transform: translateY(-2px);
        /* box-shadow: 0 4px 12px rgba(0,0,0,0.12); */
    }
}

/* выбранное состояние */
.test__answer:has(input[type="radio"]:checked)  {
    background: #ecfdf5;
    color: var(--accent-color);
}

.test__answers label {
    width: 100%;
    /* min-height: 32px;
    display: contents; */
    padding: 15px 20px;
    line-height: 1.3;
}

.test__answers label span {
  text-decoration: line-through;
}

@media(max-width: 767px) {
    .test__answers label {
        padding: 10px 20px;
    }
}

.test__button {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    background-color: var(--text);
    color: #fff;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
    .test__button:hover {
        transform: translateY(-2px);
        /* box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3); */
    }
}


/* .test__error {
    color: var(--red-color);
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: -32px;
    transition: opacity 0.5s;
    margin: 10px 0;
    left: 0;
    right: 0;
    text-align: center;
}

@media(max-width: 767px) {
 .test__error {
    bottom: -18px;
    text-align: center;
    width: 100%;
 }
}

.test__error_show {
    visibility: visible;
    opacity: 1;
} */

/* test start screen*/
.test__intro {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 500px minmax(auto, 600px);
    column-gap: 50px;
    row-gap: 20px;
    grid-template-areas: 
    "img text"
    "img btn";
}

@media (max-width:1279px) {
    .test__intro {
        grid-template-columns: 400px minmax(auto, 600px);
        column-gap: 40px;
    }
}

@media (max-width:767px) {
    .test__intro {
        grid-template-columns: auto;
        row-gap: 20px;
        grid-template-areas: 
        "img"
        "text"
        "btn";
    }
}

.test__cover {
    grid-area: img;
}

.test__cover img {
    border-radius: 20px;
}

.test__init {
    grid-area: btn;
    align-self: end;
    margin-bottom: 15px;
}

.test__init-btn {
    display: block;
    width: 100%;
    max-height: 45px;
    padding: 14px;
    border-radius: 25px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    /* background: linear-gradient(90deg, #34d399, #10b981); */
    background-color: var(--text);
    color: #fff;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
    .test__init-btn:hover {
        transform: translateY(-2px);
        /* box-shadow: 0 6px 14px rgba(16,185,129,0.3); */
    }
}

.test__disclaimer-text {
    grid-area: text;
    font-size: 16px;
    line-height: 1.3;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    margin-top: 15px;
}

.test__disclaimer-text_mob {
    grid-area: text;
    display: none;
    text-align: center;
}

@media (max-width: 767px) {
    .test__disclaimer-text_mob {
        display: block;
        margin-top: 0;
    }
    .test__disclaimer-text_desktop {
        display: none;
    }
}

.test__disclaimer-agree {
    font-size: 14px;
    text-align: center;
    margin-top: 10px;
}

.test__select-gen {
    width: fit-content;
    margin: auto;
    display: flex;
    column-gap: 30px;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    margin-top: 50px;
}

@media (max-width: 767px) {
    .test__select-gen {
        width: 100%;
    }
}

.test__select-gen-wrap {
    display: flex;
    column-gap: 50px;
}

@media (max-width: 767px) {
    .test__select-gen-wrap {
        width: 100%;
        column-gap: 10px;
        justify-content: space-around;
    }
}

.test__select-gen legend {
    font-weight: 600;
    font-size: 22px;
}

.test__gen {
    padding: 14px 16px;
    border-radius: 25px;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-align: center;
    transition: all .2s ease;
    background-color: var(--background);
}

.test__select-gen label {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.test__gen label::before {
    content: "";
    display: block;
    width: 130px;
    height: 130px;
    background-size: cover;
    cursor: pointer;
}
.test__gen-f label::before {
    background-image: url(../../images/test/test_vw.webp);
}
.test__gen-m label::before {
    background-image: url(../../images/test/test_vm.webp);
}

/* hover эффект */

@media (hover: hover) {
    .test__gen:hover {
        transform: translateY(-2px);
        /* box-shadow: 0 4px 12px rgba(0,0,0,0.12); */
    }
}

/* выбранное состояние */
.test__gen:has(input[type="radio"]:checked)   {
    /* background: #ecfdf5; */
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.test__select-gen-btn {
    display: block;
    width: 100%;
    padding: 14px 50px;
    border-radius: 25px;
    border: none;
    font-size: 18px;
    font-weight: 600;
    background-color: var(--text);
    color: #fff;
    cursor: pointer;
    transition: transform .2s ease;
}

@media (hover: hover) {
    .test__select-gen-btn:hover {
        transform: translateY(-2px);
    }
}


/* страница с результатами теста */

.test__result {
    display: grid;
    grid-template-columns: 500px 1fr;
    grid-template-areas:
    "img title"
    "img descr"
    "img button"
    "upsells upsells";
    column-gap: 100px;
    row-gap: 30px;
    margin: 40px 0;
}

@media (max-width: 1279px) {
    .test__result {
        grid-template-columns: 450px 1fr;
        column-gap: 50px;
    }
    .result-test .test__result {
        margin-top: 60px;
    }
}

@media (max-width: 900px) {
    .test__result {
        grid-template-columns: 350px 1fr;
        column-gap:20px;
    }
}

@media (max-width: 767px) {
    .test__result {
        display: flex;
        flex-direction: column;
        row-gap: 20px;
    }
}

.test__result-name {
    color: var(--text);
    text-transform: none;
    font-size: 45px;
    font-weight: 600;
    grid-area: title;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .test__result-name {
        font-size: 25px;
    }
}

.test__result-descr {
  grid-area: descr;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 600px;
}

@media (max-width: 900px) {
    .test__result-descr {
        max-width: 100%;
        font-size: 16px;
    }
}

.test__result-image {
  grid-area: img;
  border-radius: 20px;
  margin: 0;
}

@media (max-width: 767px) {
    .test__result-image {
        max-width: 750px;
    }
}

.test__result-share {
    grid-area: button;
}

.test__result .take-test {
    background-color: var(--text);
    color: var(--white);
    border-radius: 50px;
    width: 300px;
    margin-bottom: 30px;
}

@media (max-width: 900px) {
    .test__result .take-test {
        width: 100%;
    }
}

/* .result-test .test-share > p {
    margin-bottom: 20px;
} */

.test__result-socials {
    display: flex;
    column-gap: 20px;
    margin-top: 15px;
}

#copyShareIcon {
    width: 20px;
    height: 20px;
    mask-image: url(../../images/icons/copy-link.svg);
    display: block;
    mask-size: cover;
    background-color: var(--text);
    margin-right: 10px;
    float: left;
}

#copyShareBtn {
    border: none;
    background-color: transparent;
    font-size: 20px;
    font-weight: 600;
    padding: 2px 0 0 0;
    color: var(--text);
}

.test__result-upsells {
    grid-area: upsells;
    margin-top: 30px;
}

.test-plants-wrap .my_header__title {
    margin-bottom: 30px;
}

.test-plants-btn {
    background-color: var(--text);
    color: var(--white);
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: fit-content;
    padding: 10px 30px;
}

/* radio button */

/* для элемента input c type="radio" */
/* .test input[type=radio] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    width: fit-content;
  } */

  /* для элемента label связанного с .test input[type=radio] */
  /* .test input[type=radio]+label {
    display: inline-flex;
    align-items: center;
    user-select: none;
    width: 100%;
  }

  .test__select-gen input[type=radio]+label {
    width: fit-content;
  } */

  
  /* создание в label псевдоэлемента  before со следующими стилями */
  /* .test input[type=radio]+label::before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #adb5bd;
    border-radius: 50%;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
  } */

  /* стили при наведении курсора на радио */
  /* .test input[type=radio]:not(:disabled):not(:checked)+label:hover::before {
    border-color: #b3d7ff;
  } */

  /* стили для активной радиокнопки (при нажатии на неё) */
  /* .test input[type=radio]:not(:disabled):active+label::before {
    background-color: #b3d7ff;
    border-color: #b3d7ff;
  } */

  /* стили для радиокнопки, находящейся в фокусе */
  /* .test input[type=radio]:focus+label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  } */

  /* стили для радиокнопки, находящейся в фокусе и не находящейся в состоянии checked */
  /* .test input[type=radio]:focus:not(:checked)+label::before {
    border-color: #80bdff;
  } */

  /* стили для радиокнопки, находящейся в состоянии checked */
  /* .test input[type=radio]:checked+label::before {
    border-color: var(--text);
    background-color: var(--text);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
  } */

  /* стили для радиокнопки, находящейся в состоянии disabled */
  /* .test input[type=radio]:disabled+label::before {
    background-color: #e9ecef;
  } */


/* контейнер для радио-кнопок */
.test-page input[type="radio"] {
  display: none;
}

/* .test__answer label {
    box-shadow: -5px 4px 8px 0px rgba(0, 0, 0, .102), 3px -2px 3px 0 rgb(249 249 249);
    height: fit-content;
} */
