
/*!
 * Keiko Hub — late plugin compatibility overrides.
 * Scope: WPForms inside .demo-form / .kh-wpforms-shell only.
 */

/* ---- Shell / card ---- */
html body .demo-form.kh-form-card,
html body .demo-form.kh-wpforms-shell,
html body .kh-wpforms-shell {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 520px !important;
  margin-inline: auto !important;
  border-radius: 34px !important;
  padding: 28px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(53, 233, 255, .16), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 36, .97), rgba(8, 12, 26, .99)) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .28) !important;
  color: #ffffff !important;
}

html body .kh-wpforms-card-head {
  display: block !important;
  margin: 0 0 20px !important;
  padding: 0 0 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
}

html body .kh-wpforms-card-head .eyebrow {
  margin-bottom: 12px !important;
}

html body .kh-wpforms-card-head h3 {
  margin: 0 0 8px !important;
  color: #ffffff !important;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
  font-weight: 950 !important;
}

html body .kh-wpforms-card-head p {
  margin: 0 !important;
  color: rgba(255, 255, 255, .68) !important;
  font-size: .96rem !important;
  line-height: 1.55 !important;
}

/* Hide WPForms' own header if enabled so it doesn't duplicate mockup heading */
html body .kh-wpforms-shell .wpforms-head-container,
html body .kh-wpforms-shell .wpforms-title,
html body .kh-wpforms-shell .wpforms-description,
html body .demo-form .wpforms-head-container,
html body .demo-form .wpforms-title,
html body .demo-form .wpforms-description {
  display: none !important;
}

/* ---- Kill WPForms default layout/spacing inside card ---- */
html body .kh-wpforms-shell div.wpforms-container-full,
html body .demo-form div.wpforms-container-full,
html body .kh-wpforms-shell .wpforms-container,
html body .demo-form .wpforms-container,
html body .kh-wpforms-shell form.wpforms-form,
html body .demo-form form.wpforms-form {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .kh-wpforms-shell .wpforms-field-container,
html body .demo-form .wpforms-field-container,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form .wpforms-field-container,
html body .demo-form div.wpforms-container-full .wpforms-form .wpforms-field-container {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .kh-wpforms-shell .wpforms-field,
html body .demo-form .wpforms-field,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form .wpforms-field,
html body .demo-form div.wpforms-container-full .wpforms-form .wpforms-field,
html body .kh-wpforms-shell .wpforms-layout-column,
html body .demo-form .wpforms-layout-column {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  clear: both !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Force simplified forms to a clean single-column mockup. Keep rows usable. */
html body .kh-wpforms-shell .wpforms-field-row,
html body .demo-form .wpforms-field-row,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-field-row,
html body .demo-form div.wpforms-container-full .wpforms-field-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body .kh-wpforms-shell .wpforms-field-row-block,
html body .demo-form .wpforms-field-row-block,
html body .kh-wpforms-shell .wpforms-one-half,
html body .kh-wpforms-shell .wpforms-one-third,
html body .kh-wpforms-shell .wpforms-two-thirds,
html body .kh-wpforms-shell .wpforms-first,
html body .demo-form .wpforms-one-half,
html body .demo-form .wpforms-one-third,
html body .demo-form .wpforms-two-thirds,
html body .demo-form .wpforms-first {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* ---- Labels ---- */
html body .kh-wpforms-shell label,
html body .demo-form label,
html body .kh-wpforms-shell .wpforms-field-label,
html body .demo-form .wpforms-field-label,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form .wpforms-field-label,
html body .demo-form div.wpforms-container-full .wpforms-form .wpforms-field-label {
  display: block !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .86) !important;
  font-size: .76rem !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .085em !important;
}

html body .kh-wpforms-shell .wpforms-required-label,
html body .demo-form .wpforms-required-label {
  color: #c8ff5f !important;
  font-weight: 950 !important;
}

/* ---- Fields ---- */
html body .kh-wpforms-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .kh-wpforms-shell select,
html body .kh-wpforms-shell textarea,
html body .demo-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .demo-form select,
html body .demo-form textarea,
html body .kh-wpforms-shell div.wpforms-container-full input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .kh-wpforms-shell div.wpforms-container-full select,
html body .kh-wpforms-shell div.wpforms-container-full textarea,
html body .demo-form div.wpforms-container-full input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .demo-form div.wpforms-container-full select,
html body .demo-form div.wpforms-container-full textarea {
  box-sizing: border-box !important;
  display: block !important;
  appearance: auto !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: .92rem 1rem !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background-color: rgba(255, 255, 255, .075) !important;
  background-image: none !important;
  color: #ffffff !important;
  font-size: .98rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
  outline: none !important;
}

html body .kh-wpforms-shell textarea,
html body .demo-form textarea,
html body .kh-wpforms-shell div.wpforms-container-full textarea,
html body .demo-form div.wpforms-container-full textarea {
  min-height: 118px !important;
  resize: vertical !important;
}

html body .kh-wpforms-shell input::placeholder,
html body .kh-wpforms-shell textarea::placeholder,
html body .demo-form input::placeholder,
html body .demo-form textarea::placeholder {
  color: rgba(255, 255, 255, .42) !important;
  opacity: 1 !important;
}

html body .kh-wpforms-shell input:focus,
html body .kh-wpforms-shell select:focus,
html body .kh-wpforms-shell textarea:focus,
html body .demo-form input:focus,
html body .demo-form select:focus,
html body .demo-form textarea:focus {
  border-color: rgba(53, 233, 255, .76) !important;
  background-color: rgba(255, 255, 255, .11) !important;
  box-shadow: 0 0 0 4px rgba(53, 233, 255, .14), inset 0 1px 0 rgba(255,255,255,.08) !important;
}

html body .kh-wpforms-shell select,
html body .demo-form select {
  color-scheme: dark !important;
}

/* Checkbox / radio */
html body .kh-wpforms-shell input[type="checkbox"],
html body .kh-wpforms-shell input[type="radio"],
html body .demo-form input[type="checkbox"],
html body .demo-form input[type="radio"] {
  accent-color: #35e9ff !important;
}

html body .kh-wpforms-shell .wpforms-field-checkbox ul,
html body .kh-wpforms-shell .wpforms-field-radio ul,
html body .demo-form .wpforms-field-checkbox ul,
html body .demo-form .wpforms-field-radio ul {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .kh-wpforms-shell .wpforms-field-checkbox li,
html body .kh-wpforms-shell .wpforms-field-radio li,
html body .demo-form .wpforms-field-checkbox li,
html body .demo-form .wpforms-field-radio li {
  margin: 0 !important;
  color: rgba(255,255,255,.78) !important;
}

/* Descriptions / small text */
html body .kh-wpforms-shell .wpforms-field-sublabel,
html body .kh-wpforms-shell .wpforms-field-description,
html body .kh-wpforms-shell .wpforms-field-limit-text,
html body .demo-form .wpforms-field-sublabel,
html body .demo-form .wpforms-field-description,
html body .demo-form .wpforms-field-limit-text {
  display: block !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, .54) !important;
  font-size: .78rem !important;
  line-height: 1.35 !important;
}

/* Submit */
html body .kh-wpforms-shell .wpforms-submit-container,
html body .demo-form .wpforms-submit-container,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form .wpforms-submit-container,
html body .demo-form div.wpforms-container-full .wpforms-form .wpforms-submit-container {
  display: block !important;
  width: 100% !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

html body .kh-wpforms-shell button[type="submit"],
html body .kh-wpforms-shell input[type="submit"],
html body .kh-wpforms-shell .wpforms-submit,
html body .demo-form button[type="submit"],
html body .demo-form input[type="submit"],
html body .demo-form .wpforms-submit,
html body .kh-wpforms-shell div.wpforms-container-full button[type="submit"],
html body .kh-wpforms-shell div.wpforms-container-full input[type="submit"],
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-submit,
html body .demo-form div.wpforms-container-full button[type="submit"],
html body .demo-form div.wpforms-container-full input[type="submit"],
html body .demo-form div.wpforms-container-full .wpforms-submit {
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 !important;
  padding: .95rem 1.3rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #35e9ff, #c8ff5f) !important;
  color: #06111f !important;
  font-size: .98rem !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  box-shadow: 0 18px 45px rgba(53, 233, 255, .18) !important;
  cursor: pointer !important;
}

html body .kh-wpforms-shell button[type="submit"]:hover,
html body .kh-wpforms-shell input[type="submit"]:hover,
html body .kh-wpforms-shell .wpforms-submit:hover,
html body .demo-form button[type="submit"]:hover,
html body .demo-form input[type="submit"]:hover,
html body .demo-form .wpforms-submit:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.02) !important;
  box-shadow: 0 22px 56px rgba(53, 233, 255, .24) !important;
}

/* Errors and confirmations */
html body .kh-wpforms-shell label.wpforms-error,
html body .kh-wpforms-shell .wpforms-error,
html body .demo-form label.wpforms-error,
html body .demo-form .wpforms-error {
  display: block !important;
  margin: 7px 0 0 !important;
  color: #ff9bc3 !important;
  font-size: .8rem !important;
  line-height: 1.35 !important;
  font-weight: 850 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

html body .kh-wpforms-shell .wpforms-field.wpforms-has-error input,
html body .kh-wpforms-shell .wpforms-field.wpforms-has-error select,
html body .kh-wpforms-shell .wpforms-field.wpforms-has-error textarea,
html body .demo-form .wpforms-field.wpforms-has-error input,
html body .demo-form .wpforms-field.wpforms-has-error select,
html body .demo-form .wpforms-field.wpforms-has-error textarea {
  border-color: rgba(255, 155, 195, .72) !important;
  box-shadow: 0 0 0 4px rgba(255, 155, 195, .12) !important;
}

html body .kh-wpforms-shell .wpforms-confirmation-container-full,
html body .demo-form .wpforms-confirmation-container-full,
html body .kh-wpforms-shell div[submit-success] > .wpforms-confirmation-container-full,
html body .demo-form div[submit-success] > .wpforms-confirmation-container-full {
  box-sizing: border-box !important;
  border: 1px solid rgba(200, 255, 95, .22) !important;
  border-radius: 22px !important;
  background: rgba(200, 255, 95, .10) !important;
  color: #ffffff !important;
  padding: 18px !important;
  margin: 0 !important;
}

/* WPForms modern markup variables, when present */
html body .kh-wpforms-shell div.wpforms-container-full,
html body .demo-form div.wpforms-container-full {
  --wpforms-field-size-input-height: 54px !important;
  --wpforms-field-border-radius: 18px !important;
  --wpforms-button-border-radius: 999px !important;
  --wpforms-button-background-color: transparent !important;
  --wpforms-button-text-color: #06111f !important;
  --wpforms-field-background-color: rgba(255,255,255,.075) !important;
  --wpforms-field-border-color: rgba(255,255,255,.14) !important;
  --wpforms-field-text-color: #ffffff !important;
  --wpforms-label-color: rgba(255,255,255,.86) !important;
}

/* Light mode */
html body[data-theme="light"] .demo-form.kh-form-card,
html body[data-theme="light"] .demo-form.kh-wpforms-shell,
html body[data-theme="light"] .kh-wpforms-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(49, 93, 255, .12), transparent 32%),
    linear-gradient(180deg, #ffffff, #f4f6ff) !important;
  border-color: #dbe4f2 !important;
  color: #071126 !important;
  box-shadow: 0 28px 80px rgba(8, 17, 36, .12) !important;
}

html body[data-theme="light"] .kh-wpforms-card-head {
  border-bottom-color: #dbe4f2 !important;
}

html body[data-theme="light"] .kh-wpforms-card-head h3,
html body[data-theme="light"] .kh-wpforms-shell label,
html body[data-theme="light"] .demo-form label,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-label,
html body[data-theme="light"] .demo-form .wpforms-field-label {
  color: #071126 !important;
}

html body[data-theme="light"] .kh-wpforms-card-head p,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-sublabel,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-description,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-limit-text,
html body[data-theme="light"] .demo-form .wpforms-field-sublabel,
html body[data-theme="light"] .demo-form .wpforms-field-description,
html body[data-theme="light"] .demo-form .wpforms-field-limit-text {
  color: #66718a !important;
}

html body[data-theme="light"] .kh-wpforms-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body[data-theme="light"] .kh-wpforms-shell select,
html body[data-theme="light"] .kh-wpforms-shell textarea,
html body[data-theme="light"] .demo-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body[data-theme="light"] .demo-form select,
html body[data-theme="light"] .demo-form textarea {
  background-color: #ffffff !important;
  color: #071126 !important;
  border-color: #dbe4f2 !important;
  box-shadow: inset 0 1px 0 rgba(8,17,36,.04) !important;
}

html body[data-theme="light"] .kh-wpforms-shell input::placeholder,
html body[data-theme="light"] .kh-wpforms-shell textarea::placeholder,
html body[data-theme="light"] .demo-form input::placeholder,
html body[data-theme="light"] .demo-form textarea::placeholder {
  color: #9aa7bd !important;
}

html body[data-theme="light"] .kh-wpforms-shell input:focus,
html body[data-theme="light"] .kh-wpforms-shell select:focus,
html body[data-theme="light"] .kh-wpforms-shell textarea:focus,
html body[data-theme="light"] .demo-form input:focus,
html body[data-theme="light"] .demo-form select:focus,
html body[data-theme="light"] .demo-form textarea:focus {
  border-color: #315dff !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(49, 93, 255, .12), inset 0 1px 0 rgba(8,17,36,.04) !important;
}

@media (max-width: 767px) {
  html body .demo-form.kh-form-card,
  html body .demo-form.kh-wpforms-shell,
  html body .kh-wpforms-shell {
    max-width: 100% !important;
    padding: 22px !important;
    border-radius: 26px !important;
  }
  html body .kh-wpforms-shell .wpforms-field-row,
  html body .demo-form .wpforms-field-row {
    grid-template-columns: 1fr !important;
  }
}

/* M3.7 WPForms exact field grid and mockup visual pass */
html body .demo-form.kh-form-card.kh-form-card--mockup-bg,
html body .demo-form.kh-form-card,
html body .kh-wpforms-shell.kh-form-card {
  position: relative !important;
  isolation: isolate !important;
  max-width: 560px !important;
  padding: 30px !important;
  background:
    linear-gradient(180deg, rgba(8, 12, 26, .84), rgba(8, 12, 26, .98)),
    radial-gradient(circle at 10% 0%, rgba(53, 233, 255, .20), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(200, 255, 95, .14), transparent 30%),
    url("../img/hero-dojo.webp") center/cover no-repeat !important;
}

html body .demo-form.kh-form-card::before,
html body .kh-wpforms-shell.kh-form-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  background:
    radial-gradient(circle at 72% 18%, rgba(53, 233, 255, .18), transparent 24%),
    linear-gradient(135deg, rgba(6, 8, 20, .10), rgba(6, 8, 20, .46)) !important;
  opacity: 1 !important;
}

html body .kh-wpforms-card-head {
  position: relative !important;
  z-index: 1 !important;
}

/* Use CSS Grid over WPForms half-column classes so fields land exactly where required. */
html body .kh-wpforms-shell .wpforms-field-container,
html body .demo-form .wpforms-field-container,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form .wpforms-field-container,
html body .demo-form div.wpforms-container-full .wpforms-form .wpforms-field-container,
html body .kh-wpforms-shell form.wpforms-form .wpforms-field-container,
html body .demo-form form.wpforms-form .wpforms-field-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-auto-flow: row dense !important;
  column-gap: 12px !important;
  row-gap: 14px !important;
  align-items: start !important;
  width: 100% !important;
}

/* Remove WPForms floats/half widths, then assign exact positions */
html body .kh-wpforms-shell .wpforms-field,
html body .demo-form .wpforms-field,
html body .kh-wpforms-shell .wpforms-one-half,
html body .kh-wpforms-shell .wpforms-first,
html body .demo-form .wpforms-one-half,
html body .demo-form .wpforms-first {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  clear: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
}

/* Row 1: Nombre left, Dojo right */
html body .kh-wpforms-shell [data-field-id="1"],
html body .demo-form [data-field-id="1"] {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html body .kh-wpforms-shell [data-field-id="2"],
html body .demo-form [data-field-id="2"] {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

/* Row 2: País left, Plan right */
html body .kh-wpforms-shell [data-field-id="3"],
html body .demo-form [data-field-id="3"] {
  grid-column: 1 !important;
  grid-row: 2 !important;
}

html body .kh-wpforms-shell [data-field-id="5"],
html body .demo-form [data-field-id="5"] {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

/* Row 3: Teléfono left, Email right */
html body .kh-wpforms-shell [data-field-id="7"],
html body .demo-form [data-field-id="7"] {
  grid-column: 1 !important;
  grid-row: 3 !important;
}

html body .kh-wpforms-shell [data-field-id="6"],
html body .demo-form [data-field-id="6"] {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

/* Row 4: message full width */
html body .kh-wpforms-shell [data-field-id="8"],
html body .demo-form [data-field-id="8"] {
  grid-column: 1 / -1 !important;
  grid-row: 4 !important;
}

/* Honeypot / hidden internal fields must not affect grid layout */
html body .kh-wpforms-shell [data-field-id="4"],
html body .kh-wpforms-shell [data-field-id="9"],
html body .demo-form [data-field-id="4"],
html body .demo-form [data-field-id="9"],
html body .kh-wpforms-shell .wpforms-field[aria-hidden="true"],
html body .demo-form .wpforms-field[aria-hidden="true"] {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Inputs: clean mockup visual */
html body .kh-wpforms-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .kh-wpforms-shell select,
html body .kh-wpforms-shell textarea,
html body .demo-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .demo-form select,
html body .demo-form textarea {
  min-height: 54px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .105) !important;
  backdrop-filter: blur(10px) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

html body .kh-wpforms-shell textarea,
html body .demo-form textarea {
  min-height: 116px !important;
}

/* WPForms modern select uses Choices.js. Force it to match text fields. */
html body .kh-wpforms-shell .choices,
html body .demo-form .choices,
html body .kh-wpforms-shell .choices[data-type*="select-one"],
html body .demo-form .choices[data-type*="select-one"] {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 54px !important;
  margin: 0 !important;
  color: #ffffff !important;
}

html body .kh-wpforms-shell .choices__inner,
html body .demo-form .choices__inner {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 54px !important;
  padding: 0 .95rem !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .105) !important;
  color: #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  overflow: hidden !important;
}

html body .kh-wpforms-shell .choices__list--single,
html body .demo-form .choices__list--single {
  width: 100% !important;
  padding: 0 !important;
}

html body .kh-wpforms-shell .choices__item,
html body .demo-form .choices__item,
html body .kh-wpforms-shell .choices__placeholder,
html body .demo-form .choices__placeholder {
  color: rgba(255, 255, 255, .94) !important;
  font-weight: 750 !important;
  opacity: 1 !important;
}

html body .kh-wpforms-shell .choices[data-type*="select-one"]::after,
html body .demo-form .choices[data-type*="select-one"]::after {
  border-color: rgba(255, 255, 255, .72) transparent transparent !important;
  right: 18px !important;
}

html body .kh-wpforms-shell .choices.is-open .choices__inner,
html body .demo-form .choices.is-open .choices__inner,
html body .kh-wpforms-shell .choices.is-focused .choices__inner,
html body .demo-form .choices.is-focused .choices__inner {
  border-color: rgba(53, 233, 255, .76) !important;
  background: rgba(255, 255, 255, .13) !important;
  box-shadow: 0 0 0 4px rgba(53, 233, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}

html body .kh-wpforms-shell .choices__list--dropdown,
html body .demo-form .choices__list--dropdown {
  z-index: 9999 !important;
  margin-top: 8px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(128, 157, 255, .28) !important;
  background: #0b1024 !important;
  overflow: hidden !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35) !important;
}

html body .kh-wpforms-shell .choices__list--dropdown .choices__item,
html body .demo-form .choices__list--dropdown .choices__item {
  padding: 12px 14px !important;
  color: rgba(255, 255, 255, .88) !important;
  font-weight: 750 !important;
}

html body .kh-wpforms-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
html body .demo-form .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(53, 233, 255, .12) !important;
  color: #ffffff !important;
}

/* Submit button spacing aligned to mockup */
html body .kh-wpforms-shell .wpforms-submit-container,
html body .demo-form .wpforms-submit-container {
  margin-top: 16px !important;
}

/* Spinner should not break button alignment */
html body .kh-wpforms-shell .wpforms-submit-spinner,
html body .demo-form .wpforms-submit-spinner {
  display: inline-block !important;
  margin: 12px auto 0 !important;
}

/* Light mode version */
html body[data-theme="light"] .demo-form.kh-form-card.kh-form-card--mockup-bg,
html body[data-theme="light"] .demo-form.kh-form-card,
html body[data-theme="light"] .kh-wpforms-shell.kh-form-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(244, 246, 255, .97)),
    radial-gradient(circle at 10% 0%, rgba(49, 93, 255, .14), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(53, 233, 255, .16), transparent 30%),
    url("../img/hero-dojo.webp") center/cover no-repeat !important;
}

html body[data-theme="light"] .kh-wpforms-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body[data-theme="light"] .kh-wpforms-shell select,
html body[data-theme="light"] .kh-wpforms-shell textarea,
html body[data-theme="light"] .demo-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body[data-theme="light"] .demo-form select,
html body[data-theme="light"] .demo-form textarea,
html body[data-theme="light"] .kh-wpforms-shell .choices__inner,
html body[data-theme="light"] .demo-form .choices__inner {
  background: rgba(255, 255, 255, .86) !important;
  color: #071126 !important;
  border-color: #dbe4f2 !important;
  box-shadow: inset 0 1px 0 rgba(8, 17, 36, .04) !important;
}

html body[data-theme="light"] .kh-wpforms-shell .choices__item,
html body[data-theme="light"] .demo-form .choices__item,
html body[data-theme="light"] .kh-wpforms-shell .choices__placeholder,
html body[data-theme="light"] .demo-form .choices__placeholder {
  color: #071126 !important;
}

html body[data-theme="light"] .kh-wpforms-shell .choices[data-type*="select-one"]::after,
html body[data-theme="light"] .demo-form .choices[data-type*="select-one"]::after {
  border-color: #071126 transparent transparent !important;
}

html body[data-theme="light"] .kh-wpforms-shell .choices__list--dropdown,
html body[data-theme="light"] .demo-form .choices__list--dropdown {
  background: #ffffff !important;
  border-color: #dbe4f2 !important;
  box-shadow: 0 22px 60px rgba(8, 17, 36, .16) !important;
}

html body[data-theme="light"] .kh-wpforms-shell .choices__list--dropdown .choices__item,
html body[data-theme="light"] .demo-form .choices__list--dropdown .choices__item {
  color: #071126 !important;
}

html body[data-theme="light"] .kh-wpforms-shell .choices__list--dropdown .choices__item--selectable.is-highlighted,
html body[data-theme="light"] .demo-form .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(49, 93, 255, .10) !important;
}

/* Mobile: all fields single column in logical order */
@media (max-width: 767px) {
  html body .kh-wpforms-shell .wpforms-field-container,
  html body .demo-form .wpforms-field-container,
  html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form .wpforms-field-container,
  html body .demo-form div.wpforms-container-full .wpforms-form .wpforms-field-container {
    grid-template-columns: 1fr !important;
  }

  html body .kh-wpforms-shell [data-field-id],
  html body .demo-form [data-field-id] {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  html body .kh-wpforms-shell [data-field-id="4"],
  html body .kh-wpforms-shell [data-field-id="9"],
  html body .demo-form [data-field-id="4"],
  html body .demo-form [data-field-id="9"] {
    position: absolute !important;
    left: -99999px !important;
  }
}


/* M3.8 final WPForms pass: hidden labels, approved dark-only form visual */
html body .demo-form.kh-form-card.kh-form-card--mockup-bg,
html body[data-theme="light"] .demo-form.kh-form-card.kh-form-card--mockup-bg,
html body .demo-form.kh-form-card,
html body[data-theme="light"] .demo-form.kh-form-card,
html body .kh-wpforms-shell.kh-form-card,
html body[data-theme="light"] .kh-wpforms-shell.kh-form-card {
  color: #ffffff !important;
  background:
    linear-gradient(135deg, rgba(6, 8, 20, .95), rgba(49, 93, 245, .85)),
    url("../img/art-kendo.webp") center/cover no-repeat !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  box-shadow: 0 30px 90px rgba(8, 17, 36, .24) !important;
}

/* In this approved mockup, the form card stays dark in light mode too. */
html body[data-theme="light"] .kh-wpforms-card-head,
html body[data-theme="light"] .kh-wpforms-card-head h3,
html body[data-theme="light"] .kh-wpforms-card-head p,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-sublabel,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-description,
html body[data-theme="light"] .kh-wpforms-shell .wpforms-field-limit-text,
html body[data-theme="light"] .demo-form .wpforms-field-sublabel,
html body[data-theme="light"] .demo-form .wpforms-field-description,
html body[data-theme="light"] .demo-form .wpforms-field-limit-text {
  color: rgba(255, 255, 255, .72) !important;
}

html body[data-theme="light"] .kh-wpforms-card-head h3 {
  color: #ffffff !important;
}

/* Hide labels from layout while preserving accessibility text in markup. */
html body .kh-wpforms-shell label.wpforms-label-hide,
html body .demo-form label.wpforms-label-hide,
html body .kh-wpforms-shell .wpforms-label-hide,
html body .demo-form .wpforms-label-hide,
html body .kh-wpforms-shell div.wpforms-container-full .wpforms-form label.wpforms-label-hide,
html body .demo-form div.wpforms-container-full .wpforms-form label.wpforms-label-hide {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Inputs and choices remain dark even in light mode. */
html body[data-theme="light"] .kh-wpforms-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body[data-theme="light"] .kh-wpforms-shell select,
html body[data-theme="light"] .kh-wpforms-shell textarea,
html body[data-theme="light"] .demo-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body[data-theme="light"] .demo-form select,
html body[data-theme="light"] .demo-form textarea,
html body[data-theme="light"] .kh-wpforms-shell .choices__inner,
html body[data-theme="light"] .demo-form .choices__inner,
html body .kh-wpforms-shell input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .kh-wpforms-shell select,
html body .kh-wpforms-shell textarea,
html body .demo-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
html body .demo-form select,
html body .demo-form textarea,
html body .kh-wpforms-shell .choices__inner,
html body .demo-form .choices__inner {
  border-radius: 14px !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  padding: .8rem .9rem !important;
  box-shadow: none !important;
}

html body[data-theme="light"] .kh-wpforms-shell input::placeholder,
html body[data-theme="light"] .kh-wpforms-shell textarea::placeholder,
html body[data-theme="light"] .demo-form input::placeholder,
html body[data-theme="light"] .demo-form textarea::placeholder,
html body .kh-wpforms-shell input::placeholder,
html body .kh-wpforms-shell textarea::placeholder,
html body .demo-form input::placeholder,
html body .demo-form textarea::placeholder {
  color: rgba(255,255,255,.60) !important;
}

html body[data-theme="light"] .kh-wpforms-shell .choices__item,
html body[data-theme="light"] .demo-form .choices__item,
html body[data-theme="light"] .kh-wpforms-shell .choices__placeholder,
html body[data-theme="light"] .demo-form .choices__placeholder,
html body .kh-wpforms-shell .choices__item,
html body .demo-form .choices__item,
html body .kh-wpforms-shell .choices__placeholder,
html body .demo-form .choices__placeholder {
  color: #ffffff !important;
}

html body .kh-wpforms-shell .choices__list--dropdown,
html body .demo-form .choices__list--dropdown,
html body[data-theme="light"] .kh-wpforms-shell .choices__list--dropdown,
html body[data-theme="light"] .demo-form .choices__list--dropdown {
  background: #0c1224 !important;
  border-color: rgba(255,255,255,.20) !important;
}

html body .kh-wpforms-shell .choices__list--dropdown .choices__item,
html body .demo-form .choices__list--dropdown .choices__item,
html body[data-theme="light"] .kh-wpforms-shell .choices__list--dropdown .choices__item,
html body[data-theme="light"] .demo-form .choices__list--dropdown .choices__item {
  color: #ffffff !important;
}
