/* Основна обгортка опитувальника */
.iief5-wrapper { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 20px; 
    background: #ffffff; 
    border-radius: 10px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: inherit;
}

.iief5-form { width: 100%; }

.iief5-answers { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    width: 100%; 
    box-sizing: border-box; 
}

/* Картка варіанту відповіді */
.iief5-answer-card { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 16px; 
    border: 1px solid #333333; 
    border-radius: 8px; 
    cursor: pointer; 
    flex: 0 0 100%; 
    background: #fff; 
    transition: all 0.3s ease; 
}

.iief5-answer-card input[type=radio] { 
    width: 20px; 
    height: 20px; 
    accent-color: #8B2635; 
    margin: 0;
}

.iief5-answer-card span { 
    font-size: 16px !important; 
    color: #333333 !important; 
    line-height: 1.2;
}

/* Ефект наведення */
.iief5-answer-card:hover:not(:has(input:checked)) { 
    background: #f9f9f9; 
    border-color: #666;
}

/* Стиль для ВИБРАНОГО варіанту (синхронізація з iief15) */
.iief5-answer-card:has(input[type="radio"]:checked) {
    border-color: #8B2635;
    background-color: #ffe0e0;
}

.iief5-answer-card input[type="radio"]:checked + .iief5-answer-label {
    font-weight: bold;
    color: #8B2635 !important;
}

/* Стилі питання */
.iief5-q { 
    font-size: 20px !important; 
    color: #333333; 
    margin-bottom: 15px; 
    font-weight: bold; 
    line-height: 1.3;
}

.iief5-card { 
    margin-bottom: 35px !important; 
}

/* Кнопка "ПРОАНАЛІЗУВАТИ РЕЗУЛЬТАТ" по центру */
.iief5-submit-container {
    text-align: center;
    margin-top: 20px;
}

.iief5-submit { 
    background: #8B2635; 
    color: #fff; 
    border: 1px solid #333333;
    padding: 14px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    text-transform: uppercase;
}

.iief5-submit:hover {
    background: #6D1F28;
}

/* Блок результату у стилі iief15 */
.iief5-result { 
    margin-top: 30px; 
    padding: 25px; 
    border: 2px solid #8B2635; 
    border-radius: 10px; 
    background-color: #fff8f8; 
    display: none; /* Показується через JS */
}

.iief5-result-header { 
    color: #8B2635; 
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
    font-size: 24px;
}

.iief5-interpretation {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

.iief5-interpretation strong {
    color: #8B2635;
}