/* Form Manager global styling for managed CF7 forms.
 *
 * IMPORTANT:
 * - Styles are scoped to `.ndr-form-manager-scope` so non-managed CF7 forms are unaffected.
 * - The outer wrapper produced by Form Manager includes `.ndr-form-manager-scope` so
 *   headings, description copy, and response messages can be styled consistently.
 */

.ndr-form-manager-scope.ndr-form-manager-scope,
.ndr-form-manager-scope.ndr-form-manager-scope * {
  box-sizing: border-box !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope {
  /* * Base typography + tokens. */
  font-family: var(--ndr-fm-font-family, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif) !important;
  font-size: var(--ndr-fm-font-size, 16px) !important;
  line-height: 1.5 !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
  -webkit-font-smoothing: antialiased !important;
  text-rendering: optimizeLegibility !important;

  /* * Spacing tokens (required numeric spec). */
  --space-1: 6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
}

.ndr-form-manager-scope.ndr-form-manager-scope * {
  /* * Reduce theme/plugin styling bleed. */
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
}

/* Card container (wrapper produced by ndr-form-manager shortcode). */
.ndr-form-manager-card.ndr-form-manager-scope.ndr-form-manager-scope {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09) !important;
  padding: 24px !important;
}

@media (min-width: 1024px) {
  .ndr-form-manager-card.ndr-form-manager-scope.ndr-form-manager-scope {
    padding: 32px !important;
  }
}

/* Max-width wrapper for readable line length. */
.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-manager-form__inner {
  --ndr-form-max-width: 640px;
  max-width: var(--ndr-form-max-width, 640px) !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  /* * Container queries allow "mobile" behavior inside narrow columns. */
  container-type: inline-size;
}

/* Description copy (outside <form> in many contexts). */
.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-manager-form__body {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #5A6472 !important;
  margin: 0 0 var(--space-5) 0 !important;
}

/* Section headings inside form markup. */
.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section {
  /* Compact Mode: tighten section spacing. */
  margin: 0 0 18px 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep {
  --ndr-step-progress: 0%;
}

/* Premium stepper header (multistep only). */
.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper {
  background: #F3F4F6 !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  margin: 0 0 16px 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__live {
  /* Visually hidden (screen-reader only). */
  position: absolute !important;
  width: 1px !important;
  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;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__title {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #1A1A1A !important;
  margin: 0 0 6px 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__text,
.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__meta {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #5A6472 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__meta {
  margin-top: 4px !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__progress {
  margin-top: 10px !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__track {
  height: 8px !important;
  background: #E5E7EB !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__fill {
  height: 100% !important;
  width: var(--ndr-step-progress, 0%) !important;
  background: #FFB81C !important;
  border-radius: 999px !important;
  transition: width 220ms ease-out !important;
}

/* Step indicator: 1 — 2 — 3 — ... */
.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__steps {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 10px 0 0 0 !important;
  margin: 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step-item {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step-item:last-child {
  flex: 0 0 auto !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step-item:not(:last-child)::after {
  content: "" !important;
  height: 2px !important;
  background: #E5E7EB !important;
  border-radius: 999px !important;
  flex: 1 1 auto !important;
  margin-left: 8px !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step-item.is-complete::after {
  background: #FFB81C !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step {
  /* Override global button styling in this file (min-height/width/100%). */
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  border-radius: 999px !important;
  border: 2px solid #8892A0 !important;
  background: #FFFFFF !important;
  color: #1A1A1A !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 !important;
  appearance: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  flex: 0 0 22px !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step-item.is-complete .ndr-form-stepper__step {
  background: #FFB81C !important;
  border-color: #FFB81C !important;
  color: #1A1A1A !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step-item.is-current .ndr-form-stepper__step {
  background: #002868 !important;
  border-color: #002868 !important;
  color: #FFFFFF !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step[disabled] {
  opacity: 0.55 !important;
  cursor: default !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__step:focus-visible {
  outline: 3px solid rgba(255, 184, 28, 0.55) !important;
  outline-offset: 2px !important;
}

/* Premium button polish (subtle, accessible). */
.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-fm-btn {
  transition: box-shadow 200ms ease-out, transform 200ms ease-out !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-fm-btn:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-1px) !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-fm-btn:focus-visible {
  outline: 3px solid rgba(255, 184, 28, 0.55) !important;
  outline-offset: 2px !important;
}

@media (prefers-reduced-motion: reduce) {
  .ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-form-stepper__fill {
    transition: none !important;
  }
  .ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-fm-btn {
    transition: none !important;
  }
  .ndr-form-manager-scope.ndr-form-manager-scope form.ndr-form--multistep .ndr-fm-btn:hover {
    transform: none !important;
  }
}

.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section h3 {
  /* Compact Mode: tighter heading margin. */
  margin: 0 0 8px 0 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
}

@media (min-width: 1024px) {
  .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section h3 {
    font-size: 20px !important;
  }
}

/* Rows/cols. */
.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  margin: 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col {
  flex: 1 1 100% !important;
  min-width: 260px !important;
}

@media (min-width: 768px) {
  .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--half {
    flex-basis: calc(50% - 8px) !important;
  }
  .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--third {
    flex-basis: calc(33.333% - 10.666px) !important;
  }
  .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--quarter {
    flex-basis: calc(25% - 12px) !important;
  }
}

/* Compact Grid Layout for ALL Managed CF7 Forms
 *
 * Grid system (>=768px, primary path):
 * - `.ndr-form-section` becomes a 12-col grid container.
 * - `.ndr-form-row` is flattened via `display: contents` so `.ndr-form-col` are direct grid items.
 * - Column spans:
 *   - `.ndr-form-col--full`    => span 12
 *   - `.ndr-form-col--half`    => span 6
 *   - `.ndr-form-col--third`   => span 4
 *   - `.ndr-form-col--quarter` => span 3
 *   - `.ndr-form-col` (default) => span 6 at >=768px for compactness
 *
 * Fallback (no `display: contents` support):
 * - Keep flex rows with wrap + gaps (still compact via span-based flex-basis).
 */
@media (min-width: 768px) {
  @supports (display: contents) {
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section {
      display: grid !important;
      grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
      column-gap: 16px !important;
      row-gap: 12px !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section > h2,
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section > h3 {
      grid-column: 1 / -1 !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-row {
      display: contents !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col {
      grid-column: span var(--ndr-form-default-span, 6) !important;
      min-width: 0 !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--full {
      grid-column: 1 / -1 !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--half {
      grid-column: span 6 !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--third {
      grid-column: span 4 !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--quarter {
      grid-column: span 3 !important;
    }

    @media (min-width: 1024px) {
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col {
        grid-column: span var(--ndr-form-default-span-desktop, var(--ndr-form-default-span, 6)) !important;
      }
    }

    /* Long elements should remain full width when modern selectors are available. */
    @supports selector(:has(*)) {
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col:has(textarea),
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col:has(.wpcf7-list-item),
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col:has(input[type="checkbox"]),
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col:has(input[type="radio"]) {
        grid-column: 1 / -1 !important;
      }
    }

    /* Reduce accidental extra spacing when grid gap controls rhythm. */
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .wpcf7-form-control-wrap {
      margin-bottom: 0 !important;
    }
  }

  @supports not (display: contents) {
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-row {
      gap: 12px 16px !important;
    }
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col {
      flex: 1 1 calc(50% - 8px) !important;
      min-width: 260px !important;
    }
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--full {
      flex-basis: 100% !important;
    }
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--half {
      flex-basis: calc(50% - 8px) !important;
    }
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--third {
      flex-basis: calc(33.333% - 10.666px) !important;
    }
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--quarter {
      flex-basis: calc(25% - 12px) !important;
    }
  }
}

/* Container-query version of the grid (preferred when supported). */
@supports (container-type: inline-size) {
  /* Ensure narrow containers stay single-column even on wide viewports. */
  @container (max-width: 767px) {
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section {
      display: block !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-row {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 16px !important;
    }

    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col,
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--half,
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--third,
    .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col--quarter {
      flex-basis: 100% !important;
      width: 100% !important;
      min-width: 0 !important;
      grid-column: 1 / -1 !important;
    }
  }

  @container (min-width: 768px) {
    @supports (display: contents) {
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section {
        display: grid !important;
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        column-gap: 16px !important;
        row-gap: 12px !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section > h2,
      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section > h3 {
        grid-column: 1 / -1 !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-row {
        display: contents !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col {
        grid-column: span var(--ndr-form-default-span, 6) !important;
        min-width: 0 !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--full {
        grid-column: 1 / -1 !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--half {
        grid-column: span 6 !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--third {
        grid-column: span 4 !important;
      }

      .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section .ndr-form-col--quarter {
        grid-column: span 3 !important;
      }
    }
  }
}

/* Labels + muted copy inside the form. */
.ndr-form-manager-scope.ndr-form-manager-scope label {
  color: var(--ndr-fm-label-color, #1A1A1A) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  display: block !important;
  /* Compact Mode: tighter label spacing. */
  margin: 0 0 4px 0 !important;
}

/* Compact Mode: normalize CF7 paragraph margins inside managed forms. */
.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-col p,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-form p {
  margin: 0 !important;
}

/* Controls (inputs/select/textarea). */
.ndr-form-manager-scope.ndr-form-manager-scope input[type="text"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="email"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="tel"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="date"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="url"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="number"],
.ndr-form-manager-scope.ndr-form-manager-scope select,
.ndr-form-manager-scope.ndr-form-manager-scope textarea {
  width: 100% !important;
  background: var(--ndr-fm-input-bg, #FFFFFF) !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
  border: 1px solid var(--ndr-fm-input-border, #8892A0) !important;
  border-radius: var(--ndr-fm-input-radius, 12px) !important;
  padding: var(--ndr-fm-input-pad-y, 12px) var(--ndr-fm-input-pad-x, 14px) !important;
  font: inherit !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  box-shadow: none !important;
  max-width: 100% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input[type="text"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="email"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="tel"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="date"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="url"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="number"],
.ndr-form-manager-scope.ndr-form-manager-scope select {
  min-height: 48px !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope textarea {
  /* Compact Mode: shorter textarea. */
  min-height: 120px !important;
  resize: vertical !important;
}

@media (min-width: 1024px) {
  .ndr-form-manager-scope.ndr-form-manager-scope textarea {
    min-height: 140px !important;
  }
}

.ndr-form-manager-scope.ndr-form-manager-scope select {
  padding-right: 44px !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input::placeholder,
.ndr-form-manager-scope.ndr-form-manager-scope textarea::placeholder {
  color: #6B7280 !important;
  opacity: 1 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input:hover,
.ndr-form-manager-scope.ndr-form-manager-scope select:hover,
.ndr-form-manager-scope.ndr-form-manager-scope textarea:hover {
  border-color: #6B7280 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input:focus,
.ndr-form-manager-scope.ndr-form-manager-scope select:focus,
.ndr-form-manager-scope.ndr-form-manager-scope textarea:focus {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
  border-color: var(--ndr-fm-input-border-focus, #002868) !important;
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.75) !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input:focus-visible,
.ndr-form-manager-scope.ndr-form-manager-scope select:focus-visible,
.ndr-form-manager-scope.ndr-form-manager-scope textarea:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
  border-color: var(--ndr-fm-input-border-focus, #002868) !important;
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.75) !important;
}

/* Checkbox/radio controls + consent copy. */
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-list-item {
  display: block !important;
  margin: 0 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-list-item label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-height: 44px !important;
  /* Compact Mode: tighter consent padding. */
  padding: 6px 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}

@media (min-width: 1024px) {
  .ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-list-item label {
    font-size: 14px !important;
  }
}

@media (min-width: 1024px) {
  /* Compact Mode: slightly larger section spacing on desktop. */
  .ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-section {
    margin-bottom: 22px !important;
  }
}

.ndr-form-manager-scope.ndr-form-manager-scope input[type="checkbox"],
.ndr-form-manager-scope.ndr-form-manager-scope input[type="radio"] {
  margin: 3px 0 0 0 !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}

/* Button (.wpcf7-submit). */
.ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"],
.ndr-form-manager-scope.ndr-form-manager-scope button,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit {
  background: var(--ndr-fm-button-bg, #002868) !important;
  color: var(--ndr-fm-button-text, #FFFFFF) !important;
  border: 1px solid transparent !important;
  border-radius: var(--ndr-fm-button-radius, 14px) !important;
  padding: var(--ndr-fm-button-pad-y, 14px) var(--ndr-fm-button-pad-x, 18px) !important;
  min-height: 52px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: inherit !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  transition: background-color 150ms ease, color 150ms ease !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"]:hover,
.ndr-form-manager-scope.ndr-form-manager-scope button:hover,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit:hover {
  background: var(--ndr-fm-button-bg-hover, #001F4D) !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"]:active,
.ndr-form-manager-scope.ndr-form-manager-scope button:active,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit:active {
  background: #001530 !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"]:focus-visible,
.ndr-form-manager-scope.ndr-form-manager-scope button:focus-visible,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.75) !important;
}

@media (min-width: 1024px) {
  .ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"],
  .ndr-form-manager-scope.ndr-form-manager-scope button,
  .ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit {
    width: auto !important;
    min-width: 220px !important;
  }
}

.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-spinner {
  margin-left: 10px !important;
}

/* Multi-step wizard (optional, JS-enhanced).
 *
 * - Opt-in via `.ndr-form--multistep` on the managed CF7 <form>.
 * - Only hides steps when JS adds `.ndr-fm-multistep-ready`.
 */
.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-form-section[hidden] {
  display: none !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper {
  display: grid !important;
  gap: 10px !important;
  margin: 0 0 16px 0 !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__live {
  position: absolute !important;
  width: 1px !important;
  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;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__text {
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__meta {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #5A6472 !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__progress {
  width: 100% !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: rgba(0, 40, 104, 0.12) !important;
  overflow: hidden !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__bar {
  height: 100% !important;
  width: calc(var(--ndr-step-progress, 0) * 1%) !important;
  background: rgba(0, 40, 104, 0.75) !important;
  border-radius: 999px !important;
  transition: width 200ms ease !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__dots {
  display: flex !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__dot {
  width: 14px !important;
  height: 14px !important;
  border-radius: 999px !important;
  border: 2px solid rgba(0, 40, 104, 0.35) !important;
  background: transparent !important;
  padding: 0 !important;
  cursor: pointer !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__dot[disabled] {
  opacity: 0.45 !important;
  cursor: default !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-stepper__dot[aria-current="step"] {
  border-color: rgba(0, 40, 104, 0.85) !important;
  background: rgba(0, 40, 104, 0.15) !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-step-nav {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

@media (min-width: 768px) {
  .ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-step-nav {
    grid-template-columns: auto auto !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-btn {
  min-height: 48px !important;
  border-radius: var(--ndr-fm-button-radius, 14px) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  line-height: 1.1 !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-btn--next {
  background: var(--ndr-fm-button-bg, #002868) !important;
  color: var(--ndr-fm-button-text, #FFFFFF) !important;
  border: 1px solid transparent !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-btn--back {
  background: transparent !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
  border: 1px solid var(--ndr-fm-input-border, #8892A0) !important;
}

.ndr-form-manager-scope.ndr-form--multistep.ndr-fm-multistep-ready .ndr-fm-btn:focus-visible {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(0, 40, 104, 0.75) !important;
}

/* Confirmation / thank-you panel (shown after CF7 success). */
.ndr-form-manager-scope.ndr-form--multistep .ndr-fm-confirm {
  border: 1px solid #E5E7EB !important;
  background: #FFFFFF !important;
  border-radius: 16px !important;
  padding: 18px !important;
}

.ndr-form-manager-scope.ndr-form--multistep .ndr-fm-confirm__title {
  margin: 0 0 10px 0 !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
}

.ndr-form-manager-scope.ndr-form--multistep .ndr-fm-confirm__body {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: var(--ndr-fm-text-color, #1A1A1A) !important;
}

/* Validation + messages. */
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-not-valid {
  border: 2px solid #DC143C !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-not-valid-tip {
  display: block !important;
  width: 100% !important;
  margin-top: 6px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  color: #8B0D25 !important;
  background: rgba(220, 20, 60, 0.08) !important;
  border-left: 4px solid #DC143C !important;
}

.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-not-valid-tip::before {
  content: "Error: " !important;
  font-weight: 700 !important;
}

.wpcf7 form.ndr-form-manager-scope ~ .wpcf7-response-output,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-response-output {
  margin: 16px 0 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid #8892A0 !important;
  background: #F3F4F6 !important;
  color: #1A1A1A !important;
}

.wpcf7 form.ndr-form-manager-scope.sent ~ .wpcf7-response-output,
.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7 form.sent ~ .wpcf7-response-output {
  border-color: #10B981 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}

.wpcf7 form.ndr-form-manager-scope.invalid ~ .wpcf7-response-output,
.wpcf7 form.ndr-form-manager-scope.failed ~ .wpcf7-response-output,
.wpcf7 form.ndr-form-manager-scope.aborted ~ .wpcf7-response-output,
.wpcf7 form.ndr-form-manager-scope.spam ~ .wpcf7-response-output,
.wpcf7 form.ndr-form-manager-scope.unaccepted ~ .wpcf7-response-output {
  border-color: #DC143C !important;
  background: rgba(220, 20, 60, 0.08) !important;
}

/* Optional dark variant (activate by adding `ndr-form--on-dark` to the shortcode wrapper). */
.ndr-form--on-dark.ndr-form-manager-card.ndr-form-manager-scope.ndr-form-manager-scope {
  background: rgba(0, 40, 104, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope label {
  color: #FFFFFF !important;
}

.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope .ndr-form-manager-form__body {
  color: #D1D5DB !important;
}

.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="text"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="email"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="tel"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="date"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="url"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="number"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope select,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope textarea {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
}

.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input:focus,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope select:focus,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope textarea:focus,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input:focus-visible,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope select:focus-visible,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope textarea:focus-visible {
  border-color: #FFB81C !important;
  box-shadow: 0 0 0 3px rgba(255, 184, 28, 0.95) !important;
}

.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"],
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit {
  background: #FFB81C !important;
  color: #002868 !important;
}

.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope input[type="submit"]:hover,
.ndr-form--on-dark.ndr-form-manager-scope.ndr-form-manager-scope .wpcf7-submit:hover {
  background: #CC8F00 !important;
}

