/* =========================================================
   Zoie — cost calculator (a simpler take on zoie.ai/cost-calculator).
   Builds on styles.css, pricing.css (dark header, FAQ) and
   compare.css (header sizes). Maths: main.js section 13.
   ========================================================= */

.cc { padding: 110px 0 120px; --cc-acc: #5b6ff0; --cc-acc-deep: #4b5fd6; --cc-acc-ink: #2c3a8f; --cc-tint: #eef0fe; --cc-tint-line: #c9d0fa; }   /* indigo for what's picked and what moves, instead of black (user: too much black and white, 2026-11-02) */
.cc-grid {
  width: 1180px; max-width: calc(100% - 64px); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start;
}
.cc-steps { display: grid; gap: 20px; }

/* ---------- Steps ---------- */
.cc-step {
  padding: 32px; border-radius: 28px; background: #fff;
  box-shadow: inset 0 0 0 1px #e6e8ec, 0 30px 60px -40px rgba(20, 24, 32, .35);
}
.cc-step-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.cc-step-text { flex: 1; min-width: 200px; }
.cc-num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 14px; font-weight: 600; color: #fff; background: var(--cc-acc);
}
.cc-num--light { width: 26px; height: 26px; font-size: 13px; color: #0b0c0e; background: #fff; }
.cc-step-title { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; color: #0b0c0e; }
.cc-step-sub { margin-top: 4px; font-size: 14.5px; line-height: 21px; color: #6b7280; }

/* monthly / annual */
.cc-billing { flex: none; display: flex; padding: 4px; border-radius: 99px; background: #f1f2f4; box-shadow: inset 0 0 0 1px #e6e8ec; }
.cc-billing button { height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: #5b6168; transition: background-color .2s, color .2s, box-shadow .2s; }
.cc-billing button:hover { color: #0b0c0e; }
.cc-billing button.is-active { color: #0b0c0e; background: #fff; box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }
.cc-billing .billing-save { color: #16a34a; }

/* plan and size cards: radio buttons drawn as cards (main.js marks the chosen one .is-on) */
.cc-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.cc-plan, .cc-size {
  position: relative; display: flex; flex-direction: column; border-radius: 18px; cursor: pointer;
  background: #f6f7f9; box-shadow: inset 0 0 0 1px #e6e8ec;
  transition: background-color .25s, box-shadow .25s, transform .3s var(--ease-out);
}
.cc-plan input, .cc-size input { position: absolute; opacity: 0; pointer-events: none; }
.cc-plan:hover, .cc-size:hover { box-shadow: inset 0 0 0 1px #c9ced6; }
.cc-plan:focus-within, .cc-size:focus-within { outline: 2px solid var(--cc-acc); outline-offset: 3px; }
.cc-plan:has(input:focus:not(:focus-visible)), .cc-size:has(input:focus:not(:focus-visible)) { outline: none; }
.cc-plan { gap: 4px; padding: 18px; }
.cc-plan.is-on { background: #f8f9ff; box-shadow: inset 0 0 0 2px var(--cc-acc), 0 18px 30px -22px rgba(75, 95, 214, .55); }
.cc-plan-name { padding-inline-end: 28px; font-size: 15px; line-height: 20px; font-weight: 600; color: #0b0c0e; }
.cc-plan-price { margin-top: 6px; }
.cc-plan-price b { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; color: #0b0c0e; font-variant-numeric: tabular-nums; }
.cc-plan-price small { margin-inline-start: 2px; font-size: 13px; color: #6b7280; }
.cc-plan-desc { font-size: 13px; line-height: 18px; color: #6b7280; }
.cc-tick {
  position: absolute; top: 16px; inset-inline-end: 16px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  color: transparent; box-shadow: inset 0 0 0 1.5px #cfd3da; transition: background-color .2s, color .2s, box-shadow .2s;
}
.cc-plan.is-on .cc-tick { color: #fff; background: var(--cc-acc); box-shadow: none; }
.cc-badge {
  position: absolute; top: -10px; inset-inline-start: 16px; height: 20px; padding: 0 9px; border-radius: 99px;
  font-size: 10.5px; line-height: 20px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--cc-acc);
}

.cc-sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.cc-size { gap: 3px; padding: 14px 16px; border-radius: 14px; }
.cc-size b { font-size: 15px; line-height: 20px; font-weight: 600; color: #0b0c0e; }
.cc-size span { font-size: 12.5px; line-height: 17px; color: #6b7280; }
.cc-size.is-on { background: var(--cc-tint); box-shadow: inset 0 0 0 1.5px var(--cc-acc); }
.cc-size.is-on b { color: var(--cc-acc-ink); }
.cc-size.is-on span { color: var(--cc-acc-deep); }

/* monthly volumes: icon, label, number box, then a slider */
.cc-rows { margin-top: 26px; border-top: 1px solid #eceef1; }
.cc-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 150px; grid-template-areas: "ico label field" "ico range range";
  column-gap: 14px; row-gap: 10px; align-items: center; padding: 20px 0; border-bottom: 1px solid #eceef1;
}
.cc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cc-row--parent { border-bottom: 0; padding-bottom: 6px; }   /* call length belongs to phone calls */
.cc-row--sub { padding-top: 6px; }
.cc-row-ico { grid-area: ico; align-self: start; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--cc-acc-deep); background: var(--cc-tint); }
.cc-row--sub .cc-row-ico { color: #7b88e8; background: #f5f6ff; }
.cc-row-label { grid-area: label; cursor: pointer; }
.cc-row-label b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; color: #0b0c0e; }
.cc-row-label span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 19px; color: #6b7280; }
.cc-field {   /* − number + */
  grid-area: field; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 5px; border-radius: 12px;
  background: #f6f7f9; box-shadow: inset 0 0 0 1px #e1e4e9; transition: box-shadow .2s, background-color .2s;
}
.cc-field:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cc-acc), 0 0 0 4px rgba(91, 111, 240, .14); }
.cc-pm, .cc-stepper button {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--cc-acc-deep); background: #fff;
  box-shadow: inset 0 0 0 1px #dfe3f3, 0 2px 4px -2px rgba(15, 23, 42, .15); transition: background-color .2s, transform .15s;
}
.cc-pm:hover { background: var(--cc-tint); }
.cc-pm:active, .cc-stepper button:active:not(:disabled) { transform: scale(.92); }
.cc-field input {
  width: 100%; min-width: 0; border: 0; outline: none; background: transparent; text-align: center;
  font: inherit; font-size: 16px; font-weight: 600; color: #0b0c0e; font-variant-numeric: tabular-nums;
}
.cc-unit { flex: none; margin-inline: -2px 4px; font-size: 13px; color: #6b7280; }

.cc-range { grid-area: range; width: 100%; height: 22px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --p: 0%; }
.cc-range:focus { outline: none; }
.cc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--cc-acc) var(--p), #e3e6ef var(--p)); }
.cc-range::-webkit-slider-thumb {
  width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: #fff; -webkit-appearance: none; appearance: none;
  box-shadow: 0 0 0 2px var(--cc-acc), 0 4px 10px -2px rgba(75, 95, 214, .45); transition: transform .2s var(--ease-out);
}
.cc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
.cc-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--cc-acc), 0 0 0 7px rgba(91, 111, 240, .25); }
.cc-range::-moz-range-track { height: 6px; border-radius: 99px; background: #e3e6eb; }
.cc-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--cc-acc); }
.cc-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--cc-acc), 0 4px 10px -2px rgba(75, 95, 214, .45); }

/* ---------- Add-ons (step 3): extra seats (a stepper), storage and support (option chips) ---------- */
.cc-addons { margin-top: 22px; border-top: 1px solid #eceef1; }
.cc-addon {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ico label ctl" "ico body body";
  column-gap: 14px; row-gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid #eceef1;
}
.cc-addon:last-child { border-bottom: 0; padding-bottom: 0; }
.cc-addon .cc-row-ico { grid-area: ico; }
.cc-addon-label { grid-area: label; }
.cc-addon-label > b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; color: #0b0c0e; }
.cc-addon-label > span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 19px; color: #6b7280; }
.cc-addon-label > span[hidden] { display: none; }
.cc-addon-body { grid-area: body; }
.cc-addon-foot { margin-top: 12px; font-size: 13px; line-height: 18px; color: #6b7280; }
.cc-addon-foot b { font-weight: 600; color: #0b0c0e; font-variant-numeric: tabular-nums; }

.cc-stepper {
  grid-area: ctl; display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 5px; border-radius: 12px;
  background: #f6f7f9; box-shadow: inset 0 0 0 1px #e1e4e9; transition: box-shadow .2s, background-color .2s;
}
.cc-stepper:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--cc-acc), 0 0 0 4px rgba(91, 111, 240, .14); }
.cc-stepper button:hover:not(:disabled) { background: var(--cc-tint); }
.cc-stepper button:disabled { color: #b8bdc6; background: transparent; box-shadow: none; cursor: default; }
.cc-stepper input {
  width: 46px; min-width: 0; border: 0; outline: none; background: transparent; text-align: center;
  font: inherit; font-size: 16px; font-weight: 600; color: #0b0c0e; font-variant-numeric: tabular-nums;
}

.cc-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cc-chips--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cc-chip {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: 12px; cursor: pointer;
  background: #f6f7f9; box-shadow: inset 0 0 0 1px #e6e8ec; transition: background-color .25s, box-shadow .25s, opacity .25s;
}
.cc-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cc-chip b { font-size: 14.5px; line-height: 19px; font-weight: 600; color: #0b0c0e; }
.cc-chip span { font-size: 12.5px; line-height: 17px; color: #6b7280; font-variant-numeric: tabular-nums; }
.cc-chip:hover { box-shadow: inset 0 0 0 1px #c9ced6; }
.cc-chip:focus-within { outline: 2px solid var(--cc-acc); outline-offset: 2px; }
.cc-chip:has(input:focus:not(:focus-visible)) { outline: none; }
.cc-chip.is-on { background: var(--cc-tint); box-shadow: inset 0 0 0 1.5px var(--cc-acc); }
.cc-chip.is-on b { color: var(--cc-acc-ink); }
.cc-chip.is-on span { color: var(--cc-acc-deep); }
.cc-chip.is-off { opacity: .45; cursor: not-allowed; }   /* support bundles with Fully Managed (support included) */
.cc-chip.is-off:hover { box-shadow: inset 0 0 0 1px #e6e8ec; }

/* ---------- The estimate (dark card, pinned while the steps scroll) ---------- */
.cc-result {
  position: sticky; top: 110px; padding: 30px; border-radius: 28px; color: #fff;
  background: radial-gradient(70% 60% at 85% 0%, rgba(150, 160, 178, .18), transparent 70%), radial-gradient(60% 50% at 0% 100%, rgba(142, 160, 255, .12), transparent 70%), #07090d;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6);
}
.cc-label { display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.cc-total { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.cc-total b { font-size: 60px; line-height: 62px; font-weight: 700; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cc-total small { font-size: 17px; color: rgba(255, 255, 255, .6); }
.cc-plan-line { margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, .65); }
.cc-bar { display: flex; gap: 2px; height: 12px; margin-top: 22px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.cc-bar span { flex: none; width: var(--w, 0%); transition: width .6s var(--ease-out); }
.cc-bar .is-plan, .cc-lines .is-plan i { background: #e9ebf0; }
.cc-bar .is-calls, .cc-lines .is-calls i { background: linear-gradient(90deg, #7b55e0, #8e6cf0); }
.cc-bar .is-msgs, .cc-lines .is-msgs i { background: linear-gradient(90deg, #6f9bf4, #4e86ee); }
.cc-bar .is-addons, .cc-lines .is-addons i { background: linear-gradient(90deg, #3cc4a5, #26a98c); }
.cc-lines { margin-top: 18px; }
.cc-lines li {
  display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14.5px; line-height: 19px; transition: opacity .3s;
}
.cc-lines i { width: 10px; height: 10px; border-radius: 50%; }
.cc-lines small { display: block; margin-top: 1px; font-size: 12.5px; line-height: 16px; color: rgba(255, 255, 255, .5); }
.cc-lines b { font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-lines li.is-zero { opacity: .38; }
/* a support bundle is paid once: shown under the monthly lines, not added to the total */
.cc-once {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 14.5px; line-height: 19px;
}
.cc-once[hidden] { display: none; }
.cc-once small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 16px; color: rgba(255, 255, 255, .5); }
.cc-once b { font-weight: 600; font-variant-numeric: tabular-nums; }

.cc-more { margin-top: 12px; font-size: 13.5px; line-height: 19px; }
.cc-more summary { display: flex; align-items: center; gap: 8px; width: fit-content; cursor: pointer; list-style: none; color: rgba(255, 255, 255, .75); }
.cc-more summary::-webkit-details-marker { display: none; }
.cc-more summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg); transition: transform .25s var(--ease-out), margin .25s;
}
.cc-more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.cc-more summary:hover { color: #fff; }
.cc-more ul { margin-top: 10px; padding: 6px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.cc-more li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: rgba(255, 255, 255, .7); }
.cc-more li + li { border-top: 1px solid rgba(255, 255, 255, .06); }
.cc-more b { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }

.cc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.cc-facts p { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.cc-facts b { display: block; font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cc-facts span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 17px; color: rgba(255, 255, 255, .6); }
.cc-cta { width: 100%; height: 52px; margin-top: 22px; padding: 0 7px 0 24px; font-size: 15.5px; font-weight: 600; }
.cc-cta .btn-dot { width: 38px; height: 38px; }
.cc-note { margin-top: 14px; text-align: center; font-size: 12px; line-height: 17px; color: rgba(255, 255, 255, .5); }

/* phones/tablets: the total follows you down the page (main.js shows it while the estimate is off-screen) */
.cc-mini { display: none; }

.page-calc .p-faq { margin-top: 0; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1219px) {
  .cc-grid { width: calc(min(760px, 100%) - 64px); max-width: none; grid-template-columns: minmax(0, 1fr); }
  .cc-result { position: static; scroll-margin-top: 96px; }
  .cc-mini {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; display: flex; align-items: baseline; gap: 6px;
    max-width: 560px; margin: 0 auto; padding: 14px 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, #6a7df3, #4b5fd6);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 20px 40px -12px rgba(43, 58, 160, .55);
    transform: translateY(160%); transition: transform .45s var(--ease-out);
  }
  .cc-mini.is-shown { transform: none; }
  .cc-mini-label { align-self: center; margin-inline-end: 4px; font-size: 13px; color: rgba(255, 255, 255, .8); }
  .cc-mini b { font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .cc-mini small { font-size: 13px; color: rgba(255, 255, 255, .75); }
  .cc-mini-go { align-self: center; margin-inline-start: auto; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
}

@media (max-width: 640px) {
  .cc { padding: 64px 0 84px; }
  .cc-grid { width: calc(100% - 32px); gap: 16px; }
  .cc-steps { gap: 16px; }
  .cc-step { padding: 24px 18px; border-radius: 22px; }
  .cc-step-title { font-size: 19px; line-height: 25px; }
  .cc-step-sub { font-size: 14px; line-height: 20px; }
  .cc-billing { margin-inline-start: 46px; }
  .cc-plans { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 20px; }
  .cc-plan { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; padding: 16px 16px 16px 50px; }
  .cc-plan-name { grid-column: 1; padding-inline-end: 0; }
  .cc-plan-desc { grid-column: 1; }
  .cc-plan-price { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin-top: 0; }
  .cc-plan-price b { font-size: 24px; line-height: 28px; }
  .cc-tick { top: 50%; inset-inline-end: auto; inset-inline-start: 16px; margin-top: -11px; }
  .cc-badge { top: -9px; inset-inline-start: 50px; }
  [dir="rtl"] .cc-plan { padding: 16px 50px 16px 16px; }
  [dir="rtl"] .cc-badge { inset-inline-start: 50px; }
  .cc-sizes { gap: 8px; }
  .cc-size { padding: 12px; }
  .cc-size b { font-size: 14px; line-height: 18px; }
  .cc-size span { font-size: 11.5px; line-height: 15px; }
  .cc-row { grid-template-columns: 36px minmax(0, 1fr) 128px; grid-template-areas: "ico label label" "range range field"; column-gap: 12px; row-gap: 12px; }
  .cc-range { height: 32px; }
  .cc-range::-webkit-slider-runnable-track { height: 8px; }
  .cc-range::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: -9px; }
  .cc-range::-moz-range-track, .cc-range::-moz-range-progress { height: 8px; }
  .cc-range::-moz-range-thumb { width: 24px; height: 24px; }
  .cc-row-ico { width: 36px; height: 36px; border-radius: 10px; }
  .cc-row-ico svg { width: 18px; height: 18px; }
  .cc-row-label b { font-size: 15px; line-height: 20px; }
  .cc-row-label span { font-size: 12.5px; line-height: 17px; }
  .cc-field { height: 42px; padding: 0 4px; }
  .cc-pm { width: 32px; height: 32px; }
  .cc-addon { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "ico label ctl" "body body body"; column-gap: 12px; padding: 20px 0; }
  .cc-addon-label > b { font-size: 15px; line-height: 20px; }
  .cc-addon-label > span { font-size: 12.5px; line-height: 17px; }
  .cc-stepper { height: 42px; padding: 0 4px; }
  .cc-stepper button { width: 32px; height: 32px; }
  .cc-stepper input { width: 36px; }
  .cc-chip { padding: 10px; }
  .cc-chip b { font-size: 13.5px; line-height: 18px; }
  .cc-chip span { font-size: 11.5px; line-height: 15px; }
  .cc-result { padding: 24px 18px; border-radius: 22px; }
  .cc-total b { font-size: 48px; line-height: 52px; }
}

/* =========================================================
   RIGHT-TO-LEFT (Arabic): sliders fill from the right
   ========================================================= */
[dir="rtl"] .cc-chip b, [dir="rtl"] .cc-lines [data-out="storage-add"] { unicode-bidi: plaintext; text-align: right; }   /* "+10 GB", not "10 GB+" */
[dir="rtl"] .cc-range::-webkit-slider-runnable-track { background: linear-gradient(270deg, var(--cc-acc) var(--p), #e3e6ef var(--p)); }
