/* ============================================================
   TENEO Contact / Enquiry form page
   ============================================================ */

/* Hide the main site footer on this page — it has its own Teneo footer (.tcn-footer) */
.page-template-teneo-contact .footer {
  display: none !important;
}

.teneo-contact {
  background: #000;
  color: #fff;
  /* Never let the hero image (or anything) create a horizontal scroll / edge cut */
  overflow-x: hidden;
}

.teneo-contact .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- Hero ---------- */
.tcn-hero {
  padding: 120px 0 40px;
  position: relative;
  background: radial-gradient(
    91% 94% at 76% 42%,
    rgba(210, 210, 210, 0.3) 0%,
    rgba(140, 140, 140, 0.14) 32%,
    rgba(70, 70, 70, 0.05) 55%,
    rgba(0, 0, 0, 0) 72%
  );
}

.tcn-hero-inner {
  display: flex;
  align-items: center;
  gap: 30px;
}

.tcn-hero-text {
  flex: 1;
  /* All three lines share a common right edge (like the reference): OUTSTANDING is
     widest and extends left, while the shorter "make the difference" line ends up
     indented from the left. */
  text-align: right;
}

.tcn-hero-eyebrow {
  display: block;
  font-family: "acumin-pro-extra-condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 6px;
}

.tcn-hero-title {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.5rem, 8vw, 6.25rem);
  font-weight: 800;
  line-height: 1;
}

.tcn-hero-sub {
  font-family: "acumin-pro-extra-condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.tcn-hero-image {
  flex: 0 1 44%;
  max-width: 44%;
  text-align: right;
  position: relative;
}

.tcn-hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Form ---------- */
.tcn-form-sec {
  padding: 100px 0 90px;
}

.tcn-form-grid {
  display: flex;
  gap: 60px;
  /* Center the intro + form block so the leftover space is even on both sides */
  justify-content: center;
}

.tcn-form-intro {
  flex: 0 0 320px;
  /* Right-align the intro copy so it reads toward the form, like the hero text */
  text-align: right;
}

.tcn-form-heading {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
  font-size: clamp(32px, 10vw, 80px) !important;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  /* Only break where the <br> tags are — never wrap a line mid-phrase.
     Longer lines extend left into the empty space (the copy is right-aligned). */
  white-space: nowrap;
}

.tcn-form-intro p {
  font-size: clamp(16px, 5vw, 20px);
  margin: 0;
  white-space: nowrap;
}

/* Make sure all the copy beside the form is white (override any global p colour) */
.teneo-contact .tcn-form-intro,
.teneo-contact .tcn-form-intro * {
  color: #fff !important;
}

.tcn-form-wrap {
  flex: 0 1 540px;
  max-width: 540px;
}

/* ---------- Gravity Form (#24) with floating labels ---------- */
/* Keep the whole form (incl. the textarea) the same width as the inputs */
.teneo-contact .gform_wrapper.gravity-theme {
  max-width: 540px;
}

.teneo-contact .gform_wrapper.gravity-theme .gform_fields {
  grid-row-gap: 30px;
  grid-column-gap: 16px;
}

.teneo-contact .gform_wrapper.gravity-theme textarea {
  width: 100%;
  max-width: 100%;
}

.teneo-contact .gform_wrapper.gravity-theme .gfield {
  position: relative;
}

/* Inputs / textarea — white boxes, extra top padding to leave room for the label */
.teneo-contact .gform_wrapper.gravity-theme input[type="text"],
.teneo-contact .gform_wrapper.gravity-theme input[type="email"],
.teneo-contact .gform_wrapper.gravity-theme input[type="tel"],
.teneo-contact .gform_wrapper.gravity-theme input[type="url"],
.teneo-contact .gform_wrapper.gravity-theme textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 28px 16px 10px;
  font-size: 20px;
  line-height: 1.3;
  color: #111;
  outline: none;
}

/* Label sits inside the field like a placeholder (text-type fields only)... */
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-text > .gfield_label,
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-email > .gfield_label,
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-phone > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-website
  > .gfield_label,
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-name > .gfield_label {
  position: absolute;
  left: 16px;
  top: 20px;
  margin: 0;
  color: #8a8a8a;
  font-size: 20px;
  font-weight: 400;
  pointer-events: none;
  z-index: 2;
  transition:
    top 0.25s ease,
    font-size 0.25s ease,
    color 0.25s ease;
}

/* ...and floats up on focus / when filled */
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-text.focused
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-text.filled
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-email.focused
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-email.filled
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-phone.focused
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-phone.filled
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-website.focused
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-website.filled
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-name.focused
  > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-name.filled
  > .gfield_label {
  top: 8px;
  font-size: 12px;
  color: #6a6a6a;
}

/* "What is the end use application?" (field 15): label ABOVE the box, not a floating placeholder */
.teneo-contact .gform_wrapper.gravity-theme #field_25_15 > .gfield_label {
  position: static;
  color: #fff;
  font-size: clamp(16px, 5vw, 20px);
  font-weight: 400;
  margin: 0 0 8px;
  pointer-events: auto;
}

.teneo-contact .gform_wrapper.gravity-theme #field_25_15 input[type="text"] {
  padding: 14px 16px;
}

/* Replace the "(Required)" text with a simple asterisk, coloured to match its label */
.teneo-contact .gform_wrapper.gravity-theme .gfield_required {
  color: inherit;
}

.teneo-contact .gform_wrapper.gravity-theme .gfield_required_text {
  font-size: 0;
}

.teneo-contact .gform_wrapper.gravity-theme .gfield_required_text::after {
  content: "*";
  font-size: 14px;
  color: inherit;
}

/* Textarea & radio labels stay static above their field, in white */
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-textarea
  > .gfield_label,
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-radio > .gfield_label,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-checkbox
  > .gfield_label {
  position: static;
  color: #fff;
  font-size: clamp(16px, 5vw, 20px) !important;
  font-weight: 400;
  margin-bottom: 8px;
  pointer-events: auto;
}

/* Radio / checkbox choices ("What type of systems are you working with?") */
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-radio .gfield_radio,
.teneo-contact
  .gform_wrapper.gravity-theme
  .gfield--type-checkbox
  .gfield_checkbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.teneo-contact .gform_wrapper.gravity-theme .gchoice {
  display: flex;
  align-items: center;
  gap: 10px;
}

.teneo-contact .gform_wrapper.gravity-theme .gchoice input[type="radio"],
.teneo-contact .gform_wrapper.gravity-theme .gchoice input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
}

/* White check on a blue fill once selected */
.teneo-contact .gform_wrapper.gravity-theme .gchoice input:checked {
  background: #2e6cf6;
  border-color: #2e6cf6;
}

.teneo-contact .gform_wrapper.gravity-theme .gchoice input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.teneo-contact .gform_wrapper.gravity-theme .gchoice label {
  color: #fff !important;
  font-size: 14px;
  margin: 0;
}

/* Validation */
.teneo-contact .gform_wrapper.gravity-theme .gfield_error input,
.teneo-contact .gform_wrapper.gravity-theme .gfield_error textarea {
  border-color: #e23b3b;
}

.teneo-contact .gform_wrapper.gravity-theme .validation_message {
  color: #e23b3b;
  font-size: 12px;
  background: transparent;
  border: 0;
  padding: 4px 0 0;
}

/* Submit button */
.teneo-contact .gform_wrapper.gravity-theme .gform_footer {
  padding: 32px 0 0;
}

/* Submit button + reCAPTCHA disclaimer laid out in one row (matches the design) */
.teneo-contact .teneo-submit-row {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.teneo-contact .teneo-submit-row .gform_button {
  flex: 0 0 auto;
}
.teneo-contact .teneo-recaptcha-note {
  flex: 1 1 260px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.45;
  color: #9a9a9a;
}
.teneo-contact .teneo-recaptcha-note a {
  color: #2f6bff;
  text-decoration: none;
}
.teneo-contact .teneo-recaptcha-note a:hover {
  text-decoration: underline;
}

/* Hide Google's floating badge — the inline disclaimer above replaces it.
   This stylesheet only loads on the Teneo contact page, so it's page-scoped. */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* Invisible reCAPTCHA has no visible widget, so hide its "CAPTCHA" label and
   collapse the empty field (the field stays in the DOM so it still validates). */
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-captcha .gfield_label {
  display: none;
}
.teneo-contact .gform_wrapper.gravity-theme .gfield--type-captcha {
  margin: 0 !important;
  min-height: 0;
}

.teneo-contact .gform_wrapper.gravity-theme .gform_button {
  min-width: 150px;
  padding: 12px 28px;
  border: 0;
  border-radius: 30px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  /* Site-standard purple/pink gradient */
  background: linear-gradient(135deg, #4f51a7 0%, #e729c4 100%);
  transition: opacity 0.2s ease;
}

.teneo-contact .gform_wrapper.gravity-theme .gform_button:hover {
  opacity: 0.9;
}

/* reCAPTCHA / terms note */
.teneo-contact
  .gform_wrapper.gravity-theme
  .gform_fields
  .gfield.gform_validation_container,
.teneo-contact .gform_wrapper .gform-recaptcha-note,
.teneo-contact .gform_wrapper .gfield_consent_description {
  font-size: 11px;
  color: #8a8a8a;
}

/* ---------- Explore Our Products ---------- */
.tcn-products {
  text-align: center;
  padding: 30px 0 70px;
}

.tcn-products-title {
  font-family: "Acumin-Variable-Concept", "Arial", "Helvetica", sans-serif;
  font-size: clamp(32px, 10vw, 80px);
  font-weight: 800;
  margin: 0 0 34px;
}

.tcn-products-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.tcn-prod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 250px;
  padding: 25px 24px;
  border: 1px solid #848181;
  border-radius: 16px;
  background: #0a0a0a;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background 0.4s ease,
    border-color 0.4s ease;
}

.tcn-prod:hover {
  transform: translateY(-3px);
  border-color: #5a5a5a;
}

/* Fill with the brand colour on hover (same smooth fade as the Altria cards) */
.tcn-prod--ss:hover {
  background: #45750d;
  border-color: #45750d;
}

.tcn-prod--ce:hover {
  background: #4b00dd;
  border-color: #4b00dd;
}

.tcn-prod--ss:hover .tcn-prod-sub,
.tcn-prod--ce:hover .tcn-prod-sub {
  color: #fff;
}

.tcn-prod img {
  width: 150px;
  height: auto;
  display: block;
}

.tcn-prod-sub {
  font-size: 13px;
  font-weight: 600;
  color: #c9c9c9;
}
.gform-footer.gform_footer.top_label {
  margin-top: 50px !important;
}
/* Functional Additives fills teal on hover (like SS/CE) */
.tcn-prod--fa:hover {
  background: #0a9bb0;
  border-color: #0a9bb0;
}

.tcn-prod--fa:hover .tcn-prod-sub {
  color: #fff;
}

/* ---------- Footer ---------- */
.tcn-footer {
  padding: 60px 0 20px;
  text-align: center;
}

.tcn-footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 22px;
}

.tcn-footer-teneo {
  height: 100px;
  width: auto;
}

/* Grey vertical line between the two logos (replaces the old divider image) */
.tcn-footer-divider {
  display: block;
  width: 3px;
  height: 135px;
  background: #878787;
}

.tcn-footer-penn {
  height: 100px;
  width: auto;
}

.tcn-footer-copy {
  font-size: 12px;
  color: #8a8a8a;
  margin: 90px 0 0;
}
/* MRF link next to the copyright */
.tcn-footer-copy a {
  color: inherit;
  text-decoration: none;
}
.tcn-footer-copy a:hover {
  color: #fff;
}
h2.tcn-products-title {
  color: #ffffff;
}
/* ============================================================
   Responsive — each breakpoint declared once
   ============================================================ */

@media screen and (max-width: 1024px) {
  .tcn-hero-image {
    max-width: 32%;
  }
}
/* Tablet */
@media screen and (max-width: 991px) {
  .tcn-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  /* Center everything once the layout stacks (applies to phones too) */
  .tcn-hero-text {
    text-align: center;
  }

  .tcn-hero-image {
    flex-basis: auto;
    max-width: 340px;
    margin: 0 auto;
  }

  .tcn-hero-title {
    font-size: 56px;
  }

  .tcn-form-grid {
    flex-direction: column;
    gap: 30px;
  }

  .tcn-form-intro {
    flex-basis: auto;
    text-align: center;
  }

  .tcn-form-wrap {
    margin: 0 auto;
  }
}

/* Phones */
@media screen and (max-width: 600px) {
  .tcn-hero {
    padding: 90px 0 30px;
  }

  .tcn-hero-title {
    font-size: 35px;
  }

  .tcn-row--2 {
    flex-direction: column;
  }

  .tcn-footer-logos {
    gap: 18px;
  }

  .tcn-footer-teneo {
    height: 36px;
  }

  .tcn-footer-divider,
  .tcn-footer-penn {
    height: 42px;
  }
  .tcn-form-intro p {
    font-size: 14px;
  }
}

fieldset#field_25_14 {
  margin-top: 20px !important;
}
legend.gfield_label.gform-field-label.gfield_label_before_complex {
  font-size: clamp(16px, 5vw, 20px) !important;
  font-weight: normal !important;
}

/* Gravity Forms' basic.min.css adds `line-height: 2` to inputs under 641px, which
   stretches the fields. Cancel it. */
@media only screen and (max-width: 641px) {
  .gform_wrapper.gravity-theme
    input:not([type="radio"]):not([type="checkbox"]):not([type="image"]):not(
      [type="file"]
    ):not([type="submit"]) {
    line-height: unset !important;
  }
}
