/*
 * Nibble theme - v2.css (new website v2, owner: job 1 foundation, see CONTRACT.md).
 * Tokens, v2 buttons (.nb-btn), section shells (.nb-section), hero v2 (.nb-hero), v2 Contact Form 7 styles.
 * Loaded after sections.css (functions/assets.php), before v2-cards / v2-components / v2-data.
 * Desktop first: @media (max-width: 1023px) tablet, (max-width: 767px) mobile. 1rem = 10px.
 */

/* ==========================================================================
   Tokens (Figma variables)
   ========================================================================== */

:root {
  /* Primary */
  --nb-p700: #001533;
  --nb-p500: #146deb;
  --nb-p500-hover: #2a83ff;
  --nb-p200: #79b5ff;
  --nb-p150: #95c4ff;
  --nb-p100: #b0d3ff;
  --nb-p50: #cee3ff;
  --nb-p0: #ebf3ff;
  /* Neutrals */
  --nb-n700: #111824;
  --nb-n600: #263344;
  --nb-n400: #617385;
  --nb-n300: #8194a6;
  --nb-n100: #d1d9e0;
  --nb-n50: #e6eaee;
  --nb-n30: #f0f2f5;
  --nb-n0: #f9fafb;
  --nb-white: #fff;
  /* Extended / semantic */
  --nb-teal-100: #75ded5;
  --nb-teal-200: #2dbbaf;
  --nb-teal-250: #09ab9d;
  --nb-teal-300: #0d988c;
  --nb-teal-0: #f2fffe;
  --nb-success: #1cbb8c;
  /* Fonts */
  --nb-ff-display: VisbyCF, sans-serif;
  --nb-ff-text: Inter, sans-serif;
  /* Elevations (Figma "Elevations/Elevation 3" and "Elevation 5") */
  --nb-shadow-3: 0 8px 16px -5px rgba(129, 148, 166, .05), 0 4px 8px -4px rgba(129, 148, 166, .05), 0 2px 4px 1px rgba(129, 148, 166, .05), 0 -1px 8px 0 rgba(129, 148, 166, .05);
  --nb-shadow-5: 0 12px 24px -5px rgba(129, 148, 166, .05), 0 10px 24px -5px rgba(129, 148, 166, .05), 0 8px 16px -5px rgba(129, 148, 166, .05), 0 4px 8px -4px rgba(129, 148, 166, .05), 0 2px 4px 1px rgba(129, 148, 166, .05), 0 -1px 8px 0 rgba(129, 148, 166, .05);
  /* Radii: s = inputs, m = cards/panels, l = section/hero corner; xl = hero stat card; buttons per size */
  --nb-radius-s: 8px;
  --nb-radius-m: 16px;
  --nb-radius-xl: 24px;
  --nb-radius-l: 128px;
  --nb-radius-btn-s: 11px;
  --nb-radius-btn-m: 14px;
  --nb-radius-btn-l: 17px;
  /* Typography (Figma text styles; size / line height) */
  --nb-fs-display: 5.6rem;      /* hero title, Visby 800, lh 6.4rem */
  --nb-lh-display: 6.4rem;
  --nb-fs-title: 4rem;          /* section title, Visby 800, lh 1.2 */
  --nb-fs-title-s: 3.2rem;      /* D 800 4XL, lh 3.5rem */
  --nb-fs-heading: 2.4rem;      /* D 800 2XL, lh 1.15 */
  --nb-fs-lead: 2rem;           /* subtitles / hero text, lh 2.8rem */
  --nb-lh-lead: 2.8rem;
  --nb-fs-body: 1.6rem;         /* LT 400 M, Inter, lh 2.4rem */
  --nb-lh-body: 2.4rem;
  --nb-fs-small: 1.4rem;        /* LT 600 S, Inter, lh 2.2rem */
  --nb-lh-small: 2.2rem;
  /* Section rhythm */
  --nb-section-py: 9.6rem;
  --nb-section-gap: 5.6rem;
}

@media (max-width: 1023px) {
  :root {
    --nb-radius-l: 96px;
    --nb-fs-display: 4.4rem;
    --nb-lh-display: 5.2rem;
    --nb-fs-title: 3.2rem;
    --nb-section-py: 7.2rem;
    --nb-section-gap: 4.8rem;
  }
}

@media (max-width: 767px) {
  :root {
    --nb-radius-l: 64px;
    --nb-fs-display: 3.6rem;
    --nb-lh-display: 4.4rem;
    --nb-fs-title: 2.8rem;
    --nb-fs-title-s: 2.6rem;
    --nb-fs-lead: 1.8rem;
    --nb-lh-lead: 2.6rem;
    --nb-section-py: 5.6rem;
    --nb-section-gap: 4rem;
  }
}

/* ==========================================================================
   Buttons: .nb-btn--{primary|ghost|text} x .nb-btn--{s|m|l}
   ========================================================================== */

.nb-buttons {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.nb-btn {
  align-items: center;
  background-color: transparent;
  border: 2px solid transparent;
  border-radius: var(--nb-radius-btn-l);
  color: var(--nb-p500);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-weight: 700;
  gap: 1.2rem;
  justify-content: center;
  max-width: 100%;
  text-align: center;
  text-decoration: none;
  transition: background-color .3s, border-color .3s, color .3s;
  vertical-align: middle;
}

.nb-btn > span {
  min-width: 0;
}

.nb-btn__icon {
  display: block;
  flex: 0 0 auto;
  height: 2.4rem;
  transition: transform .3s;
  width: 2.4rem;
}

/* Sizes (heights 56 / 48 / 40 incl. the 2px border) */
.nb-btn--l {
  font-size: 2rem;
  letter-spacing: .01em;
  line-height: 1.2;
  padding: 1.4rem 2.2rem;
}

.nb-btn--m {
  border-radius: var(--nb-radius-btn-m);
  font-size: 1.6rem;
  letter-spacing: .02em;
  line-height: 1.5;
  padding: 1rem 1.8rem;
}

.nb-btn--s {
  border-radius: var(--nb-radius-btn-s);
  font-size: 1.6rem;
  gap: .8rem;
  letter-spacing: .02em;
  line-height: 1.5;
  padding: .6rem 1.4rem;
}

.nb-btn--s .nb-btn__icon {
  height: 2rem;
  width: 2rem;
}

/* Styles */
.nb-btn--primary {
  background-color: var(--nb-p500);
  border-color: var(--nb-p500);
  color: var(--nb-white);
}

.nb-btn--ghost {
  border-color: var(--nb-p500);
  color: var(--nb-p500);
}

.nb-btn--text {
  border: 0;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
}

.nb-btn--text.nb-btn--l {
  padding-bottom: 1.6rem;
  padding-top: 1.6rem;
}

.nb-btn--text.nb-btn--m {
  padding-bottom: 1.2rem;
  padding-top: 1.2rem;
}

.nb-btn--text.nb-btn--s {
  padding-bottom: .8rem;
  padding-top: .8rem;
}

/* On dark backgrounds (hero v2, dark sections) */
.nb-hero .nb-btn--ghost,
.nb-section--dark .nb-btn--ghost {
  border-color: var(--nb-white);
  color: var(--nb-white);
}

.nb-hero .nb-btn--text,
.nb-section--dark .nb-btn--text {
  color: var(--nb-white);
}

@media (hover: hover) {
  .nb-btn--primary:hover,
  .nb-btn--primary:focus-visible {
    background-color: var(--nb-p500-hover);
    border-color: var(--nb-p500-hover);
    color: var(--nb-white);
  }
  .nb-btn--ghost:hover,
  .nb-btn--ghost:focus-visible {
    background-color: var(--nb-p0);
    color: var(--nb-p500);
  }
  .nb-btn--text:hover,
  .nb-btn--text:focus-visible {
    color: var(--nb-p500-hover);
  }
  .nb-btn:hover .nb-btn__icon {
    transform: translateX(.3rem);
  }
  .nb-hero .nb-btn--ghost:hover,
  .nb-hero .nb-btn--ghost:focus-visible,
  .nb-section--dark .nb-btn--ghost:hover,
  .nb-section--dark .nb-btn--ghost:focus-visible {
    background-color: rgba(255, 255, 255, .12);
    color: var(--nb-white);
  }
  .nb-hero .nb-btn--text:hover,
  .nb-hero .nb-btn--text:focus-visible,
  .nb-section--dark .nb-btn--text:hover,
  .nb-section--dark .nb-btn--text:focus-visible {
    color: var(--nb-p150);
  }
}

/* In-page anchors (pills with the arrow-down icon) nudge down, not right */
@media (hover: hover) {
  .nb-btn[href^="#"]:hover .nb-btn__icon {
    transform: translateY(.2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nb-btn,
  .nb-btn__icon {
    transition: none;
  }
}

@media (max-width: 767px) {
  .nb-btn--l {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   Section shell: .nb-section--{white|light|dark} [--corner-*] [--left]
   ========================================================================== */

/* The legacy modules around it are floated .span12 columns: start below them, full width */
.nb-row {
  clear: both;
  position: relative;
  width: 100%;
}

.nb-section {
  color: var(--nb-n600);
  overflow: hidden;
  padding: var(--nb-section-py) 0;
  position: relative;
  text-align: center;
}

.nb-section--white {
  background-color: var(--nb-white);
}

.nb-section--light {
  background-color: var(--nb-p0);
}

.nb-section--dark {
  background-color: var(--nb-p700);
  color: var(--nb-white);
}

.nb-section--corner-tl,
.nb-section--corner-tl-br {
  border-top-left-radius: var(--nb-radius-l);
}

.nb-section--corner-br,
.nb-section--corner-tl-br {
  border-bottom-right-radius: var(--nb-radius-l);
}

.nb-section--corner-tr {
  border-top-right-radius: var(--nb-radius-l);
}

.nb-section--corner-bl {
  border-bottom-left-radius: var(--nb-radius-l);
}

.nb-section--left {
  text-align: left;
}

.nb-section > .shell {
  position: relative;
  z-index: 1;
}

/* Head */
.nb-section__head {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin: 0 auto;
  max-width: 109.2rem;
}

.nb-section--left .nb-section__head {
  margin-left: 0;
}

.nb-section .nb-section__title {
  color: var(--nb-n600);
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: var(--nb-fs-title);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.nb-section--light .nb-section__title {
  color: var(--nb-p700);
}

.nb-section--dark .nb-section__title {
  color: var(--nb-white);
}

.nb-section__subtitle {
  color: inherit;
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: var(--nb-fs-lead);
  font-weight: 400;
  line-height: var(--nb-lh-lead);
}

.nb-section__subtitle p {
  margin: 0;
}

.nb-section__subtitle p + p {
  margin-top: 1.2rem;
}

.nb-section__subtitle a {
  color: inherit;
  text-decoration: underline;
}

/* Body / form / foot rhythm */
.nb-section__head + .nb-section__body {
  margin-top: var(--nb-section-gap);
}

.nb-section__body:empty {
  display: none;
}

.nb-section__body > * + * {
  margin-top: 4.8rem;
}

.nb-section__foot {
  justify-content: center;
  margin-top: var(--nb-section-gap);
}

.nb-section--left .nb-section__foot {
  justify-content: flex-start;
}

.nb-section__head + .nb-section__body:empty + .nb-section__foot {
  margin-top: 4.8rem;
}

/* Decor: blurred ellipses (Figma "Ellipse 1" / "Group 2", blur 36) */
.nb-section__decor {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.nb-section__blob {
  border-radius: 50%;
  filter: blur(36px);
  position: absolute;
}

/* Light: one soft blue ellipse bottom-left (50% opacity) */
.nb-section--light .nb-section__blob--a,
.nb-section--white .nb-section__blob--a {
  background: linear-gradient(193deg, rgba(20, 109, 235, 0) 18%, rgba(20, 109, 235, .5) 85%);
  bottom: -27.7rem;
  height: 74.6rem;
  left: -42.7rem;
  width: 74.6rem;
}

.nb-section--light .nb-section__blob--b,
.nb-section--white .nb-section__blob--b {
  display: none;
}

/* Dark: blue ellipse top-right + teal ellipse bottom-left */
.nb-section--dark .nb-section__blob--a {
  background: linear-gradient(193deg, rgba(20, 109, 235, 0) 18%, var(--nb-p500) 85%);
  height: 74.6rem;
  right: -46rem;
  top: -26rem;
  transform: rotate(-45deg);
  width: 74.6rem;
}

.nb-section--dark .nb-section__blob--b {
  background: linear-gradient(192deg, rgba(117, 222, 213, 0) 25%, var(--nb-teal-100) 90%);
  bottom: -46rem;
  height: 64.2rem;
  left: -26rem;
  opacity: .7;
  transform: rotate(165deg);
  width: 66.3rem;
}

@media (max-width: 767px) {
  .nb-section__blob {
    filter: blur(28px);
  }
  .nb-section--dark .nb-section__blob--a {
    right: -56rem;
  }
}

/* ==========================================================================
   Hero v2 (nibble/hero with design = v2): .nb-hero [--aside-{image|stat|spheres|form}]
   ========================================================================== */

.nb-hero {
  align-items: center;
  background-color: var(--nb-p700);
  border-bottom-right-radius: var(--nb-radius-l);
  color: var(--nb-white);
  display: flex;
  min-height: 70rem;
  overflow: hidden;
  padding: 10.6rem 0 4.8rem;
  position: relative;
}

.nb-hero > .shell {
  position: relative;
  z-index: 1;
}

.nb-hero__decor {
  pointer-events: none;
  position: absolute;
  right: -30.5rem;
  top: -48.3rem;
  width: 123.7rem;
  z-index: 0;
}

.nb-hero__decor img {
  display: block;
  height: auto;
  max-width: none;
  width: 100%;
}

.nb-hero__inner {
  align-items: center;
  display: flex;
  gap: 4rem;
  justify-content: space-between;
}

.nb-hero__content {
  display: flex;
  flex: 0 1 58rem;
  flex-direction: column;
  gap: 3.2rem;
  min-width: 0;
}

.nb-hero__head {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.nb-hero .nb-hero__eyebrow,
.nb-hero .nb-hero__text {
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: var(--nb-fs-lead);
  font-weight: 600;
  line-height: var(--nb-lh-lead);
  margin: 0;
}

.nb-hero .nb-hero__eyebrow {
  color: var(--nb-p150);
}

.nb-hero .nb-hero__text {
  color: var(--nb-white);
}

.nb-hero .nb-hero__text a {
  color: inherit;
  text-decoration: underline;
}

.nb-hero .nb-hero__title {
  color: var(--nb-white);
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: var(--nb-fs-display);
  font-weight: 800;
  line-height: var(--nb-lh-display);
  margin: 0;
}

/* Anchor pills (only ghost S buttons): stacked, as in Figma "How it works" */
.nb-hero__buttons:not(:has(.nb-btn:not(.nb-btn--ghost.nb-btn--s))) {
  align-items: flex-start;
  flex-direction: column;
}

.nb-hero__aside {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  min-width: 0;
}

/* Aside: image (illustration from the Media Library) */
.nb-hero__aside--image {
  flex: 0 1 48rem;
}

.nb-hero__aside--image img {
  display: block;
  height: auto;
  max-height: 48rem;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

/* Aside: stat card (glassy bordered box) */
.nb-hero__stat {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  align-items: center;
  background-color: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--nb-white);
  border-radius: var(--nb-radius-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 37.4rem;
  padding: 2.4rem;
  text-align: center;
  width: 36rem;
}

.nb-hero .nb-hero__stat-value,
.nb-hero .nb-hero__stat-label {
  color: var(--nb-white);
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-weight: 800;
  margin: 0;
}

.nb-hero .nb-hero__stat-value {
  font-size: 11.2rem;
  line-height: 15.6rem;
}

.nb-hero .nb-hero__stat-label {
  font-size: 3.2rem;
  line-height: 3.8rem;
}

/* Aside: spheres */
.nb-hero__spheres {
  display: block;
  height: auto;
  max-width: 100%;
  width: 30.6rem;
}

/* Aside: form (Request a call): left column = title on top, feature items at the bottom */
.nb-hero--aside-form {
  align-items: flex-start;
  min-height: 0;
  padding: 18.6rem 0 8rem;
}

.nb-hero--aside-form .nb-hero__inner {
  align-items: stretch;
  gap: 8rem;
}

.nb-hero--aside-form .nb-hero__content {
  flex: 1 1 auto;
}

.nb-hero__aside--form {
  display: block;
  flex: 0 0 50rem;
}

.nb-hero__features {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  margin-top: auto;
}

.nb-hero__feature {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  max-width: 46.6rem;
}

.nb-hero .nb-hero__feature-title {
  color: var(--nb-teal-100);
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: var(--nb-fs-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

.nb-hero .nb-hero__feature-text {
  color: var(--nb-white);
  font-family: var(--nb-ff-text);
  font-size: var(--nb-fs-body);
  line-height: var(--nb-lh-body);
  margin: 0;
}

.nb-hero__form-placeholder,
.nb-section__form-placeholder {
  border: 1.5px dashed currentColor;
  border-radius: var(--nb-radius-s);
  font-family: var(--nb-ff-text);
  font-size: 1.4rem;
  margin: 0;
  opacity: .7;
  padding: 2.4rem;
}

@media (max-width: 1023px) {
  .nb-hero {
    min-height: 0;
    padding: 14.6rem 0 8rem;
  }
  .nb-hero__inner,
  .nb-hero--aside-form .nb-hero__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4.8rem;
  }
  .nb-hero__content,
  .nb-hero--aside-form .nb-hero__content {
    flex: 0 0 auto;
    max-width: 64rem;
    width: 100%;
  }
  .nb-hero__aside {
    align-self: center;
  }
  .nb-hero__aside--form {
    align-self: stretch;
    flex: 0 0 auto;
    max-width: 50rem;
    width: 100%;
  }
  .nb-hero--aside-form {
    padding: 14.6rem 0 8rem;
  }
  .nb-hero__features {
    margin-top: 1.6rem;
  }
  .nb-hero__decor {
    right: -60rem;
    top: -50rem;
  }
}

@media (max-width: 767px) {
  .nb-hero,
  .nb-hero--aside-form {
    padding: 12rem 0 6.4rem;
  }
  .nb-hero__stat {
    min-height: 0;
    padding: 3.2rem 2.4rem;
    width: 100%;
  }
  .nb-hero .nb-hero__stat-value {
    font-size: 7.2rem;
    line-height: 1.2;
  }
  .nb-hero .nb-hero__stat-label {
    font-size: 2.4rem;
    line-height: 1.2;
  }
  .nb-hero__aside--image img {
    max-height: 32rem;
  }
  .nb-hero__spheres {
    width: 20rem;
  }
  .nb-hero .nb-hero__feature-title {
    font-size: 2rem;
  }
  .nb-hero__decor {
    right: -80rem;
  }
}

/* ==========================================================================
   Forms v2 (Contact Form 7) in .nb-hero__form and .nb-section__form
   Dark fields by default (hero, dark sections); light fields on white / light sections.
   CF7 html_class extras: nb-form--send / nb-form--download (submit icon).
   ========================================================================== */

.nb-hero__form,
.nb-section__form {
  --nb-f-label: var(--nb-p100);
  --nb-f-bg: var(--nb-p700);
  --nb-f-border: var(--nb-n400);
  --nb-f-text: var(--nb-white);
  --nb-f-placeholder: var(--nb-n400);
  --nb-f-note: var(--nb-p100);
  --nb-f-check: var(--nb-white);
  --nb-f-check-mark: var(--nb-p700);
  --nb-f-error: #ff8f8f;
  text-align: left;
}

.nb-section--white .nb-section__form,
.nb-section--light .nb-section__form {
  --nb-f-label: var(--nb-n600);
  --nb-f-bg: var(--nb-white);
  --nb-f-border: var(--nb-n100);
  --nb-f-text: var(--nb-n700);
  --nb-f-placeholder: var(--nb-n300);
  --nb-f-note: var(--nb-n600);
  --nb-f-check: var(--nb-p500);
  --nb-f-check-mark: var(--nb-white);
  --nb-f-error: #d92d20;
}

.nb-section__form {
  margin: 4.8rem auto 0;
  max-width: 50rem;
}

.nb-section--left .nb-section__form {
  margin-left: 0;
}

.nb-section__body:not(:empty) + .nb-section__form {
  margin-top: var(--nb-section-gap);
}

.nb-hero__form .wpcf7-form,
.nb-section__form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.nb-hero__form .wpcf7-form > *,
.nb-section__form .wpcf7-form > *,
.nb-hero__form .wpcf7-form .hs-form-field,
.nb-section__form .wpcf7-form .hs-form-field {
  margin: 0;
}

.nb-hero__form .wpcf7-form p,
.nb-section__form .wpcf7-form p {
  margin: 0;
}

/* Labels */
.nb-hero__form .wpcf7-form label,
.nb-section__form .wpcf7-form label {
  color: var(--nb-f-label);
  display: flex;
  flex-direction: column;
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: 1.8rem;
  font-weight: 700;
  gap: .8rem;
  letter-spacing: .02em;
  line-height: 1.2;
  margin: 0;
  width: 100%;
}

.nb-hero__form .wpcf7-form-control-wrap,
.nb-section__form .wpcf7-form-control-wrap {
  display: block;
}

/* Fields */
.nb-hero__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.nb-hero__form .wpcf7-form textarea,
.nb-hero__form .wpcf7-form select,
.nb-section__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.nb-section__form .wpcf7-form textarea,
.nb-section__form .wpcf7-form select {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--nb-f-bg);
  border: 1.5px solid var(--nb-f-border);
  border-radius: var(--nb-radius-s);
  box-shadow: none;
  color: var(--nb-f-text);
  display: block;
  font-family: var(--nb-ff-text);
  font-size: 1.8rem;
  font-weight: 400;
  height: 5.8rem;
  letter-spacing: 0;
  line-height: 2.6rem;
  outline: 0;
  padding: 1.5rem 1.6rem;
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
}

.nb-hero__form .wpcf7-form textarea,
.nb-section__form .wpcf7-form textarea {
  height: 13.1rem;
  min-height: 13.1rem;
  resize: vertical;
}

.nb-hero__form .wpcf7-form input::placeholder,
.nb-hero__form .wpcf7-form textarea::placeholder,
.nb-section__form .wpcf7-form input::placeholder,
.nb-section__form .wpcf7-form textarea::placeholder {
  color: var(--nb-f-placeholder);
  opacity: 1;
}

.nb-hero__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.nb-hero__form .wpcf7-form textarea:focus,
.nb-hero__form .wpcf7-form select:focus,
.nb-section__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.nb-section__form .wpcf7-form textarea:focus,
.nb-section__form .wpcf7-form select:focus {
  border-color: var(--nb-p500);
  box-shadow: none;
}

.nb-hero__form .wpcf7-form .wpcf7-not-valid,
.nb-section__form .wpcf7-form .wpcf7-not-valid {
  border-color: var(--nb-f-error) !important;
}

.nb-hero__form .wpcf7-not-valid-tip,
.nb-section__form .wpcf7-not-valid-tip {
  color: var(--nb-f-error);
  font-family: var(--nb-ff-text);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: .6rem;
}

/* Consent checkbox (CF7 acceptance; also the legacy HubSpot checkbox markup) */
.nb-hero__form .inputs-list,
.nb-section__form .inputs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nb-hero__form .hs-form-booleancheckbox,
.nb-section__form .hs-form-booleancheckbox {
  margin: 0;
}

.nb-hero__form .wpcf7-list-item,
.nb-section__form .wpcf7-list-item {
  display: block;
  margin: 0;
}

.nb-hero__form .wpcf7-form .wpcf7-list-item label,
.nb-section__form .wpcf7-form .wpcf7-list-item label {
  align-items: flex-start;
  cursor: pointer;
  flex-direction: row;
  gap: 1.6rem;
}

.nb-hero__form .wpcf7-form input[type="checkbox"],
.nb-section__form .wpcf7-form input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 2px solid var(--nb-f-check);
  border-radius: 6px;
  cursor: pointer;
  display: block !important;
  flex: 0 0 auto;
  height: 2.4rem;
  margin: 0;
  padding: 0;
  position: relative;
  top: 0;
  transition: background-color .2s;
  width: 2.4rem;
}

.nb-hero__form .wpcf7-form input[type="checkbox"]:checked,
.nb-section__form .wpcf7-form input[type="checkbox"]:checked {
  background-color: var(--nb-f-check);
}

.nb-hero__form .wpcf7-form input[type="checkbox"]:checked::after,
.nb-section__form .wpcf7-form input[type="checkbox"]:checked::after {
  border: solid var(--nb-f-check-mark);
  border-width: 0 2px 2px 0;
  content: "";
  height: 1.1rem;
  left: .65rem;
  position: absolute;
  top: .25rem;
  transform: rotate(45deg);
  width: .6rem;
}

.nb-hero__form .wpcf7-form input[type="checkbox"]:focus-visible,
.nb-section__form .wpcf7-form input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--nb-p200);
  outline-offset: 2px;
}

.nb-hero__form .wpcf7-form .wpcf7-list-item-label,
.nb-section__form .wpcf7-form .wpcf7-list-item-label,
.nb-hero__form .wpcf7-form .hs-fieldtype-booleancheckbox .inputs-list label > span,
.nb-section__form .wpcf7-form .hs-fieldtype-booleancheckbox .inputs-list label > span {
  color: var(--nb-f-note);
  display: block;
  font-family: var(--nb-ff-text);
  font-size: var(--nb-fs-small);
  font-weight: 600;
  letter-spacing: 0;
  line-height: var(--nb-lh-small);
  padding: 0;
}

.nb-hero__form .wpcf7-form .hs-fieldtype-booleancheckbox .inputs-list label > span::before,
.nb-hero__form .wpcf7-form .hs-fieldtype-booleancheckbox .inputs-list label > span::after,
.nb-section__form .wpcf7-form .hs-fieldtype-booleancheckbox .inputs-list label > span::before,
.nb-section__form .wpcf7-form .hs-fieldtype-booleancheckbox .inputs-list label > span::after {
  content: none;
}

.nb-hero__form .wpcf7-list-item-label a,
.nb-section__form .wpcf7-list-item-label a {
  color: inherit;
  text-decoration: underline;
}

/* Submit (looks like .nb-btn--primary.nb-btn--l) */
.nb-hero__form .wpcf7-form .actions,
.nb-section__form .wpcf7-form .actions {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 0;
  position: relative;
}

.nb-hero__form .wpcf7-form [type="submit"],
.nb-section__form .wpcf7-form [type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--nb-p500);
  background-position: right 2.4rem center;
  background-repeat: no-repeat;
  background-size: 2.4rem 2.4rem;
  border: 2px solid var(--nb-p500);
  border-radius: var(--nb-radius-btn-l);
  color: var(--nb-white);
  cursor: pointer;
  font-family: var(--nb-ff-display);
  font-feature-settings: "ss01" 1;
  font-size: 2rem;
  font-weight: 700 !important;
  height: auto;
  letter-spacing: .01em;
  line-height: 1.2;
  max-width: 100%;
  padding: 1.4rem 2.2rem;
  transition: background-color .3s, border-color .3s;
  width: auto;
}

/* Request a call hero: full-width submit with the send icon */
.nb-hero__form .wpcf7-form [type="submit"] {
  width: 100%;
}

.nb-hero__form .wpcf7-form [type="submit"],
.nb-hero__form .nb-form--send [type="submit"],
.nb-section__form .nb-form--send [type="submit"] {
  background-image: url(../svgs/ico-arrow-btn.svg);
  background-size: 2.2rem 1.7rem;
  padding-left: 5.6rem;
  padding-right: 5.6rem;
}

.nb-hero__form .nb-form--download [type="submit"],
.nb-section__form .nb-form--download [type="submit"] {
  background-image: url(../svgs/ico-download-btn.svg);
  background-size: 2.4rem 2.4rem;
  padding-right: 6rem;
}

.nb-section__form .nb-form--download [type="submit"] {
  padding-left: 2.2rem;
}

@media (hover: hover) {
  .nb-hero__form .wpcf7-form [type="submit"]:hover,
  .nb-hero__form .wpcf7-form [type="submit"]:focus-visible,
  .nb-section__form .wpcf7-form [type="submit"]:hover,
  .nb-section__form .wpcf7-form [type="submit"]:focus-visible {
    background-color: var(--nb-p500-hover);
    border-color: var(--nb-p500-hover);
  }
}

.nb-hero__form .wpcf7-spinner,
.nb-section__form .wpcf7-spinner {
  left: 100%;
  margin: 0 0 0 .8rem;
  position: absolute;
}

.nb-hero__form .wpcf7 form .wpcf7-response-output,
.nb-section__form .wpcf7 form .wpcf7-response-output,
.nb-hero__form .wpcf7-form .wpcf7-response-output,
.nb-section__form .wpcf7-form .wpcf7-response-output {
  border-radius: var(--nb-radius-s);
  color: inherit;
  font-family: var(--nb-ff-text);
  font-size: 1.4rem;
  margin: 0;
  padding: 1.2rem 1.6rem;
}

/* Inline layout (home "Nibble, explained in one page"): email + button on one row, consent below the field */
.nb-section__form--inline {
  max-width: 63rem;
}

.nb-section__form--inline .wpcf7-form {
  align-items: start;
  column-gap: 1.6rem;
  display: grid;
  grid-template-columns: minmax(0, 40rem) auto;
  justify-content: center;
  row-gap: 2.4rem;
}

.nb-section--left .nb-section__form--inline .wpcf7-form {
  justify-content: start;
}

.nb-section__form--inline .wpcf7-form > * {
  grid-column: 1 / -1;
}

.nb-section__form--inline .wpcf7-form > :has(input[type="email"]) {
  grid-column: 1;
  grid-row: 1;
}

.nb-section__form--inline .wpcf7-form > :has([type="submit"]) {
  align-self: end;
  grid-column: 2;
  grid-row: 1;
}

.nb-section__form--inline .wpcf7-form > :has(.wpcf7-acceptance),
.nb-section__form--inline .wpcf7-form > :has(.hs-form-booleancheckbox) {
  grid-column: 1;
  grid-row: 2;
}

.nb-section__form--inline .wpcf7-form .actions {
  justify-content: flex-start;
}

.nb-section__form--inline .wpcf7-form [type="submit"] {
  white-space: nowrap;
}

@media (max-width: 767px) {
  .nb-hero__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .nb-hero__form .wpcf7-form textarea,
  .nb-section__form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .nb-section__form .wpcf7-form textarea {
    font-size: 1.6rem;
  }
  .nb-section__form .wpcf7-form [type="submit"] {
    width: 100%;
  }
  .nb-section__form--inline .wpcf7-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .nb-section__form--inline .wpcf7-form > :has([type="submit"]) {
    grid-column: 1;
    grid-row: 3;
  }
}
