

/* Основной контейнер формы */
.voting-form-box {
    max-width: 900px;
    width: 100%;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0, 20, 50, 0.15);
    padding: 30px;
    box-sizing: border-box;
}

/* Заголовки разделов (1. Общая часть, 2. Использование валют и т.д.) */
.vote-form h3 {
    font-size: 1.6em;
    color: #0b2d4b;
    margin: 0 0 15px 0;
    border-bottom: 3px solid #2a6e9b;
    padding-bottom: 8px;
    display: inline-block;
    width: 100%;
}

/* Стили для каждого отдельного вопроса - ТОЛЬКО ДЛЯ ПЕРВОГО УРОВНЯ */
.vote-question-list > .vote-item-vote {
    background: #ffffff;
    border: 1px solid #e6eaf0;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 25px;
    list-style: none;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.vote-question-list > .vote-item-vote:hover {
    box-shadow: 0 8px 18px -6px rgba(26, 68, 128, 0.15);
}

/* Текст самого вопроса */
.vote-item-title {
    font-weight: 600;
    font-size: 1.2rem;
    color: #1f3a5f;

    line-height: 1.5;
}
.vote-item-title p {
    margin: 5px 0;
}
.starrequired {
    color: #d32f2f;
    font-weight: bold;
    margin-left: 3px;
}

/* === ОСНОВНОЙ КОНТЕЙНЕР ДЛЯ ВАРИАНТОВ ОТВЕТОВ === */
.vote-answers-list {
    padding-left: 0;
    margin-top: 10px;
}

/* === СТИЛИ ДЛЯ ЭЛЕМЕНТОВ СПИСКА (li) === */
.vote-answers-list li {
    list-style: none;
    width: 100%;
}

/* === СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ ВОПРОСА 1.3 (ВИДЫ ДЕЯТЕЛЬНОСТИ) === */
#q65 .vote-answers-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px 20px;
    margin-top: 15px;
}

#q65 .vote-answers-list li {
    width: auto;
    margin: 0;
    break-inside: avoid;
}

#q65 .vote-answer-item-radio, #q65 .vote-answer-item-checkbox {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю для многострочного текста */
    gap: 10px;
    padding: 8px 12px;
    background: #f8fafd;
    border-radius: 12px;
    transition: background 0.2s ease;
    height: 100%;
}

#q65 .vote-answer-item-radio:hover, #q65 .vote-answer-item-checkbox:hover {
    background: #e9eff7;
}

#q65 .vote-answer-item-radio input[type="radio"], #q65 .vote-answer-item-radio input[type="checkbox"] {
    margin-top: 3px; /* Небольшой отступ для выравнивания с текстом */
    flex-shrink: 0;
}

#q65 .vote-answer-item-radio label, #q65 .vote-answer-item-checkbox label {
    white-space: normal;
    line-height: 1.4;
    font-size: 0.95rem;
    color: #1f3a5f;
    flex: 1;
}

/* === СТИЛИ ДЛЯ ПОЛЕЙ ВВОДА === */

/* Обычное текстовое поле */
.vote-answer-item-textfield {
    display: block;
    width: 100%;
}
.vote-answer-item-textfield input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    border: 1px solid #d0d9e5;
    border-radius: 16px;
    box-sizing: border-box;
    transition: 0.2s;
    background: #ffffff;
}
.vote-answer-item-textfield input[type="text"]:focus {
    border-color: #2a6e9b;
    outline: none;
    background: #ffffff;
}

/* Большое текстовое поле */
.vote-answer-item-memo {
    display: block;
    width: 100%;
}
.vote-answer-item-memo textarea {
    width: 100%;
    min-height: 180px;
    padding: 18px 20px;
    font-size: 1.1rem;
    border: 1px solid #d0d9e5;
    border-radius: 18px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    background: #ffffff;
    transition: 0.2s;
    line-height: 1.5;
}
.vote-answer-item-memo textarea:focus {
    border-color: #2a6e9b;
    outline: none;
    background: #ffffff;
}

/* Контактная информация (вопрос 1.5) - легкий оттенок */
li:has(textarea[name="vote_memo_291"]) textarea {
    background: #fdf9ed;
    border-color: #c4b5a0;
}
li:has(textarea[name="vote_memo_291"]) textarea:focus {
    background: #ffffff;
    border-color: #2a6e9b;
}

/* === СТИЛИ ДЛЯ РАДИО-КНОПОК (общие) === */
.vote-answers-list li:has(.vote-answer-item-radio), .vote-answers-list li:has(.vote-answer-item-checkbox) {
    display: inline-flex;
    width: auto;
    margin-right: 25px;
    align-items: center;
}

.vote-answer-item-radio, .vote-answer-item-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
}
.vote-answer-item-radio input[type="radio"], .vote-answer-item-radio input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2a6e9b;
    margin: 0;
    cursor: pointer;
}
.vote-answer-item-radio label, .vote-answer-item-checkbox label {
    color: #2b3f5c;
    cursor: pointer;
    white-space: nowrap;
}

/* === СПЕЦИАЛЬНЫЙ БЛОК ДЛЯ ГРУППЫ ВОПРОСОВ 4.4 === */
.info-rating-group {
    background: #ecf3fa;
    border-radius: 28px;
    padding: 25px;
    margin: 30px 0 20px 0;
    border-left: 8px solid #0f4c81;
}

/* Сбрасываем стили для вложенных вопросов внутри группы 4.4 */
.info-rating-group .vote-item-vote {
    background: white;
    border: 1px solid #cbdbe9;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: none;
}
.info-rating-group .vote-item-vote:last-child {
    margin-bottom: 0;
}
.info-rating-group .vote-item-vote:hover {
    box-shadow: 0 4px 12px -4px rgba(26, 68, 128, 0.1);
}

.info-rating-group .vote-item-title {
    color: #0b2d4b;
    font-size: 1.3rem;
}

.info-rating-group .vote-item-title p {
    background: white;
    padding: 8px 12px;
    border-radius: 40px;
    display: inline-block;
    font-size: 0.9rem;
    margin: 5px 0;
    color: #2c5779;
    border: 1px solid #b8d1e8;
}

.info-rating-group .vote-answers-list li:has(.vote-answer-item-radio) {
    margin-right: 15px;
}

/* === СТИЛИ ДЛЯ ВЛОЖЕННЫХ СПИСКОВ === */
.vote-answers-list .vote-answers-list {
    margin-top: 0;
}

/* === КНОПКА ОТПРАВКИ === */
.vote-vote-footer {
    margin-top: 35px;
    text-align: center;
}


/* === ССЫЛКИ внутри вопросов === */
.vote-item-title a {
    color: #0f4c81;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px dashed #8ab3cf;
}
.vote-item-title a:hover {
    border-bottom: 2px solid #0f4c81;
}

/* === ВСПОМОГАТЕЛЬНЫЕ СТИЛИ === */
.vote-clear-float {
    clear: both;
}
ol, ul {
    padding-inline-start: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}
hr {
    border: 1px solid #e2e8f0;
    margin: 30px 0;
}
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #b0c8dd, transparent);
    margin: 35px 0 15px 0;
    border-radius: 4px;
}