/* =============================================================
   Nexus Lead Suite — Forms Runtime CSS
   All selectors are scoped under .nexus-st-form to prevent
   conflicts with the active theme and guarantee rendering
   inside popups and shortcode pages.
   ============================================================= */

/* ── Wrapper ─────────────────────────────────────────────── */
.nexus-st-form.nexus-st-form--dismissed {
  display: none !important;
}
.nexus-st-form {
  /* Usable from ~150px wide containers; scales on large / ultra-wide viewports */
  width: 100% !important;
  min-width: 150px !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-family: var(--nexus-ls-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif) !important;
  font-size: clamp(14px, 0.28vw + 13.2px, 17px) !important;
  color: var(--nexus-st-form-text, #1e293b) !important;
  line-height: 1.5 !important;
  overflow-wrap: anywhere !important;
  word-wrap: break-word !important;
}
.nexus-st-form *,
.nexus-st-form *::before,
.nexus-st-form *::after {
  box-sizing: border-box !important;
}

/* Honeypot: off-screen trap for bots (humans should not tab here). */
.nexus-st-form .nexus-st-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.nexus-st-form .nexus-st-hp input {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 2px !important;
  height: 2px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Header / title — always hidden ─────────────────────── */
.nexus-st-form .nexus-st-form__header,
.nexus-st-form .nexus-st-form__title,
.nexus-st-form .nexus-st-step__title,
.nexus-st-form .nexus-st-step__subtitle {
  display: none !important;
}

/* ── Form body card ──────────────────────────────────────── */
.nexus-st-form .nexus-st-form__body {
  background: var(--nexus-st-form-bg, #ffffff) !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: clamp(10px, 2.2vw, 18px) !important;
  padding: clamp(10px, 3.5vw, 28px) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07) !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* After submit: only the result card (matches admin FeedbackModal layout). */
.nexus-st-form.nexus-st-form--sent .nexus-st-form__body > *:not(.nexus-st-form-result-card) {
  display: none !important;
}

.nexus-st-form .nexus-st-form-result-card {
  width: 100% !important;
  max-width: 28rem !important;
  margin: 0 auto !important;
  border-radius: 1.5rem !important;
  background: #ffffff !important;
  border: 1px solid #f1f5f9 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden !important;
  font-family: inherit !important;
}

.nexus-st-form .nexus-st-form-result-card--error {
  border-color: #fecdd3 !important;
  box-shadow: 0 25px 50px -12px rgba(190, 18, 60, 0.12) !important;
}

.nexus-st-form .nexus-st-form-result-card__inner {
  padding: clamp(1rem, 4vw, 2rem) clamp(0.65rem, 3.5vw, 2rem) 1rem !important;
  text-align: center !important;
}

.nexus-st-form .nexus-st-form-result-card__icon {
  margin: 0 auto !important;
  width: 3.5rem !important;
  height: 3.5rem !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.nexus-st-form .nexus-st-form-result-card--success .nexus-st-form-result-card__icon {
  background: #ecfdf5 !important;
  color: #10b981 !important;
}

.nexus-st-form .nexus-st-form-result-card--error .nexus-st-form-result-card__icon {
  background: #fff1f2 !important;
  color: #f43f5e !important;
}

.nexus-st-form .nexus-st-form-result-card__icon svg {
  display: block !important;
}

.nexus-st-form .nexus-st-form-result-card__title {
  margin: 1.25rem 0 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
}

/* Form-level theming */
.nexus-st-form .nexus-st-form__body {
  color: var(--nexus-st-form-text, #1e293b) !important;
}

/* Checkbox / radio / consent links — match primary button (not stepper chrome). */
.nexus-st-form input[type="checkbox"],
.nexus-st-form input[type="radio"] {
  accent-color: var(--nexus-st-btn, #7c3aed) !important;
}
.nexus-st-form .nexus-st-consent a {
  color: var(--nexus-st-btn, #7c3aed) !important;
}

.nexus-st-form .nexus-st-form-result-card__message {
  margin: 0.5rem 0 0 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  line-height: 1.55 !important;
  color: #64748b !important;
  white-space: pre-wrap !important;
  word-break: break-word !important;
}

.nexus-st-form .nexus-st-form-result-card__dismiss {
  display: block !important;
  width: calc(100% - 4rem) !important;
  max-width: 100% !important;
  margin: 1.5rem auto 2rem !important;
  padding: 1rem 1.25rem !important;
  border: none !important;
  border-radius: 1rem !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  transition: background 0.15s ease !important;
}

.nexus-st-form .nexus-st-form-result-card__dismiss:hover {
  background: #020617 !important;
}

/* ── Multi-step progress (thin bar + dots) ───────────────── */
.nexus-st-form .nexus-st-progress {
  width: 100% !important;
  margin: 0 0 18px 0 !important;
  padding: 0 !important;
}

.nexus-st-form .nexus-st-progress__track {
  height: 4px !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--nexus-st-form-text, #1e293b), transparent 88%) !important;
  overflow: hidden !important;
  width: 100% !important;
}

.nexus-st-form .nexus-st-progress__fill {
  height: 100% !important;
  width: 0%;
  border-radius: inherit !important;
  background: linear-gradient(
    90deg,
    var(--nexus-st-stepper, #7c3aed),
    color-mix(in srgb, var(--nexus-st-stepper, #7c3aed), #fff 18%)
  ) !important;
  transition: width 0.38s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nexus-st-form .nexus-st-progress__dots {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin-top: 10px !important;
  padding: 0 2px !important;
  gap: 6px !important;
}

.nexus-st-form .nexus-st-progress__dot {
  flex: 0 0 auto !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: color-mix(in srgb, var(--nexus-st-form-text, #1e293b), transparent 82%) !important;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s ease,
    box-shadow 0.22s ease !important;
}

.nexus-st-form .nexus-st-progress__dot--done {
  background: var(--nexus-st-stepper, #7c3aed) !important;
  opacity: 0.55 !important;
  transform: scale(1) !important;
}

.nexus-st-form .nexus-st-progress__dot--active {
  background: var(--nexus-st-stepper, #7c3aed) !important;
  opacity: 1 !important;
  transform: scale(1.28) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--nexus-st-stepper, #7c3aed), transparent 78%) !important;
}

/* ── Grid / layout ───────────────────────────────────────── */
.nexus-st-form .nexus-st-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.nexus-st-form .nexus-st-layout {
  display: grid !important;
  gap: 14px !important;
  width: 100% !important;
}
.nexus-st-form .nexus-st-layout__col {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  min-width: 0 !important;
}
.nexus-st-form .nexus-st-layout--cols-1 { grid-template-columns: 1fr !important; }
.nexus-st-form .nexus-st-layout--cols-2 { grid-template-columns: 1fr 1fr !important; }
.nexus-st-form .nexus-st-layout--cols-3 { grid-template-columns: 1fr 1fr 1fr !important; }
.nexus-st-form .nexus-st-layout--cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr !important; }

@media (max-width: 600px) {
  .nexus-st-form .nexus-st-layout--cols-2,
  .nexus-st-form .nexus-st-layout--cols-3,
  .nexus-st-form .nexus-st-layout--cols-4 {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 601px) and (max-width: 768px) {
  .nexus-st-form .nexus-st-layout--cols-3,
  .nexus-st-form .nexus-st-layout--cols-4 {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Compound (inline 2-col for name pairs etc.) */
.nexus-st-form .nexus-st-compound {
  display: grid !important;
  gap: 12px !important;
}
.nexus-st-form .nexus-st-compound--2 {
  grid-template-columns: 1fr 1fr !important;
}
.nexus-st-form .nexus-st-compound--1 {
  grid-template-columns: 1fr !important;
}
@media (max-width: 520px) {
  .nexus-st-form .nexus-st-compound--2 {
    grid-template-columns: 1fr !important;
  }
}

/* ── Field wrapper ───────────────────────────────────────── */
.nexus-st-form .nexus-st-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* ── Label ───────────────────────────────────────────────── */
.nexus-st-form .nexus-st-field__label {
  display: block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: color-mix(in srgb, var(--nexus-st-form-text, #1e293b), #000 15%) !important;
  margin: 0 0 4px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
}

.nexus-st-form .nexus-st-field__help {
  margin: -2px 0 6px 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  color: color-mix(in srgb, var(--nexus-st-form-text, #1e293b), transparent 32%) !important;
}
.nexus-st-form .nexus-st-req {
  color: #ef4444 !important;
  margin-left: 3px !important;
  font-weight: 700 !important;
}

/* ── Floating labels (focus / filled: hint moves to top) ─── */
.nexus-st-form .nexus-st-field--floating:not(.nexus-st-field--show-label) .nexus-st-field__label {
  display: none !important;
}

/* If the builder requests "Show label", use the top label and disable inner floating label. */
.nexus-st-form .nexus-st-field--show-label .nexus-st-float-label {
  display: none !important;
}
.nexus-st-form .nexus-st-field--show-label .nexus-st-float-wrap .nexus-st-input,
.nexus-st-form .nexus-st-field--show-label .nexus-st-float-wrap .nexus-st-textarea {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

.nexus-st-form .nexus-st-float-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
}

.nexus-st-form .nexus-st-float-wrap .nexus-st-input,
.nexus-st-form .nexus-st-float-wrap .nexus-st-textarea {
  padding-top: 1.35rem !important;
  padding-bottom: 9px !important;
}

.nexus-st-form .nexus-st-float-wrap .nexus-st-textarea {
  min-height: 118px !important;
}

.nexus-st-form .nexus-st-float-wrap .nexus-st-input::placeholder,
.nexus-st-form .nexus-st-float-wrap .nexus-st-textarea::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.nexus-st-form .nexus-st-float-label {
  position: absolute !important;
  left: 15px !important;
  right: 2rem !important;
  top: 21px !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  color: var(--nexus-st-form-placeholder, color-mix(in srgb, var(--nexus-st-form-field-text, #0f172a), transparent 45%)) !important;
  pointer-events: none !important;
  transform: translateY(-50%) !important;
  transform-origin: left center !important;
  transition:
    top 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    font-size 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    font-weight 0.18s ease,
    color 0.18s ease !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  z-index: 1 !important;
}

.nexus-st-form .nexus-st-float-wrap--textarea .nexus-st-float-label {
  top: 27px !important;
}

.nexus-st-form .nexus-st-float-wrap:focus-within .nexus-st-float-label,
.nexus-st-form .nexus-st-float-wrap:has(.nexus-st-input:not(:placeholder-shown)) .nexus-st-float-label,
.nexus-st-form .nexus-st-float-wrap:has(.nexus-st-textarea:not(:placeholder-shown)) .nexus-st-float-label {
  top: 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  transform: translateY(-50%) !important;
  color: color-mix(in srgb, var(--nexus-st-form-text, #1e293b), #000 10%) !important;
}

.nexus-st-form .nexus-st-float-wrap:focus-within .nexus-st-float-label {
  color: var(--nexus-st-btn, #7c3aed) !important;
}

/* ── Text inputs, textarea, select ──────────────────────── */
.nexus-st-form .nexus-st-field--custom-appearance .nexus-st-input:not([type="file"]),
.nexus-st-form .nexus-st-field--custom-appearance .nexus-st-textarea,
.nexus-st-form .nexus-st-field--custom-appearance .nexus-st-select {
  font-size: var(--nexus-st-field-font-size, 14px) !important;
  font-weight: var(--nexus-st-field-font-weight, inherit) !important;
  padding: var(--nexus-st-field-inner-pad, 11px) var(--nexus-st-field-inner-pad-x, 14px) !important;
}

.nexus-st-form .nexus-st-field--custom-appearance .nexus-st-select-btn {
  font-size: var(--nexus-st-field-font-size, 14px) !important;
  font-weight: var(--nexus-st-field-font-weight, 500) !important;
  padding: var(--nexus-st-field-inner-pad, 11px) var(--nexus-st-field-inner-pad-x, 14px) !important;
}

.nexus-st-form .nexus-st-input,
.nexus-st-form .nexus-st-textarea,
.nexus-st-form .nexus-st-select {
  display: block !important;
  width: 100% !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  /* Keep fields readable even when the form theme sets light text on a dark background. */
  color: var(--nexus-st-form-field-text, #0f172a) !important;
  background: var(--nexus-st-form-field-bg, #f8fafc) !important;
  border-color: var(--nexus-st-form-field-border-color, #e2e8f0) !important;
  border-style: var(--nexus-st-form-field-border-style, solid) !important;
  border-width: var(--nexus-st-form-field-border-width, 2px) !important;
  border-radius: var(--nexus-st-form-field-radius, 10px) !important;
  outline: none !important;
  box-shadow: none !important;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ── Custom dropdown (forces downward opening) ───────────── */
.nexus-st-form .nexus-st-select--native {
  position: absolute !important;
  inset: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.nexus-st-form .nexus-st-select-ui {
  position: relative !important;
  width: 100% !important;
}

.nexus-st-form .nexus-st-select-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: var(--nexus-st-form-field-text, #0f172a) !important;
  background: var(--nexus-st-form-field-bg, #f8fafc) !important;
  border-color: var(--nexus-st-form-field-border-color, #e2e8f0) !important;
  border-style: var(--nexus-st-form-field-border-style, solid) !important;
  border-width: var(--nexus-st-form-field-border-width, 2px) !important;
  border-radius: var(--nexus-st-form-field-radius, 10px) !important;
  cursor: pointer !important;
  user-select: none !important;
  line-height: 1.5 !important;
}

.nexus-st-form .nexus-st-select-btn:focus {
  outline: none !important;
  border-color: var(--nexus-st-btn, #7c3aed) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 82%),
    0 6px 18px -10px color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 58%) !important;
  background: #ffffff !important;
}

.nexus-st-form .nexus-st-select-btn__text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: left !important;
}

.nexus-st-form .nexus-st-select-btn__text--placeholder {
  color: var(--nexus-st-form-placeholder, color-mix(in srgb, var(--nexus-st-form-field-text, #0f172a), transparent 45%)) !important;
}

.nexus-st-form .nexus-st-select-btn__chev {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  color: #94a3b8 !important;
}

/* The dropdown menu is fixed-positioned (in JS) so it can escape overflow clipping. */
.nexus-st-select-menu {
  position: fixed !important;
  z-index: 2147483000 !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.18) !important;
  overflow: auto !important;
  padding: 6px !important;
  margin: 0 !important;
  overscroll-behavior: contain !important;
  transform-origin: top left !important;
  animation: nexus-st-dd-in 0.12s ease-out both !important;
}

.nexus-st-select-menu:focus {
  outline: none !important;
}

@keyframes nexus-st-dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Hide scrollbar (keep scroll working) */
.nexus-st-select-menu {
  scrollbar-width: none !important; /* Firefox */
}
.nexus-st-select-menu::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.nexus-st-select-opt {
  display: block !important;
  width: 100% !important;
  padding: 10px 10px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #0f172a !important;
  cursor: pointer !important;
  line-height: 1.35 !important;
  position: relative !important;
  padding-right: 30px !important;
}
.nexus-st-select-opt[aria-disabled="true"] {
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}
.nexus-st-select-opt:hover:not([aria-disabled="true"]) {
  background: #f1f5f9 !important;
}
.nexus-st-select-opt[aria-selected="true"] {
  background: color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 90%) !important;
  color: color-mix(in srgb, var(--nexus-st-btn, #7c3aed), #000 18%) !important;
  font-weight: 700 !important;
}

.nexus-st-select-opt[aria-selected="true"]::after {
  content: "✓";
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-weight: 900 !important;
  color: color-mix(in srgb, var(--nexus-st-btn, #7c3aed), #000 12%) !important;
}
.nexus-st-form .nexus-st-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 36px !important;
  cursor: pointer !important;
}
.nexus-st-form .nexus-st-textarea {
  min-height: 110px !important;
  resize: vertical !important;
}

/* Hover: slight border lift before focus */
.nexus-st-form .nexus-st-input:hover:not(:disabled):not(:focus):not(.nexus-st-input--invalid):not(.nexus-st-input--inline-invalid),
.nexus-st-form .nexus-st-textarea:hover:not(:disabled):not(:focus):not(.nexus-st-input--invalid):not(.nexus-st-input--inline-invalid),
.nexus-st-form .nexus-st-select:hover:not(:disabled):not(:focus):not(.nexus-st-input--invalid):not(.nexus-st-input--inline-invalid) {
  border-color: color-mix(
    in srgb,
    var(--nexus-st-form-field-border-color, #e2e8f0),
    var(--nexus-st-btn, #7c3aed) 32%
  ) !important;
}

.nexus-st-form .nexus-st-input:focus,
.nexus-st-form .nexus-st-textarea:focus,
.nexus-st-form .nexus-st-select:focus {
  border-color: var(--nexus-st-btn, #7c3aed) !important;
  /* Slim focus ring + light glow */
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 82%),
    0 6px 18px -10px color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 58%) !important;
  background: #ffffff !important;
}

/* Dropdown list (best-effort; some browsers limit styling <option>). */
.nexus-st-form .nexus-st-select option,
.nexus-st-form .nexus-st-select optgroup {
  color: #0f172a !important;
  background: #ffffff !important;
}
.nexus-st-form .nexus-st-input::placeholder,
.nexus-st-form .nexus-st-textarea::placeholder {
  color: var(--nexus-st-form-placeholder, color-mix(in srgb, var(--nexus-st-form-field-text, #0f172a), transparent 45%)) !important;
  opacity: 1 !important;
}

@keyframes nexus-ls-shake-invalid {
  0%,
  100% {
    transform: translateX(0);
  }
  12% {
    transform: translateX(-7px);
  }
  24% {
    transform: translateX(6px);
  }
  36% {
    transform: translateX(-5px);
  }
  48% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  72% {
    transform: translateX(2px);
  }
}

.nexus-st-form .nexus-st-input.nexus-st-input--invalid,
.nexus-st-form .nexus-st-textarea.nexus-st-input--invalid,
.nexus-st-form .nexus-st-select.nexus-st-input--invalid {
  border-color: #f43f5e !important;
  box-shadow:
    0 0 0 2px rgba(244, 63, 94, 0.22),
    0 0 12px 1px rgba(244, 63, 94, 0.32) !important;
  animation: nexus-ls-shake-invalid 0.52s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

.nexus-st-form .nexus-st-input.nexus-st-input--inline-invalid,
.nexus-st-form .nexus-st-textarea.nexus-st-input--inline-invalid,
.nexus-st-form .nexus-st-select.nexus-st-input--inline-invalid {
  border-color: #fb7185 !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.14) !important;
}

.nexus-st-form .nexus-st-input.nexus-st-input--inline-invalid:focus,
.nexus-st-form .nexus-st-textarea.nexus-st-input--inline-invalid:focus,
.nexus-st-form .nexus-st-select.nexus-st-input--inline-invalid:focus {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.22) !important;
}

.nexus-st-form .nexus-st-input.nexus-st-input--invalid:focus,
.nexus-st-form .nexus-st-textarea.nexus-st-input--invalid:focus,
.nexus-st-form .nexus-st-select.nexus-st-input--invalid:focus {
  border-color: #e11d48 !important;
  box-shadow:
    0 0 0 2px rgba(244, 63, 94, 0.28),
    0 0 14px 2px rgba(244, 63, 94, 0.38) !important;
}

@media (prefers-reduced-motion: reduce) {
  .nexus-st-form .nexus-st-input.nexus-st-input--invalid,
  .nexus-st-form .nexus-st-textarea.nexus-st-input--invalid,
  .nexus-st-form .nexus-st-select.nexus-st-input--invalid {
    animation: none !important;
  }
}

/* ── File upload — custom styled wrapper ─────────────────── */
.nexus-st-form .nexus-st-file-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  width: 100% !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease !important;
}
.nexus-st-form .nexus-st-file-wrap:focus-within {
  border-color: var(--nexus-st-btn, #7c3aed) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 82%),
    0 6px 18px -10px color-mix(in srgb, var(--nexus-st-btn, #7c3aed), transparent 58%) !important;
}
.nexus-st-form .nexus-st-file-btn {
  flex-shrink: 0 !important;
  padding: 11px 16px !important;
  background: #e8e3ff !important;
  color: #5b21b6 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  border: none !important;
  border-right: 1.5px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.nexus-st-form .nexus-st-file-name {
  flex: 1 !important;
  padding: 11px 14px !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.nexus-st-form input[type="file"].nexus-st-input {
  position: absolute !important;
  inset: 0 !important;
  opacity: 0 !important;
  width: 100% !important;
  height: 100% !important;
  cursor: pointer !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  z-index: 2 !important;
}

/* ── Radio / Checkbox options ────────────────────────────── */
.nexus-st-form .nexus-st-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}
.nexus-st-form .nexus-st-options--inline {
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.nexus-st-form .nexus-st-option {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 14px !important;
  color: #334155 !important;
  cursor: pointer !important;
}
.nexus-st-form .nexus-st-option input[type="radio"],
.nexus-st-form .nexus-st-option input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #7c3aed !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

/* ── Consent / terms ─────────────────────────────────────── */
.nexus-st-form .nexus-st-consent {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #475569 !important;
  line-height: 1.5 !important;
}
.nexus-st-form .nexus-st-consent input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #7c3aed !important;
  margin-top: 2px !important;
  flex-shrink: 0 !important;
}
.nexus-st-form .nexus-st-consent a {
  color: #7c3aed !important;
  text-decoration: underline !important;
}

/* ── Actions row ─────────────────────────────────────────── */
.nexus-st-form .nexus-st-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 20px !important;
  flex-wrap: wrap !important;
}
.nexus-st-form .nexus-st-btn {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding: 13px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  border: 1.5px solid transparent !important;
  transition: background 0.18s, opacity 0.18s, transform 0.12s !important;
  text-align: center !important;
  line-height: 1.4 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.nexus-st-form .nexus-st-btn--primary {
  background: var(--nexus-st-btn, #7c3aed) !important;
  border-color: var(--nexus-st-btn, #7c3aed) !important;
  color: #ffffff !important;
}
.nexus-st-form .nexus-st-btn--primary:hover {
  background: color-mix(in srgb, var(--nexus-st-btn, #7c3aed), #000 15%) !important;
  border-color: color-mix(in srgb, var(--nexus-st-btn, #7c3aed), #000 15%) !important;
  transform: translateY(-1px) !important;
}
.nexus-st-form .nexus-st-btn--secondary {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
.nexus-st-form .nexus-st-btn--secondary:hover {
  background: #f8fafc !important;
}
.nexus-st-form .nexus-st-btn:disabled,
.nexus-st-form .nexus-st-btn:disabled:hover {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.nexus-st-form .nexus-st-btn--loading:disabled,
.nexus-st-form .nexus-st-btn--success:disabled {
  opacity: 1 !important;
  cursor: default !important;
}

.nexus-st-form .nexus-st-actions .nexus-st-btn--primary.nexus-st-submit--gated:disabled:not(.nexus-st-btn--loading):not(.nexus-st-btn--success) {
  opacity: 0.42 !important;
  filter: grayscale(0.12) !important;
  cursor: not-allowed !important;
}

.nexus-st-form .nexus-st-btn__state-icon {
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.nexus-st-form .nexus-st-btn__spinner-ico {
  animation: nexus-ls-spin 0.65s linear infinite !important;
}

@keyframes nexus-ls-spin {
  to {
    transform: rotate(360deg);
  }
}

.nexus-st-form .nexus-st-btn--primary.nexus-st-btn--success {
  background: #10b981 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.nexus-st-form .nexus-st-btn__tick-stroke {
  stroke-dasharray: 32 !important;
  stroke-dashoffset: 32 !important;
  animation: nexus-ls-tick-draw 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.08s !important;
}

.nexus-st-form .nexus-st-btn__tick-ico {
  animation: nexus-ls-tick-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes nexus-ls-tick-draw {
  to {
    stroke-dashoffset: 0 !important;
  }
}

@keyframes nexus-ls-tick-pop {
  0% {
    transform: scale(0.6);
    opacity: 0.7;
  }
  55% {
    transform: scale(1.12);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* ── Submission feedback messages ────────────────────────── */
.nexus-st-form .nexus-st-success {
  padding: 14px 18px !important;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 10px !important;
  color: #15803d !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
}
.nexus-st-form .nexus-st-error {
  padding: 14px 18px !important;
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 10px !important;
  color: #be123c !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
}

/* Popup: when form shows success/error card, hide blue header + close (see inline nexus-popup-css too) */
.nexus-popup-overlay.nexus-popup-overlay--form-result .nexus-popup__header,
.nexus-popup-overlay.nexus-popup-overlay--form-result .nexus-popup__close {
  display: none !important;
}

/* ── Inside popup / chat embed: remove inner "card" frame ─ */
.nexus-popup-overlay .nexus-popup__body .nexus-st-form > .nexus-st-form__body,
.nexus-popup__body .nexus-st-form > .nexus-st-form__body,
.nexus-chat-inline-popup-body .nexus-st-form > .nexus-st-form__body {
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Some themes set light text on popup body; keep native <select> text visible (esp. WebKit). */
.nexus-popup__body .nexus-st-form .nexus-st-select,
.nexus-chat-inline-popup-body .nexus-st-form .nexus-st-select {
  color: var(--nexus-st-form-field-text, var(--nexus-st-form-text, #0f172a)) !important;
  -webkit-text-fill-color: currentColor !important;
}

/* ── Responsive: touch-friendly fields (phones & small tablets) ─ */
@media (max-width: 640px) {
  .nexus-st-form .nexus-st-field {
    gap: 8px !important;
  }

  .nexus-st-form .nexus-st-field__label {
    font-size: 14px !important;
  }

  /* 16px+ prevents iOS Safari zoom-on-focus; extra padding ≈ 48pt+ tap height */
  .nexus-st-form .nexus-st-input:not([type="file"]),
  .nexus-st-form .nexus-st-select {
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding: 15px 16px !important;
    min-height: 52px !important;
  }

  .nexus-st-form .nexus-st-textarea {
    font-size: 16px !important;
    line-height: 1.45 !important;
    padding: 14px 16px !important;
    min-height: 140px !important;
  }

  .nexus-st-form .nexus-st-float-wrap .nexus-st-input:not([type="file"]) {
    padding-top: 1.55rem !important;
    padding-bottom: 14px !important;
    min-height: 56px !important;
  }

  .nexus-st-form .nexus-st-float-wrap .nexus-st-textarea {
    min-height: 152px !important;
    padding-top: 1.65rem !important;
    padding-bottom: 14px !important;
  }

  .nexus-st-form .nexus-st-float-label {
    left: 16px !important;
    top: 28px !important;
    font-size: 15px !important;
  }

  .nexus-st-form .nexus-st-float-wrap--textarea .nexus-st-float-label {
    top: 32px !important;
  }

  .nexus-st-form .nexus-st-float-wrap:focus-within .nexus-st-float-label,
  .nexus-st-form .nexus-st-float-wrap:has(.nexus-st-input:not(:placeholder-shown)) .nexus-st-float-label,
  .nexus-st-form .nexus-st-float-wrap:has(.nexus-st-textarea:not(:placeholder-shown)) .nexus-st-float-label {
    top: 13px !important;
    font-size: 12px !important;
  }

  .nexus-st-form .nexus-st-select {
    padding-right: 44px !important;
    background-position: right 14px center !important;
  }

  .nexus-st-form .nexus-st-btn {
    font-size: 16px !important;
    min-height: 52px !important;
    padding: 14px 18px !important;
  }

  .nexus-st-form .nexus-st-file-wrap {
    min-height: 52px !important;
  }

  .nexus-st-form .nexus-st-file-btn {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  .nexus-st-form .nexus-st-file-name {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  .nexus-st-form .nexus-st-option {
    gap: 10px !important;
    font-size: 15px !important;
    min-height: 44px !important;
    padding: 4px 0 !important;
  }

  .nexus-st-form .nexus-st-option input[type="radio"],
  .nexus-st-form .nexus-st-option input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }

  .nexus-st-form .nexus-st-consent {
    font-size: 15px !important;
    gap: 12px !important;
  }

  .nexus-st-form .nexus-st-consent input[type="checkbox"] {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    margin-top: 4px !important;
  }
}

/* Tiny containers (~150px wide sidebars): full-width controls, compact chrome */
@media (max-width: 360px) {
  .nexus-st-form .nexus-st-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .nexus-st-form .nexus-st-btn {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 12px !important;
    font-size: 14px !important;
  }
}

/* Large / ultra-wide viewports: balanced spacing (root still min-width 150px) */
@media (min-width: 1200px) {
  .nexus-st-form .nexus-st-actions {
    gap: clamp(10px, 0.85vw, 20px) !important;
    margin-top: clamp(20px, 1.4vw, 30px) !important;
  }

  .nexus-st-form .nexus-st-progress {
    margin: 0 0 clamp(18px, 1.15vw, 26px) 0 !important;
  }

  .nexus-st-form .nexus-st-field {
    gap: clamp(8px, 0.45vw, 14px) !important;
  }
}

@media (min-width: 1800px) {
  .nexus-st-form .nexus-st-form__body {
    box-shadow: 0 4px 28px rgba(15, 23, 42, 0.085) !important;
  }

  .nexus-popup-overlay .nexus-popup__body .nexus-st-form > .nexus-st-form__body,
  .nexus-popup__body .nexus-st-form > .nexus-st-form__body,
  .nexus-chat-inline-popup-body .nexus-st-form > .nexus-st-form__body {
    box-shadow: none !important;
  }
}

/* =============================================================
   Minimal clean skin — reference: neutral labels, thin borders,
   white fields, restrained submit styling.
   Activated via `.nexus-st-form--minimal` on the form root (PHP).
   ============================================================= */

.nexus-st-form.nexus-st-form--minimal {
  --nexus-st-form-bg: #ffffff !important;
  --nexus-st-form-text: #1a1a1a !important;
  --nexus-st-form-field-text: #111111 !important;
  --nexus-st-form-field-bg: #ffffff !important;
  --nexus-st-form-placeholder: #737373 !important;
  --nexus-st-form-field-border-color: #d4d4d4 !important;
  --nexus-st-form-field-border-style: solid !important;
  --nexus-st-form-field-border-width: 1px !important;
  --nexus-st-form-field-radius: 2px !important;
  /*
   * Do not use !important on --nexus-st-btn / --nexus-st-stepper: the form root sets these
   * inline from the builder (render_form_html); important would override user colors.
   */
  --nexus-st-btn: #262626;
  --nexus-st-stepper: #525252;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif !important;
  font-size: 15px !important;
  color: #1a1a1a !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-form__body {
  background: #ffffff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  padding: clamp(12px, 2.8vw, 22px) !important;
}

.nexus-popup-overlay .nexus-st-form.nexus-st-form--minimal > .nexus-st-form__body,
.nexus-popup__body .nexus-st-form.nexus-st-form--minimal > .nexus-st-form__body {
  padding: clamp(10px, 2.2vw, 16px) 0 !important;
}

@media (min-width: 1800px) {
  .nexus-st-form.nexus-st-form--minimal .nexus-st-form__body {
    box-shadow: none !important;
  }
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-grid {
  gap: 13px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-layout {
  gap: 13px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-layout__col {
  gap: 13px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-compound {
  gap: 13px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-field {
  gap: 4px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-progress {
  margin: 0 0 11px 0 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-field__label {
  font-size: 13px !important;
  font-weight: 400 !important;
  color: #616161 !important;
  letter-spacing: 0.01em !important;
  margin: 0 0 0 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-field__help {
  margin: -1px 0 3px 0 !important;
  font-size: 11.5px !important;
  color: #737373 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-req {
  color: #b91c1c !important;
  font-weight: 600 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-float-label {
  color: #737373 !important;
  font-weight: 400 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-float-wrap:focus-within .nexus-st-float-label,
.nexus-st-form.nexus-st-form--minimal
  .nexus-st-float-wrap:has(.nexus-st-input:not(:placeholder-shown))
  .nexus-st-float-label,
.nexus-st-form.nexus-st-form--minimal
  .nexus-st-float-wrap:has(.nexus-st-textarea:not(:placeholder-shown))
  .nexus-st-float-label {
  color: #404040 !important;
  font-weight: 600 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-float-wrap:focus-within .nexus-st-float-label {
  color: #262626 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-progress__fill {
  background: var(--nexus-st-stepper, #404040) !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-progress__dot--active,
.nexus-st-form.nexus-st-form--minimal .nexus-st-progress__dot--done {
  background: var(--nexus-st-stepper, #404040) !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-input,
.nexus-st-form.nexus-st-form--minimal .nexus-st-textarea,
.nexus-st-form.nexus-st-form--minimal .nexus-st-select {
  padding: 9px 10px !important;
  border-width: 1px !important;
  border-radius: 2px !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-float-wrap .nexus-st-input,
.nexus-st-form.nexus-st-form--minimal .nexus-st-float-wrap .nexus-st-textarea {
  padding-top: 11px !important;
  padding-bottom: 11px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-field--show-label .nexus-st-float-wrap .nexus-st-input,
.nexus-st-form.nexus-st-form--minimal .nexus-st-field--show-label .nexus-st-float-wrap .nexus-st-textarea {
  padding-top: 9px !important;
  padding-bottom: 9px !important;
}

/* Per-field "Styling" tab — keep builder padding/fonts over minimal defaults */
.nexus-st-form.nexus-st-form--minimal .nexus-st-field--custom-appearance .nexus-st-input:not([type="file"]),
.nexus-st-form.nexus-st-form--minimal .nexus-st-field--custom-appearance .nexus-st-textarea,
.nexus-st-form.nexus-st-form--minimal .nexus-st-field--custom-appearance .nexus-st-select {
  padding: var(--nexus-st-field-inner-pad, 9px) var(--nexus-st-field-inner-pad-x, 10px) !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-field--custom-appearance .nexus-st-float-wrap .nexus-st-input,
.nexus-st-form.nexus-st-form--minimal .nexus-st-field--custom-appearance .nexus-st-float-wrap .nexus-st-textarea {
  padding-top: var(--nexus-st-field-inner-pad, 11px) !important;
  padding-bottom: var(--nexus-st-field-inner-pad, 11px) !important;
}

.nexus-st-form.nexus-st-form--minimal
  .nexus-st-field--custom-appearance.nexus-st-field--show-label
  .nexus-st-float-wrap
  .nexus-st-input,
.nexus-st-form.nexus-st-form--minimal
  .nexus-st-field--custom-appearance.nexus-st-field--show-label
  .nexus-st-float-wrap
  .nexus-st-textarea {
  padding-top: var(--nexus-st-field-inner-pad, 9px) !important;
  padding-bottom: var(--nexus-st-field-inner-pad, 9px) !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-field--custom-appearance .nexus-st-select-btn {
  padding: var(--nexus-st-field-inner-pad, 9px) var(--nexus-st-field-inner-pad-x, 10px) !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-textarea {
  min-height: 118px !important;
  resize: none !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-float-wrap .nexus-st-textarea {
  min-height: 126px !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-input:hover:not(:disabled):not(:focus):not(.nexus-st-input--invalid):not(.nexus-st-input--inline-invalid),
.nexus-st-form.nexus-st-form--minimal .nexus-st-textarea:hover:not(:disabled):not(:focus):not(.nexus-st-input--invalid):not(.nexus-st-input--inline-invalid),
.nexus-st-form.nexus-st-form--minimal .nexus-st-select:hover:not(:disabled):not(:focus):not(.nexus-st-input--invalid):not(.nexus-st-input--inline-invalid) {
  border-color: #bdbdbd !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-input:focus,
.nexus-st-form.nexus-st-form--minimal .nexus-st-textarea:focus,
.nexus-st-form.nexus-st-form--minimal .nexus-st-select:focus {
  border-color: #525252 !important;
  box-shadow: 0 0 0 1px #525252 !important;
  background: #ffffff !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-select-btn {
  padding: 9px 10px !important;
  border-radius: 2px !important;
  border-width: 1px !important;
  background: #ffffff !important;
  color: #111111 !important;
  box-shadow: none !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-select-btn:focus {
  border-color: #525252 !important;
  box-shadow: 0 0 0 1px #525252 !important;
  background: #ffffff !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-select-btn__chev {
  color: #737373 !important;
}

.nexus-st-select-menu.nexus-st-select-menu--minimal {
  border: 1px solid #e5e5e5 !important;
  border-radius: 3px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09) !important;
}

.nexus-st-select-menu.nexus-st-select-menu--minimal .nexus-st-select-opt {
  padding: 8px 9px !important;
}

.nexus-st-select-menu.nexus-st-select-menu--minimal .nexus-st-select-opt:hover:not([aria-disabled="true"]) {
  background: #f5f5f5 !important;
}

.nexus-st-select-menu.nexus-st-select-menu--minimal .nexus-st-select-opt[aria-selected="true"] {
  background: #eeeeee !important;
  color: #111111 !important;
  font-weight: 600 !important;
}

.nexus-st-select-menu.nexus-st-select-menu--minimal .nexus-st-select-opt[aria-selected="true"]::after {
  color: #404040 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-file-wrap {
  border: 1px solid #d4d4d4 !important;
  border-radius: 2px !important;
  background: #ffffff !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-file-wrap:focus-within {
  border-color: #525252 !important;
  box-shadow: 0 0 0 1px #525252 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-file-btn {
  background: #f5f5f5 !important;
  color: #262626 !important;
  border-right: 1px solid #e5e5e5 !important;
  font-weight: 600 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-option input[type="radio"],
.nexus-st-form.nexus-st-form--minimal .nexus-st-option input[type="checkbox"],
.nexus-st-form.nexus-st-form--minimal .nexus-st-consent input[type="checkbox"] {
  accent-color: #404040 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-consent a {
  color: #262626 !important;
  text-decoration: underline !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-actions {
  margin-top: 14px !important;
  gap: 8px !important;
  justify-content: flex-start !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-btn {
  flex: 0 0 auto !important;
  border-radius: 2px !important;
  font-weight: 700 !important;
  padding: 9px 20px !important;
  transition: background 0.15s ease, opacity 0.15s ease !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-btn--primary {
  background: var(--nexus-st-btn, #e8e8e8) !important;
  border: none !important;
  border-color: var(--nexus-st-btn, #e8e8e8) !important;
  color: #ffffff !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-btn--primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--nexus-st-btn, #e8e8e8), #000 15%) !important;
  border-color: color-mix(in srgb, var(--nexus-st-btn, #e8e8e8), #000 15%) !important;
  transform: none !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-btn--secondary {
  background: #ffffff !important;
  border: 1px solid #d4d4d4 !important;
  color: #333333 !important;
}

.nexus-st-form.nexus-st-form--minimal .nexus-st-btn--primary.nexus-st-btn--success {
  background: #d1fae5 !important;
  border: 1px solid #86efac !important;
  color: #065f46 !important;
}

@media (max-width: 640px) {
  .nexus-st-form.nexus-st-form--minimal .nexus-st-grid {
    gap: 11px !important;
  }

  .nexus-st-form.nexus-st-form--minimal .nexus-st-input:not([type="file"]),
  .nexus-st-form.nexus-st-form--minimal .nexus-st-select {
    min-height: 46px !important;
    padding: 10px 12px !important;
  }

  .nexus-st-form.nexus-st-form--minimal .nexus-st-float-wrap .nexus-st-input:not([type="file"]),
  .nexus-st-form.nexus-st-form--minimal .nexus-st-field--show-label .nexus-st-float-wrap .nexus-st-input:not([type="file"]) {
    min-height: 46px !important;
  }

  .nexus-st-form.nexus-st-form--minimal .nexus-st-select-btn {
    min-height: 46px !important;
  }

  .nexus-st-form.nexus-st-form--minimal .nexus-st-actions {
    margin-top: 12px !important;
  }

  .nexus-st-form.nexus-st-form--minimal .nexus-st-btn {
    min-height: 46px !important;
    padding: 10px 18px !important;
  }
}

/* reCAPTCHA v3: invisible score — placeholder div hidden; badge is global */
.nexus-st-form .nexus-st-captcha--recaptcha-v3 {
  display: none;
}
