/* KA Forms -- base front-end styles. Design-tab overrides supersede
 * everything here per-module / per-field. */
.ka_form .ka_form__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.ka_form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ka_form__field--section-heading {
  margin-top: 14px;
  gap: 2px;
}

.ka_form__heading-eyebrow {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
}

.ka_form__heading-text {
  margin: 0;
  font-weight: 700;
}

.ka_form__label {
  font-weight: 600;
  font-size: 0.92rem;
}

.ka_form__required {
  color: #c0392b;
  margin-left: 2px;
}

.ka_form__input,
.ka_form__textarea,
.ka_form__select,
.ka_form__file {
  padding: 9px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: inherit;
}

.ka_form__input:focus,
.ka_form__textarea:focus,
.ka_form__select:focus,
.ka_form__file:focus {
  outline: 2px solid #D4A24E;
  outline-offset: 1px;
  border-color: #D4A24E;
}

.ka_form__textarea {
  min-height: 88px;
  resize: vertical;
}

.ka_form__radio-group,
.ka_form__checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ka_form__checkbox-group--horizontal {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
}

.ka_form__radio,
.ka_form__checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.95rem;
  cursor: pointer;
}

.ka_form__help {
  color: #666;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ka_form__error {
  color: #c0392b;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 2px;
}

.ka_form__error[hidden] {
  display: none;
}

.ka_form__status {
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.ka_form__status:empty {
  padding: 0;
}

.ka_form__status--success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.ka_form__status--error {
  background: #fdecea;
  color: #b71c1c;
  border: 1px solid #f9c6c2;
}

.ka_form__submit-row {
  margin-top: 4px;
}

.ka_form__submit {
  padding: 13px 28px;
  background: #1c1d23;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ka_form__submit:hover { background: #2a2b34; }
.ka_form__submit:focus-visible { outline: 2px solid #D4A24E; outline-offset: 2px; }
.ka_form__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* The honeypot is hidden offscreen for AT, and also from sighted users. */
.ka_form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

[hidden].ka_form__field {
  display: none !important;
}
