.quiz-section {
    position: relative;
}

.quiz-intro h2 {
    color: #163a6b;
    font-weight: 600;
}

.quiz-intro .lead {
    color: #3d4f66;
}

.quiz {
    min-height: 420px;
    overflow-x: hidden;
    color: #212529;
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: 0 12px 32px rgba(16, 52, 104, 0.08);
}

.quiz .text-red {
    color: #1a7aff;
}

.quiz .text-gray,
.quiz .text-gray a {
    font-size: 16px;
    color: #1a7aff;
}

.quiz .invalid-feedback {
    display: none;
    margin-top: .25rem;
    font-size: .875rem;
    color: #dc3545;
}

.quiz a {
    text-decoration: underline;
}

.quiz .calc-success {
    padding: 4rem 1rem;
}

.quiz .calc-success p {
    font-size: 1.35rem;
    font-weight: 500;
    color: #163a6b;
    line-height: 1.45;
}

.quiz .prog-bar {
    padding-top: 4px;
    padding-bottom: 8px;
}

@media (min-width: 768px) {
    .quiz {
        padding: 1.75rem 2rem 2rem;
        min-height: 460px;
    }

    .quiz .calc-success p {
        font-size: 1.75rem;
    }
}

.quiz .prog-bar .progressbar {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 20px;
    font-weight: 600;
}

.quiz .prog-bar .progressbar .text {
    color: #1a7aff;
    margin-bottom: 6px;
}

.quiz .prog-bar .progressbar .bar,
.quiz .prog-bar .progressbar .bar .range {
    height: 8px;
    border-radius: 99px;
    background-color: #e8eef6;
}

.quiz .prog-bar .progressbar .bar {
    height: 10px;
    width: 100%;
    max-width: 220px;
    border: 0;
    cursor: pointer;
}

.quiz .prog-bar .progressbar .bar .range {
    background-color: #1a7aff;
    transition: width .35s ease;
}

.quiz .step-label {
    min-height: 0;
    display: flex;
    font-size: 1.35rem;
    font-weight: 600;
    align-items: center;
    color: #163a6b;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .quiz .step-label {
        font-size: 1.75rem;
        margin-bottom: 0;
    }
}

.quiz .main input {
    font-size: 16px;
    padding: 0.55rem 0.75rem;
    border: 1px solid #c5d3e6;
    border-radius: 8px;
}

.quiz .main input::placeholder {
    font-size: 15px;
    color: #8aa0bb;
}

.quiz .main .step {
    display: none;
}

.quiz .main .step.active {
    display: flex;
}

.quiz .main .step .variant > div {
    position: relative;
    display: block;
    margin: 10px 0;
    cursor: pointer;
    border: 1px solid #d7e2f0;
    background-color: #f7faff;
    border-radius: 12px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.quiz .main .step .variant > div:hover,
.quiz .main .step .variant > div:has(input:checked) {
    background-color: #eef5ff;
    border-color: #1a7aff;
    box-shadow: 0 8px 18px rgba(26, 122, 255, 0.12);
    transform: translateY(-1px);
}

.quiz .main .step .variant > div input {
    display: none;
}

.quiz .main .step .variant > div input:checked + label {
    border-color: transparent;
}

.quiz .main .step .variant > div label {
    position: relative;
    margin: 0;
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    box-sizing: border-box;
    cursor: pointer;
}

.quiz .main .step .variant > div p {
    font-size: 1.05rem;
    color: #163a6b;
    text-align: center;
    width: 100%;
    padding: 1.15rem 0.75rem;
    margin: 0;
    font-weight: 500;
}

.quiz-contacts-card {
    background: #f7faff;
    border: 1px solid #d7e2f0;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 0.75rem;
}

.quiz-contacts-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d4f66;
}

.quiz-contacts-card .form-check-label {
    font-weight: 400;
    font-size: 0.92rem;
    line-height: 1.4;
}

.quiz-contacts-card .form-check-label a {
    color: #1a7aff;
}

.quiz .quiz-back {
    color: #1a7aff;
    font-weight: 600;
}

.quiz .aside {
    position: relative;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity .3s;
    padding-left: 35px;
    padding-top: 50px;
}

@media (min-width: 768px) {
    .quiz .aside {
        padding-top: 0;
    }
}

.quiz .aside b {
    font-size: 1.2rem;
    padding-bottom: 3px;
    border-bottom: 2px solid #1a7aff;
}

.quiz .aside ul {
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

.quiz .aside ul li {
    position: relative;
    padding-bottom: 10px;
    color: #f8f9fa;
    cursor: pointer;
    line-height: 20px;
}

@media (max-width: 767px) {
    .quiz .aside ul li {
        float: left;
        margin-right: 20px;
    }
}

.quiz .aside ul li.prev {
    color: #204eb7;
    font-weight: 100;
}

.quiz .aside ul li.active {
    color: #f8f9fa;
    font-weight: 400;
}

.quiz b {
    font-size: 24px !important;
}

.quiz .aside li {
    display: block;
    width: 100%;
    font-size: 20px !important;
}
