/* Базовый контейнер */
.mp-quiz-form-container {
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
    max-width: 100%;
    margin: 0 auto;
    color: #fff;
}

/* Заголовок и прогресс */
.mp-quiz-progress {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.mp-quiz-question-title {
    font-size: 24px;
    margin-top: 0;
    margin-bottom: 50px;
}

/* Ответы (Две колонки) */
.mp-quiz-answers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

/* Стилизация кликабельного label для checkbox (выглядит как radio) */
.mp-quiz-answer-label {
	font-family: inherit;
    display: flex;
    align-items: center;
    padding: 15px;
    border: 0px solid rgba(0, 0, 0, 0.1);
    background: #FFF;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    width: 100%;
    box-sizing: border-box;
	font-size: 16px;
    font-weight: 500;
    line-height: 24px;
	color: #000;
}

.mp-quiz-answer-label:hover {
    background-color: #f7f7f7;
}

/* Скрытие оригинального checkbox */
.mp-quiz-answer-label input[type="checkbox"] {
    display: none;
}

/* Стилизация кастомного "radio" круга */
.mp-quiz-custom-radio {
    height: 12px;
    width: 12px;
    border: 1px solid #9A9A9A;
    background-color: #9A9A9A;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    position: relative;
    transition: border-color 0.3s;
}

/* Внутренняя точка (активный выбранный input radio) */
.mp-quiz-custom-radio:after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s;
}

/* Активный выбранный стиль */
.mp-quiz-answer-label input[type="checkbox"]:checked ~ .mp-quiz-custom-radio {
    border-color: #F24822; /* Цвет рамки активного */
}

/* Выделение цветом внутри radio точка (активный) */
.mp-quiz-answer-label input[type="checkbox"]:checked ~ .mp-quiz-custom-radio:after {
    background-color: #F24822; /* Цвет точки */
}

/* Выделение всего блока при выборе */
.mp-quiz-answer-label input[type="checkbox"]:checked ~ .mp-quiz-answer-text {
    font-weight: bold;
    color: #000000;
}

.mp-quiz-answer-label input[type="checkbox"]:checked {
    border-color: #F24822;
    background-color: #e5f5ff; /* Легкий фон */
}


/* Навигация и кнопки */
.mp-quiz-nav {
    display: flex;
    justify-content: flex-end; /* Кнопки справа */
    gap: 10px;
}

.mp-quiz-nav button {
    font-family: inherit;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.mp-quiz-prev-btn {
    font-family: inherit;
    font-weight: bold;
    background-color: #fff !important;
    color: #000 !important;
}

.mp-quiz-next-btn::after {
	content: "→";
    display: inline-block;
    padding-left: 10px;
}

.mp-quiz-prev-btn::before {
	content: "←";
    display: inline-block;
    padding-right: 10px;
}

.mp-quiz-prev-btn:hover {
    background-color: #F24822 !important;
	color: #fff !important;
}

.mp-quiz-next-btn, .mp-quiz-submit-btn {
    background-color: #F24822 !important;
    color: #fff !important;
}

.mp-quiz-next-btn:hover, .mp-quiz-submit-btn:hover {
    background-color: #fff !important;
	color: #000 !important;
}

/* Финальная форма заявки (две колонки) */
.mp-quiz-final-grid {
    grid-template-columns: 1fr 1fr; /* Уже настроено выше */
}

.mp-quiz-col label {
    display: block;
    margin-bottom: 15px;
    font-weight: bold;
}

.mp-quiz-col input[type="text"],
.mp-quiz-col input[type="tel"],
.mp-quiz-col select,
.mp-quiz-col textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 25px;
    border: 0px solid transparent;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    color: rgb(0 0 0 / 60%);
}

input[type=date]:focus,input[type=email]:focus,input[type=number]:focus,input[type=password]:focus,input[type=search]:focus,input[type=tel]:focus,input[type=text]:focus,input[type=url]:focus,select:focus,textarea:focus {
    border-color: transparent !important;
	border: none !important;
	outline: none !important;
}

.mp-quiz-col textarea {
    min-height: 50px;
    resize: vertical;
}

/* Сообщения */
.mp-quiz-message {
    width: fit-content;
    padding: 15px;
    margin-top: 15px;
    border-radius: 100px;
    font-weight: bold;
    text-align: center;
}
.mp-quiz-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.mp-quiz-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

@media screen and (max-width: 600px) {
	.mp-quiz-question-title {
		font-size: 18px;
		margin-bottom: 30px;
	}
	
	.mp-quiz-answers-grid {
		width: 100%;
		display: block;
	}
	
	.mp-quiz-answer-label {
		margin-bottom: 20px;
		padding: 10px;
		font-size: 14px;
    	font-weight: 500;
    	line-height: 18px;
	}
	
	.mp-quiz-nav {
    	display: flex;
        justify-content: center;
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 20px;
	}
	
	.mp-quiz-nav button {
		width: 100%;
	}
}