/* Пошаговый опросник заявки на главной */
.wizard-card {
   max-width: 780px;
   margin: 0 auto;
   background: #fff;
   border-radius: 20px;
   box-shadow: 0 10px 40px rgba(82, 0, 57, 0.06);
   padding: 40px 44px 34px;
}

.wizard-title {
   font-size: 24px !important;
   line-height: 1.3 !important;
   font-weight: 700;
   color: #172b43;
   margin-bottom: 16px;
}

.wizard-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.wizard-progress-bar { flex: 1; height: 6px; background: #eef0f8; border-radius: 3px; overflow: hidden; }
.wizard-progress-fill { height: 100%; width: 12.5%; background: linear-gradient(90deg, #ff5b2e, #ff8a5c); border-radius: 3px; transition: width .3s ease; }
.wizard-progress-label { font-size: 15px; color: #8a90ad; white-space: nowrap; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wzfade .25s ease; }
@keyframes wzfade { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.wizard-q { font-size: 24px !important; line-height: 1.3 !important; font-weight: 600; color: #172b43; margin-bottom: 20px; }
.wizard-label { display: block; font-size: 18px; font-weight: 500; color: #172b43; margin: 18px 0 8px; }
.wz-req { color: #d64545; }

.wizard-options { display: flex; flex-wrap: wrap; gap: 10px; }
.wz-opt {
   border: 1.5px solid #e5e8f2; background: #fff; border-radius: 14px;
   padding: 16px 18px; cursor: pointer; text-align: left; font-family: inherit;
   font-size: 20px; font-weight: 500; color: #172b43; min-width: 200px; flex: 1 1 200px;
   transition: all .15s ease; position: relative;
}
.wz-opt i { display: block; font-size: 22px; color: #ff5b2e; margin-bottom: 8px; }
.wz-opt span { display: block; font-size: 15px; font-weight: 400; color: #8a90ad; margin-top: 3px; }
.wz-opt:hover { border-color: #ff8a5c; }
.wz-opt.selected { border-color: #ff5b2e; background: #fff5f0; box-shadow: 0 0 0 1px #ff5b2e inset; }
.wz-opt-sm { min-width: 0; flex: 0 1 auto; padding: 10px 18px; font-size: 18px; border-radius: 24px; }

.wizard-input {
   width: 100%; border: 1.5px solid #e5e8f2; border-radius: 12px;
   padding: 12px 16px; font-size: 18px; font-family: inherit; color: #172b43;
   transition: border-color .15s;
}
.wizard-input:focus { outline: none; border-color: #ff8a5c; }
.wizard-input.wz-invalid { border-color: #d64545; }
textarea.wizard-input { resize: vertical; }

.wizard-note { font-size: 14px; color: #8a90ad; margin-top: 16px; }

.wizard-error {
   display: none; margin-top: 18px; background: #fdeaea; color: #d64545;
   border-radius: 10px; padding: 12px 16px; font-size: 16px;
}
.wizard-error a { color: #ff5b2e; font-weight: 500; }

.wizard-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; gap: 12px; }

/* Кнопки навигации: чуть ниже стандартных кнопок темы (60px) */
.wizard-nav .ree-btn {
   line-height: 46px;
   padding: 0 28px;
   font-size: 16px;
}

/* «Назад» — инверсия «Далее»: белый фон, оранжевые бордер и текст */
.wizard-nav .ree-btn.wz-back {
   background: #fff;
   border: 1px solid #ff5b2e;
   color: #ff5b2e;
   line-height: 46px !important; /* перебивает .ree-btn0 { line-height: 48px !important } */
}
.wizard-nav .ree-btn.wz-back:hover {
   background: #fff5f0;
   color: #ff5b2e;
   border-color: #ff5b2e;
}

/* Результат */
.wz-result { text-align: center; padding: 10px 0; }
.wz-result-icon {
   width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
   background: linear-gradient(135deg, #ff5b2e, #ff8a5c); color: #fff;
   display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.wz-result h3 { font-size: 22px !important; line-height: 1.3 !important; color: #172b43; margin-bottom: 14px; }
.wz-result-price { font-size: 38px; font-weight: 700; color: #ff5b2e; }
.wz-result-timeline { font-size: 18px; color: #4b5280; margin-top: 6px; }
.wz-result-summary { font-size: 18px; color: #4b5280; margin-top: 16px; }
.wz-result-note { font-size: 15px; color: #8a90ad; margin-top: 14px; }
.wz-result-next {
   margin-top: 20px; background: #fff5f0; border-radius: 14px;
   padding: 18px 22px; text-align: left;
}
.wz-result-next h4 { font-size: 18px !important; line-height: 1.4 !important; color: #172b43; margin-bottom: 8px; }
.wz-result-next p { font-size: 17px; line-height: 1.5; color: #4b5280; margin: 0; }
.wz-result-actions { margin-top: 22px; }
.wz-result-auth { font-size: 16px; color: #4b5280; margin-top: 18px; }

/* Кнопки «Зарегистрироваться» / «Войти» на экране результата */
.wz-auth-actions {
   display: flex; justify-content: center; align-items: center;
   gap: 12px; flex-wrap: wrap; margin-top: 16px;
}
.wz-auth-actions .ree-btn { line-height: 46px; padding: 0 28px; font-size: 16px; }
.wz-btn-outline {
   background: #fff;
   border: 1px solid #ff5b2e;
   color: #ff5b2e !important;
}
.wz-btn-outline:hover { background: #fff5f0; color: #ff5b2e !important; }

/* Компактный вариант в hero-блоке */
.hero-wizard-wrap { width: 100%; }
.wizard-hero {
   padding: 26px 28px 24px;
   box-shadow: 0 16px 50px rgba(82, 0, 57, 0.12);
}
.wizard-hero .wizard-q { font-size: 21px !important; margin-bottom: 14px; }
.wizard-hero .wizard-label { font-size: 17px; margin: 12px 0 6px; }
.wizard-hero .wz-opt { padding: 12px 14px; font-size: 18px; min-width: 46%; flex: 1 1 46%; }
.wizard-hero .wz-opt i { font-size: 18px; margin-bottom: 5px; }
.wizard-hero .wz-opt span { font-size: 14px; }
.wizard-hero .wz-opt-sm { min-width: 0; flex: 0 1 auto; padding: 8px 14px; font-size: 17px; }
.wizard-hero .wizard-input { padding: 10px 13px; font-size: 17px; }
.wizard-hero .wizard-nav { margin-top: 18px; }
.wizard-hero .wizard-progress { margin-bottom: 18px; }
.wizard-hero .wz-result-price { font-size: 30px; }
.wizard-hero .wz-result-next { padding: 14px 16px; }

@media (max-width: 640px) {
   .wizard-card { padding: 26px 20px; }
   .wizard-q { font-size: 21px !important; }
   .wz-opt { min-width: 100%; }
   .wz-opt-sm { min-width: 0; }
   .wz-result-price { font-size: 30px; }
}

/* Подпись под hero-визардом */
.hero-wizard-note {
   margin-top: 36px;
   font-size: 20px;
   /* line-height: 30px; */
   color: #8a90ad;
   text-align: center;
}

/* Самодостаточные стили кнопок визарда: работают и вне лендинга (в кабинете),
   где style.css темы не подключён. Скоуп .brief-wizard не задевает остальной сайт. */
.brief-wizard .ree-btn {
   display: inline-block;
   font-family: 'Poppins', sans-serif;
   font-weight: 500;
   font-size: 16px;
   color: #fff;
   border-radius: 100px;
   padding: 0 28px;
   line-height: 46px;
   white-space: nowrap;
   text-decoration: none;
   cursor: pointer;
   border: 1px solid transparent;
   transition: all .2s;
}
.brief-wizard .ree-btn-grdt1 {
   background: #ff5b2e;
   border-color: #ff5b2e;
   box-shadow: 0 19px 40px -10px #ffe0d2;
}
.brief-wizard .ree-btn-grdt1:hover { background: #fff; color: #ff5b2e; border-color: #ff5b2e; }
.brief-wizard .wz-reset { color: #8a90ad; text-decoration: underline; }
.brief-wizard .wz-reset:hover { color: #ff5b2e; }
