#msq-quiz-app {
    font-family: 'Manrope', sans-serif;
    max-width: 900px; 
    width: 95%;
    margin: 30px auto;
    background: var(--bg-color, #ffffff); 
    color: var(--text-color, #333333);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    padding: 30px;
    min-height: 400px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.msq-title { 
    font-size: 24px; 
    font-weight: 800; 
    margin-bottom: 25px; 
    color: var(--text-color, #111);
    text-align: center; 
    line-height: 1.3;
}

/* ИСПРАВЛЕНИЕ: Плашки ответов всегда белые с темным текстом */
.msq-card {
    border: 1px solid #ddd; 
    border-radius: 15px; 
    padding: 15px; 
    text-align: center;
    cursor: pointer; 
    transition: all 0.3s ease; 
    background-color: #ffffff !important; /* Строго белый фон плашки */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.msq-card:hover {
    border-color: var(--theme-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.msq-card strong { 
    color: #333333 !important; /* Текст на белой плашке всегда темный */
    font-size: 16px;
}

.msq-back-btn {
    background: none; 
    border: none; 
    color: var(--text-color, #888); 
    cursor: pointer;
    text-decoration: underline;
    margin-top: 20px;
}

.msq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* Стили для картинок в ответах */
.msq-card img { 
    width: 100%; 
    aspect-ratio: 16/9; 
    object-fit: cover; 
    border-radius: 10px; 
    margin-bottom: 15px; 
}

/* Жесткие правила для полей ввода и плейсхолдеров */
.msq-input { 
    width: 100%; 
    padding: 15px; 
    margin-bottom: 15px; 
    border: 1px solid #bbbbbb !important; 
    border-radius: 10px; 
    box-sizing: border-box; 
    background-color: #ffffff !important; 
    color: #000000 !important; 
}

.msq-input::placeholder {
    color: #888888 !important; 
    opacity: 1 !important;
}

.msq-btn { 
    border: none; 
    padding: 20px; 
    border-radius: 12px; 
    width: 100%; 
    font-size: 18px; 
    cursor: pointer; 
    color: #fff !important; 
    background: var(--theme-color); 
    font-weight: bold;
}

/* Цвет текста на странице Спасибо */
.msq-thanks-box { text-align: center; padding: 20px; }
.msq-thanks-box h2, .msq-thanks-box p { color: var(--text-color, #333333) !important; }

@media (max-width: 600px) { .msq-grid { grid-template-columns: 1fr; } }