/* ============================================================
   treatbox-wizard.css
   Калькулятор лікування: 6-кроковий wizard по макету InsideClinics.
   Основна структура: main-колонка (великий кард з табами й кроком)
   + aside-колонка з "Назад/Далі" зверху та карткою "Ваш пакет".
   Внизу кроку 1 — трастова смуга.
   ============================================================ */

:root {
  --tbw-navy:         #033E8C;
  --tbw-navy-dark:    #052C66;
  --tbw-navy-soft:    #e8f0ff;
  --tbw-navy-strip:   #063A86;
  --tbw-text:         #0f172a;
  --tbw-muted:        #64748b;
  --tbw-line:         #e2e8f0;
  --tbw-mint-bg:      #dcfce7;
  --tbw-mint-text:    #0f766e;
  --tbw-card-bg:      #ffffff;
  --tbw-page-bg:      #f6f8fb;
  --tbw-radius:       16px;
  --tbw-radius-sm:    10px;
}

.treatbox--wiz { display: block; margin: 20px 0; }

.treatbox--wiz * { box-sizing: border-box; }

/* ====== Layout: 2 columns ====== */
.treatbox--wiz .tbwiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: flex-start;
}

/* ====== Main card ====== */
.treatbox--wiz .tbwiz-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.treatbox--wiz .tbwiz-card {
  background: var(--tbw-card-bg);
  border-radius: var(--tbw-radius);
  padding: 18px 20px 22px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
  border: 1px solid var(--tbw-line);
}

/* ====== Step tabs ====== */
.tbwiz-steps {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 0 16px;
  padding-bottom: 2px;
}
.tbwiz-steps::-webkit-scrollbar { display: none; }

.tbwiz-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--tbw-line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tbw-muted);
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background .15s, color .15s, border-color .15s;
}
.tbwiz-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef2f8;
  color: var(--tbw-muted);
  font-size: 12.5px;
  font-weight: 700;
  flex: 0 0 22px;
  transition: background .15s, color .15s;
}
.tbwiz-step:hover { color: var(--tbw-text); }
.tbwiz-step.is-current {
  background: var(--tbw-navy);
  color: #fff;
  border-color: var(--tbw-navy);
}
.tbwiz-step.is-current .tbwiz-step__num {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}
.tbwiz-step.is-done {
  background: #fff;
  color: var(--tbw-navy);
  border-color: var(--tbw-navy);
}
.tbwiz-step.is-done .tbwiz-step__num {
  background: var(--tbw-navy);
  color: #fff;
}
.tbwiz-step[disabled] { cursor: not-allowed; opacity: .6; }

/* ====== Panel head: title + badge, subtitle ====== */
.tbwiz-panel { display: none; }
.tbwiz-panel.is-active { display: block; }

.tbwiz-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 6px;
  flex-wrap: wrap;
}
.tbwiz-panel__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--tbw-navy);
  line-height: 1.2;
}
.tbwiz-panel__subtitle {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--tbw-muted);
}

.tbwiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tbw-mint-bg);
  color: var(--tbw-mint-text);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tbwiz-badge svg { flex: 0 0 14px; }

/* ====== STEP 1: Direction (categories grid) ====== */
.tbwiz-dirs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
}
.tbwiz-dir {
  position: relative;
  display: block;
  background: #fff;
  border: 1.5px solid var(--tbw-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tbwiz-dir input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tbwiz-dir__img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  object-position: center;
  margin: 24px auto 16px;
  background: transparent;
}
.tbwiz-dir__name {
  display: block;
  text-align: center;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tbw-navy);
  background: var(--tbw-navy-soft);
  line-height: 1.25;
  min-height: 56px;
}
.tbwiz-dir:hover { border-color: var(--tbw-navy); transform: translateY(-1px); }
.tbwiz-dir:has(input:checked) {
  border-color: var(--tbw-navy);
  box-shadow: 0 0 0 2px rgba(3, 62, 140, .18);
}

/* "Не знайшли вашу категорію?" спец-card */
.tbwiz-dir--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 14px;
  min-height: 186px;
  background: #fff;
  cursor: default;
}
.tbwiz-dir--empty:hover { border-color: var(--tbw-line); transform: none; }
.tbwiz-dir--empty .tbwiz-dir__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tbw-navy-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--tbw-navy);
  margin-bottom: 10px;
}
.tbwiz-dir--empty .tbwiz-dir--empty__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tbw-navy);
  margin-bottom: 6px;
  line-height: 1.25;
}
.tbwiz-dir--empty .tbwiz-dir--empty__desc {
  font-size: 12px;
  color: var(--tbw-muted);
  line-height: 1.4;
}

/* ====== STEP 4: Options (tiles + extras) ====== */
.tbwiz-group__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--tbw-text);
  margin: 14px 0 10px;
}
.tbwiz-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.tbwiz-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px 16px;
  background: #fff;
  border: 1.5px solid var(--tbw-line);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.tbwiz-tile input { position: absolute; opacity: 0; pointer-events: none; }
.tbwiz-tile__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tbw-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.tbwiz-tile:nth-child(2) .tbwiz-tile__badge {
  background: #e8f0ff;
  color: var(--tbw-navy);
}
.tbwiz-tile__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tbw-text);
  line-height: 1.25;
  margin-bottom: 6px;
}
.tbwiz-tile__price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tbw-text);
}
.tbwiz-tile:hover { border-color: var(--tbw-navy); }
.tbwiz-tile:has(input:checked),
.tbwiz-tile.is-active {
  border-color: var(--tbw-navy);
  background: var(--tbw-navy-soft);
  box-shadow: 0 0 0 2px rgba(3,62,140,.14);
}

.tbwiz-extras {
  display: grid;
  gap: 2px;
  margin-top: 2px;
}
.tbwiz-xrow {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid var(--tbw-line);
  cursor: pointer;
}
.tbwiz-xrow:last-child { border-bottom: 0; }
.tbwiz-xrow input {
  margin: 2px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--tbw-navy);
  flex: 0 0 18px;
}
.tbwiz-xrow__text { min-width: 0; }
.tbwiz-xrow__name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tbw-text);
  line-height: 1.3;
  margin-bottom: 2px;
}
.tbwiz-xrow__desc {
  display: block;
  font-size: 12px;
  color: var(--tbw-muted);
  line-height: 1.4;
}
.tbwiz-xrow__price {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tbw-text);
  white-space: nowrap;
  padding-left: 10px;
}

/* ====== STEP 5: Media tiles (hotel / transfer) ====== */
.tbwiz-media-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 4px;
}
.tbwiz-media-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--tbw-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tbwiz-media-tile input { position: absolute; opacity: 0; pointer-events: none; }
.tbwiz-media-tile__media {
  position: relative;
  display: block;
  width: 100%;
  height: 110px;
  background: #e8edf4;
}
.tbwiz-media-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tbwiz-media-tile__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--tbw-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.tbwiz-media-tile__body {
  padding: 10px 12px 12px;
}
.tbwiz-media-tile__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--tbw-navy);
  line-height: 1.2;
  margin-bottom: 4px;
}
.tbwiz-media-tile__stars {
  display: inline-flex;
  gap: 1px;
  font-size: 14px;
  color: #d9dde3;
  line-height: 1;
  margin-bottom: 6px;
}
.tbwiz-star.is-on { color: #f5b100; }
.tbwiz-media-tile__price {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tbw-text);
}
.tbwiz-media-tile:hover { border-color: var(--tbw-navy); }
.tbwiz-media-tile:has(input:checked) {
  border-color: var(--tbw-navy);
  background: var(--tbw-navy-soft);
  box-shadow: 0 0 0 2px rgba(3,62,140,.14);
}

/* ====== STEP 3: Procedure cards ====== */
.tbwiz-procs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.tbwiz-proc {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--tbw-line);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tbwiz-proc input { position: absolute; opacity: 0; pointer-events: none; }
.tbwiz-proc__img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #e8edf4;
}
.tbwiz-proc__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.tbwiz-proc__name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tbw-navy);
  line-height: 1.25;
  text-align: center;
}
.tbwiz-proc__price {
  font-size: 14px;
  font-weight: 700;
  color: var(--tbw-navy);
  text-align: center;
  margin-top: 2px;
}
.tbwiz-proc__desc {
  font-size: 11.5px;
  color: var(--tbw-muted);
  line-height: 1.35;
  margin-top: 8px;
  text-align: center;
  flex: 1 1 auto;
}
.tbwiz-proc__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--tbw-line);
  font-size: 11.5px;
  color: var(--tbw-muted);
  text-align: center;
}
.tbwiz-proc__meta-item { line-height: 1.3; }
.tbwiz-proc:hover { border-color: var(--tbw-navy); transform: translateY(-1px); }
.tbwiz-proc:has(input:checked) {
  border-color: var(--tbw-navy);
  box-shadow: 0 0 0 2px rgba(3, 62, 140, .18);
  background: var(--tbw-navy-soft);
}

/* ====== STEP 2: Country cards ====== */
.tbwiz-countries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.tbwiz-country {
  position: relative;
  display: block;
  background: #fff;
  border: 1.5px solid var(--tbw-line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tbwiz-country input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tbwiz-country__media {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  background: #e8edf4;
}
.tbwiz-country__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tbwiz-country__flag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 22px;
  line-height: 1;
  background: rgba(255,255,255,.9);
  border-radius: 6px;
  padding: 4px 7px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .18);
}
.tbwiz-country__body {
  display: block;
  padding: 12px 14px 14px;
}
.tbwiz-country__name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--tbw-navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.tbwiz-country__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 4px;
}
.tbwiz-country__list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--tbw-text);
  line-height: 1.3;
}
.tbwiz-country__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 10px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1 5l4 4L13 1' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}
.tbwiz-country__more {
  display: inline-block;
  font-size: 13px;
  color: var(--tbw-navy);
  text-decoration: none;
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid var(--tbw-line);
  width: 100%;
  text-align: center;
}
.tbwiz-country__more:hover { text-decoration: underline; }
.tbwiz-country:hover { border-color: var(--tbw-navy); transform: translateY(-1px); }
.tbwiz-country:has(input:checked) {
  border-color: var(--tbw-navy);
  box-shadow: 0 0 0 2px rgba(3, 62, 140, .18);
  background: var(--tbw-navy-soft);
}

/* ====== Aside: nav + package card ====== */
.treatbox--wiz .tbwiz-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 20px;
  align-self: start;
}
/* На кроці 6 стандартний aside прибирається — його замінює вбудоване Dark navy card. */
.treatbox--wiz.is-step-6 .tbwiz-aside { display: none; }
.treatbox--wiz.is-step-6 .tbwiz-layout { grid-template-columns: 1fr; }

.tbwiz-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tbwiz-nav__btn {
  min-height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 16px;
  border: 1.5px solid transparent;
  transition: background .15s, color .15s, border-color .15s, opacity .15s;
}
.tbwiz-nav__btn--prev {
  background: #fff;
  color: var(--tbw-navy);
  border-color: var(--tbw-navy);
}
.tbwiz-nav__btn--prev:hover { background: var(--tbw-navy-soft); }
.tbwiz-nav__btn--next,
.tbwiz-nav__btn--submit {
  background: var(--tbw-navy);
  color: #fff;
}
.tbwiz-nav__btn--next:hover,
.tbwiz-nav__btn--submit:hover { background: var(--tbw-navy-dark); }
.tbwiz-nav__btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Package card */
.tbwiz-pkg {
  background: #fff;
  border-radius: var(--tbw-radius);
  padding: 18px 18px 20px;
  border: 1px solid var(--tbw-line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.tbwiz-pkg__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--tbw-text);
}
.tbwiz-pkg__hint {
  padding: 14px 16px;
  background: #f1f5f9;
  border-radius: 12px;
  color: var(--tbw-muted);
  font-size: 15px;
  text-align: center;
}

/* Pkg rows (steps 2+) */
.tbwiz-pkg__row { margin-bottom: 12px; }
.tbwiz-pkg__key {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--tbw-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 2px;
}
.tbwiz-pkg__val {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--tbw-text);
  line-height: 1.3;
}

.tbwiz-pkg__divider {
  height: 1px;
  background: var(--tbw-line);
  margin: 14px 0;
}
.tbwiz-pkg__base {
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 10px;
}
.tbwiz-pkg__base-label {
  font-size: 12.5px;
  color: var(--tbw-muted);
  margin-bottom: 2px;
}
.tbwiz-pkg__base-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--tbw-text);
}
.tbwiz-pkg__base-val small { font-weight: 600; font-size: 13px; color: var(--tbw-muted); margin-right: 4px; }
.tbwiz-pkg__base-note { font-size: 11.5px; color: var(--tbw-muted); margin-top: 6px; line-height: 1.4; }

.tbwiz-pkg__inc {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.tbwiz-pkg__inc li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  color: var(--tbw-text);
  line-height: 1.35;
}
.tbwiz-pkg__inc li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 10px;
  background: no-repeat center / contain;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='10' viewBox='0 0 14 10'><path d='M1 5l4 4L13 1' fill='none' stroke='%2316a34a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* ====== STEP 6: Recap (final) ====== */
.tbwiz-panel--recap.is-active { display: block; }

.tbwiz-recap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 10px;
  align-items: start;
}

.tbwiz-recap__main { min-width: 0; }
.tbwiz-recap__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--tbw-navy);
  line-height: 1.2;
  margin: 0 0 6px;
}
.tbwiz-recap__subtitle {
  font-size: 14px;
  color: var(--tbw-muted);
  margin: 0 0 14px;
}
.tbwiz-recap__price {
  font-size: 36px;
  font-weight: 800;
  color: var(--tbw-navy);
  text-align: center;
  padding: 10px 0;
  letter-spacing: .3px;
}

.tbwiz-recap__success {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  margin-bottom: 16px;
  color: #065f46;
}
.tbwiz-recap__success svg { color: #16a34a; }
.tbwiz-recap__success strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.tbwiz-recap__success span   { display: block; font-size: 12.5px; color: #047857; line-height: 1.4; }

.tbwiz-faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.tbwiz-faq__item {
  background: #f8fafc;
  border: 1px solid var(--tbw-line);
  border-radius: 10px;
  padding: 10px 12px;
}
.tbwiz-faq__q {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tbw-text);
  line-height: 1.3;
  margin-bottom: 4px;
}
.tbwiz-faq__a {
  font-size: 12.5px;
  color: var(--tbw-muted);
  line-height: 1.4;
}

.tbwiz-recap__trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  font-size: 12px;
  color: var(--tbw-muted);
}
.tbwiz-recap__trust-item strong { display: block; color: var(--tbw-text); font-weight: 700; font-size: 12.5px; margin-bottom: 2px; }
.tbwiz-recap__trust-item span   { display: block; line-height: 1.3; }

/* Dark navy side */
.tbwiz-recap__side {
  background: var(--tbw-navy);
  color: #fff;
  border-radius: 14px;
  padding: 18px 18px 16px;
  position: sticky;
  top: 20px;
}
.tbwiz-recap__side-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.25;
}
.tbwiz-recap__side-subtitle {
  font-size: 12px;
  color: rgba(255,255,255,.7);
  line-height: 1.35;
  margin-bottom: 10px;
}
.tbwiz-recap__side-price {
  font-size: 26px;
  font-weight: 800;
  margin: 2px 0 4px;
  letter-spacing: .2px;
}
.tbwiz-recap__side-note {
  font-size: 11.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
  margin-bottom: 10px;
}
.tbwiz-recap__breakdown { margin: 8px 0 12px; }
.tbwiz-recap__breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.tbwiz-recap__breakdown-row:last-child { border-bottom: 0; }
.tbwiz-recap__breakdown-row b { font-weight: 700; }
.tbwiz-recap__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.tbwiz-recap__actions .tbwiz-nav__btn--prev {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.tbwiz-recap__actions .tbwiz-nav__btn--prev:hover { background: rgba(255,255,255,.1); }
.tbwiz-recap__cta {
  background: #fff;
  color: var(--tbw-navy);
}
.tbwiz-recap__cta:hover { background: #e8edf4; }

/* Lead form inside dark card */
.tbwiz-recap__form { margin-top: 10px; display: grid; gap: 8px; }
.tbwiz-recap__field { display: block; }
.tbwiz-recap__field span {
  display: block;
  font-size: 11.5px;
  color: rgba(255,255,255,.75);
  margin-bottom: 4px;
  font-weight: 600;
}
.tbwiz-recap__field input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 13.5px;
  outline: none;
}
.tbwiz-recap__field input::placeholder { color: rgba(255,255,255,.5); }
.tbwiz-recap__field input:focus { border-color: #fff; }
.tbwiz-recap__field input.has-error { border-color: #fecaca; }
.tbwiz-recap__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
  line-height: 1.35;
}
.tbwiz-recap__consent input { margin-top: 2px; }
.tbwiz-recap__error {
  color: #fecaca;
  font-size: 11.5px;
  min-height: 1em;
}
.tbwiz-recap__done {
  text-align: center;
  padding: 12px 0 4px;
}

/* ====== Trust bar (bottom) ====== */
.tbwiz-trust {
  background: var(--tbw-navy-strip);
  color: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.tbwiz-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.25;
}
.tbwiz-trust__ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
}
.tbwiz-trust__item strong { display: block; font-weight: 700; }
.tbwiz-trust__item span   { display: block; color: rgba(255, 255, 255, .75); }

/* ====== Mobile ====== */
@media (max-width: 991.98px) {
  .treatbox--wiz .tbwiz-layout {
    grid-template-columns: 1fr;
  }
  .treatbox--wiz .tbwiz-aside {
    position: static;
    order: -1; /* Nav буде зверху */
  }
}
@media (max-width: 767.98px) {
  .treatbox--wiz .tbwiz-card { padding: 14px; border-radius: 12px; }
  .tbwiz-panel__title { font-size: 18px; }
  .tbwiz-panel__subtitle { font-size: 13px; margin-bottom: 14px; }
  .tbwiz-step { padding: 8px 10px; font-size: 12.5px; }
  .tbwiz-step__num { width: 20px; height: 20px; font-size: 11.5px; }
  .tbwiz-dirs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tbwiz-dir__img { width: 56px; height: 56px; margin: 18px auto 12px; }
  .tbwiz-dir__name { font-size: 13px; padding: 10px 8px; min-height: 50px; }
  .tbwiz-countries { grid-template-columns: 1fr; gap: 12px; }
  .tbwiz-country__media { height: 160px; }
  .tbwiz-procs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tbwiz-proc__img { height: 100px; }
  .tbwiz-tiles { grid-template-columns: 1fr; gap: 14px; }
  .tbwiz-tile { padding: 16px 12px; }
  .tbwiz-media-tiles { grid-template-columns: 1fr; gap: 12px; }
  .tbwiz-media-tile__media { height: 140px; }
  .tbwiz-recap { grid-template-columns: 1fr; }
  .tbwiz-recap__side { position: static; }
  .tbwiz-recap__title { font-size: 18px; }
  .tbwiz-recap__price { font-size: 28px; }
  .tbwiz-faq { grid-template-columns: 1fr; }
  .tbwiz-recap__trust { grid-template-columns: repeat(2, 1fr); }
  .tbwiz-trust { grid-template-columns: repeat(2, 1fr); row-gap: 12px; }
  .tbwiz-nav__btn { min-height: 44px; font-size: 13.5px; }
  .tbwiz-pkg { padding: 14px; }
  .tbwiz-pkg__title { font-size: 16px; }
}
