/* JTL Contact Hero — two-column contact section (Figma Transition-Pages 7:754).
   Left: nested JTLText intro atoms. Right: navy contact-form card. */

.jtl-contact-hero {
  padding: 0;
  box-sizing: border-box;
}
.jtl-contact-hero__inner {
  max-width: 1570px;
  margin: 0 auto;
  padding: 0 64px;
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

/* ---- Left intro column (nested JTLText atoms) ---- */
.jtl-contact-hero__intro {
  flex: 1 1 46%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.jtl-contact-hero__intro .jtl-text--paragraph {
  margin-top: 26px;
}

/* ---- Right form card ---- */
.jtl-contact-hero__form {
  flex: 1 1 54%;
  min-width: 0;
  max-width: 654px;
  box-sizing: border-box;
  background-color: #0b1b45;
  border-radius: 46px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.jtl-contact-hero__form-title {
  margin: 0;
  font-family: "Kurdis", "Kurdis Wide Bold", "Inter", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 47px;
  letter-spacing: 0.65px;
  color: #ffffff;
}

.jtl-contact-hero__row--split {
  display: flex;
  gap: 16px;
}
.jtl-contact-hero__row--split .jtl-contact-hero__field {
  flex: 1 1 0;
  min-width: 0;
}

.jtl-contact-hero__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jtl-contact-hero__field > label {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;
}

/* Native controls — white pills */
.jtl-contact-hero__field input,
.jtl-contact-hero__field textarea,
.jtl-contact-hero__field select {
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border: none;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  line-height: 24px;
  color: #0b1b45;
}
.jtl-contact-hero__field input[type="text"],
.jtl-contact-hero__field input[type="email"],
.jtl-contact-hero__field input[type="tel"] {
  height: 48px;
  padding: 0 24px;
  border-radius: 24px;
}
.jtl-contact-hero__field textarea {
  min-height: 166px;
  padding: 14px 24px;
  border-radius: 20px;
  resize: vertical;
}
.jtl-contact-hero__field input::placeholder,
.jtl-contact-hero__field textarea::placeholder {
  color: #767676;
}
.jtl-contact-hero__field input:focus-visible,
.jtl-contact-hero__field textarea:focus-visible,
.jtl-contact-hero__field select:focus-visible {
  outline: 2px solid #2722f8;
  outline-offset: 2px;
}

/* Select as a pill with a caret */
.jtl-contact-hero__control--select {
  position: relative;
  display: flex;
  width: 100%;
}
.jtl-contact-hero__control--select select {
  height: 48px;
  padding: 0 46px 0 24px;
  border-radius: 24px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.jtl-contact-hero__control--select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 11px;
  height: 6px;
  transform: translateY(-50%);
  pointer-events: none;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' viewBox='0 0 11 6'%3E%3Cpath d='M1 1l4.5 4L10 1' fill='none' stroke='%230b1b45' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Telefon: country select + phone input */
.jtl-contact-hero__phone {
  display: flex;
  gap: 16px;
}
.jtl-contact-hero__phone .jtl-contact-hero__country {
  flex: 0 0 151px;
  width: 151px;
}
.jtl-contact-hero__phone input[type="tel"] {
  flex: 1 1 auto;
}

/* Consent + submit row */
.jtl-contact-hero__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
}
.jtl-contact-hero__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}
.jtl-contact-hero__consent input[type="checkbox"] {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 2px solid #ffffff;
  border-radius: 5px;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.jtl-contact-hero__consent input[type="checkbox"]:checked {
  background-color: #fb581f;
  border-color: #fb581f;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.4l2.6 2.6L11 4' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}
.jtl-contact-hero__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #2722f8;
  outline-offset: 2px;
}
.jtl-contact-hero__consent-text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #ffffff;
}
.jtl-contact-hero__consent-text a {
  color: #fb581f;
  text-decoration: underline;
}

/* Submit — a form control styled to the primary-NEGATIVE button tokens: orange
   fill / navy label at rest, and on hover it flips to a light-sand fill / navy
   label. The negative variant is required because the button sits on the dark
   navy card — the plain primary hover (navy fill) would make it vanish there.
   It is a <button type="submit">, not a link-CTA, so its appearance lives here
   rather than in the shared button widget. */
.jtl-contact-hero__submit {
  flex: 0 0 auto;
  border: none;
  cursor: pointer;
  background-color: #fb581f;
  color: #0b1b45;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.33px;
  text-transform: uppercase;
  border-radius: 145px;
  padding: 12px 24px;
  transition: background-color .15s ease, color .15s ease;
}
.jtl-contact-hero__submit:hover,
.jtl-contact-hero__submit:focus-visible {
  background-color: #eeeee7;
  color: #0b1b45;
  outline: none;
}

/* ---- Responsive ---- */
@media (max-width: 992px) {
  .jtl-contact-hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 0 24px;
  }
  .jtl-contact-hero__intro,
  .jtl-contact-hero__form {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .jtl-contact-hero__form {
    padding: 28px 24px;
    border-radius: 32px;
  }
  .jtl-contact-hero__form-title {
    font-size: 28px;
    line-height: 40px;
  }
  .jtl-contact-hero__row--split {
    flex-direction: column;
    gap: 24px;
  }
  .jtl-contact-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .jtl-contact-hero__submit {
    align-self: flex-start;
  }
}

/* ---------------------------------------------------------------------------
   Layout: boxed
   Figma JTL-Website-Modules node 6918:1421. Both columns move inside one navy
   rounded card, with a light-blue decorative field behind the form and the
   intro re-inked for the dark ground.

   That frame is a 1440px layout drawn at 1415.14px, so every value below is the
   raw Figma number divided by 0.9827361.

   Every rule carries the layout class, so a plain contact hero renders exactly
   the bytes it did before.
   --------------------------------------------------------------------------- */

/* The band paints nothing, but it owns the space around the card — the card's
   own ground is what needs the gap, and taking it from the section container
   would leave the two-column layout unchanged only by accident. */
.jtl-contact-hero--boxed {
  /* Full-bleed: break out of the WPBakery .container column, so the card is the
     1312px wide the design draws rather than whatever the column leaves. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  padding: 80px 64px;
}
.jtl-contact-hero--boxed .jtl-contact-hero__inner {
  max-width: 1312px; /* 1440 design viewport - 2*64 gutter */
  margin: 0 auto;
  padding: 0;
  display: block;
}

.jtl-contact-hero--boxed .jtl-contact-hero__box {
  position: relative;
  box-sizing: border-box;
  background-color: #0b1b45;
  border-radius: 46px;
  padding: 46px 64px;
  /* The decorative field is drawn larger than the card so it bleeds to the
     edges; the card's own radius is what clips it back. */
  overflow: hidden;
}

.jtl-contact-hero--boxed .jtl-contact-hero__decor {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 64.6%; /* 848 of the card's 1312 */
  /* Inlined rather than an assets/ file. The shape is 300 bytes, and a separate
     file is cached by the CDN independently of the stylesheet that references it
     — measured serving a four-hour-old copy from the edge while the origin had
     the current one. Inline, it versions with this sheet and cannot go stale.
     preserveAspectRatio="none" is load-bearing: painted at 100% 100%, the SVG
     default letterboxes and leaves a navy strip above and below the field.
     Source: JTL-Website-Modules node 6918:1423. */
  background: url("data:image/svg+xml,<svg width=%22834%22 height=%22775%22 viewBox=%220 0 834 775%22 preserveAspectRatio=%22none%22 fill=%22none%22 xmlns=%22http://www.w3.org/2000/svg%22><path d=%22M50.838 581.905L159.588 774.99L834 774.99L834 0L159.582 -5.89595e-05L50.8381 193.033C-16.946 313.325 -16.946 461.56 50.838 581.905Z%22 fill=%22%2389D2FF%22/></svg>") center / 100% 100% no-repeat;
  pointer-events: none;
}

.jtl-contact-hero--boxed .jtl-contact-hero__columns {
  position: relative; /* above the decorative field */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

/* The design pins the intro narrow and lets the space between the columns take
   the slack, rather than letting the copy run to a 500px measure. */
.jtl-contact-hero--boxed .jtl-contact-hero__intro {
  flex: 0 1 350px;
  gap: 0;
}
.jtl-contact-hero--boxed .jtl-contact-hero__intro .jtl-text--paragraph {
  margin-top: 24px;
}

/* Everything in the intro now sits on navy, so none of it may keep the default
   dark ink. */
/* !important is load-bearing here, not a smell: the page template's headings
   are pinned navy by a site-wide `main section h2 { color: #0b1b45 !important }`
   in the shared stylesheet, which no amount of specificity can outrank. A
   heading on a navy card has to win that fight or it is invisible. */
.jtl-contact-hero--boxed .jtl-contact-hero__intro .jtl-text__heading,
.jtl-contact-hero--boxed .jtl-contact-hero__intro .jtl-text__body,
.jtl-contact-hero--boxed .jtl-contact-hero__intro .jtl-text__body p {
  color: #ffffff !important;
}
.jtl-contact-hero--boxed .jtl-contact-hero__intro .jtl-text__eyebrow {
  color: #89d2ff !important;
}

/* The form card. The embedded form's own document has a transparent background,
   so this light blue is what its labels are read against. */
.jtl-contact-hero--boxed .jtl-contact-hero__form--hubspot {
  flex: 0 0 588px;
  min-width: 0;
  max-width: 588px;
  box-sizing: border-box;
  background-color: #89d2ff;
  border-radius: 20px;
  padding: 30px 24px 30px 30px;
}
.jtl-contact-hero--boxed .jtl-contact-hero__hubspot {
  width: 100%;
}
.jtl-contact-hero--boxed .jtl-contact-hero__hubspot iframe {
  width: 100% !important; /* the embed writes an inline width from its own measurement */
  border: 0;
}

@media (max-width: 992px) {
  .jtl-contact-hero--boxed {
    padding: 64px 24px;
  }
  .jtl-contact-hero--boxed .jtl-contact-hero__box {
    padding: 40px 32px;
    border-radius: 32px;
  }
  .jtl-contact-hero--boxed .jtl-contact-hero__columns {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }
  .jtl-contact-hero--boxed .jtl-contact-hero__intro,
  .jtl-contact-hero--boxed .jtl-contact-hero__form--hubspot {
    flex: 1 1 auto;
    max-width: none;
  }
  /* Stacked, the field would sit under the copy rather than behind the form,
     which reads as a stray block of colour. */
  .jtl-contact-hero--boxed .jtl-contact-hero__decor {
    display: none;
  }
}

@media (max-width: 768px) {
  .jtl-contact-hero--boxed {
    padding: 48px 24px;
  }
  .jtl-contact-hero--boxed .jtl-contact-hero__box {
    padding: 32px 24px;
    border-radius: 24px;
  }
  .jtl-contact-hero--boxed .jtl-contact-hero__form--hubspot {
    padding: 24px 16px;
  }
}
