/* Koda Forage Capture widget. Warm earth palette, restrained. */
.kf-dialog {
  border: none;
  border-radius: 10px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 2rem);
  color: #2b2620;
  background: #f6f1e7;
  box-shadow: 0 18px 50px rgba(40, 34, 24, 0.35);
  font-family: inherit;
}
.kf-dialog::backdrop { background: rgba(40, 34, 24, 0.55); }
.kf-close {
  position: absolute; top: 8px; right: 12px;
  border: none; background: none; font-size: 26px; line-height: 1;
  color: #6f6655; cursor: pointer;
}
.kf-form { padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.kf-title { margin: 0; font-size: 1.35rem; color: #454129; text-align: center; }
.kf-intro { margin: 0 0 6px; font-size: 0.92rem; color: #6f6655; line-height: 1.45; text-align: center; }
.kf-note { margin: 8px 0 0; font-size: 0.76rem; color: #8a8071; line-height: 1.5; text-align: center; }
.kf-turnstile { display: flex; justify-content: center; }
.kf-field { display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; color: #4a4338; }
/* paired fields, side by side, stacking when there is no room */
.kf-row { display: flex; gap: 12px; }
.kf-row > .kf-field { flex: 1 1 0; min-width: 0; }
@media (max-width: 460px) {
  .kf-row { flex-direction: column; gap: 12px; }
}
.kf-field.kf-inline { flex-direction: row; align-items: center; gap: 8px; }
.kf-field input[type="text"], .kf-field input[type="email"], .kf-field input[type="tel"],
.kf-field select, .kf-field textarea {
  border: 1px solid #d6cdbb; border-radius: 7px; padding: 9px 11px;
  font: inherit; font-size: 0.95rem; background: #fffdf8; color: #2b2620;
}
.kf-field input:focus, .kf-field select:focus, .kf-field textarea:focus {
  outline: 2px solid #C46B44; outline-offset: 1px; border-color: #C46B44;
}
.kf-dialog *, .kf-dialog *::before, .kf-dialog *::after { box-sizing: border-box; }
.kf-label { font-size: 0.86rem; color: #4a4338; }

/* native control kept for semantics and form state, visually replaced below */
.kf-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* multiselect chips */
.kf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-chip {
  display: inline-flex; align-items: center; cursor: pointer; user-select: none;
  border: 1px solid #d6cdbb; border-radius: 999px; background: #fffdf8; color: #4a4338;
  padding: 7px 13px; font-size: 0.83rem; line-height: 1.1; font-weight: 400;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.kf-chip:hover { border-color: #C46B44; }
.kf-chip.is-on { background: #C46B44; border-color: #C46B44; color: #fff; }
.kf-chip:focus-within { outline: 2px solid #C46B44; outline-offset: 1px; }
.kf-chip-text { pointer-events: none; }

/* single checkbox, drawn not native, so a theme reset cannot hide it */
.kf-field.kf-inline { cursor: pointer; }
.kf-inline-text { font-size: 0.86rem; }
.kf-box {
  flex: 0 0 17px; width: 17px; height: 17px; position: relative; display: inline-block;
  border: 1px solid #d6cdbb; border-radius: 4px; background: #fffdf8;
}
.kf-field.kf-inline.is-on .kf-box { background: #C46B44; border-color: #C46B44; }
.kf-field.kf-inline.is-on .kf-box::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.kf-field.kf-inline:focus-within .kf-box { outline: 2px solid #C46B44; outline-offset: 1px; }

.kf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.kf-submit {
  margin-top: 6px; border: none; border-radius: 7px; padding: 11px 16px;
  background: #C46B44; color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.kf-submit:hover { background: #b15e39; }
.kf-submit:disabled { opacity: 0.6; cursor: default; }
.kf-msg { margin: 4px 0 0; font-size: 0.85rem; color: #a23b29; min-height: 1em; text-align: center; }
.kf-invalid, .kf-field select.kf-invalid, .kf-field input.kf-invalid, .kf-field textarea.kf-invalid {
  border-color: #a23b29;
}
.kf-success { margin: 0; padding: 8px 0; font-size: 1rem; color: #454129; text-align: center; }
