/* Pricing v2
 * Follows the Supplier Product Category v3 design (page_supplierProductCategory-v3.css): same tokens,
 * section rhythm, cards and block restyles. The hero keeps the original photo + blue overlay + form layout.
 * Block output from 360-custom-modules is restyled under #pricingPage so these rules
 * outrank the ID-scoped <style> tags the blocks print inline.
 */

body.pricing-v2-page {
  background: #fff;
}

.pp-v2 {
  --pp-navy: #062f72;
  --pp-blue: #0b5ea8;
  --pp-sky: #1e73ac;
  --pp-green: #83cc22;
  --pp-ink: #17324d;
  --pp-muted: #5a6f84; /* 4.8:1 on --pp-soft, 5.2:1 on white */
  --pp-field-border: #7a8ca0; /* 3:1+ against the field and card backgrounds */
  --pp-line: #dfe7ee;
  --pp-soft: #f3f7fa;
  color: var(--pp-ink);
  font-family: inherit;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.pp-v2 *,
.pp-v2 *::before,
.pp-v2 *::after {
  box-sizing: border-box;
}

.pp-v2 h1,
.pp-v2 h2,
.pp-v2 h3,
.pp-v2 p,
.pp-v2 dl,
.pp-v2 ul,
.pp-v2 figure {
  margin-top: 0;
}

.pp-v2 h1,
.pp-v2 h2,
.pp-v2 h3 {
  color: var(--pp-navy);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* ---------- Hero ---------- */

.pp-v2-hero {
  position: relative;
  padding: 64px 0 110px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(131, 204, 34, 0.18), rgba(131, 204, 34, 0) 45%),
    linear-gradient(115deg, rgba(6, 47, 114, 0.96) 0%, rgba(11, 94, 168, 0.9) 55%, rgba(30, 115, 172, 0.78) 100%),
    url('/wp-content/uploads/2024/12/pricing-background-v2-scaled.webp') center / cover no-repeat;
}

.pp-v2-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.pp-v2-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pp-v2 .pp-v2-hero h1 {
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
}

.pp-v2-hero-subheader {
  margin-bottom: 8px;
  color: #fff;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
}

.pp-v2-hero-text {
  max-width: 48ch;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
}

.pp-v2-hero-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pp-v2-hero-checks li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
}

.pp-v2-hero-checks li::before {
  display: inline-grid;
  flex: none;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #0f3a07;
  background: var(--pp-green);
  content: "✓";
  content: "✓" / ""; /* Decorative: keep screen readers from announcing "check mark" */
  font-size: 12px;
  font-weight: 900;
}

/* Form card */

.pp-v2-hero-form {
  scroll-margin-top: 100px;
  padding: 28px 28px 8px;
  border-radius: 18px;
  color: var(--pp-ink);
  background: #fff;
  box-shadow: 0 24px 60px rgba(3, 22, 56, 0.35);
}

.pp-v2-form-header {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-v2 .pp-v2-form-header h2 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.pp-v2-form-header p {
  margin-bottom: 10px;
  color: var(--pp-muted);
  font-size: 14px;
}

.pp-v2-form-header .pp-v2-form-note {
  margin-top: -6px;
  font-size: 13px;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .heading {
  display: none;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 14px;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field {
  margin: 12px 0 0;
  padding: 0;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field label {
  margin-bottom: 4px;
  color: var(--pp-navy);
  font-size: 13px;
  font-weight: 700;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field label .required {
  display: none;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field input:not([type="radio"]):not([type="checkbox"]),
#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field select {
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--pp-field-border);
  border-radius: 10px;
  color: var(--pp-ink);
  background: var(--pp-soft);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field input:not([type="radio"]):not([type="checkbox"]):focus,
#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field select:focus {
  border-color: var(--pp-blue);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(11, 94, 168, 0.45);
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field.validationFailed input,
#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field.validationFailed select {
  border-color: #bb0202;
  border-width: 2px;
}

/* Don't rely on color alone to flag invalid fields */
#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field.validationFailed label {
  color: #bb0202;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields .field.validationFailed label::after {
  content: " (required)";
  font-weight: 600;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .submit {
  padding: 18px 0 20px;
  display: flex;
  flex-direction: row-reverse;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .submit .tsz_ctaButton {
  width: 100%;
  min-height: 50px;
  margin: 0;
  border: 2px solid var(--pp-green);
  border-radius: 999px;
  color: #0f3a07 !important; /* Beats essentialCSS .tsz_ctaButton { color: #fff !important } */
  background: var(--pp-green);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .submit .tsz_ctaButton:hover,
#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .submit .tsz_ctaButton:focus {
  color: #fff !important;
  background: var(--pp-navy);
  border-color: var(--pp-navy);
}

#pricingPage .pp-v2-hero-form .tszBlock_form .formContent .submit .tsz_ctaButton:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

/* Curved bottom edge: modern take on the original green curve graphics */

.pp-v2-hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  display: block;
  width: 100%;
  height: 90px;
}

.pp-v2-hero-wave-accent {
  fill: none;
  stroke: var(--pp-green);
  stroke-width: 4;
  stroke-dasharray: 1700;
  stroke-dashoffset: 1700;
  animation: pp-v2-draw 1.8s 0.3s ease-out forwards;
}

.pp-v2-hero-wave-fill {
  fill: #fff;
}

@keyframes pp-v2-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-v2-hero-wave-accent {
    stroke-dashoffset: 0;
    animation: none;
  }
}

/* ---------- Button block (acf/tsz-button) ---------- */
.tszBlock_query .post-card .excerpt .more a {
  color: #fff !important;
}
/* Block default hover (#70aed2) is only 2.4:1 with white text */
#pricingPage .tszBlock_query .post-card .excerpt .more a:hover,
#pricingPage .tszBlock_query .post-card .excerpt .more a:focus {
  background-color: var(--pp-navy);
}
#pricingPage .tszBlock_query .post-card .excerpt .more a:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}
#pricingPage .tszBlock_button .buttonLink {
  float: none;
}

#pricingPage .tszBlock_button .tsz_ctaButton {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 22px;
  border: 2px solid var(--pp-green);
  border-radius: 999px;
  color: #0f3a07 !important; /* Beats essentialCSS .tsz_ctaButton { color: #fff !important } */
  background: var(--pp-green);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

#pricingPage .tszBlock_button .tsz_ctaButton:hover,
#pricingPage .tszBlock_button .tsz_ctaButton:focus {
  color: #fff !important;
  background: var(--pp-navy);
  border-color: var(--pp-navy);
}

#pricingPage .tszBlock_button .tsz_ctaButton:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

#pricingPage .pp-v2-button-secondary .tsz_ctaButton {
  color: #fff !important;
  background: var(--pp-navy);
  border-color: var(--pp-line);
}

#pricingPage .pp-v2-cta-band .tszBlock_button .tsz_ctaButton:hover,
#pricingPage .pp-v2-cta-band .tszBlock_button .tsz_ctaButton:focus {
  color: var(--pp-navy) !important;
  background: #fff;
  border-color: #fff;
}

.pp-v2-actions {
  margin-top: 26px;
}

/* ---------- Sections ---------- */

.pp-v2-section {
  width: min(1120px, calc(100% - 40px));
  margin-right: auto;
  margin-left: auto;
  padding: 56px 0;
}

.pp-v2-section > h2,
.pp-v2-section > div > h2 {
  margin-bottom: 18px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.pp-v2-tinted {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - 1120px) / 2));
  padding-left: max(20px, calc((100% - 1120px) / 2));
  background: var(--pp-soft);
}

/* Custom pricing split */

.pp-v2-split,
.pp-v2-video-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.pp-v2-split {
  padding-top: 24px;
}

.pp-v2-split-image {
  margin: 0;
  text-align: center;
}

.pp-v2-split-image img {
  width: min(100%, 440px);
  height: auto;
}

.pp-v2-split p {
  color: var(--pp-muted);
  font-size: 1.05rem;
}

.pp-v2-split p strong {
  color: var(--pp-navy);
}

.pp-v2-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin: 26px 0 0;
  border: 1px solid var(--pp-line);
  box-shadow: 0 14px 36px rgba(8, 47, 92, 0.12);
  border-radius: 12px;
}

.pp-v2-facts div {
  min-width: 0;
  padding: 16px 18px;
  border-bottom: 1px solid var(--pp-line);
}

.pp-v2-facts div:nth-child(odd) {
  border-right: 1px solid var(--pp-line);
}

.pp-v2-facts div:nth-last-child(-n + 2):nth-child(odd),
.pp-v2-facts div:last-child {
  border-bottom: 0;
}

.pp-v2-facts dt {
  color: var(--pp-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pp-v2-facts dd {
  margin: 5px 0 0;
  color: var(--pp-navy);
  font-size: 14px;
  font-weight: 700;
}

/* Video */

.pp-v2-video-copy p {
  color: var(--pp-muted);
  font-size: 1.1rem;
}

.pp-v2-video {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: var(--pp-navy);
  box-shadow: 0 14px 36px rgba(8, 47, 92, 0.12);
}

.pp-v2-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.pp-v2-video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: pointer;
}

.pp-v2-video-facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.pp-v2-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--pp-green);
  box-shadow: 0 10px 30px rgba(3, 22, 56, 0.35);
  transform: translate(-50%, -50%);
  transition: transform 0.2s;
}

.pp-v2-play::before {
  position: absolute;
  top: 50%;
  left: 54%;
  border-width: 13px 0 13px 22px;
  border-style: solid;
  border-color: transparent transparent transparent #0f3a07;
  content: "";
  transform: translate(-50%, -50%);
}

.pp-v2-video-facade:hover img,
.pp-v2-video-facade:focus img {
  transform: scale(1.03);
}

.pp-v2-video-facade:hover .pp-v2-play,
.pp-v2-video-facade:focus .pp-v2-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.pp-v2-video-facade:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
  .pp-v2-video-facade img,
  .pp-v2-play {
    transition: none;
  }

  .pp-v2-video-facade:hover img,
  .pp-v2-video-facade:focus img {
    transform: none;
  }

  .pp-v2-video-facade:hover .pp-v2-play,
  .pp-v2-video-facade:focus .pp-v2-play {
    transform: translate(-50%, -50%);
  }
}

/* Reviews block (acf/tsz-reviews) */

.pp-v2-reviews {
  padding-bottom: 80px;
}

#pricingPage .tszBlock_reviews .review {
  padding: 8px;
}

#pricingPage .tszBlock_reviews .review .contain {
  padding: 20px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(8, 47, 92, 0.05);
}

#pricingPage .tszBlock_reviews .review .stars .star {
  color: #4f8f12; /* 4:1 on white; #63b018 was 2.7:1 */
  font-size: 18px;
}

#pricingPage .tszBlock_reviews .review .reviewContent {
  padding-top: 12px;
  color: var(--pp-muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
}

#pricingPage .tszBlock_reviews .review .name {
  margin-top: 16px;
  color: var(--pp-ink);
  font-size: 12px;
  font-weight: 700;
}

#pricingPage .tszBlock_reviews .review .date {
  font-size: 12px;
}

#pricingPage .tszBlock_reviews .slick-dots {
  bottom: -34px;
}

/* Featured suppliers logos block (acf/tsz-featuredsupplierslogos) */

.pp-v2-logos > h2 {
  text-align: center;
}

#pricingPage .tszBlock_featuredSuppliersLogos .suppliers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
}

#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier {
  display: grid;
  min-height: 96px;
  place-items: center;
  margin: 0;
  padding: 15px;
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  background: #fff;
}

/* Definite sizes on the link and logo: SVG logos with no width/height attributes have no
 * intrinsic size and collapse to 0px under width/height: auto in a centered grid cell. */
#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier > a {
  width: 100%;
}

#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier .logo {
  display: block;
  width: 100%;
  height: 60px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s, opacity 0.3s;
}

/* White/very light logos (flagged by JS) are darkened so they show on the white box */
#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier.is-light-logo .logo {
  filter: brightness(0.5);
}

#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier:hover .logo,
#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier a:focus .logo {
  filter: grayscale(0);
  opacity: 1;
}

#pricingPage .tszBlock_featuredSuppliersLogos .suppliers .supplier a:focus-visible {
  border-radius: 6px;
  outline: 3px solid #005fcc;
  outline-offset: 6px;
}

/* Collapsed logo list: JS adds these classes only when the list is taller than the collapsed height,
 * so without JS every logo is shown. */
.pp-v2-logos-viewport {
  position: relative;
  /* Room for focus outlines, which overflow: hidden would otherwise clip */
  padding: 10px;
  margin: -10px;
}

.pp-v2-logos-viewport.is-collapsible {
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pp-v2-logos-viewport.is-collapsed {
  max-height: 360px;
}

/* Fade toward the bottom. pointer-events: none keeps the logos under it clickable. */
.pp-v2-logos-viewport.is-collapsed::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(243, 247, 250, 0) 0%, rgba(243, 247, 250, 0.85) 60%, #f3f7fa 100%);
  content: "";
  pointer-events: none;
}

.pp-v2-logos-actions {
  margin-top: 20px;
  text-align: center;
}

.pp-v2-logos-toggle {
  min-height: 44px;
  padding: 11px 22px;
  border: 2px solid var(--pp-line);
  border-radius: 999px;
  color: var(--pp-navy);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.pp-v2-logos-toggle:hover,
.pp-v2-logos-toggle:focus {
  color: #fff;
  background: var(--pp-navy);
  border-color: var(--pp-navy);
}

.pp-v2-logos-toggle:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pp-v2-logos-viewport.is-collapsible {
    transition: none;
  }
}

/* Related resources (acf/tsz-query) */

.pp-v2-related {
  padding-bottom: 80px;
}

#pricingPage .tszBlock_query .post-card {
  overflow: hidden;
  padding: 0 0 20px;
  border: 1px solid var(--pp-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(8, 47, 92, 0.05);
}

/* CTA band */

.pp-v2-cta-band {
  width: 100%;
  padding: 56px 20px;
  color: #fff;
  background: linear-gradient(115deg, var(--pp-navy) 0%, var(--pp-blue) 100%);
  text-align: center;
}

.pp-v2 .pp-v2-cta-band h2,
.pp-v2-cta-band p {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  color: #fff;
}

.pp-v2 .pp-v2-cta-band h2 {
  margin-bottom: 7px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.pp-v2-cta-band p {
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .pp-v2-hero {
    padding: 44px 0 90px;
  }

  .pp-v2-hero-inner,
  .pp-v2-split,
  .pp-v2-video-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pp-v2-hero-copy {
    text-align: center;
  }

  .pp-v2-hero-text {
    margin-right: auto;
    margin-left: auto;
  }

  .pp-v2-hero-checks {
    justify-content: center;
  }

  .pp-v2-hero-form {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .pp-v2-split-image img {
    width: min(70%, 360px);
  }
}

@media (max-width: 560px) {
  .pp-v2-hero-inner,
  .pp-v2-section {
    width: min(100% - 24px, 1120px);
  }

  .pp-v2-hero-form {
    padding: 22px 18px 4px;
  }

  #pricingPage .pp-v2-hero-form .tszBlock_form .formContent .fields,
  .pp-v2-facts {
    grid-template-columns: 1fr;
  }

  .pp-v2-facts div:nth-child(odd) {
    border-right: 0;
  }

  .pp-v2-facts div:nth-last-child(-n + 2):nth-child(odd) {
    border-bottom: 1px solid var(--pp-line);
  }

  .pp-v2-hero-wave {
    height: 50px;
  }

  .pp-v2-section {
    padding: 40px 0;
  }

  .pp-v2-tinted {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }
}
