/* ===== Dytri WP Kviz Styles ===== */
:root {
    --dwpk-primary: linear-gradient(to right, #FF775C, #FFA42E);
    --dwpk-text-main: #1e293b;
    --dwpk-card-bg: rgba(255, 255, 255, 0.5);
}

.dwpk_quiz-container {
    position: relative;
    /*padding: 50px;*/
}

/* Прогресс-бар */
.dwpk_progress-wrapper {
    margin-bottom: 35px;
}

.dwpk_progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.dwpk_progress-bar-bg {
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    overflow: hidden;
}

.dwpk_progress-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Контейнер шагов */
.dwpk_steps-container {
    position: relative;
    transition: height 0.3s ease-in-out;
}

/* Шаги */
.dwpk_step {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    will-change: opacity;
}

.dwpk_step.dwpk_active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes dwpk_slideUp {
    from { transform: translateY(10px); }
    to { transform: translateY(0); }
}
.dwpk_step.dwpk_active {
    animation: dwpk_slideUp 0.4s ease-out;
}

.dwpk_quiz-container .dwpk_title {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #000000;
}

.dwpk_description {
    margin:5px;
    line-height: 1.1;
}

.dwpk_options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:10px;
    margin:32px 0px;
}

.dwpk_option-card {
    background: var(--dwpk-card-bg);
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.dwpk_option-card:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.dwpk_option-card.dwpk_selected {
    background: #fff;
    border-color: var(--dwpk-primary);
    box-shadow: 0 10px 20px rgba(129, 140, 248, 0.2);
}

.dwpk_dot-box {
    width: 12px;
    height: 12px;
    position: relative;
    flex-shrink: 0;
}

.dwpk_dot {
    width: 100%;
    height: 100%;
    background: #cbd5e1;
    border-radius: 50%;
    transition: 0.3s;
}

.dwpk_option-card.dwpk_selected .dwpk_dot {
    background: var(--dwpk-primary);
    transform: scale(1.2);
}

.dwpk_option-card.dwpk_selected .dwpk_dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--dwpk-primary);
    animation: dwpk_pulse 2s infinite;
    z-index: -1;
}

@keyframes dwpk_pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3.5); opacity: 0; }
}

.dwpk_label-group {
    display: flex;
    flex-direction: column;
}

.dwpk_label {
    font-weight: 600;
    font-size: 1rem;
    color: #334155;
}

/* Кнопки */
.dwpk_controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.dwpk_btn {
    padding: 14px 32px;
    border-radius: 14px;
    border: none;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.dwpk_btn-prev {
    background: #CCC;
    color: black !important;
}

.dwpk_btn-prev:hover {
    background: #EDEDED;
}

.dwpk_btn-next,
.dwpk_btn-submit {
    background: var(--dwpk-primary);
    color: white;
    box-shadow: 0 8px 16px rgba(129, 140, 248, 0.3);
}

.dwpk_btn-next:hover,
.dwpk_btn-submit:hover {
    /*filter: brightness(0.95);*/
    /*transform: translateY(-2px);*/
}

.dwpk_btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* Результат */
.dwpk_result-screen {
    text-align: center;
}

.dwpk_final-price {
    font-size: 3.5rem;
    background: linear-gradient(to right, #0094de, #9333ea);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: -1px;
}

.dwpk_summary {
	  display: flex;
    flex-wrap: wrap;
	flex-direction: column;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    padding: 24px;
    margin-bottom: 30px;
    text-align: left;
}

.dwpk_summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dwpk_summary-item:last-child { border-bottom:0px; }
.dwpk_summary-title { margin-bottom:10px; }
/* Приз */
.dwpk_prize {
    margin: 20px 0;
    padding: 10px;
    background: #f0f8ff;
    border: 1px solid #b8daff;
    border-radius: 5px;
    text-align: center;
    font-size: 1.2rem;
}

/* Сообщения */
.dwpk_messages {
    margin:20px 0;
    border-radius:5px;
    text-align:center;
}
.dwpk_success-message {
	padding: 10px; border-radius: 5px;
    background:#d4edda;
    color:#155724;
    border:1px solid #c3e6cb;
}
.dwpk_error-message {
	padding: 10px; border-radius: 5px;
    background:#f8d7da;
    color:#721c24;
    border:1px solid #f5c6cb;
}
.dwpk_info-message {
	padding: 10px; border-radius: 5px;
    background:#d1ecf1;
    color:#0c5460;
    border:1px solid #bee5eb;
}
.dwpk_loading {
	padding: 10px; border-radius: 5px;
    background:#e2e3e5;
    color:#383d41;
    border:1px solid #d6d8db;
}

/* Форма */
.dwpk_lead-form input,
.dwpk_lead-form textarea {
    width: calc(100% - 22px) !important;
    padding: 10px !important;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    background: white;
    margin-bottom: 12px;
    font-size: 1rem;
    outline: none;
}

.dwpk_lead-form input:focus,
.dwpk_lead-form textarea:focus {
    border-color: var(--dwpk-primary);
}

.dwpk_form-errors {
    color: #b91c1c;
    margin-bottom: 10px;
}

.dwpk_hidden {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 600px) {
	.dwpk_quiz-container { padding: 25px 15px; }
	.dwpk_summary { font-size:0.75em; }
	.dwpk_summary-item { display:block; }
	.dwpk_summary-item span, .dwpk_summary-item strong { display:block; width:100%;  }
	.dwpk_option-card { padding: 10px; }
	.dwpk_description { margin-bottom: 10px; }
	.dwpk_options-grid { grid-template-columns: 1fr; }
	.dwpk_quiz-container .dwpk_title { font-size: 1.4rem; padding-bottom: 25px; }
}