html {
    overflow-y: scroll;
}

.smq_ajax input[type="text"],
.smq_ajax input[type="email"],
.smq_ajax textarea {
    width: 50%;
}

.red {
    border-width: 1px;
    border-color: red;
    border-style: solid;
    width: 50%;
    padding: 10px;
}
.smq_ajax {text-align:center; 
    opacity: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;}
    
.smq_ajax *[type="submit"] *.fa,
.smq_ajax button *.fa {
    vertical-align: middle;
    margin-top: -0.2rem;
    ;
}

#smq_start {
    display: none;
}

.smq_field__error {
    border: 1px solid #ee3f3f !important;
    border-radius: 0 0 8px 8px !important;
}

.smq_fieldmsg__error {
    background: #ee3f3f;
    color: white;
    font-size: 0.8rem;
    border-radius: 8px 8px 0 0 !important;
    margin: 0px auto;
    padding: 0.3rem 0.4rem;
    line-height: 0.8rem;
    position: relative;
}

.smq_fieldmsg__error::after {
    content: "";
    width: 0;
    height: 0;
    border-right: 12px solid transparent;
    border-top: 12px solid #ee3f3f;
    position: absolute;
    bottom: -12px;
    left: 0;
}

.smq_promo__rq {
    border-radius: 0 0 8px 8px !important;
}

.smq_promo__no {
    border: 1px solid #ee3f3f !important;
    border-radius: 0 0 8px 8px !important;
}

.smq_promo__ok {
    border: 1px solid #74a917 !important;
    border-radius: 0 0 8px 8px !important;
}

.smq_promomsg {
    background: #9a9a9a;
    color: #f1f1f1;
    font-size: 0.8rem;
    border-radius: 8px 8px 0 0 !important;
    margin: 0;
    padding: 0.3rem 0.4rem;
    line-height: 0.8rem;
    position: relative;
}

.smq_promomsg::after {
    content: "";
    width: 0;
    height: 0;
    border-right: 12px solid transparent;
    border-top: 12px solid #9a9a9a;
    position: absolute;
    bottom: -12px;
    left: 0;
}

.smq_promomsg__no {
    background: #ee3f3f;
    color: white;
}

.smq_promomsg__no::after {
    border-top-color: #ee3f3f;
}

.smq_promomsg__ok {
    background: #74a917;
    color: #f0ffd5;
}

.smq_promomsg__ok::after {
    border-top-color: #74a917;
}

.smq_question-title {
    font-size: 1.5rem;
    font-weight: 100;
    font-family: "ProximaNovaRegular", sans-serif !important;
    margin: 20px 0 0;
    color: #30587C !important;
}

.smq_question-answers {
    padding: 1px 30px;
}

/* ИЗМЕНЕНО: Добавлен Flexbox для контейнера */
.smq_question-answers {
    display: flex; /* ДОБАВЛЕНО */
    flex-direction: column; /* ДОБАВЛЕНО */
margin:0 auto;
    gap: 10px; /* ДОБАВЛЕНО: расстояние между пунктами */
}
/* КОНЕЦ ИЗМЕНЕНИЙ */

.smq_question-answers p {
    line-height: 1rem;
}

.smq_question-answers input[type="radio"] {
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    margin: 0 1rem 0 0;
    vertical-align: top;
}

.smq_question-answers input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    line-height: 1rem;
    margin: 0 1rem 0 0;
    vertical-align: top;
}

/* ИЗМЕНЕНО: Flexbox для label */
.smq_question-answers label {
    font-weight: 100;
    display: flex; /* БЫЛО: display: inline-block; */
    align-items: center; /* ДОБАВЛЕНО: выравнивание по вертикали */
    justify-content: flex-start; /* ДОБАВЛЕНО: выравнивание по горизонтали */
    cursor: pointer; /* ДОБАВЛЕНО: курсор указателя */
}
/* КОНЕЦ ИЗМЕНЕНИЙ */

.smq_question_btns__back {
    background: #dadada;
    display: inline-block;
    text-align: center;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.2rem 2rem 0.2rem 1rem;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.smq_question_btns__back *.fa {
    margin-right: 0.3rem;
}

button[type="submit"].smq_question_btns__next {
    padding: 0.2rem 1rem 0.2rem 2rem;
}

.smq_question_btns__next *.fa {
    margin-left: 0.3rem;
}

.smq_admin_action-info {
    background: #ebebeb;
    font-size: 0.8rem;
    line-height: 1rem;
    padding: 4px 4px 4px 8px;
    color: #5b5b5b;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 3px solid #ee3f3f;
}

.smq_admin_btnpanel {
    border-top: 2px solid #d1d1d1;
    margin: 0.2rem -4px -4px -8px;
    padding: 0.25rem 0 0.25rem 0.4rem;
    line-height: 1rem;
    background: #f5f5f5;
    border-radius: 0 0 8px 8px;
}

.smq_admin_ismaster {
    display: block;
    float: right;
    background: white;
    color: #ee3f3f;
    padding: 0.05rem 0.2rem;
    border-radius: 0.25rem;
    font-weight: 200;
}

.smq_admin_ismaster__beta {
    background: #ee3f3f;
    color: white;
    font-weight: 600;
}

.smq_calltoaction {
    color: #3a3a3a;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 300;

    background: white;
    border-top: 4px solid #ee3f3f;
    line-height: 1.5rem;
    box-shadow: 5px 5px 40px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.smq_calltoaction .smq_fieldmsg__error {
    margin: 0 auto;
}

.smq_calltoaction .rating-xs {
    display: inline;
    font-size: 1.3rem;
}

.smq_calltoaction_button {
    background: #ee3f3f;
    display: inline-block;
    text-align: center;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.2rem 1rem;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: white !important;
    font-weight: 100;
    text-decoration: none !important;
    line-height: 2rem;
}

.smq_calltoaction_button:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 7px 3px 25px;
    background: red;
}

.smq_calltoaction_bigtext {
    font-size: 1.3rem;
    margin: 0 0.5rem;
}

.smq_signature_found {
    display: none;
}

/*
.smq_question_btns__continue {
    background: #ee3f3f;
    display: inline-block;
    text-align: center;
    border: 0;
    border-radius: 0.5rem;
    padding: 0.2rem 1rem;
    font-size: 1rem;
    margin: 0.5rem 0;
    color: white;
    font-weight: 100;
}

.smq_question_btns__continue:hover{
    box-shadow: rgba(0, 0, 0, 0.2) 7px 3px 25px;
    background: red;
}*/

.smq_ajax .smq_admin_action-info input[type="text"],
.smq_ajax .smq_admin_action-info input[type="email"],
.smq_ajax .smq_admin_action-info textarea {
    font: inherit;
    line-height: inherit;
    padding: 0.2rem 0.4rem;
    width: 2.5rem;
    margin: 0;
}

.smq_ajax>.smq_admin_action-info {
    margin-top: 20px;
}

.smq_action {
    font-size: 0.95em;
    margin: 0 1rem 0 0;
    vertical-align: top;
    cursor: pointer;
    color: #666;
}

.smq_label-input {
    float: left;
}

/* ИЗМЕНЕНО: Убрал float для Flexbox */
.smq_label-input {
    float: none; /* БЫЛО: float: left; */
    margin-right: 8px; /* ДОБАВЛЕНО: отступ между радио-кнопкой и текстом */
}
/* КОНЕЦ ИЗМЕНЕНИЙ */

.smq_label-text {
    
    display: block;
}

/* ИЗМЕНЕНО: Адаптивность для мобильных с Flexbox */
@media screen and (max-width: 720px) {
    .smq_label-text {
        margin-left: 0; /* БЫЛО: margin-left: 2rem; */
        display: inline; /* БЫЛО: display: block; */
        margin-bottom: 0; /* БЫЛО: margin-bottom: 38px; */
    }
    
    .smq_question-answers {
        gap: 15px; /* ДОБАВЛЕНО: больше расстояние на мобильных */
    }
}
/* КОНЕЦ ИЗМЕНЕНИЙ */

.smq__single-del-p,
.smq__single-del-p * {
    transition: color 0s;
    -webkit-transition: color 0s;
}

.smq__single-del-p .smq_action {
    transition: color 0.2s;
    -webkit-transition: color 0.2s;
}

.smq_action:hover {
    color: #ee3f3f;
}

.smq_action__trash {
    display: inline;
}

.smq_action__untrash {
    display: none;
}

.smq_trash .smq_action__trash {
    display: none;
}

.smq_trash .smq_action__untrash {
    display: inline;
}

.smq_trash input {
    visibility: hidden;
}

.smq_trash p {
    margin: 0.7rem 0 !important;
}

.smq_trash {
    border-top: 1px solid silver;
    font-size: 0.8rem;
}

.smq__trashedOption {
    color: #9a9a9a;
}

.smq_result_actions {
    text-align: center;
    margin: 0.5rem 0;
}

.smq_result_gopay_button,
.smq_result_feedback_button {
    min-width: 400px;
    line-height: 2rem;
    padding: 0.4rem 1.7rem;
    animation-delay: 1s;
    animation-name: tada;
}

.smq_result_gopay_button b,
.smq_result_gopay_button,
.smq_result_feedback_button b {
    color: white !important;
    font-size: 1.5rem;
}

.smq_result_feedback input {
    padding: 0;
    border: 0;
}

.smq_ajax .smq_result_feedback input[type="text"],
.smq_ajax .smq_result_feedback input[type="email"],
.smq_ajax .smq_result_feedback textarea {
    width: 100%;
}

.smq_result_feedback textarea {
    height: 9rem;
}

.smq_result_feedback .row .smq_fieldmsg__error {
    width: 100% !important;
}

.smq_result_feedback .rating-container .smq_fieldmsg__error {
    display: inline;
    position: absolute;
    margin-top: -1.3rem;
}

.smq_result_feedback .rating-container .rating-stars {
    border: 1px solid transparent;
}

.smq_result_feedback .f-ico {
    vertical-align: top;
    margin-right: .8rem;
    margin-top: 0.2rem;
    color: #5a5a5a;
    font-size: 1.1rem;
}

.smq_result_feedback input:focus,
.smq_result_feedback input:invalid {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
}

.smq_result_form {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.smq_result_form .col-md-1 {
    text-align: right;
    padding: 0;
}

.smq_result_form .col-md-11 {
    padding: 0;
}

#content .smq_container iframe[src*="youtube.com"] {
    top: 0;
    left: 0;
    width: 100%;
    height: 675px !important;
}

@media print {

    .smq_result_actions,
    #content .smq_container iframe[src*="youtube.com"] {
        display: none !important;
    }
}


/* Адаптивность для мобильных версий */
@media screen and (min-width: 0px) and (max-width: 720px) {

    .smq_ajax input[type="text"],
    .smq_ajax input[type="email"],
    .smq_ajax textarea {
        width: 100%;
        margin-right: 3%;
    }

    .smq_result_gopay_button,
    .smq_result_feedback_button {
        min-width: 100%;
        line-height: 2rem;
        padding: 0.4rem 1.7rem;
        animation-delay: 1s;
        animation-name: tada;
    }
}