/* ==========================================================
   Šildymas: temos ir registracija: šio prototipo stiliai.
   Tarpai, kampai, šriftai per var(--ds-*). Spalvos pagal live svetainę
   (brief: „einami projektai daromi pagal live svetainę“), todėl apibrėžtos čia.
   Lūžio taškas: ≤ 860px mobile.
   ========================================================== */
:root {
  /* nėra DS, siūlyti į shared: live svetainės spalvos */
  --sl-action: #038389;
  --sl-action-hover: #006a6e;
  --sl-title: #263334;
  --sl-text: #3d4f50;
  --sl-muted: #536768;
  --sl-field-border: #8b9e9f;
  --sl-decor: #cbd6d7;
  --sl-bg-brand-soft: #e2f4f5;
  --sl-bg-soft: #eff9fa;
  --sl-brand: #9bcbce;
  --sl-selected: rgba(0, 106, 110, .1);
  --sl-error: #c8291e;
  --sl-warn-bg: #fcf1e2;
  --sl-warn-border: #f4a85d;
  --sl-wrap: 1120px;
  --sl-panel-w: 360px;
}

body {
  background: var(--sl-bg-soft);
  color: var(--sl-text);
  font-size: 16px;
  line-height: 24px;
}
.sl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sl-wrap { max-width: var(--sl-wrap); margin: 0 auto; padding: 0 var(--ds-space-3xl); }
.sl-muted { color: var(--sl-muted); }
.sl-small { font-size: 14px; line-height: 20px; }
.sl-hint { font-size: 14px; line-height: 20px; color: var(--sl-muted); }
.sl-center { text-align: center; }
.sl-hr { border: 0; border-top: 1px solid var(--sl-decor); margin: var(--ds-space-3xl) 0; }
.sl-ico { display: inline-flex; flex: none; color: var(--sl-action); }

/* ---------- Tipografija ---------- */
.sl-h1 { font-size: 28px; line-height: 36px; font-weight: 700; color: var(--sl-title); margin: 0 0 var(--ds-space-md); }
.sl-h2 { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--sl-title); }
.sl-h3 { font-size: 18px; line-height: 26px; font-weight: 700; color: var(--sl-title); }
.sl-lead { font-size: 18px; line-height: 28px; color: var(--sl-text); max-width: 720px; }

/* ---------- Puslapio viršus ---------- */
.sl-header { background: var(--ds-white); border-bottom: 1px solid var(--sl-decor); }
.sl-header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.sl-header__link { color: var(--sl-action); font-weight: 600; text-decoration: none; }
.sl-header__link:hover { color: var(--sl-action-hover); text-decoration: underline; }

.sl-main { padding: var(--ds-space-4xl) 0 var(--ds-space-6xl); }
.v-a.step-topics .sl-main { padding-bottom: 140px; }

/* ---------- Išdėstymas ---------- */
.sl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-5xl); align-items: start; }
.sl-layout.has-panel { grid-template-columns: minmax(0, 1fr) var(--sl-panel-w); }
.sl-panel-wrap { position: sticky; top: var(--ds-space-3xl); }
.sl-card { background: var(--ds-white); border: 1px solid var(--sl-decor); border-radius: var(--ds-radius-2xl); }
.sl-panel { padding: var(--ds-space-3xl); }

/* ---------- Žingsniai ---------- */
.sl-stepper { display: flex; align-items: center; gap: var(--ds-space-lg); list-style: none; margin: 0 0 var(--ds-space-3xl); padding: 0; font-size: 14px; line-height: 20px; color: var(--sl-muted); }
.sl-stepper li { display: flex; align-items: center; gap: var(--ds-space-md); }
.sl-stepper__n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--ds-radius-full); border: 1.5px solid var(--sl-field-border); font-weight: 700; font-size: 14px; }
.sl-stepper__n svg { width: 16px; height: 16px; }
.sl-stepper .is-current { color: var(--sl-title); font-weight: 600; }
.sl-stepper .is-current .sl-stepper__n { background: var(--sl-action); border-color: var(--sl-action); color: var(--ds-white); }
.sl-stepper .is-done .sl-stepper__n { background: var(--sl-bg-brand-soft); border-color: var(--sl-action); color: var(--sl-action); }
.sl-stepper__sep { width: 40px; height: 1.5px; background: var(--sl-decor); }

/* ---------- Kas Jūsų laukia: juosta ---------- */
.sl-benefits-strip { display: flex; flex-wrap: wrap; gap: var(--ds-space-md) var(--ds-space-3xl); list-style: none; margin: var(--ds-space-2xl) 0 0; padding: 0; }
.sl-benefits-strip li { display: flex; align-items: center; gap: var(--ds-space-md); font-size: 15px; font-weight: 600; color: var(--sl-title); }

/* ---------- Temos ---------- */
.sl-grid-head { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-xl); margin: var(--ds-space-4xl) 0 var(--ds-space-lg); }
.sl-counter-pill { font-size: 15px; color: var(--sl-muted); }
.sl-counter-pill b { color: var(--sl-title); }
.v-b .sl-counter-pill { display: none; }

.sl-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ds-space-lg); }
.has-panel .sl-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sl-topic {
  position: relative; display: flex; align-items: center; gap: var(--ds-space-lg);
  min-height: 60px; padding: var(--ds-space-lg) var(--ds-space-xl);
  background: var(--ds-white); border: 1px solid var(--sl-decor); border-radius: var(--ds-radius-md);
  cursor: pointer; user-select: none;
  transition: border-color var(--ds-duration-fast) var(--ds-ease), background var(--ds-duration-fast) var(--ds-ease), box-shadow var(--ds-duration-fast) var(--ds-ease);
}
.sl-topic:hover { border-color: var(--sl-action); }
.sl-topic__name { font-size: 16px; line-height: 22px; color: var(--sl-title); }
.sl-check {
  flex: none; display: grid; place-items: center; width: 22px; height: 22px;
  border: 1.5px solid var(--sl-field-border); border-radius: var(--ds-radius-xs); background: var(--ds-white); color: transparent;
  transition: background var(--ds-duration-fast) var(--ds-ease), border-color var(--ds-duration-fast) var(--ds-ease);
}
.sl-check svg { width: 16px; height: 16px; }
.sl-topic.is-on { background: var(--sl-selected); border-color: var(--sl-action); box-shadow: inset 0 0 0 1px var(--sl-action); }
.sl-topic.is-on .sl-check { background: var(--sl-action); border-color: var(--sl-action); color: var(--ds-white); }
.sl-topic.is-off { cursor: not-allowed; background: var(--ds-grey-100); }
.sl-topic.is-off .sl-topic__name { color: var(--sl-muted); }
.sl-topic.is-off:hover { border-color: var(--sl-decor); }
.sl-topic:has(:focus-visible) { outline: 2px solid var(--sl-action); outline-offset: 2px; }

.sl-notice {
  display: flex; gap: var(--ds-space-md); align-items: flex-start;
  margin: 0 0 var(--ds-space-lg); padding: var(--ds-space-lg) var(--ds-space-xl);
  background: var(--sl-bg-brand-soft); border-radius: var(--ds-radius-md); font-size: 15px; color: var(--sl-title);
}
.sl-notice.is-hit { animation: sl-nudge .35s var(--ds-ease); }
@keyframes sl-nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ---------- Mygtukai ---------- */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ds-space-md);
  min-height: 48px; padding: 0 var(--ds-space-3xl); border-radius: var(--ds-radius-sm);
  border: 1px solid transparent; font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background var(--ds-duration-fast) var(--ds-ease), color var(--ds-duration-fast) var(--ds-ease);
}
.sl-btn--primary { background: var(--sl-action); color: var(--ds-white); }
.sl-btn--primary:hover:not(:disabled) { background: var(--sl-action-hover); color: var(--ds-white); }
.sl-btn--primary:disabled { background: var(--sl-decor); color: var(--sl-muted); cursor: not-allowed; }
.sl-btn--secondary { background: var(--ds-white); color: var(--sl-action); border-color: var(--sl-action); }
.sl-btn--secondary:hover { background: var(--sl-bg-brand-soft); color: var(--sl-action-hover); }
.sl-btn--sm { min-height: 40px; padding: 0 var(--ds-space-xl); font-size: 15px; }
.sl-btn--block { width: 100%; }
.sl-linkbtn { background: none; border: 0; padding: 0; color: var(--sl-action); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.sl-linkbtn:hover { color: var(--sl-action-hover); }

/* ---------- Laukai ---------- */
.sl-form { display: grid; gap: var(--ds-space-2xl); padding: var(--ds-space-4xl); margin-top: var(--ds-space-3xl); }
.sl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-2xl); }
.sl-field { display: grid; gap: var(--ds-space-xs); align-content: start; }
.sl-label { font-size: 15px; font-weight: 600; color: var(--sl-title); }
.sl-input {
  width: 100%; height: 48px; padding: 0 var(--ds-space-lg);
  border: 1px solid var(--sl-field-border); border-radius: var(--ds-radius-xs); background: var(--ds-white);
  font-size: 16px; color: var(--sl-title);
}
.sl-input:focus { outline: none; border-color: var(--sl-action); box-shadow: 0 0 0 3px var(--sl-selected); }
.is-err .sl-input { border-color: var(--sl-error); }
.sl-error { font-size: 14px; line-height: 20px; color: var(--sl-error); }
.sl-select { position: relative; }
.sl-select select { appearance: none; padding-right: 40px; cursor: pointer; }
.sl-select .sl-chev { position: absolute; right: 12px; top: 14px; pointer-events: none; color: var(--sl-muted); }
.sl-phone { display: flex; }
.sl-phone__prefix { display: grid; place-items: center; padding: 0 var(--ds-space-lg); border: 1px solid var(--sl-field-border); border-right: 0; border-radius: var(--ds-radius-xs) 0 0 var(--ds-radius-xs); background: var(--ds-grey-100); color: var(--sl-text); }
.sl-phone .sl-input { border-radius: 0 var(--ds-radius-xs) var(--ds-radius-xs) 0; }
.sl-checkline { display: flex; gap: var(--ds-space-md); align-items: flex-start; font-size: 15px; line-height: 22px; cursor: pointer; }
.sl-checkline input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sl-action); flex: none; }
.sl-checkline a { color: var(--sl-action); }
.sl-chev { display: inline-flex; transition: transform var(--ds-duration) var(--ds-ease); }
.sl-chev.is-open { transform: rotate(180deg); }
.sl-chev--up { transform: rotate(180deg); }
.sl-chev--up.is-open { transform: rotate(0); }

/* ---------- C: el. pašto kortelė ---------- */
.sl-emailcard { display: grid; gap: var(--ds-space-lg); padding: var(--ds-space-3xl) var(--ds-space-4xl) var(--ds-space-4xl); margin-top: var(--ds-space-4xl); border-color: var(--sl-brand); box-shadow: var(--ds-shadow-md); }
.sl-emailcard__row { display: grid; grid-template-columns: minmax(0, 480px) auto; justify-content: start; gap: var(--ds-space-lg); align-items: end; margin-top: var(--ds-space-md); }
.sl-emailcard__row .sl-btn { align-self: start; margin-top: 28px; min-width: 140px; }

/* ---------- Kraštutiniai atvejai ---------- */
.sl-alert { display: flex; gap: var(--ds-space-lg); padding: var(--ds-space-xl); border-radius: var(--ds-radius-md); border: 1px solid; font-size: 15px; line-height: 22px; color: var(--sl-title); }
.sl-alert p { margin-bottom: var(--ds-space-lg); }
.sl-alert p:last-child { margin-bottom: 0; }
.sl-alert--warn { background: var(--sl-warn-bg); border-color: var(--sl-warn-border); }
.sl-alert--warn .sl-ico { color: var(--ds-orange-700); }
.sl-alert--info { background: var(--sl-bg-brand-soft); border-color: var(--sl-brand); }

/* ---------- Santrauka / serija ---------- */
.sl-series__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ds-space-lg); }
.sl-slots { list-style: none; margin: var(--ds-space-xl) 0 var(--ds-space-lg); padding: 0; display: grid; gap: var(--ds-space-md); }
.sl-slot { display: flex; align-items: center; gap: var(--ds-space-lg); min-height: 56px; padding: var(--ds-space-md) var(--ds-space-md) var(--ds-space-md) var(--ds-space-lg); border-radius: var(--ds-radius-md); background: var(--sl-selected); }
.sl-slot__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--ds-radius-full); background: var(--sl-action); color: var(--ds-white); font-size: 14px; font-weight: 700; }
.sl-slot__body { flex: 1; min-width: 0; display: grid; }
.sl-slot__date { font-size: 14px; line-height: 18px; color: var(--sl-muted); }
.sl-slot__name { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--sl-title); }
.sl-slot small, .sl-plan small { font-size: 14px; color: var(--sl-muted); font-weight: 400; }
.sl-slot.is-repeat { background: var(--ds-white); border: 1px solid var(--sl-decor); }
.sl-slot.is-repeat .sl-slot__n { background: var(--sl-bg-brand-soft); color: var(--sl-action); }
.sl-slot.is-empty { background: var(--ds-white); border: 1.5px dashed var(--sl-decor); }
.sl-slot.is-empty .sl-slot__n { background: var(--ds-grey-100); color: var(--sl-muted); }
.sl-slot__name--empty { color: var(--sl-muted); font-weight: 400; }
.sl-slot__x { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: var(--sl-muted); border-radius: var(--ds-radius-sm); }
.sl-slot__x:hover { background: var(--ds-white); color: var(--sl-title); }
.sl-series__cta { margin-top: var(--ds-space-xl); display: grid; gap: var(--ds-space-md); }
.sl-ticks { list-style: none; margin: var(--ds-space-xl) 0 0; padding: var(--ds-space-xl) 0 0; border-top: 1px solid var(--sl-decor); display: grid; gap: var(--ds-space-md); font-size: 14px; line-height: 20px; }
.sl-ticks li { display: flex; gap: var(--ds-space-md); }
.sl-ticks .sl-ico svg { width: 18px; height: 18px; }

.sl-chips { list-style: none; margin: var(--ds-space-lg) 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--ds-space-md); }
.sl-chip { padding: var(--ds-space-xs) var(--ds-space-lg); border-radius: var(--ds-radius-full); background: var(--sl-selected); color: var(--sl-title); font-size: 14px; line-height: 22px; font-weight: 600; }

.sl-benefits { list-style: none; margin: var(--ds-space-xl) 0 0; padding: 0; display: grid; gap: var(--ds-space-xl); }
.sl-benefits li { display: flex; gap: var(--ds-space-lg); }
.sl-benefits b { color: var(--sl-title); font-size: 15px; }
.sl-benefits p { font-size: 14px; line-height: 20px; color: var(--sl-muted); }
.sl-ico--tile { width: 40px; height: 40px; place-items: center; display: grid; border-radius: var(--ds-radius-md); background: var(--sl-bg-brand-soft); }

.sl-mobile-summary { display: none; }

/* ---------- Sėkmė ---------- */
.sl-success { max-width: 720px; }
.sl-success__card { padding: var(--ds-space-5xl) var(--ds-space-5xl) var(--ds-space-4xl); text-align: center; }
.sl-success__icon { display: inline-flex; color: var(--sl-action); margin-bottom: var(--ds-space-xl); }
.sl-success__icon svg { width: 56px; height: 56px; }
.sl-success .sl-lead { margin: 0 auto; }
.sl-success__sub { margin: var(--ds-space-4xl) 0 var(--ds-space-lg); text-align: left; }
.sl-plan { list-style: none; margin: 0 0 var(--ds-space-3xl); padding: 0; text-align: left; border-top: 1px solid var(--sl-decor); }
.sl-plan li { display: grid; grid-template-columns: 150px 1fr; gap: var(--ds-space-xl); padding: var(--ds-space-lg) 0; border-bottom: 1px solid var(--sl-decor); }
.sl-plan__date { color: var(--sl-muted); font-size: 15px; }
.sl-plan__name { display: grid; font-weight: 600; color: var(--sl-title); }

/* ---------- A: apatinė juosta ---------- */
.sl-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ds-white); border-top: 1px solid var(--sl-decor); box-shadow: 0 -6px 20px rgba(39, 47, 48, .08); }
.sl-bar__inner { display: flex; align-items: center; gap: var(--ds-space-3xl); min-height: 80px; }
.sl-bar__count { margin-right: auto; display: flex; align-items: center; gap: var(--ds-space-lg); font-size: 16px; color: var(--sl-title); }
.sl-bar .sl-btn { min-width: 180px; }
.sl-dots { display: inline-flex; gap: 4px; }
.sl-dots i { width: 18px; height: 6px; border-radius: 3px; background: var(--sl-decor); transition: background var(--ds-duration) var(--ds-ease); }
.sl-dots i.on { background: var(--sl-action); }

/* ---------- B mobile: juosta + lapas ---------- */
.sl-bbar { display: none; }

/* ---------- Prototipo juosta ---------- */
.pt { background: var(--ds-grey-900); color: var(--ds-grey-200); font-size: 14px; line-height: 20px; }
.pt__inner { display: flex; align-items: center; gap: var(--ds-space-lg); padding: var(--ds-space-md) var(--ds-space-3xl); overflow-x: auto; white-space: nowrap; }
.pt__title { font-weight: 700; color: var(--ds-white); }
.pt__seg { display: inline-flex; background: rgba(255,255,255,.08); border-radius: var(--ds-radius-sm); padding: 2px; }
.pt__segbtn { border: 0; background: none; color: var(--ds-grey-300); padding: var(--ds-space-xs) var(--ds-space-lg); border-radius: var(--ds-radius-xs); font-size: 14px; }
.pt__segbtn.is-on { background: var(--ds-white); color: var(--ds-grey-900); }
.pt__state { display: inline-flex; align-items: center; gap: var(--ds-space-sm); }
.pt__state select, .pt__btn { background: rgba(255,255,255,.08); color: var(--ds-white); border: 1px solid rgba(255,255,255,.16); border-radius: var(--ds-radius-xs); padding: var(--ds-space-xs) var(--ds-space-md); font-size: 14px; }
.pt__state select option { color: var(--ds-grey-900); }
.pt__id { margin-left: auto; background: var(--sl-action); color: var(--ds-white); border: 0; border-radius: var(--ds-radius-full); padding: var(--ds-space-xs) var(--ds-space-lg); font-size: 14px; }

/* ==================== Mobile ==================== */
@media (max-width: 860px) {
  .sl-wrap { padding: 0 var(--ds-space-xl); }
  .sl-main { padding-top: var(--ds-space-3xl); }
  .sl-h1 { font-size: 24px; line-height: 32px; }
  .sl-lead { font-size: 16px; line-height: 24px; }
  .sl-layout, .sl-layout.has-panel { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-3xl); }
  .sl-topics, .has-panel .sl-topics { grid-template-columns: minmax(0, 1fr); gap: var(--ds-space-md); }
  .sl-panel-wrap { display: none; }
  .sl-form { padding: var(--ds-space-3xl) var(--ds-space-xl); }
  .sl-form__row { grid-template-columns: minmax(0, 1fr); }
  .sl-emailcard { padding: var(--ds-space-3xl) var(--ds-space-xl); }
  .sl-emailcard__row { grid-template-columns: minmax(0, 1fr); }
  .sl-emailcard__row .sl-btn { margin-top: 0; width: 100%; }
  .sl-benefits-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ds-space-md); }
  .sl-benefits-strip li { font-size: 14px; line-height: 20px; }
  .sl-stepper__sep { width: 20px; }

  .sl-bar__inner { gap: var(--ds-space-lg); min-height: 72px; }
  .sl-bar__hint { display: none; }
  .sl-bar .sl-btn { min-width: 0; padding: 0 var(--ds-space-3xl); }
  .sl-dots i { width: 12px; }

  .v-b.step-topics .sl-main, .v-b.step-form .sl-main { padding-bottom: 120px; }
  .sl-bbar { display: block; }
  .sl-bbar__inner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; display: flex; align-items: center; gap: var(--ds-space-lg); padding: var(--ds-space-lg) var(--ds-space-xl); background: var(--ds-white); border-top: 1px solid var(--sl-decor); box-shadow: 0 -6px 20px rgba(39, 47, 48, .08); }
  .sl-bbar__summary { flex: 1; display: flex; align-items: center; gap: var(--ds-space-md); min-height: 48px; background: none; border: 0; padding: 0; text-align: left; font-size: 15px; color: var(--sl-title); }
  .sl-bbar__summary .sl-dots { display: none; }
  .sl-bbar__summary .sl-chev { margin-left: auto; color: var(--sl-muted); }
  .sl-sheet-backdrop { position: fixed; inset: 0; z-index: 29; background: rgba(39, 47, 48, .4); }
  .sl-sheet { position: fixed; left: 0; right: 0; bottom: 72px; z-index: 30; max-height: calc(100vh - 140px); overflow-y: auto; padding: var(--ds-space-3xl) var(--ds-space-xl); background: var(--ds-white); border-radius: var(--ds-radius-2xl) var(--ds-radius-2xl) 0 0; }
  .sl-sheet .sl-series__cta { display: none; }
  .sl-sheet-in { animation: sl-up var(--ds-duration) var(--ds-ease); }
  .sl-sheet-out { animation: sl-up var(--ds-duration-fast) var(--ds-ease) reverse; }
  @keyframes sl-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

  .sl-mobile-summary { display: block; margin-bottom: var(--ds-space-3xl); background: var(--ds-white); border: 1px solid var(--sl-decor); border-radius: var(--ds-radius-md); }
  .sl-mobile-summary__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: var(--ds-space-md); min-height: 52px; padding: 0 var(--ds-space-xl); background: none; border: 0; text-align: left; font-size: 15px; color: var(--sl-title); }
  .sl-mobile-summary__body { padding: 0 var(--ds-space-xl) var(--ds-space-xl); }

  .sl-success__card { padding: var(--ds-space-4xl) var(--ds-space-xl); }
  .sl-plan li { grid-template-columns: 1fr; gap: 0; }
  .pt__inner { padding: var(--ds-space-md) var(--ds-space-xl); }
}
