.quiz-section .h2 {
    margin-bottom: 30px;
}

.quiz-section .description {
    font-size: 16px;
    color: var(--woodsmoke);
    text-align: center;
    margin-bottom: 30px;
}

.quiz {
    background: var(--aethens-gray);
    min-height: 460px;
    display: flex;
}

.quiz-progress-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 16px;
    color: var(--woodsmoke);
}

.quiz-progress {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.quiz-progress-step {
    width: 12px;
    height: 12px;
    background: transparent;
    border: 1px solid var(--lochmara);
}

.quiz-progress-step.active,
.quiz-progress-step.continued {
    background: var(--lochmara);
}

.quiz-step {
    padding: 40px 20px 40px;
    display: none;
}

.quiz-step.active {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.quiz-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--woodsmoke);
}

.quiz-body {
    flex-grow: 1;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.quiz-options--grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

.quiz-option {
    height: max-content;
    background: #f9fafb;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.quiz-option:hover {
    background: #eef2f7;
}

.quiz-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.quiz-nav .btns {
    display: flex;
    gap: 16px;
}

.quiz-nav .btn {
    font-weight: 600;
    width: 200px;
    text-align: center;
    padding: 11px;
    border: 1px solid var(--lochmara);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quiz-nav .btn.quiz-prev {
    border-color: var(--gray);
    color: var(--gray);
    background-color: transparent;
}
.quiz-nav .btn.quiz-prev:hover {
    border-color: var(--lochmara);
}

.step-1__item input[type="radio"] {
    display: none;
}

.step-item {
    position: relative;
    color: var(--woodsmoke);
    font-size: 16px;
}

.step-item .step-img {
    width: 100px;
    height: 100px;
    min-width: 100px;
}
.step-item .step-img img {
    object-fit: cover;
}

.step-item input[type="radio"]:checked + .step-img + .step-body + .step-checkmark {
    opacity: 1;
}

.step-checkmark {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    pointer-events: none;
    opacity: 0;
    transition: .2s ease-in-out;
}

.step-item {
    background: #FFFFFFCC;
    border: 1px solid var(--alto);
    padding: 20px 12px;
    gap: 12px;
    display: flex;
    align-items: center;
}

.quiz-options--grid .step-item {
    width: calc((100% - 40px) / 3);
}

/* radio-item */

.quiz-radio input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 24px;
    height: 24px;
    border: 1px solid var(--lochmara);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.quiz-radio input[type="radio"]:checked + .custom-radio {
    border-width: 2px;
}
.quiz-radio input[type="radio"]:checked + .custom-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--lochmara);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.quiz-radio:hover .custom-radio {
    box-shadow: 0 0 0 4px rgba(0,124,214,0.2);
}

.quiz-radio {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* step-1 */

.step-1__item {
    padding: 12px;
}

.quiz .input-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
}
.quiz .input-wrap label {
    color: var(--woodsmoke);
}
.quiz .input-wrap input {
    border: 1px solid var(--alto);
    padding: 11px;
}
.quiz .input-wrap input:focus {
    outline: 1px solid  var(--lochmara);
    transition: unset;
}
.quiz .input-wrap input::placeholder {
    color: #555555;
}

/* step 3 */

.quiz .step-3__item input {
    padding: 27px 11px;
}

/* step 5 */

.quiz-step[data-step='5'] {
    padding: 0;
    flex-direction: row;
}

.quiz-step[data-step='5'] .step-left {
    background-color: var(--lochmara);
    padding: 40px 20px;
    max-width: 440px;
    width: 33.33%;
    min-width: 360px;
}

.quiz-step[data-step='5'] .step-left {
    background-color: var(--lochmara);
    padding: 40px 20px;
    max-width: 440px;
    width: 33.33%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-step[data-step='5'] .step-left .description {
    flex-grow: 1;
    font-size: 16px;
}

.quiz-step[data-step='5'] .step-left * {
    color: #FFF;
    margin-bottom: unset;
}

.quiz-step[data-step='5'] .quiz-nav .btn.quiz-prev {
    border-color: #FFF;
}

.quiz-step[data-step='5'] .quiz-progress-step,
.quiz-step[data-step='5'] .quiz-progress-step {
    background-color: #FFF !important;
    border-color: #FFF !important;
}

.quiz-step[data-step='5'] .step-right {
    padding: 40px 40px;
    flex-grow: 1;
}

.quiz-step[data-step='5'] .quiz-nav .btn.quiz-prev:hover {
    background-color: #FFF !important;
}
.quiz-step[data-step='5'] .quiz-nav .btn.quiz-prev:hover * {
    color: var(--lochmara) !important;
}
.quiz-step[data-step='5'] .quiz-nav .btn.quiz-prev:hover path {
    fill: var(--lochmara) !important;
}

.quiz-step[data-step='5'] .input-wrap {
    gap: 4px;
}

.quiz-step[data-step='5'] input[type="submit"] {
    width: 270px;
    padding: 20px;
    font-weight: 700;
    justify-content: center;
    align-items: center;
    border: unset;
}

.btn.disabled {
    cursor: not-allowed;
    opacity: .6;
}

@media (max-width: 992px) {
    .step-item .step-img {
        min-width: 80px;
        width: 80px;
        height: 80px;
    }

    .quiz-options--grid {
        gap: 12px;
    }

    .quiz-options--grid .step-item {
        width: calc((100% - 12px) / 2);
    }

    .quiz {
        height: 600px;
    }

    .quiz-step {
        padding: 40px 12px;
    }

    .quiz-nav .btns {
        gap: 8px;
    }

    .quiz-step[data-step='5'] .step-right,
    .quiz-step[data-step='5'] .step-left {
        padding: 30px 20px;
    }
}

.quiz-step .title-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (max-width: 767px) {
    .quiz-step[data-step='5'] {
        flex-direction: column;
    }

    .quiz-step[data-step='5'] .step-left {
        width: 100%;
        max-width: unset;
        gap: 12px;
    }

    .quiz-step[data-step='5'] .step-right {
        overflow-y: auto;
    }

    .quiz-step .title-wrap {
        gap: 12px;
        flex-direction: row;
    }
    .quiz-step .title-wrap .icon-step {
        margin-top: 12px;
    }

    .quiz {
        height: 720px;
    }
}

@media (max-width: 599px) {
    .quiz-options--grid .step-item {
        width: 100%;
    }

    .quiz-nav .btn {
        width: max-content;
    }

    .quiz-nav .btn.quiz-prev span {
        display: none;
    }
}

.quiz-options--grid
{
    overflow-y: auto;
    margin-bottom: 24px;
}