/* Buyer's guide landing page v3 (ported from LeadGen templates/v3.aspx), restyled with the HRSoftwarePrices palette.
   All classes are prefixed ov3- so they never collide with site.css. */

.offer-v3 {
  --ov3-bg: var(--cloud);
  --ov3-surface: #fff;
  --ov3-ink: var(--ink);
  --ov3-ink-soft: var(--muted);
  --ov3-rule: var(--line);
  --ov3-accent: var(--green);
  --ov3-accent-hover: var(--green-deep);
  --ov3-accent-soft: var(--blue-soft);
  --ov3-heading: var(--blue-deep);
  --ov3-link: var(--blue);
  --ov3-error: #d64545;
  --ov3-shadow-sm: 0 1px 2px rgba(6, 56, 84, .06), 0 1px 3px rgba(6, 56, 84, .04);
  --ov3-shadow-md: 0 4px 12px rgba(6, 56, 84, .08), 0 2px 6px rgba(6, 56, 84, .04);
  --ov3-shadow-lg: 0 24px 48px -12px rgba(6, 56, 84, .18);
  --ov3-radius-sm: 4px;
  --ov3-radius-md: 10px;
  --ov3-radius-lg: 16px;
  --ov3-container: 1180px;

  color: var(--ov3-ink);
  background-color: var(--ov3-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 79, 120, .07), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(103, 181, 70, .08), transparent 60%);
  line-height: 1.6;
}

.offer-v3 img { max-width: 100%; height: auto; display: block; }

.offer-v3 a { color: var(--ov3-link); transition: color .15s ease; }
.offer-v3 a:hover { color: var(--blue-deep); }

/* Header: site logo (larger than the PPC pages) and partner lockup.
   site.css scopes fixed widths under body:has(.ppc-header), so these selectors are deliberately more specific. */
.offer-v3 .ppc-header .ppc-logo { flex-shrink: 0; }
.offer-v3 .ppc-header .ppc-logo img {
  width: 260px;
  max-width: 100%;
  height: auto;
}
.offer-v3 .ppc-header .partner-lockup .ov3-partner-brand img {
  width: auto;
  height: auto;
  max-height: 36px;
  max-width: 200px;
}

.ov3-partner-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov3-partner-brand strong { color: var(--blue-deep); font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* Main */
.ov3-main { padding: 64px 0 0; }

.ov3-container {
  max-width: var(--ov3-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ov3-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-areas:
    "intro form"
    "details form";
  column-gap: 64px;
  row-gap: 0;
  align-items: start;
}
/* site.css gives every <section> vertical padding; these two must sit flush so the title and copy stay close. */
.offer-v3 .ov3-intro,
.offer-v3 .ov3-details { padding: 0; margin: 0; }
.ov3-intro { grid-area: intro; }
.ov3-details { grid-area: details; }
.ov3-aside { grid-area: form; align-self: stretch; }

.ov3-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--ov3-accent-soft);
  border: 1px solid #cfe2ea;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.offer-v3 h1 {
  font-weight: 800;
  font-size: clamp(32px, 4.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 12px;
  color: var(--ov3-heading);
}

.ov3-lede,
.ov3-details p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ov3-ink-soft);
  margin: 0 0 20px;
  max-width: 56ch;
}
.ov3-details p:last-of-type { margin-bottom: 32px; }

.ov3-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.ov3-chips li {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--ov3-surface);
  border: 1px solid #cfe2ea;
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: var(--ov3-shadow-sm);
}

/* Report cover */
.ov3-report-cover {
  position: relative;
  margin: 32px 0 40px;
  max-width: 380px;
}
.ov3-report-cover img {
  border-radius: var(--ov3-radius-md);
  box-shadow: var(--ov3-shadow-lg);
  transform: rotate(-2deg);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.ov3-report-cover:hover img { transform: rotate(0deg) translateY(-4px); }
.ov3-report-cover::before {
  content: "";
  position: absolute;
  inset: -8px;
  background: var(--blue);
  border-radius: var(--ov3-radius-md);
  opacity: .08;
  z-index: 0;
  transform: rotate(2deg);
}
.ov3-report-cover img { position: relative; z-index: 1; }

/* Form card */
.ov3-form-card,
.ov3-success-card {
  background: var(--ov3-surface);
  border-radius: var(--ov3-radius-lg);
  box-shadow: var(--ov3-shadow-md);
  border: 1px solid var(--ov3-rule);
  padding: 40px;
  position: sticky;
  top: 24px;
}
.ov3-form-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ov3-rule);
}
.ov3-form-title {
  font-weight: 800;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 8px;
  color: var(--ov3-heading);
}

.ov3-form-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  background: rgba(214, 69, 69, .08);
  border: 1px solid rgba(214, 69, 69, .3);
  border-radius: var(--ov3-radius-sm);
  color: var(--ov3-error);
  font-size: 13px;
  line-height: 1.45;
}

.ov3-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.ov3-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ov3-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ov3-required { color: var(--ov3-accent-hover); font-weight: 700; }

.ov3-field input,
.ov3-field select {
  font: inherit;
  font-size: 15px;
  color: var(--ov3-ink);
  background: var(--ov3-surface);
  border: 1.5px solid var(--ov3-rule);
  border-radius: var(--ov3-radius-sm);
  padding: 11px 14px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.ov3-field input:focus,
.ov3-field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 79, 120, .15);
}
.ov3-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M4 6L8 10L12 6' stroke='%235c6f7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.ov3-submit {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  background: var(--ov3-accent);
  border: none;
  border-radius: var(--ov3-radius-sm);
  padding: 14px 24px;
  margin-top: 8px;
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
  box-shadow: 0 14px 30px rgba(24, 80, 36, .25);
}
.ov3-submit:hover { color: #fff; background: var(--ov3-accent-hover); }
.ov3-submit:active { transform: translateY(1px); }
.ov3-submit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(103, 181, 70, .4); }

.ov3-footnote {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* Success state */
.ov3-success-card { padding: 48px 40px; text-align: center; }
.ov3-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #f0faec;
  border: 1px solid #b9dbac;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ov3-success-icon svg { width: 32px; height: 32px; color: var(--green-deep); }
.ov3-success-title {
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--ov3-heading);
}
.ov3-success-text { color: var(--ov3-ink-soft); margin: 0 0 28px; font-size: 15px; }

/* What you will learn (closing section, from industry_category_article.what_you_will_learn) */
.ov3-learn {
  max-width: var(--ov3-container);
  margin: 72px auto 96px;
  padding: 0 24px;
}
.ov3-learn-inner {
  background: var(--ov3-surface);
  border: 1px solid var(--ov3-rule);
  border-radius: var(--ov3-radius-lg);
  padding: 40px 48px;
  box-shadow: var(--ov3-shadow-sm);
}
.ov3-learn h2 {
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.01em;
  margin: 0 0 20px;
  color: var(--ov3-heading);
}
.ov3-learn p,
.ov3-learn li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ov3-ink-soft);
}
.ov3-learn p { margin: 0 0 14px; }
.ov3-learn ul,
.ov3-learn ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.ov3-learn ul.ov3-learn-list { list-style: none; padding: 0; gap: 14px; }
.ov3-learn ul.ov3-learn-list li { display: flex; gap: 14px; align-items: flex-start; }
.ov3-learn ul.ov3-learn-list li::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  background: #f0faec url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'><path d='M3 8L7 12L13 4' stroke='%234c9334' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/14px no-repeat;
}
.ov3-learn h3 {
  font-weight: 800;
  font-size: 20px;
  margin: 24px 0 10px;
  color: var(--ov3-heading);
}

.ov3-spacer { height: 96px; }

/* Related reports (industry_category_article.relatedPapers) */
.ov3-related {
  max-width: var(--ov3-container);
  margin: 0 auto 96px;
  padding: 0 24px;
}
.ov3-learn + .ov3-related { margin-top: -40px; }
.ov3-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.ov3-related-head h2 {
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ov3-heading);
}
.ov3-related-head a { font-weight: 700; white-space: nowrap; }
.ov3-related-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ov3-related-card {
  background: var(--ov3-surface);
  border: 1px solid var(--ov3-rule);
  border-radius: var(--ov3-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--ov3-shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ov3-related-card:hover { transform: translateY(-3px); box-shadow: var(--ov3-shadow-md); }
.ov3-related-cover {
  display: block;
  width: 100%;
  background: var(--ov3-accent-soft);
  border-bottom: 1px solid var(--ov3-rule);
}
.ov3-related-cover img { width: 100%; height: auto; }
.ov3-related-fallback {
  display: grid;
  place-items: center;
  min-height: 160px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: .08em;
}
.ov3-related-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.ov3-related-source {
  margin: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ov3-related-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ov3-heading);
  flex: 1;
}
.ov3-related-body h3 a { color: inherit; }
.ov3-related-body h3 a:hover { color: var(--blue); }
.ov3-related-link { font-weight: 700; color: var(--green-deep); font-size: .94rem; }
.ov3-related-link:hover { color: var(--blue); }

/* Reveal animation */
.ov3-reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: ov3-reveal .7s cubic-bezier(.2, .8, .2, 1) forwards;
}
.ov3-reveal-1 { animation-delay: .05s; }
.ov3-reveal-2 { animation-delay: .15s; }
.ov3-reveal-3 { animation-delay: .25s; }
.ov3-reveal-4 { animation-delay: .35s; }

@keyframes ov3-reveal { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .ov3-reveal { animation: none; opacity: 1; transform: none; }
  .ov3-report-cover img { transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .ov3-related-grid { grid-template-columns: repeat(2, 1fr); }
  .ov3-related { margin-bottom: 64px; }
  .ov3-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "form"
      "details";
    row-gap: 36px;
  }
  .ov3-intro h1 { margin-bottom: 0; }
  .ov3-form-card,
  .ov3-success-card { position: static; }
  .ov3-main { padding: 40px 0 0; }
  .ov3-learn { margin: 48px auto 64px; }
  .ov3-learn-inner { padding: 32px 28px; }
  .ov3-report-cover { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .ov3-related-grid { grid-template-columns: 1fr; }
  .ov3-related { padding: 0 16px; margin-bottom: 48px; }
  .ov3-related-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .ov3-container { padding: 0 16px; }
  .ov3-form-card { padding: 28px 20px; }
  .ov3-field-row { grid-template-columns: 1fr; gap: 0; }
  .ov3-partner-brand { font-size: .62rem; }
  .offer-v3 .ppc-header .ppc-logo img { width: 180px; }
  .offer-v3 .ppc-header .partner-lockup .ov3-partner-brand img { max-height: 26px; max-width: 140px; }
  .ov3-main { padding: 32px 0 0; }
  .ov3-learn { padding: 0 16px; margin: 40px auto 48px; }
  .ov3-learn-inner { padding: 24px 20px; }
}
