:root{
  /* Palette tuned for the dark ambient CTA */
  --avk-ink:#e7f5f1;
  --avk-ink-dim:#bfded6;
  --avk-bg:#0f2531;
  --avk-border:rgba(255,255,255,.06);

  --avk-accent:#16a34a;   /* green gradient start */
  --avk-accent-2:#22c55e; /* green gradient end  */

  /* “Chip” tokens on a dark background */
  --avk-chip-bg:rgba(255,255,255,.06);
  --avk-chip-bd:rgba(255,255,255,.14);
  --avk-chip-fg:#e9fbf3;
}

/* Center & constrain (entire block including background) */
.avk-cta-wrap{
  max-width:820px !important;              /* narrower overall */
  margin:0 auto;
  padding:24px 16px;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

/* Card with ambient background */
.avk-cta{
  position:relative;
  border-radius:20px;
  padding:20px 18px;            /* slightly tighter block padding */
  color:var(--avk-ink);
  background:
    radial-gradient(1200px 600px at 10% -30%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(900px 500px at 95% 8%, rgba(16,185,129,.12), transparent 55%),
    var(--avk-bg);
  border:1px solid var(--avk-border);
  box-shadow:0 18px 50px rgba(2,6,23,.35);
}

/* Row: Title+helper (left) and CTA (right) */
.avk-cta__row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:14px;
  align-items:center;
}

/* Title & helper */
.avk-cta__title{
  margin:0 10px; 0 0 !important;             /* tighter gap to helper/options */
  color:#fff !important;
  font-weight:900;
  letter-spacing:.2px;
  font-size:clamp(18px,2.6vw,24px);
  line-height:1.2;
}
.avk-cta__helper{
  margin:14px 0 0 0 !important;                     /* no extra vertical space */
  color:var(--avk-ink-dim);
  font-size:13px;
}

/* CTA button with arrow; a bit wider; darken-only background on hover */
.avk-cta__actions{ display:flex; justify-content:flex-end; }
.avk-cta__button{
  text-decoration:none !important;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 18px;
  border-radius:12px;
  min-width:220px;              /* a little wider */
  justify-content:center;
  color:#fff;                   /* keep text color fixed */
  background:linear-gradient(135deg,var(--avk-accent),var(--avk-accent-2));
  font-weight:900;
  box-shadow:0 16px 40px rgba(34,197,94,.28);
  transition:background .15s ease, transform .05s ease;
}
.avk-cta__button:hover{
  background:linear-gradient(135deg,#12883e,#1fb653);
  color:#fff;
}
.avk-cta__button:active{
  background:linear-gradient(135deg,#107c39,#1aa64c);
}
.avk-cta__arrow{ transition:transform .15s ease; }
.avk-cta__button:hover .avk-cta__arrow{ transform:translateX(3px); }

/* Filters row (radio-as-checkbox chips) */
.avk-cta__filters{
  list-style:none;
  margin:20px 6px 0 0 !important;  /* tighter spacing under helper */
  padding:0 !important;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* Each option chip */
.avk-cta__opt{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:var(--avk-chip-bg);
  border:1px solid var(--avk-chip-bd);
  color:var(--avk-chip-fg);
  font-weight:700;
  font-size:13px;
  line-height:1;
  padding:8px 12px;
  border-radius:10px;
  cursor:pointer;
  user-select:none;
  transition:background .15s ease, border-color .15s ease;
}

/* Hidden native radio */
.avk-cta__radio{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

/* Checkbox visual with real checkmark */
.avk-cta__box{
  width:16px; height:16px;
  border-radius:4px;
  border:2px solid #a6e3c9;
  display:inline-block;
  position:relative;
  flex:0 0 auto;
  background:transparent;
}
.avk-cta__radio:checked + .avk-cta__box{
  border-color:#22c55e;
}
.avk-cta__radio:checked + .avk-cta__box::after{
  content:"";
  position:absolute;
  left:3px; top:1px;
  width:6px; height:10px;
  border-right:3px solid #22c55e;
  border-bottom:3px solid #22c55e;
  transform:rotate(45deg);
}


/* NEW: green fill for the whole chip when selected
   Uses :has() (widely supported in modern browsers).
   If :has() isn’t available, users still see the checkmark. */
.avk-cta__opt:has(.avk-cta__radio:checked){
  background: linear-gradient(135deg, #12883e, #1fb653);
  border-color: rgba(34,197,94,.75);
  box-shadow: 0 1px 10px rgba(34,197,94,.25);
  color:#fff;
}
.avk-cta__opt:has(.avk-cta__radio:checked) .avk-cta__optLabel{
  color:#fff;
}


/* Option label text */
.avk-cta__optLabel{
  white-space:nowrap;
}

/* Hover/active for the chip */
.avk-cta__opt:hover{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.24);
}

/* Responsive: place options ABOVE CTA on mobile */
@media (max-width:560px){
  /* Flatten the inner row so we can reorder pieces with grid areas */
  .avk-cta{
    display:grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "filters"
      "actions";
    row-gap:10px;
  }
  .avk-cta__row{ display:contents; }    /* exposes its children to the grid */
  .avk-cta__head{ grid-area:head; }
  .avk-cta__filters{ grid-area:filters; }
  .avk-cta__actions{ grid-area:actions; }

  .avk-cta__button{ width:100%; }
}