.kerne-form {
  --kh-dark: #373D3D;
  color: var(--kh-dark);
}
.kerne-form.kh-bg-lys { background: #DAE5E7; }
.kerne-form.kh-bg-lavendel { background: #D8D9E6; }
.kerne-form.kh-bg-teal { background: #96B7BC; }
.kerne-form.kh-bg-laks { background: #E0A492; }
.kerne-form.kh-bg-rosa { background: #CA9B9C; }

.kerne-form .kh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 110px);
  align-items: stretch;
}
.kerne-form .kh-eyebrow {
  font-family: MaisonNeueBook, sans-serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.kerne-form .kh-h2 {
  font-family: MaisonNeueBold, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  color: var(--kh-dark);
  margin: 0 0 20px;
}
.kerne-form .kh-lead {
  font-family: MaisonNeueBold, sans-serif;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  margin: 0 0 16px;
}
.kerne-form .kh-form-contact {
  font-family: MaisonNeueBook, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
.kerne-form .kh-form-contact a {
  color: inherit;
  text-decoration: underline;
}
.kerne-form .kh-form-divider {
  border: 0;
  border-top: 1px solid rgba(55, 61, 61, 0.3);
  margin: 28px 0;
}
/* "Fill container": the photo follows the form column's height */
.kerne-form .kh-form-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fluent Forms styling, scoped to this block */
.kerne-form .fluentform .ff-el-input--label label {
  font-family: MaisonNeueBook, sans-serif;
  font-size: 14px;
  color: var(--kh-dark);
  font-weight: 400;
}
.kerne-form .fluentform .ff-el-form-control {
  background: #fff;
  border: 0;
  border-radius: 100px;
  padding: 15px 24px;
  font-family: MaisonNeueBook, sans-serif;
  font-size: 16px;
  color: var(--kh-dark);
  width: 100%;
}
.kerne-form .fluentform textarea.ff-el-form-control {
  border-radius: 24px;
  min-height: 110px;
}
.kerne-form .fluentform .ff-el-group {
  margin-bottom: 20px;
}
.kerne-form .fluentform .ff_submit_btn_wrapper .ff-btn-submit {
  background: #fff;
  color: var(--kh-dark);
  font-family: MaisonNeueBold, sans-serif;
  font-size: 16px;
  border: 0;
  border-radius: 100px;
  padding: 18px 28px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.kerne-form .fluentform .ff_submit_btn_wrapper .ff-btn-submit:hover {
  background: var(--kh-dark);
  color: #fff;
}
.kerne-form .fluentform .ff-el-form-check-label {
  font-family: MaisonNeueBook, sans-serif;
  font-size: 16px;
  color: var(--kh-dark);
}
.kerne-form .fluentform .ff-el-form-check-label a {
  color: inherit;
  text-decoration: underline;
}

/* Consent checkbox — same mechanism as the theme's contact/footer forms
   (blocks/contact-block): native input visually hidden, the box drawn on
   the label, checkmark painted when Fluent Forms toggles .ff_item_selected. */
.kerne-form .fluentform .ff-el-tc .ff_tc_label {
  display: flex;
  position: relative;
}
.kerne-form .fluentform .ff_tc_checkbox {
  flex-shrink: 0;
  width: 34px;
  margin: 0;
}
.kerne-form .fluentform .ff_tc_checkbox input {
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}
.kerne-form .fluentform .ff_tc_label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border: 1px solid #fff;
}
.kerne-form .fluentform .ff_item_selected .ff_tc_label::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #fff url("../contact-block/assets/checkmark_dark.svg") center center / contain no-repeat;
}
.kerne-form .fluentform .ff_tc_label:focus-within::before {
  outline: 1px solid -webkit-focus-ring-color;
  outline-offset: 1px;
}
.kerne-form .fluentform .ff_t_c {
  margin: 0;
}
/* Font-size intentionally not set: Fluent Forms forces 1.3rem !important on
   .ff-el-tc p, and the reference (contact-block) renders at that size too. */
.kerne-form .fluentform .ff_t_c p {
  margin: 0;
  font-family: MaisonNeueBook, sans-serif;
  line-height: 1.5;
  color: var(--kh-dark);
}
.kerne-form .fluentform .ff-el-tc .text-danger {
  padding-left: 34px;
}

@media (max-width: 1023px) {
  .kerne-form .kh-form-grid {
    grid-template-columns: 1fr;
  }
  .kerne-form .kh-form-media {
    order: -1;
  }
  .kerne-form .kh-form-img {
    height: auto;
  }
}
