/*
 * Calculator v2 (Webmakers). Extends the parent theme look (.calc-box, .calc-area, .calc-price-box).
 * The theme sets html { font-size: 62.5% }, so 1rem = 10px.
 */
.cv2 {
  --cv2-teal: #20A5A1;
  --cv2-teal-dark: #178784;
  --cv2-lime: #C1FF72;
  --cv2-ink: #121212;
  --cv2-line: rgba(32, 165, 161, .35);
  position: relative;
}

.cv2__steps { list-style: none; margin: 0; padding: 0; }
.cv2 .cv2__step--last { margin-bottom: 0; }
.cv2 [hidden] { display: none !important; }

/* ---------- Zone maps ---------- */
.cv2-map { background: #d9dfe0; }
.cv2-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

.cv2-zone {
  fill: rgba(193, 255, 114, 0);
  stroke: rgba(3, 25, 39, .7);
  stroke-width: 1.2;
  stroke-miterlimit: 10;
  cursor: pointer;
  outline: none;
  transition: fill .2s ease-in-out, stroke .2s ease-in-out;
  -webkit-tap-highlight-color: transparent;
}
.cv2-zone.is-hover { fill: rgba(193, 255, 114, .3); }
.cv2-zone.is-selected { fill: rgba(193, 255, 114, .6); stroke: #fff; stroke-width: 2; }
.cv2-zone.is-selected.is-hover { fill: rgba(193, 255, 114, .7); }
.cv2-zone:focus-visible { stroke: #fff; stroke-width: 4; }
.cv2-zone-label {
  fill: #fff;
  stroke: rgba(3, 25, 39, .55);
  stroke-width: 1.4;
  paint-order: stroke;
  pointer-events: none;
}

/* ---------- Zone list (same selection as the maps) ---------- */
.cv2-picker { margin-top: 2.4rem; }
.cv2-picker__group { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.cv2-picker__legend {
  padding: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cv2-teal);
}
.cv2-picker__list { display: flex; flex-wrap: wrap; gap: .8rem; }

.cv2-chip { position: relative; display: inline-flex; cursor: pointer; }
.cv2-chip__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cv2-chip__body {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  padding: .6rem 1.8rem .6rem .7rem;
  border: 2px solid var(--cv2-teal);
  border-radius: 2.5rem;
  background: #fff;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--cv2-ink);
  transition: background-color .2s ease-in-out, color .2s ease-in-out;
}
.cv2-chip__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(32, 165, 161, .12);
  color: var(--cv2-teal-dark);
  font-weight: 600;
}
.cv2-chip:hover .cv2-chip__body { background: rgba(32, 165, 161, .08); }
.cv2-chip__input:checked + .cv2-chip__body { background: var(--cv2-teal); color: #fff; }
.cv2-chip__input:checked + .cv2-chip__body .cv2-chip__no { background: var(--cv2-lime); color: var(--cv2-ink); }
.cv2-chip__input:focus-visible + .cv2-chip__body { outline: 3px solid var(--cv2-ink); outline-offset: 2px; }

.cv2-picker__actions { display: flex; flex-wrap: wrap; gap: .6rem 2.4rem; margin-top: .4rem; }
.cv2-link {
  appearance: none;
  border: 0;
  background: none;
  padding: .8rem 0;
  font: inherit;
  font-size: 1.5rem;
  color: var(--cv2-teal-dark);
  text-decoration: underline;
  text-underline-offset: .3em;
  cursor: pointer;
}
.cv2-link:hover { color: var(--cv2-ink); }
.cv2-link--muted { color: #5b6664; }

/* ---------- Result ---------- */
.cv2 .cv2-result { padding: 3rem 2rem; text-align: left; }
.cv2-result__empty { text-align: center; padding: 1rem 0; }
.cv2-result__empty-title { font-size: 2rem; line-height: 1.3; margin: 0 0 .6rem; }
.cv2-result__empty-text { margin: 0; opacity: .9; font-size: 1.5rem; }

.cv2-result__zones { margin: 0 0 2rem; font-size: 1.5rem; opacity: .95; }
.cv2-result__main { display: grid; gap: 2rem; align-items: end; }
.cv2-result__session, .cv2-result__total { display: flex; flex-direction: column; gap: .6rem; }
.cv2-result__label { font-size: 1.6rem; line-height: 1.3; }
.cv2-result__price {
  font-size: 5.2rem;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cv2-result__price.cv2-result__price--small { font-size: 2.6rem; font-weight: 400; }

.cv2-stages {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: .8rem;
}
.cv2-stages__item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .12);
}
.cv2-stages__name { font-size: 1.3rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.cv2-stages__price { font-size: 1.8rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.cv2-checks { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; gap: 1rem; font-size: 1.6rem; line-height: 1.35; }
.cv2-checks li { position: relative; padding-left: 3.2rem; }
.cv2-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -.1rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--cv2-lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='%23121212' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 11.5l3 3 6-6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cv2-prepay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2rem;
  margin-top: 2.6rem;
  padding: 1.8rem 2rem;
  border-radius: 1.5rem;
  background: #fff;
  color: var(--cv2-ink);
}
.cv2-prepay__text { display: flex; align-items: center; gap: 1.2rem; font-size: 1.6rem; line-height: 1.3; }
.cv2-prepay__badge {
  flex: 0 0 auto;
  padding: .5rem 1rem .3rem;
  border-radius: 1rem;
  background: var(--cv2-lime);
  font-weight: 600;
}
.cv2-prepay__numbers { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1.4rem; }
.cv2-prepay__price { font-size: 2.6rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv2-prepay__saving { font-size: 1.5rem; color: var(--cv2-teal-dark); white-space: nowrap; }

.cv2-result__actions { margin-top: 2.6rem; }
.cv2-note { margin-top: 1.6rem; font-size: 1.4rem; color: #4d5756; }

.cv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.6rem;
  padding: 1.6rem 3rem 1.3rem;
  border: 2px solid var(--cv2-teal);
  border-radius: 2.5rem;
  background: var(--cv2-teal);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, border-color .2s ease-in-out;
}
.cv2-btn:hover { background: var(--cv2-teal-dark); border-color: var(--cv2-teal-dark); color: #fff; }
.cv2-btn:focus-visible { outline: 3px solid var(--cv2-ink); outline-offset: 2px; }
.cv2-btn--light { background: #fff; border-color: #fff; color: var(--cv2-ink); }
.cv2-btn--light:hover { background: var(--cv2-lime); border-color: var(--cv2-lime); color: var(--cv2-ink); }

/* ---------- Visualization teaser ---------- */
.cv2-viz {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 2rem;
  border: 2px solid var(--cv2-teal);
  border-radius: 2.5rem 0 2.5rem 0;
  background: #fff;
}
.cv2-viz__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.2rem;
  height: 7.2rem;
  border-radius: 50%;
  background: rgba(32, 165, 161, .1);
  color: var(--cv2-teal);
}
.cv2-viz__text { margin: 0; font-size: 1.6rem; line-height: 1.5; }

/* ---------- Sticky price bar (small screens) ---------- */
/* Sits right under the fixed site header; the bottom edge is taken by the WhatsApp and reCAPTCHA widgets. */
.cv2-bar {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--cv2-bar-top, 0px);
  z-index: 90;
  padding: .8rem 1.6rem;
  background: var(--cv2-ink);
  color: #fff;
  box-shadow: 0 .4rem 2rem rgba(0, 0, 0, .18);
}
.cv2-bar__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .2rem 1.2rem;
  color: inherit;
  text-decoration: none;
}
.cv2-bar__label { font-size: 1.3rem; opacity: .8; }
.cv2-bar__price { margin-right: auto; font-size: 2rem; font-weight: 600; color: var(--cv2-lime); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cv2-bar__total { font-size: 1.3rem; opacity: .8; white-space: nowrap; }

@media (min-width: 576px) {
  .cv2-result__main { grid-template-columns: auto auto; justify-content: start; column-gap: 5rem; }
}

@media (min-width: 768px) {
  .cv2 .cv2-result { padding: 4rem; }
  .cv2-result__price { font-size: 6.4rem; }
  .cv2-result__price.cv2-result__price--small { font-size: 3rem; }
  .cv2-viz { grid-template-columns: auto 1fr auto; padding: 3rem 4rem; border-radius: 5rem 0 5rem 0; }
  .cv2-checks { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

@media (min-width: 992px) {
  .cv2-bar { display: none; }
  .cv2-picker { margin-top: 3rem; }
  .cv2-picker__group { margin-bottom: 2rem; }
  .cv2-result__price { font-size: 7.2rem; }
  .cv2-stages__price { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cv2-zone, .cv2-chip__body, .cv2-btn { transition: none; }
}
