/*
 * Test „Jaké řešení e-shopu se vám hodí“ (/vyber-reseni).
 * Načítá se jen na stránkách testu.
 */

.advisor {
    max-width: 860px;
    margin: 30px auto 0;
    padding: 0 15px;
}

.advisor-group h2 {
    margin: 46px 0 6px;
    font-size: 19px;
    letter-spacing: .1em;
    text-align: left;
}

.advisor-question {
    margin: 0;
    padding: 22px 0 6px;
    border: 0;
    border-bottom: 1px solid #e1e1e1;
}

.advisor-question legend {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 0 0 14px;
    border: 0;
    color: #222;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.advisor-number {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #11a7e9 0%, #ab6ae7 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    line-height: 28px;
    text-align: center;
}

.advisor-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 0 14px 40px;
}

.advisor-option {
    position: relative;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Přepínač zůstává přístupný čtečkám a klávesnici, vizuálně ho nahrazuje štítek. */
.advisor-option input {
    position: absolute;
    opacity: 0;
}

.advisor-option > span {
    display: block;
    padding: 9px 18px;
    border: 1px solid #ccc;
    border-radius: 30px;
    background: #fff;
    color: #222;
    font-size: 15px;
    line-height: 1.4;
    transition: all .2s;
}

.advisor-option:hover > span {
    border-color: #1a78b8;
}

.advisor-option input:checked + span {
    border-color: #1a78b8;
    background: #1a78b8;
    color: #fff;
}

.advisor-option input:focus-visible + span {
    outline: 2px solid #1a78b8;
    outline-offset: 3px;
}

.advisor-submit {
    margin: 40px 0 0;
    text-align: center;
}

.advisor-submit p {
    margin: 14px 0 0;
    color: #595959;
    font-size: 14px;
}

/* ---------- Výsledek ---------- */

.advisor-actions {
    margin-top: 30px;
}

.advisor-actions .btn {
    margin: 0 10px 10px 0;
}

.advisor-ranking {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 15px;
    list-style: none;
}

.advisor-ranking li {
    margin-bottom: 14px;
    padding: 20px 24px;
    border: 1px solid #ddd;
    background: #fff;
}

.advisor-ranking li.is-best {
    border-color: #1a78b8;
}

.advisor-ranking-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
}

.advisor-ranking h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.advisor-ranking h3 a {
    color: #101010;
}

.advisor-match {
    color: #1a78b8;
    font-size: 18px;
    font-weight: 900;
}

.advisor-bar {
    height: 8px;
    margin: 10px 0 0;
    border-radius: 4px;
    background: #ececec;
}

.advisor-bar span {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(to right, #11a7e9 0%, #ab6ae7 100%);
}

.advisor-ranking p {
    margin: 12px 0 0;
    color: #444;
    font-size: 15px;
    line-height: 1.6;
}

.advisor-answers dl {
    margin: 0 0 12px;
}

.advisor-answers dt {
    margin-top: 10px;
    color: #595959;
    font-size: 13px;
    font-weight: 600;
}

.advisor-answers dd {
    margin: 2px 0 0;
    color: #101010;
    font-size: 15px;
}

@media (max-width: 767px) {
    .advisor-options {
        padding-left: 0;
    }

    .advisor-option > span {
        font-size: 14px;
    }
}
