/* ==========================================================================
   video.css — gated on-demand-video template (video-hub + on-demand-webinars).
   Recreated from the live Certinal layout, restyled in the Certinal DS
   (lime + dark, Switzer, dark-on-lime, radii ≤20px, 8pt spacing).
   ========================================================================== */

.vg { --vg-max: 1200px; }

/* ---- HERO: intro + form ------------------------------------------------- */
.vgHero {
  background:
    radial-gradient(120% 120% at 88% 0%, var(--lime-200), transparent 55%),
    linear-gradient(150deg, #F4FBE3 0%, #FBFEF4 46%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border);
  /* clear the FIXED navbar (announce strip + topBar) like .lpHero does */
  padding: calc(var(--nav-offset, 100px) + clamp(20px, 4vh, 40px)) 0 clamp(40px, 7vh, 80px);
}
.vgHeroInner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.vgCrumbs { display: flex; align-items: center; gap: 8px; font-size: var(--text-sm); color: var(--text-muted); margin-bottom: 18px; }
.vgCrumbs a { color: var(--text-muted); }
.vgCrumbs a:hover { color: var(--lime-800); }
.vgEyebrow { margin: 0 0 14px; }
.vgTitle {
  font-size: clamp(30px, 24px + 1.6vw, 46px);
  font-weight: var(--w-primary);
  line-height: 1.1; letter-spacing: -.02em; color: var(--n-950);
  margin: 0 0 18px;
}
.vgLead { font-size: clamp(16px, 15px + .3vw, 19px); line-height: 1.7; color: var(--n-800); margin: 0 0 24px; max-width: 46ch; }
.vgLearn { margin-top: 6px; }
.vgLearnHead { font-weight: var(--w-primary); color: var(--n-950); margin: 0 0 12px; }
.vgLearnList { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vgLearnList li { position: relative; padding-left: 30px; line-height: 1.6; color: var(--n-800); }
.vgLearnList li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime-400);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5"><path d="M20 6L9 17l-5-5"/></svg>') center/12px no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5"><path d="M20 6L9 17l-5-5"/></svg>') center/12px no-repeat;
}

/* ---- FORM card ---------------------------------------------------------- */
.vgFormCard {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px rgba(62, 79, 5, .12); padding: clamp(22px, 3vw, 34px);
}
.vgFormHeading { font-size: clamp(19px, 17px + .5vw, 23px); font-weight: var(--w-primary); color: var(--n-950); margin: 0 0 6px; }
.vgFormSub { font-size: var(--text-sm); color: var(--n-700); margin: 0 0 20px; line-height: 1.5; }
.vgField { margin-bottom: 12px; }
.vgFieldRow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.vgForm input,
.vgForm select {
  width: 100%; height: 48px; padding: 0 15px; font: inherit; font-size: 15px; color: var(--n-950);
  background: var(--n-50); border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .18s, box-shadow .18s;
}
.vgForm select { appearance: none; -webkit-appearance: none; color: var(--n-700);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23555" stroke-width="2"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.vgForm input::placeholder { color: var(--text-muted); }
.vgForm input:focus, .vgForm select:focus { outline: none; border-color: var(--lime-500); box-shadow: 0 0 0 3px rgba(153, 186, 53, .22); }
.vgConsent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--n-700); }
.vgConsent input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--lime-600, #7d9a2e); }
.vgSubmit {
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 28px; border: 0; cursor: pointer;
  background: var(--lime-400); color: var(--n-950); font-weight: var(--w-button); font-size: var(--btn-size); border-radius: var(--r-full);
  transition: transform .2s var(--ease-lift), box-shadow .2s, background .2s;
}
.vgSubmit:hover { background: var(--lime-500); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(121, 150, 27, .3); }
.vgSubmit svg { width: 15px; height: 15px; }
.vgPrivacy { font-size: 11.5px; line-height: 1.5; color: var(--text-muted); margin: 14px 0 0; }

/* submitted state — swap form for a confirmation */
.vgSent { display: none; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 30px 10px 20px; }
.vgSent p { color: var(--n-800); font-size: 16px; margin: 0; }
.vgSentIcon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lime-400); color: var(--n-950); }
.vgFormCard.vgIsSent .vgForm { display: none; }
.vgFormCard.vgIsSent .vgSent { display: flex; }

/* compliance badge strip inside the form card */
.vgCompliance { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.vgComplianceTitle { font-size: 13px; font-weight: var(--w-primary); color: var(--n-950); margin: 0 0 12px; }
.vgBadges { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.vgBadges img { height: 34px; width: auto; object-fit: contain; }

/* ---- shared sections ---------------------------------------------------- */
.vgSection { padding: clamp(40px, 6vh, 72px) 0; }
.vgSection:nth-of-type(even) { background: var(--n-50); }
.vgH2 { text-align: center; font-size: clamp(22px, 18px + 1vw, 30px); font-weight: var(--w-primary); letter-spacing: -.015em; color: var(--n-950); margin: 0 0 clamp(28px, 4vh, 44px); }

/* logo wall */
.vgLogoWall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; max-width: var(--vg-max); margin: 0 auto; }
.vgLogoTile { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 18px 22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: inset 0 1px #fff, 0 6px 18px rgba(62, 79, 5, .05); }
.vgLogoTile img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; }

/* analyst recognition */
.vgAnalysts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 2.4vw, 26px); max-width: var(--vg-max); margin: 0 auto; }
.vgAnalyst { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: clamp(20px, 2.6vw, 30px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(62, 79, 5, .07); }
.vgAnalystBadge { flex: 1; display: flex; align-items: center; justify-content: center; }
.vgAnalystBadge img { max-width: 100%; max-height: 118px; width: auto; height: auto; object-fit: contain; }
.vgAnalystCta { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 20px; border-radius: var(--r-full);
  background: var(--lime-400); color: var(--n-950); font-weight: var(--w-button); font-size: var(--text-sm);
  transition: transform .2s var(--ease-lift), background .2s; }
.vgAnalystCta:hover { background: var(--lime-500); transform: translateY(-2px); }
.vgAnalystCta svg { width: 13px; height: 13px; }

/* case study CTA band */
.vgCase { position: relative; overflow: hidden; max-width: var(--vg-max); margin: 0 auto;
  background: linear-gradient(135deg, #12331B 0%, #0C2413 100%); border-radius: var(--r-xl, 20px);
  padding: clamp(30px, 5vw, 56px); }
.vgCaseText { position: relative; z-index: 1; max-width: 62%; }
.vgCaseBrand { display: inline-block; font-weight: var(--w-primary); color: var(--lime-400); letter-spacing: .04em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.vgCaseTitle { font-size: clamp(20px, 16px + 1.2vw, 30px); font-weight: var(--w-primary); color: #fff; line-height: 1.15; margin: 0 0 6px; }
.vgCaseHi { font-size: clamp(18px, 15px + .9vw, 26px); font-weight: var(--w-primary); color: var(--lime-400); line-height: 1.2; margin: 0 0 24px; }
.vgCaseCta { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: var(--r-full);
  background: var(--lime-400); color: var(--n-950); font-weight: var(--w-button); font-size: var(--btn-size);
  transition: transform .2s var(--ease-lift), box-shadow .2s, background .2s; }
.vgCaseCta:hover { background: var(--lime-500); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(121, 150, 27, .35); }
.vgCaseCta svg { width: 15px; height: 15px; }
.vgCaseArt { position: absolute; right: -4%; bottom: -10%; width: 42%; height: 150%;
  background: radial-gradient(circle at 60% 40%, rgba(153, 186, 53, .28), transparent 62%); pointer-events: none; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .vgHeroInner { grid-template-columns: 1fr; gap: 30px; }
  .vgFormCard { order: 2; }
}
@media (max-width: 560px) {
  .vgFieldRow { grid-template-columns: 1fr; }
  .vgCaseText { max-width: 100%; }
  .vgCaseArt { display: none; }
}
