/* Calculator pro, sticky CTA, WA block, exit modal — light theme */

.calc-pro-wrap {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calc-pro { display: grid; }

.calc-pro__main {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.calc-pro__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.calc-pro__discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #dcfce7;
  color: #166534;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.calc-step { margin-bottom: 24px; }

.calc-step__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.calc-step__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.chip:hover { border-color: var(--primary); }

.chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.chip-grid--extras .chip { display: flex; align-items: center; gap: 8px; }

.chip__price {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.calc-step__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.calc-pro__sidebar {
  padding: 24px;
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 100%);
}

.calc-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.calc-summary__title {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.calc-summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
}

.calc-summary__row span:last-child { font-weight: 600; color: var(--text); }
.calc-summary__row--discount span:last-child { color: var(--success); }

.calc-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 8px;
  font-weight: 800;
  font-size: 1.15rem;
}

.calc-summary__total-value {
  font-size: 1.75rem;
  color: var(--primary);
}

.calc-summary__old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-align: right;
  margin-top: 4px;
}

.calc-sidebar-form { display: grid; gap: 12px; }

.calc-sidebar-form .form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calc-saved {
  display: none;
  background: #dcfce7;
  color: #166534;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.calc-saved.show { display: block; }

@media (min-width: 900px) {
  .calc-pro { grid-template-columns: 1.2fr 0.8fr; }
  .calc-pro__main {
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 32px;
  }
  .calc-pro__sidebar { padding: 32px; }
}

.wa-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 24px;
  box-shadow: var(--shadow);
}

.wa-block__icon {
  width: 52px;
  height: 52px;
  background: #dcfce7;
  color: var(--wa);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.wa-block__title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.wa-block__text { color: var(--text-muted); margin-bottom: 20px; }
.wa-block__steps { display: grid; gap: 10px; margin-bottom: 24px; }

.wa-block__step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
}

.wa-block__step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.wa-block__img { border-radius: var(--radius); overflow: hidden; }
.wa-block__img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

@media (min-width: 768px) {
  .wa-block { grid-template-columns: 1fr 1fr; align-items: center; }
}

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__text { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); display: none; }
.sticky-cta .btn { padding: 10px 18px; font-size: 0.85rem; }

.mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 89;
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}

.mobile-cta .btn { flex: 1; justify-content: center; }
body.has-sticky { padding-bottom: 72px; }

.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(26, 35, 50, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.exit-modal.open { opacity: 1; visibility: visible; }

.exit-modal__box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s;
}

.exit-modal.open .exit-modal__box { transform: scale(1); }

.exit-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.exit-modal__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.exit-modal__sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }

@media (min-width: 768px) {
  .sticky-cta__text { display: block; }
  .mobile-cta { display: none; }
  body.has-sticky { padding-bottom: 64px; }
  .exit-modal { display: flex !important; }
}

@media (max-width: 767px) {
  .exit-modal { display: none !important; }
  .sticky-cta { display: none !important; }
}
