/* Active Days price calculator (assets/js/calc.js). Colours follow the page's theme variables with sensible fallbacks. */
.vc { --vc-brand: var(--brand, #128c7e); --vc-ink: var(--bs-body-color, #1f2937); --vc-mute: var(--bs-secondary-color, #64748b); --vc-line: var(--bs-border-color, #e5e9ef); --vc-card: var(--bs-body-bg, #fff); --vc-tint: rgba(18,140,126,.1); }
.vc-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 36px; background: var(--vc-card); border: 1px solid var(--vc-line); border-radius: 18px; padding: 26px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.vc-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; color: var(--vc-ink); }
.vc-sub { color: var(--vc-mute); font-size: .9rem; margin: -8px 0 14px; }
.vc-note { background: #fff7e0; color: #7a5a00; border-radius: 10px; padding: .45rem .75rem; font-size: .84rem; margin: 0 0 14px; }
[data-bs-theme=dark] .vc-note { background: #3a2a0e; color: #f5d98a; }
.vc-pkgs small { font-weight: 500; opacity: .8; }
.vc-pkgs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--vc-tint); margin-bottom: 20px; flex-wrap: wrap; }
.vc-pkgs button { border: 0; background: transparent; color: var(--vc-mute); font-weight: 600; font-size: .9rem; padding: .4rem 1rem; border-radius: 999px; }
.vc-pkgs button.on { background: var(--vc-card); color: var(--vc-brand); box-shadow: 0 1px 4px rgba(15,23,42,.12); }
.vc-fixed { display: inline-block; font-weight: 700; color: var(--vc-brand); background: var(--vc-tint); border-radius: 999px; padding: .3rem .9rem; margin-bottom: 20px; font-size: .9rem; }
.vc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--vc-mute); font-size: .95rem; margin-bottom: 8px; }
.vc-num { display: inline-flex; align-items: baseline; gap: 6px; background: var(--vc-tint); border-radius: 8px; padding: .3rem .7rem; color: var(--vc-brand); font-weight: 700; }
.vc-num input { width: 5.2ch; border: 0; background: transparent; color: inherit; font: inherit; font-size: 1.1rem; text-align: right; padding: 0; -moz-appearance: textfield; }
.vc-num input::-webkit-outer-spin-button, .vc-num input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vc-num input:focus { outline: 2px solid var(--vc-brand); outline-offset: 2px; border-radius: 4px; }
.vc-num span { font-size: .85rem; }
.vc-range { width: 100%; height: 6px; border-radius: 99px; appearance: none; -webkit-appearance: none; outline: none; margin: 14px 0 6px; --p: 0%;
  background: linear-gradient(90deg, var(--vc-brand) var(--p), var(--vc-line) var(--p)); }
.vc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--vc-brand); box-shadow: 0 2px 6px rgba(15,23,42,.25); cursor: pointer; }
.vc-range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--vc-brand); box-shadow: 0 2px 6px rgba(15,23,42,.25); cursor: pointer; }
.vc-range:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(18,140,126,.35); }
.vc-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.vc-q { border: 1px solid var(--vc-line); background: var(--vc-card); color: var(--vc-ink); border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; font-weight: 600; }
.vc-q:hover { border-color: var(--vc-brand); color: var(--vc-brand); }
.vc-ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-bottom: 14px; }
.vc-step { border: 1px solid var(--vc-line); border-radius: 12px; padding: .5rem .6rem; text-align: center; line-height: 1.25; transition: border-color .15s, background .15s; }
.vc-step b { display: block; font-size: 1rem; color: var(--vc-ink); }
.vc-step small { color: var(--vc-mute); font-size: .72rem; }
.vc-step.on { border-color: var(--vc-brand); background: var(--vc-tint); }
.vc-step.on b { color: var(--vc-brand); }
.vc-hint { font-size: .88rem; color: var(--vc-mute); margin: 0; min-height: 2.6em; }
.vc-hint b { color: var(--vc-ink); }
.vc-right { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vc-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--vc-mute); }
.vc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.vc-donut { position: relative; width: 190px; height: 190px; }
.vc-donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vc-donut .t { fill: none; stroke: var(--vc-line); stroke-width: 18; }
.vc-donut .p { fill: none; stroke: var(--vc-brand); stroke-width: 18; transition: stroke-dasharray .25s; }
.vc-donut .s { fill: none; stroke: #9be3d4; stroke-width: 18; transition: stroke-dasharray .25s, stroke-dashoffset .25s; }
.vc-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.vc-center b { font-size: 1.7rem; font-weight: 800; color: var(--vc-ink); }
.vc-center small { color: var(--vc-mute); font-size: .78rem; }
.vc-sum { width: 100%; font-size: .92rem; }
.vc-sum div { display: flex; justify-content: space-between; gap: 12px; padding: .38rem 0; color: var(--vc-mute); }
.vc-sum b { color: var(--vc-ink); }
.vc-sum .tot { border-top: 1px solid var(--vc-line); margin-top: 4px; padding-top: .6rem; font-size: 1.05rem; }
.vc-sum .tot b { font-size: 1.25rem; }
.vc-sum .sv b { color: #198754; }
.vc-sum .per { font-size: .86rem; padding: .2rem 0; }
.vc-sum .per small { font-size: .72rem; opacity: .8; }
.vc-sum .tot + .per { border-top: 1px dashed var(--vc-line); margin-top: 6px; padding-top: .55rem; }
.vc-btn { width: 100%; border: 0; border-radius: 12px; padding: .7rem 1rem; font-weight: 700; color: #fff; text-align: center; text-decoration: none; display: block;
  background: linear-gradient(135deg, #25d366, var(--vc-brand) 55%, #075e54); box-shadow: 0 8px 18px -8px rgba(18,140,126,.75); }
.vc-btn:hover { color: #fff; filter: brightness(1.06); }
.vc-fine { font-size: .76rem; color: var(--vc-mute); text-align: center; margin: 0; }
[data-bs-theme=dark] .vc .vc-donut .s { stroke: #1f6f62; }
@media (max-width: 767.98px) {
  .vc-card { grid-template-columns: 1fr; padding: 18px; gap: 22px; }
  .vc-donut { width: 160px; height: 160px; }
  .vc-ladder { grid-template-columns: repeat(3, 1fr); }
}
