
/* ==========================================================================
   purchase funnel: plan picker, order form, account (login / registration),
   payment window and the status popups
   ========================================================================== */
.cv-funnel-page { background: #fff; }

.cv-main { padding: 96px 20px 56px; }
.cv-main-narrow { padding-top: 120px; }
.cv-wrap { max-width: 1080px; margin: 0 auto; }
.cv-wrap-narrow { max-width: 560px; }

.cv-h1 { margin: 0 0 10px; font-size: 32px; line-height: 1.2; font-weight: 700; color: #1f1f1f; }
.cv-h2 { margin: 26px 0 10px; font-size: 18px; font-weight: 700; color: #1f1f1f; }
.cv-lead { margin: 0 0 22px; color: #5b5b5b; font-size: 15px; line-height: 1.5; }
.cv-muted { color: #858585; font-size: 14px; }
.cv-fine { margin: 14px 0 0; color: #858585; font-size: 12px; line-height: 1.45; }
.cv-textlink { color: #0073f0; font-weight: 600; text-decoration: none; }
.cv-textlink:hover { text-decoration: underline; }
.cv-linkbtn {
  border: 0; background: none; padding: 0; color: #858585; font: inherit; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}
.cv-linkbtn:hover { color: #1f1f1f; }

.cv-card {
  padding: 26px; border: 1px solid #e6e6e6; border-radius: 16px; background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}
.cv-card + .cv-card { margin-top: 20px; }

/* tabs --------------------------------------------------------------- */
.cv-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 4px; background: #f2f4f7; border-radius: 999px; }
.cv-tab {
  flex: 1; height: 40px; border: 0; border-radius: 999px; background: transparent;
  color: #5b5b5b; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cv-tab-on { background: #fff; color: #1f1f1f; box-shadow: 0 2px 8px rgba(15, 23, 42, .12); }

/* forms -------------------------------------------------------------- */
.cv-form { display: block; }
.cv-fld { display: block; margin-bottom: 14px; }
.cv-fld > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #1f1f1f; }
.cv-in {
  display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid #d6d6d6;
  border-radius: 12px; background: #fff; color: #1f1f1f; font: inherit; font-size: 15px;
}
.cv-in:focus { outline: 2px solid #0073f0; border-color: transparent; }
.cv-in::placeholder { color: #a5a5a5; }
.cv-in-bad { border-color: #dc2121; }
.cv-in-err { display: block; margin-top: 5px; color: #dc2121; font-size: 12px; }
.cv-fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cv-cardset { padding: 16px; border: 1px dashed #d6d6d6; border-radius: 12px; margin-bottom: 16px; }

.cv-btn {
  display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 0 20px;
  border: 1px solid #0073f0; border-radius: 999px; background: #fff; color: #0073f0;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.cv-btn:hover { background: #f2f6ff; }
.cv-btn-primary { background: #0073f0; color: #fff; }
.cv-btn-primary:hover { background: #005cc0; color: #fff; }
.cv-btn[disabled] { opacity: .6; cursor: default; }

.cv-sum { margin: 4px 0 20px; padding: 14px 16px; background: #f7f8fa; border-radius: 12px; }
.cv-sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
.cv-sum-row span { color: #858585; }
.cv-sum-row strong { color: #1f1f1f; font-weight: 700; word-break: break-word; text-align: right; }

/* overlays ----------------------------------------------------------- */
.cv-ovl {
  position: fixed; inset: 0; z-index: 1400; display: flex; align-items: center;
  justify-content: center; padding: 20px; overflow-y: auto;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px);
}
.cv-sheet {
  position: relative; width: 100%; max-width: 460px; padding: 26px;
  border-radius: 18px; background: #fff; box-shadow: 0 30px 70px rgba(15, 23, 42, .35);
  animation: cv-in .14s ease-out;
}
.cv-sheet-title { margin: 0 0 10px; font-size: 21px; line-height: 1.25; font-weight: 700; color: #1f1f1f; }
.cv-sheet-text { margin: 0 0 18px; color: #5b5b5b; font-size: 14px; line-height: 1.5; }
.cv-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: 1px solid #e6e6e6; border-radius: 50%; background: #fff; color: #5b5b5b;
  font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
}
.cv-x:hover { border-color: #858585; color: #1f1f1f; }
.cv-shake { animation: cv-shake .32s ease-in-out; }
@keyframes cv-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}
.cv-noscroll { overflow: hidden; }

/* blurred site behind the "update payment data" window ---------------- */
.cv-blur-site header,
.cv-blur-site main,
.cv-blur-site footer {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.cv-note {
  margin: 0 0 18px; padding: 14px 16px; border-radius: 12px;
  background: #eaf7ef; border: 1px solid #bfe6cc; color: #0a7d32;
  font-size: 14px; font-weight: 600;
}
.cv-signed { margin: 0 0 4px; font-size: 14px; color: #5b5b5b; }
.cv-signed strong { color: #1f1f1f; }

/* plan picker -------------------------------------------------------- */
.cv-plans { margin: 0 0 44px; }
.cv-plans-head { margin-bottom: 20px; }
.cv-plans-head:empty { display: none; }
.cv-plans-title { margin: 0 0 8px; font-size: 26px; font-weight: 700; color: #1f1f1f; }
.cv-plans-sub { margin: 0; color: #5b5b5b; font-size: 15px; }
.cv-plans-vin { margin: 10px 0 0; font-size: 14px; color: #858585; }
.cv-plans-vin strong { color: #1f1f1f; letter-spacing: .02em; }
.cv-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.cv-plan {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px;
  border: 1px solid #e6e6e6; border-radius: 16px; background: #fff;
}
.cv-plan-top { border-color: #0073f0; box-shadow: 0 14px 34px rgba(0, 115, 240, .14); }
.cv-plan-badge {
  position: absolute; top: -11px; left: 22px; padding: 3px 10px; border-radius: 999px;
  background: #0073f0; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.cv-plan-name { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: #1f1f1f; }
.cv-plan-price { display: flex; align-items: baseline; gap: 8px; }
.cv-plan-price strong { font-size: 28px; font-weight: 800; color: #1f1f1f; }
.cv-plan-price span { font-size: 13px; color: #858585; }
.cv-plan-list { margin: 0; padding: 0 0 0 18px; color: #5b5b5b; font-size: 13px; line-height: 1.7; }
.cv-plan .cv-btn { margin-top: auto; }

/* spinners ----------------------------------------------------------- */
.cv-spin,
.cv-pop-spin {
  width: 42px; height: 42px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid #e6e6e6; border-top-color: #0073f0; animation: cv-rot 1s linear infinite;
}
.cv-spin-lg { width: 54px; height: 54px; margin: 6px auto 18px; }
@keyframes cv-rot { to { transform: rotate(360deg); } }

/* status popups (loaded from popup.php) ------------------------------ */
.cv-pop {
  position: fixed; inset: 0; z-index: 1500; display: flex; align-items: center;
  justify-content: center; padding: 20px; background: rgba(15, 23, 42, .55);
}
.cv-pop[hidden] { display: none !important; }
.cv-pop-box {
  width: 100%; max-width: 420px; padding: 26px; border-radius: 18px; background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, .35); text-align: center;
  animation: cv-in .14s ease-out;
}
.cv-pop-title { margin: 0 0 8px; font-size: 19px; line-height: 1.3; font-weight: 700; color: #1f1f1f; }
.cv-pop-text { margin: 0 0 14px; color: #5b5b5b; font-size: 14px; line-height: 1.5; }
.cv-pop-amount { margin: 0 0 4px; font-size: 14px; color: #858585; }
.cv-pop-amount strong { color: #1f1f1f; }
.cv-pop-field { display: block; margin: 16px 0 12px; text-align: left; }
.cv-pop-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #1f1f1f; }
.cv-pop-input {
  display: block; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d6d6d6;
  border-radius: 12px; font: inherit; font-size: 15px; color: #1f1f1f; background: #fff;
}
.cv-pop-input:focus { outline: 2px solid #0073f0; border-color: transparent; }
.cv-pop-btn {
  display: block; width: 100%; min-height: 48px; border: 0; border-radius: 999px;
  background: #0073f0; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.cv-pop-btn:hover { background: #005cc0; color: #fff; }
.cv-pop-check {
  width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 50%;
  background: #eaf7ef; color: #0a7d32; font-size: 26px; line-height: 52px;
}
.cv-pop-ring { position: relative; width: 88px; height: 88px; margin: 0 auto 14px; }
.cv-pop-ring svg { width: 88px; height: 88px; transform: rotate(-90deg); }
.cv-pop-ring-bg { fill: none; stroke: #eceff3; stroke-width: 4; }
.cv-pop-ring-fg { fill: none; stroke: #0073f0; stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.cv-pop-count {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; color: #1f1f1f;
}
.cv-pop-qr { margin: 0 auto 12px; width: 180px; height: 180px; }
.cv-pop-qr img { display: block; width: 180px; height: 180px; }
.cv-pop-push {
  display: flex; align-items: center; gap: 8px; margin: 0 auto 14px; padding: 8px 12px;
  width: fit-content; max-width: 100%; border: 1px solid #e6e6e6; border-radius: 12px;
  background: #f7f8fa; font-size: 13px; color: #5b5b5b;
}
.cv-pop-push-g {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #4285f4;
  font-weight: 700; font-size: 13px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
.cv-pop-push-time { margin-left: auto; color: #a5a5a5; font-size: 12px; }

/* the hidden attribute must win over our own display rules */
.cv-form[hidden], .cv-card[hidden], .cv-sheet[hidden], .cv-note[hidden],
.cv-plans[hidden], .cv-plan[hidden], .cv-fld[hidden], .cv-cardset[hidden] { display: none !important; }

/* ------------------------------------------------------------- illustrations
   the funnel borrows the report pictures of the site (cv-data.pics -> funnel.js) */
.cv-plans-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.cv-hero-text { min-width: 0; }
.cv-hero-points { margin: 16px 0 0; padding-left: 18px; color: #5b5b5b; font-size: 14px; line-height: 1.8; }
.cv-hero-pic { min-width: 0; }
.cv-hero-pic img { display: block; width: 100%; max-width: 520px; height: auto; margin: 0 auto; }
.cv-hero-cap { margin: 8px 0 0; color: #858585; font-size: 12px; text-align: center; }

.cv-pics { max-width: 1080px; margin: 46px auto 0; padding: 0 4px; }
.cv-pics-title { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 700; color: #1f1f1f; }
.cv-pic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cv-pic {
  margin: 0; padding: 14px; border: 1px solid #e6e6e6; border-radius: 16px; background: #fff;
}
.cv-pic img { display: block; width: 100%; height: auto; border-radius: 10px; }
.cv-pic figcaption { margin-top: 10px; color: #5b5b5b; font-size: 13px; line-height: 1.45; }

/* account page: forms + a side column with the report picture */
.cv-auth-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.cv-auth-col { min-width: 0; }
.cv-auth-side { display: block; min-width: 0; margin-top: 4px; }
.cv-side-fig { margin: 0; }
.cv-side-fig img { display: block; width: 100%; height: auto; border-radius: 16px; }
.cv-side-h { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: #1f1f1f; }
.cv-side-points { margin: 0; padding-left: 18px; color: #5b5b5b; font-size: 14px; line-height: 1.75; }

/* payment page: what the client gets once the bank confirms */
.cv-pay-pic { margin: 22px 0 0; padding: 0; }
.cv-pay-pic img {
  display: block; width: 100%; height: auto;
  border: 1px solid #e6e6e6; border-radius: 16px;
}
.cv-pay-pic figcaption { margin-top: 8px; color: #858585; font-size: 12px; text-align: center; }

@media (min-width: 900px) {
  .cv-plans-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; }
}
@media (min-width: 940px) {
  .cv-auth-grid { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 44px; }
  .cv-auth-side { display: block; }
}

@media (max-width: 640px) {
  .cv-main { padding: 84px 14px 40px; }
  .cv-h1 { font-size: 26px; }
  .cv-card, .cv-sheet, .cv-pop-box { padding: 20px; }
  .cv-fld-row { grid-template-columns: 1fr 1fr; }
}
