.sqb-quiz {
    max-width: 720px;
    margin: 20px auto;
    padding: 24px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    font-family: inherit;
}
.sqb-quiz-header { margin-bottom: 20px; }
.sqb-quiz-title { margin: 0 0 8px; font-size: 22px; }
.sqb-quiz-description { color: #666; font-size: 15px; }

.sqb-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.35;
}
.sqb-question-desc {
    color: #666;
    margin-bottom: 16px;
    font-size: 14px;
}
.sqb-answers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 560px) {
    .sqb-answers:has(.sqb-answer-with-image) {
        grid-template-columns: 1fr 1fr;
    }
    .sqb-answers .sqb-answer-text-only { grid-column: 1 / -1; }
}

.sqb-answer {
    text-align: left;
    padding: 14px 18px;
    border: 1px solid #dcdcde;
    background: #fff;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: all .15s ease;
    color: inherit;
    font-family: inherit;
}
.sqb-answer:hover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateY(-1px);
}

.sqb-answer-with-image {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.sqb-answer-with-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
}
.sqb-answer-with-image.sqb-answer-image-text img { max-height: 180px; }
.sqb-answer-with-image .sqb-answer-text {
    padding: 10px 14px;
    display: block;
}
.sqb-answer-with-image.sqb-answer-image-only .sqb-answer-text { display: none; }

.sqb-back {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 0;
}
.sqb-back:hover { color: #2271b1; }

.sqb-result h4 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #2271b1;
}
.sqb-result-desc { margin-bottom: 16px; font-size: 15px; line-height: 1.5; }

.sqb-path {
    background: #f6f7f7;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}
.sqb-path ul { margin: 8px 0 0 18px; }

.sqb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sqb-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    background: #2271b1;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background .15s ease;
}
.sqb-btn:hover { background: #135e96; }
.sqb-btn:disabled { opacity: .6; cursor: not-allowed; }
.sqb-btn.sqb-restart {
    background: #f0f0f1;
    color: #2c3338;
}
.sqb-btn.sqb-restart:hover { background: #e5e5e5; }

.sqb-thanks { padding: 10px 0; color: #00a32a; font-weight: 600; }
.sqb-error { color: #b32d2e; padding: 12px; background: #fcf0f1; border-radius: 6px; }

.sqb-contact-form {
    display: flex; flex-direction: column; gap: 10px;
    margin: 16px 0; max-width: 420px;
}
.sqb-contact-form input[type="text"],
.sqb-contact-form input[type="tel"],
.sqb-contact-form input[type="email"] {
    padding: 12px 14px;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
    width: 100%;
}
.sqb-contact-form input[type="text"]:focus,
.sqb-contact-form input[type="tel"]:focus,
.sqb-contact-form input[type="email"]:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34,113,177,.15);
    outline: none;
}
.sqb-contact-form .sqb-btn { width: 100%; }

/* Согласие на обработку персональных данных */
.sqb-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
    cursor: pointer;
}
.sqb-consent-input {
    flex: 0 0 auto;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.sqb-consent-text a {
    color: #2271b1;
    text-decoration: underline;
}
.sqb-consent-text a:hover { text-decoration: none; }

/* reCAPTCHA */
.sqb-recaptcha-wrap {
    margin: 14px 0;
    display: flex;
    justify-content: flex-start;
}
.sqb-recaptcha {
    min-height: 78px;
}
