/* Scoped to .ecc-form only. No !important, no unrooted attribute selectors (R-142). Brand tokens measured 2026-10-22 (BRAND-TOKENS-ECC.md).
   Fonts come from the host page; this file loads none. Never ship FormAssembly's default theme: the host page must not load it. */
.ecc-form { --ecc-fg:#333; --ecc-link:#0D6EFD; --ecc-font:Poppins,sans-serif; --ecc-head-font:"Satoshi Variable",sans-serif;
  --ecc-btn-bg:#9B1C31; --ecc-btn-fg:#fff; --ecc-btn-radius:12px; --ecc-btn-font:"Satoshi Variable",sans-serif;
  --ecc-input-font:"Satoshi Variable",sans-serif; --ecc-input-border:1px solid #767676; --ecc-input-radius:0; --ecc-input-fg:#333;
  --ecc-label-size:1rem; --ecc-label-weight:600; --ecc-label-fg:#333; --ecc-focus:#0D6EFD; --ecc-err:#a50e1d; }
.ecc-form[data-site="eccouncil.org"] { --ecc-link:#21759B; --ecc-font:Roboto,sans-serif; --ecc-head-font:Poppins,sans-serif;
  --ecc-btn-bg:#FF0000; --ecc-btn-radius:4px; --ecc-btn-font:Roboto,sans-serif; --ecc-input-font:Roboto,sans-serif;
  --ecc-input-border:1px solid #DDDDDD; --ecc-input-radius:4px; --ecc-label-size:12px; --ecc-label-fg:#77787B; --ecc-focus:#21759B; }
.ecc-form { position: relative; min-height: var(--ecc-form-min-h, 28rem); font-family: var(--ecc-font); color: var(--ecc-fg); font-size: 16px; }   /* reserved space: no layout shift on hydrate */
.ecc-form[data-ecc-ready] { min-height: 0; }
.ecc-form h2, .ecc-form h3, .ecc-form legend { font-family: var(--ecc-head-font); }
.ecc-form label { font-family: var(--ecc-font); font-size: var(--ecc-label-size); font-weight: var(--ecc-label-weight); color: var(--ecc-label-fg); }
.ecc-form input[type=text], .ecc-form input[type=email], .ecc-form input[type=tel], .ecc-form select, .ecc-form textarea {
  font-family: var(--ecc-input-font); font-size: 16px; color: var(--ecc-input-fg); background: #fff; border: var(--ecc-input-border); border-radius: var(--ecc-input-radius); min-height: 44px; padding: 0 12px; box-sizing: border-box; }
.ecc-form button, .ecc-form input[type=submit] { font-family: var(--ecc-btn-font); font-size: 14px; font-weight: 700; color: var(--ecc-btn-fg); background: var(--ecc-btn-bg);
  border: 1px solid var(--ecc-btn-bg); border-radius: var(--ecc-btn-radius); min-height: 44px; min-width: 44px; padding: 0 24px; cursor: pointer; }
.ecc-form a { color: var(--ecc-link); }
.ecc-form a:focus-visible, .ecc-form button:focus-visible, .ecc-form input:focus-visible, .ecc-form select:focus-visible, .ecc-form textarea:focus-visible { outline: 3px solid var(--ecc-focus); outline-offset: 2px; }
.ecc-form .ecc-skel { display: block; border-radius: 4px; background: #e6e9ee; height: 3rem; margin: 0 0 1rem; }
.ecc-form .ecc-skel:nth-child(3n) { width: 60%; }
.ecc-form .ecc-status { margin: 0 0 1rem; color: var(--ecc-fg); }
.ecc-form .ecc-status a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: underline; }
.ecc-form .ecc-err { color: var(--ecc-err); font-weight: 600; }
.ecc-form .ecc-fallback[hidden] { display: none; }
/* FormAssembly wrappers that must never be seen (ids from the master block, kept by every cloned form: checked on forms 5 and 6, 2026-10-26).
   tfa_12 = honeypot "Leave this blank": moved off-screen (not display:none) so bots that fill every field still fill it.
   tfa_8  = ecc_form_variant drop-down (proof P-9): set by ecc-form-capture.js, never by the visitor.
   Id selectors rooted under .ecc-form, no !important, no attribute selectors (R-142). */
.ecc-form #tfa_12-D { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ecc-form #tfa_8-D { display: none; }
/* The FormAssembly form title is the internal draft name ("ECC DRAFT | B01 ..."): the page supplies its own heading, so the title is not shown
   (display:none also removes it from the accessibility tree). Class selector rooted under .ecc-form (R-142). Found by eyes-on QA 2026-10-27. */
.ecc-form .wFormTitle { display: none; }
/* Accessibility, invisible to the brand (eyes-on QA 2026-10-27: no visible keyboard focus, checkbox/radio 13px, submit 40px on eccouncil).
   Focus ring 3px #0b57d0 (WCAG 2.4.7); measured after the 0.3s outline transition: without this rule the computed outline is none (the site's
   own html-body focus rule and Bootstrap's lose to it). 24px checkbox/radio targets (WCAG 2.5.8), 44px submit. !important only to beat those
   sheets; every selector starts with the .ecc-form class and an element name (R-142). */
.ecc-form input:focus-visible, .ecc-form select:focus-visible, .ecc-form textarea:focus-visible, .ecc-form button:focus-visible, .ecc-form a:focus-visible { outline: 3px solid #0b57d0 !important; outline-offset: 2px !important; }
.ecc-form input[type="checkbox"], .ecc-form input[type="radio"] { width: 24px !important; height: 24px !important; min-width: 24px; min-height: 24px; }
.ecc-form input[type="submit"], .ecc-form button[type="submit"] { min-height: 44px; }
/* Layout fixes from eyes-on QA 2026-10-28 (REPORT-LAYOUT.md). Class selectors only (R-142); !important only on the widget rule, which must beat Elementor's per-post "Custom width" (3 classes).
   B16 unsubscribe: Elementor tablet Custom width left the form 248px wide; FA labels (min-width 200px) + 48px form padding pushed fields past the viewport at 768px. */
.elementor-widget:has(.ecc-form) { width: 100% !important; max-width: 100% !important; }
.ecc-form label.preField { min-width: 0; }
@media (max-width: 1024px) { .ecc-form form.labelsAbove { padding-left: 16px; padding-right: 16px; } }
/* B08 consent: the checkbox sat on top of its label text (QA 2026-11-04). */
.ecc-form span.oneChoice { display: flex; align-items: flex-start; gap: 8px; }
.ecc-form span.oneChoice input[type="checkbox"], .ecc-form span.oneChoice input[type="radio"] { position: static !important; left: auto !important; margin: 0 !important; flex: 0 0 24px; }
.ecc-form span.oneChoice label.postField { display: block; line-height: 1.45 !important; margin: 0; padding-top: 2px; }
/* B04 brochure popup and narrow screens: inputs were 83px wide at 390px and the modal scrolled sideways (QA 2026-11-04, checked at 1440, 1024, 768, 390). */
@media (max-width: 1024px) {
  .elementor-location-popup .modal-content-2:has(.ecc-form) { padding: 24px 16px !important; overflow-x: hidden !important; overflow-y: auto !important; }
}
@media (max-width: 1024px) {
  .ecc-form form.labelsAbove { padding-left: 0 !important; padding-right: 0 !important; }
  .ecc-form form div.oneField { padding-left: 0 !important; padding-right: 0 !important; }
  .ecc-form form label.preField { min-width: 0 !important; display: block; }
  .ecc-form form div.inputWrapper { display: block; width: 100%; }
  .ecc-form form input[type="text"], .ecc-form form input[type="email"], .ecc-form form input[type="tel"],
  .ecc-form form select, .ecc-form form textarea { width: 100% !important; max-width: 100%; }
}
/* Workflow embeds, eyes-on QA 2026-11-05 (Steve's 6:54 PM list + B05 at 1440): fields were 288px wide in a 770px form column at desktop,
   selects had no arrow (our white background removed FormAssembly's), submit measured 40px and rendered white with no label on /ai-courses/
   (page button CSS won). Element + class roots only (R-142); !important only where FormAssembly's theme or the page sheet must lose. */
.ecc-form form div.inputWrapper { display: block; width: 100%; }
.ecc-form form input[type="text"], .ecc-form form input[type="email"], .ecc-form form input[type="tel"], .ecc-form form input[type="url"],
.ecc-form form input[type="number"], .ecc-form form select, .ecc-form form textarea { width: 100% !important; max-width: 100%; }
.ecc-form form select { -webkit-appearance: none; appearance: none; padding-right: 36px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
.ecc-form form input[type="submit"].primaryAction { min-height: 44px !important; background: var(--ecc-btn-bg) !important; color: var(--ecc-btn-fg) !important;
  border-color: var(--ecc-btn-bg) !important; font-family: var(--ecc-btn-font); font-weight: 700; opacity: 1; }
/* Spam-trap field "Leave this blank" (IN-14, decision a, Vance 2026-11-05): kept in the form so bots still fill it, moved off-screen
   so people never see it. Matched by the field's title, not its tfa id (ids differ between forms). Rooted on element + class (R-142). */
.ecc-form form div.oneField:has(input[title="Leave this blank"]) { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
@media (prefers-reduced-motion: no-preference) {
  .ecc-form .ecc-skel { animation: ecc-pulse 1.4s ease-in-out infinite; }
  @keyframes ecc-pulse { 50% { opacity: .55; } }
}
/* design-change: needs client approval (NOT applied here, brand kept as measured): see DESIGN-CHANGES.md */

/* Hotfix 2026-11-10, eyes-on QA on uatstage.eccouncil.org (CEH page, 390/768/1440). Class + element roots only (R-142); !important only where
   FormAssembly's theme-21.css (injected twice by the publish HTML) or Elementor's per-column widths must lose.
   1. The page prints data-site="eccouncil" (not "eccouncil.org"), so the eccouncil brand tokens never applied: forms showed the eccu maroon button and fonts. */
.ecc-form[data-site="eccouncil"] { --ecc-link:#21759B; --ecc-font:Roboto,sans-serif; --ecc-head-font:Poppins,sans-serif;
  --ecc-btn-bg:#FF0000; --ecc-btn-radius:4px; --ecc-btn-font:Roboto,sans-serif; --ecc-input-font:Roboto,sans-serif;
  --ecc-input-border:1px solid #DDDDDD; --ecc-input-radius:4px; --ecc-label-size:12px; --ecc-label-fg:#77787B; --ecc-focus:#21759B; }
/* 2. FormAssembly's theme-21.css wins with "font-family: Montserrat !important; font-size: 1em !important; width: 20em" on
   .wFormContainer .wForm .inputWrapper input / .required:not(.choices):not(select): fields rendered 14.4px (iOS zooms under 16px) and
   290px wide in a 402px form. Same chain rooted on .ecc-form so these rules outrank the theme. */
.ecc-form div.wFormContainer div.wForm form div.inputWrapper input[type="text"], .ecc-form div.wFormContainer div.wForm form div.inputWrapper input[type="email"],
.ecc-form div.wFormContainer div.wForm form div.inputWrapper input[type="tel"], .ecc-form div.wFormContainer div.wForm form div.inputWrapper input[type="url"],
.ecc-form div.wFormContainer div.wForm form div.inputWrapper input[type="number"], .ecc-form div.wFormContainer div.wForm form div.inputWrapper select,
.ecc-form div.wFormContainer div.wForm form div.inputWrapper textarea,
.ecc-form div.wFormContainer div.wForm form div.inputWrapper input.required[type="text"], .ecc-form div.wFormContainer div.wForm form div.inputWrapper input.required[type="email"],
.ecc-form div.wFormContainer div.wForm form div.inputWrapper input.required[type="tel"], .ecc-form div.wFormContainer div.wForm form div.inputWrapper select.required,
.ecc-form div.wFormContainer div.wForm form div.inputWrapper textarea.required {
  font-size: 16px !important; font-family: var(--ecc-input-font) !important; width: 100% !important; max-width: 100% !important;
  border: var(--ecc-input-border) !important; border-radius: var(--ecc-input-radius) !important; box-sizing: border-box; }
.ecc-form div.wFormContainer div.wForm form label.preField, .ecc-form div.wFormContainer div.wForm form label.postField { font-family: var(--ecc-font) !important; }
/* Labels: the measured eccouncil token (12px, #77787B) is 4.48:1 on white, under WCAG AA 4.5:1, and reads too small on phones (eyes-on 2026-11-10).
   14px #5F6062 (about 6.4:1) keeps the brand grey and size family. Reversible: delete these two declarations. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form label.preField,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form label.postField { font-size: 14px !important; color: #5F6062 !important; line-height: 1.45; }
.ecc-form form div.oneField { margin-top: 12px; }
.ecc-form form label.preField { margin-bottom: 4px; }
/* Steve 11-10 item 4: file inputs were 30px tall (B05, B09, SP-ecc80); 44px tap target. */
.ecc-form div.wFormContainer div.wForm form input[type="file"] { min-height: 44px !important; padding: 10px 0 !important; font-size: 16px !important; box-sizing: border-box; }
/* Steve 11-10 item 6: no visible focus ring on B05/B07 text inputs: theme-21.css removes it with a longer selector than ours. Same chain as rule 2. */
.ecc-form div.wFormContainer div.wForm form div.inputWrapper input:focus-visible, .ecc-form div.wFormContainer div.wForm form div.inputWrapper select:focus-visible,
.ecc-form div.wFormContainer div.wForm form div.inputWrapper textarea:focus-visible, .ecc-form div.wFormContainer div.wForm form input[type="submit"]:focus-visible {
  outline: 3px solid #0b57d0 !important; outline-offset: 2px !important; }
/* Steve 11-10 item 7: after a failed submit the sticky site header covered the focused field (about 250px tall at phone width on B07).
   scroll-margin-top keeps focused or scrolled-to fields below the header in Chrome, Firefox and Safari. */
.ecc-form div.wForm form input, .ecc-form div.wForm form select, .ecc-form div.wForm form textarea, .ecc-form div.wForm form div.oneField { scroll-margin-top: 140px; }
@media (max-width: 767px) {
  .ecc-form div.wForm form input, .ecc-form div.wForm form select, .ecc-form div.wForm form textarea, .ecc-form div.wForm form div.oneField { scroll-margin-top: 270px; }
}
/* 3. FormAssembly's "Contact Information" footer link is not part of the EC-Council form. */
.ecc-form div.wFormFooter p.supportInfo { display: none; }
/* 5. Submit: full width on phones so it is easy to reach and tap. */
@media (max-width: 767px) {
  .ecc-form form input[type="submit"].primaryAction { width: 100%; }
}

/* Lane L layout fix, 2026-11-10. Append to ecc-form.css AFTER deleting hotfix rule 4 (see L-layout.md).
   Selectors are rooted by class or element; no bare attribute selector anywhere (R-142).
   Reference: production www.eccouncil.org has back-to-top at right 8px / bottom 100px (40x40), the sticky
   "Inquire Now!" bar centred at the bottom, no ALTCHA and no Zendesk launcher. uatstage adds ALTCHA (FormAssembly)
   and Zendesk; this file keeps production's positions and moves only the two additions out of the way. */

/* A1. ALTCHA: FormAssembly renders <altcha-widget> as a fixed badge at the right viewport edge (z-index 9000), where it
   sits under back-to-top and the Zendesk launcher and floats over page content at 1440. Put it back in the form flow,
   directly above the submit row. The bot check still runs (auto=onsubmit); only its badge position changes. */
.ecc-form form altcha-widget {
  position: static !important; inset: auto !important; transform: none !important; z-index: auto !important;
  display: block !important; width: auto !important; max-width: 100% !important; height: auto !important;
  margin: 12px 0 0 !important; opacity: 1 !important; }
.ecc-form form altcha-widget div.altcha { position: relative !important; inset: auto !important; transform: none !important;
  max-width: 260px; }

/* A2. Zendesk launcher (uatstage only) and back-to-top: production's back-to-top stays at bottom 100px; the launcher
   (Zendesk default right 16px / bottom 16px, 64x64) already clears it once ALTCHA is no longer fixed. Nothing to move. */

/* C1. Hotfix rule 4 replacement. The old selector `.elementor-container:has(.ecc-form) > .elementor-column` matched every
   ancestor container of the form, so it also forced the page's top-level columns to 100% (the 796px form on
   /cybereducon-newzealand/ at 768). Limit it to the inner section that directly holds the form column. */
@media (max-width: 1024px) {
  .elementor-inner-section > .elementor-container:has(> .elementor-column .ecc-form) > .elementor-column {
    width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
}

/* Lane G 2026-11-10: FormAssembly forms on uatstage styled to match the production Gravity Forms they replace (www.eccouncil.org).
   Load AFTER ecc-form.css. Values are computed styles measured on production with Playwright Chromium at 390, 768 and 1440
   (lanes/G-gravity-spec.json). Production has three looks:
     A default (errata gform 16): grey 12px labels, light border, 2px radius, one column.
     B advisory board (gform 7): dark #1E1E1E labels and borders, transparent fields, two columns from 641px.
     C CyberEduCon NZ (gform 71): 5px radius, two columns from 641px, uppercase 40px submit.
   Every selector is rooted on the .ecc-form[data-site="eccouncil"] class plus element names (R-142). !important is used because FormAssembly's theme-21.css
   and ecc-form.css both use it on the same properties. */

/* ---------- Containers: production form fills its column, no padding, no centring. ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer { max-width: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm { margin: 0 !important; padding: 0 !important; width: 100% !important; max-width: none !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form {
  display: grid !important; grid-template-columns: minmax(0, 1fr); column-gap: 2%; row-gap: 15px;
  width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
  font-family: Roboto, sans-serif !important; font-size: 16px !important; line-height: 1.6; color: #333 !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.oneField,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.actions,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.htmlSection,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > fieldset { grid-column: 1 / -1; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField {
  margin: 0 !important; padding: 0 !important; border: 0 !important; scroll-margin-top: 140px;
  font-family: Roboto, sans-serif !important; font-size: 16px !important; color: #333 !important; }
/* FormAssembly prints a <br> after every label; production has none. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField > br { display: none; }
/* FormAssembly's "40 characters left." counter: production Gravity forms show no counter. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.lengthIndicator { display: none !important; }

/* ---------- Labels and required mark (production .gfield_label / .gfield_required). ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField {
  display: block !important; width: auto !important; min-width: 0 !important; float: none !important;
  margin: 0 0 4px !important; padding: 0 !important;
  font-family: Helvetica, sans-serif !important; font-size: 12px !important; font-weight: 400 !important; line-height: 18px !important;
  color: #6D6E71 !important; text-transform: none !important; letter-spacing: normal !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField.reqMark::after {
  content: "*" !important; color: #C02B0A !important; font-size: 13px !important; font-family: Helvetica, sans-serif !important;
  font-weight: 400 !important; margin: 0 !important; padding-left: 4px !important; }

/* ---------- Text inputs, select, textarea (production .ginput_container input / select / textarea). ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="url"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="number"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea {
  display: inline-block !important; vertical-align: baseline; width: 100% !important; max-width: 100% !important; height: auto !important;
  min-height: 0 !important; box-sizing: border-box !important; margin: 0 !important; padding: 9px 10px 8px !important;
  font-family: Roboto, sans-serif !important; font-size: 16px !important; font-weight: 400 !important; line-height: 25.6px !important;
  color: #6D6E71 !important; background-color: #fff !important; box-shadow: none !important;
  border: 1px solid rgba(44, 51, 56, 0.13) !important; border-radius: 2px !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input::placeholder,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea::placeholder { color: #6D6E71; opacity: 1; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select {
  height: 40px !important; padding: 6px 10px 5px !important; line-height: 24px !important;
  -webkit-appearance: none !important; appearance: none !important;
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3e%3cpath fill='%23333' d='M6 9L1 4h10z'/%3e%3c/svg%3e") no-repeat right 16px center !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea { height: 288px !important; padding: 8px !important; resize: vertical; }
/* Production one-line text fields and selects carry margin-bottom 10px (the NZ form sets 0 below). FormAssembly email fields are
   type=text, so they get it too; production email fields do not (each email row is 10px taller than production). */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { margin-bottom: 10px !important; }
/* FormAssembly's empty header block (24px + 14.4px margin) pushed the first field down; production starts with the first label. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wFormHeader { display: none !important; }
/* Production uses 15px inputs under 641px. Kept for parity: iOS Safari zooms on focus below 16px, on production and here alike. */
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form,
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField { font-size: 15px !important; }
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="url"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="number"] { font-size: 15px !important; line-height: 30px !important; }
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select,
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea { font-size: 15px !important; line-height: 24px !important; }
}

/* ---------- File input: production shows the browser's own grey button inside a bordered box (advisory gform 7). ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="file"] {
  width: 100% !important; min-height: 44px !important; box-sizing: border-box !important; padding: 9px 10px !important;
  font-family: Roboto, sans-serif !important; font-size: 16px !important; color: #333 !important;
  border: 1px solid rgba(44, 51, 56, 0.13) !important; border-radius: 2px !important; background: #fff !important; }
/* FormAssembly paints the file button blue; production shows Chrome's own grey button. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="file"]::file-selector-button {
  margin: 0 4px 0 0 !important; padding: 1px 6px !important; font: inherit !important; color: #000 !important; background: #efefef !important;
  border: 1px solid #767676 !important; border-radius: 2px !important; }

/* ---------- Checkbox and radio choices (production consent + checkbox lists: native 16px box, 10px gap). ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice { display: flex !important; align-items: flex-start; gap: 10px; margin: 0 0 4px !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice input[type="checkbox"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice input[type="radio"] {
  width: 16px !important; height: 16px !important; min-width: 16px !important; min-height: 16px !important; flex: 0 0 16px !important;
  margin: 3px 0 0 !important; position: static !important; opacity: 1 !important; -webkit-appearance: auto !important; appearance: auto !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice span.input-checkbox-faux { display: none !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice label.postField {
  display: block !important; margin: 0 !important; padding: 0 8px !important;
  font-family: Helvetica, sans-serif !important; font-size: 12px !important; font-weight: 400 !important; line-height: 21.6px !important; color: #333 !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice label.postField a { color: inherit; text-decoration: underline; }

/* ---------- Submit (production .gform_footer input[type=submit]): centred, auto width, 48px tall. ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions {
  display: flex !important; justify-content: center; margin: 6px 0 0 !important; padding: 16px 0 !important; border: 0 !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction {
  width: auto !important; min-width: 0 !important; min-height: 0 !important; height: auto !important; margin: 0 !important;
  padding: 15px 21px !important; font-family: Roboto, sans-serif !important; font-size: 16px !important; font-weight: 500 !important;
  line-height: 16px !important; letter-spacing: normal !important; text-transform: none !important;
  color: #fff !important; background: #ED0000 !important; border: 1px solid #FF0007 !important; border-radius: 4px !important;
  box-shadow: none !important; cursor: pointer; opacity: 1 !important; transition: background-color .2s, border-color .2s; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction:hover { background: #D60000 !important; border-color: #D60000 !important; }

/* ---------- Error state (production: summary box hidden by the site, plain red message, red label and border). ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld label.preField { color: #C02B0A !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld div.inputWrapper input[aria-invalid="true"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld div.inputWrapper select[aria-invalid="true"],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld div.inputWrapper textarea[aria-invalid="true"] { border-color: #C02B0A !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.errMsg {
  margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important;
  font-family: Roboto, sans-serif !important; font-size: 15px !important; font-weight: 400 !important; line-height: 1.6 !important; color: #C02B0A !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.errMsg i.fa { display: none !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm div.wfErrorMessage,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm div.errorMessage { display: none !important; }

/* ---------- Kept from the MV3 hotfix (accessibility; production has no focus indicator, see G-gravity-parity.md). ---------- */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input:focus-visible,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select:focus-visible,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea:focus-visible,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form input[type="submit"]:focus-visible { outline: 3px solid #0b57d0 !important; outline-offset: 2px !important; }
@media (max-width: 767px) {
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField { scroll-margin-top: 270px; }
}

/* ---------- Two-column variants: half-width rows for one-line fields from 641px (production grid: 12 columns, 2% gap). ---------- */
@media (min-width: 641px) {
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form,
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[type="text"]),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[type="email"]),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[type="tel"]),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper select),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[type="text"]),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[type="email"]),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[type="tel"]),
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper select) { grid-column: auto; }
}

/* ---------- Variant B: advisory board (gform 7). ---------- */
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField label.preField { color: #1E1E1E !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="url"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="file"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea {
  color: #1E1E1E !important; background-color: transparent !important; border-color: #1E1E1E !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select {
  height: auto !important; padding: 9px 10px 8px !important; line-height: 25.6px !important; background-color: transparent !important; border-color: #1E1E1E !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form span.oneChoice label.postField { color: #1E1E1E !important; }

/* ---------- Variant C: CyberEduCon NZ (gform 71). ---------- */
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { border-radius: 5px !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { height: auto !important; padding: 9px 10px 8px !important; line-height: 25.6px !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { margin-bottom: 0 !important; }
/* NZ production consent: checkbox on its own line, consent text below it. */
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form span.oneChoice { display: block !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form span.oneChoice label.postField { padding: 0 !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form span.oneChoice label.postField {
  font-family: Roboto, sans-serif !important; font-size: 14px !important; line-height: 25.6px !important; color: #000 !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction {
  padding: 11px 26px !important; border-radius: 5px !important; text-transform: uppercase !important; }
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf7-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select,
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf71-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { line-height: 24px !important; }
}

/* 2026-11-10 combined PR additions (QA auditor + lanes X/Y/AA):
   - ALTCHA spans the full row in two-column layouts (advisory, NZ).
   - "Privacy Notice" link in the form notice is underlined (WCAG 1.4.1; 1.05:1 against the text around it).
   - Inline forms reserve a taller box (the loaded form is 700-1,000 px), cutting the footer jump while the form loads. */
.ecc-form div.wFormContainer div.wForm form > altcha-widget { grid-column: 1 / -1; }
.ecc-form .ecc-notice a { text-decoration: underline; }
.ecc-form[data-placement="inline"]:not([data-ecc-ready]) { min-height: 48rem; }

/* Modal shells (.ecc-modal), 2026-11-12. These rules used to exist only in the inline <style id="ecc-modal-css"> block, printed
   once per request with the first shell. When the shortcode runs first in a render pass whose output is discarded (meta
   description, page builder pre-render), that block never reaches the page, and the theme rule .modal{display:flex} shows every
   shell. The shell markup keeps its "modal" class for the theme and the loader, so the hide rule below is scoped to .ecc-modal and
   uses !important only on the closed state. The open state needs none: the theme .modal rule has no !important.
   Class roots only, no attribute selectors. */
.ecc-modal { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .6); padding: 16px; overflow: auto; }
.ecc-modal:not(.is-open) { display: none !important; }
.ecc-modal.is-open { display: flex; }
.ecc-modal__box { position: relative; background: #fff; color: #111; max-width: 640px; width: 100%; max-height: 100%;
  overflow: auto; padding: 24px; border-radius: 4px; }
/* z-index: at narrow widths the hydrated form overlapped the close button and took its clicks. */
.ecc-modal__close { position: absolute; top: 4px; right: 4px; z-index: 2; min-width: 44px; min-height: 44px; font-size: 28px;
  line-height: 1; background: none; border: 0; cursor: pointer; }
.ecc-modal__close:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
/* Popup form UX, 2026-11-13 (client report: "Test CEH AI Skills" popup is blank while loading, no title, X on the first field,
   Submit far below the fold). Checked at 1440 / 768 / 390. Every rule is scoped to .ecc-modal, so inline forms do not change.
   Class and element roots only, attribute selectors always follow a class or element (R-142).
   1. Header row. The theme prints ".modal-content .close-button { padding: 35px; font-size: 50px }", which made the X a
      96 x 120 px box lying over the right end of the first field. The X is now 44 x 44 px in the top right corner and the title
      sits to its left; a shell printed without a title keeps the same band free. */
.ecc-modal .ecc-modal__box { padding: 12px 24px 24px; }
.ecc-modal .ecc-modal__box .ecc-modal__close { top: 4px; right: 4px; width: 44px; height: 44px; margin: 0; padding: 0;
  font-size: 32px; line-height: 44px; text-align: center; color: #1e1e1e; }
.ecc-modal .ecc-modal__box .ecc-modal__title { display: flex; align-items: center; min-height: 36px; margin: 0 36px 12px 0; padding: 0;
  font-family: Poppins, Roboto, sans-serif; font-size: 22px; font-weight: 600; line-height: 1.3; color: #111; text-align: left; }
.ecc-modal .ecc-modal__close + .ecc-form { margin-top: 48px; }
/* 2. Loading state. The form is fetched from FormAssembly when the popup opens (about 2 s) and is then kept hidden until its
      styles and show/hide rules are applied (up to 3 s more), so the box was plain white for up to 5 s. Until the container is
      marked data-ecc-styled the box now shows "Loading the form" and grey field placeholders. The loaded form paints above
      them on its own white background, so nothing is left over if the mark is never set. */
.ecc-modal .ecc-form:not([data-ecc-styled])::before { content: "Loading the form\2026"; position: absolute; top: 0; left: 0; right: 0;
  font: 400 14px/20px Roboto, sans-serif; color: #5F6062; }
.ecc-modal .ecc-form:not([data-ecc-styled])::after { content: ""; position: absolute; top: 36px; left: 0; right: 0; height: 302px;
  background:
    repeating-linear-gradient(to bottom, #DFE2E6 0, #DFE2E6 10px, transparent 10px, transparent 78px) left top / 96px 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0, transparent 18px, #EEF0F2 18px, #EEF0F2 62px, transparent 62px, transparent 78px); }
.ecc-modal .ecc-form div.wFormContainer { position: relative; z-index: 1; background: #fff; }
.ecc-modal .ecc-form[data-ecc-state="error"]::before, .ecc-modal .ecc-form[data-ecc-state="no-source"]::before,
.ecc-modal .ecc-form[data-ecc-state="blocked-host"]::before { content: "This form could not be loaded. Please close this window and try again."; color: #C02B0A; }
.ecc-modal .ecc-form[data-ecc-state="error"]::after, .ecc-modal .ecc-form[data-ecc-state="no-source"]::after,
.ecc-modal .ecc-form[data-ecc-state="blocked-host"]::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  .ecc-modal .ecc-form:not([data-ecc-styled])::after { animation: ecc-modal-pulse 1.4s ease-in-out infinite; }
  @keyframes ecc-modal-pulse { 50% { opacity: .5; } }
}
/* 3. Shorter form. In a popup the Message box is 3 lines (it was 288 px, the height of the inline page forms), rows are 10 px
      apart instead of 15 px, and from 600 px First name / Last name and Email / Phone share a row, as on production. The fields
      are matched by their title because FormAssembly ids differ between forms. On the CEH skills popup at 1440 x 900 the form
      goes from 1,119 px to under the height of the box. !important only where the rules above it in this file use it. */
.ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form { row-gap: 10px; }
.ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea { height: 94px !important; }
.ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { margin-bottom: 0 !important; }
.ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions { margin: 0 !important; padding: 6px 0 0 !important; }
/* 4. ALTCHA badge. FormAssembly gives <altcha-widget> a drop shadow, and as a full-width block it drew a wide empty white box
      with the 260 px badge at its left. In a popup the widget is as wide as its badge, centred under Submit, with no shadow. */
.ecc-modal .ecc-form form altcha-widget { max-width: 260px !important; margin: 8px auto 0 !important; justify-self: center; box-shadow: none; }
@media (min-width: 600px) {
  .ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[title="First name"]),
  .ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[title="Last name"]),
  .ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[title="Email"]),
  .ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form > div.oneField:has(> div.inputWrapper input[title="Phone"]) { grid-column: auto; }
}
/* 5. Loading placeholder drawn in the same layout as the form (UAT re-test 2026-11-16, CPENT "Become a pen tester with AI skills":
      "the first name field shrinks"). The placeholder drew four full-width bars; from 600 px the form then painted First name /
      Last name and Email / Phone side by side, so the first field appeared to shrink from 590 px to 289 px. From 600 px the first
      two placeholder rows are now two half-width bars with the form's 12 px column gap and a label bar over each column; rows 3
      and 4 stay full width, like Country and Program interest. Below 600 px the form is one column and nothing changes.
      Layers, top first: white column gap over rows 1-2, right-column label bars for rows 1 and 2, then the two original layers. */
@media (min-width: 600px) {
  .ecc-modal .ecc-form:not([data-ecc-styled])::after {
    background:
      linear-gradient(to right, transparent calc(50% - 6px), #fff calc(50% - 6px), #fff calc(50% + 6px), transparent calc(50% + 6px)) left 18px / 100% 122px no-repeat,
      linear-gradient(to right, transparent calc(50% + 6px), #DFE2E6 calc(50% + 6px), #DFE2E6 calc(50% + 102px), transparent calc(50% + 102px)) left top / 100% 10px no-repeat,
      linear-gradient(to right, transparent calc(50% + 6px), #DFE2E6 calc(50% + 6px), #DFE2E6 calc(50% + 102px), transparent calc(50% + 102px)) left 78px / 100% 10px no-repeat,
      repeating-linear-gradient(to bottom, #DFE2E6 0, #DFE2E6 10px, transparent 10px, transparent 78px) left top / 96px 100% no-repeat,
      repeating-linear-gradient(to bottom, transparent 0, transparent 18px, #EEF0F2 18px, #EEF0F2 62px, transparent 62px, transparent 78px); }
}
@media (max-width: 480px) {
  .ecc-modal { padding: 8px; }
  .ecc-modal .ecc-modal__box { padding: 12px 16px 20px; }
  .ecc-modal .ecc-modal__box .ecc-modal__title { font-size: 19px; }
}
body.ecc-modal-open { overflow: hidden; }

/* Form headings (UAT re-test 2026-11-16, "some forms are still missing their headings").
   1. Page forms. The heading the page gives its form (the form_title of the enq_form shortcode: "Course Inquiry", "Contact Us",
      "Download Brochure") is carried on the container as data-title, but only the dark AI course frame printed it, so course
      pages and the brochure download pages showed a form with no heading. It is now printed above every page form that has
      one, in production's style (.efa-form-title: Poppins 36/60 px, 600, #2C3338, 25 px below). Popup forms are not matched:
      their heading is the popup title. The AI frame rule further down is more specific and keeps its own white 24 px heading.
      Attribute selectors follow a class, no !important (R-142). */
.ecc-form[data-placement="inline"][data-title]:not([data-title=""])::before { content: attr(data-title); display: block; margin: 0 0 25px;
  font-family: Poppins, Roboto, sans-serif; font-size: 36px; line-height: 60px; font-weight: 600; color: #2C3338; text-align: left; }
/*    CCISO hero frame (.admission-inquiry-cciso-n, dark #272C35): production prints the heading white, Overpass 24/34 px, 15 px
      below (its page CSS for .efa-form-title in that frame); a class root, so it outranks the rule above without !important. */
.admission-inquiry-cciso-n .ecc-form[data-placement="inline"][data-title]:not([data-title=""])::before { margin: 0 0 15px;
  font-family: Overpass, Roboto, sans-serif; font-size: 24px; line-height: 34px; color: #fff; }
/* 2. Popup forms. Production prints the form's own heading ("Tell us a little about yourself") under the popup title; the
      shell now prints it as .ecc-modal__subtitle when it differs from the title (inc/shim.php). */
.ecc-modal .ecc-modal__box .ecc-modal__subtitle { margin: 0 0 12px; padding: 0; font-family: Poppins, Roboto, sans-serif;
  font-size: 16px; line-height: 24px; font-weight: 400; color: #2C3338; text-align: left; }

/* AI course hero enquiry frame (.custom-ai-form.bg-navy-blue), 2026-11-13. UAT fail "contact us form ui layout not good" on
   /ai-courses/certified-ai-program-manager-caipm/ (same block on CRAGE, COASP and AIE).
   The Elementor shortcode widget is a dark rounded frame (#272C35, radius 32px, padding 24px). The site CSS styles the old
   enquiry form inside it by that form's own class names (.custom-ai-form .efa-form-wrapper / .efa-form-title /
   .efa-form-group label / .efa-submit-btn): transparent form, white "Program Inquiry" heading, white labels, white button.
   The FormAssembly form has none of those classes, so it rendered as a square white panel with no heading inside the frame.
   Reference: production /ai-courses/artificial-intelligence-essentials-aie/ (same frame, old form), measured 2026-11-13.
   Scoped to the frame's two classes, so no other inline form (CEH, contact, popups) is matched. Class and element roots only;
   every attribute selector is rooted by .ecc-form or an element (R-142). */
.custom-ai-form.bg-navy-blue .ecc-form[data-title]::before { content: attr(data-title); display: block; margin: 0 0 15px;
  font-family: Overpass, Roboto, sans-serif; font-size: 24px; line-height: 34px; font-weight: 600; color: #fff; text-align: left; }
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form { background: transparent !important; color: #fff !important; }
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField {
  font-family: Helvetica, sans-serif !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.5 !important; color: #fff !important; }
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField.reqMark::after { color: #FF8A8A !important; }
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice label.postField,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection p,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection span,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection summary,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection details,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection a,
.custom-ai-form.bg-navy-blue .ecc-form span.ecc-channels,
.custom-ai-form.bg-navy-blue .ecc-form span.ecc-wtm-toggle,
.custom-ai-form.bg-navy-blue .ecc-form .ecc-wtm,
.custom-ai-form.bg-navy-blue .ecc-form .ecc-wtm-body,
.custom-ai-form.bg-navy-blue .ecc-form .ecc-notice,
.custom-ai-form.bg-navy-blue .ecc-form .ecc-notice a { color: #fff !important; }
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.htmlSection a { text-decoration: underline; }
/* Submit: production's frame button (.custom-ai-form .efa-submit-btn): white, blue text, square, 56px, 55% wide, centred. */
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction {
  width: 100% !important; max-width: 55% !important; min-height: 56px !important; padding: 0 20px !important;
  font-family: Roboto, sans-serif !important; font-size: 14px !important; font-weight: 600 !important; line-height: 20px !important;
  letter-spacing: .7px !important; text-transform: uppercase !important;
  color: #0B64F4 !important; background: #fff !important; border: 0 !important; border-radius: 0 !important; }
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction:hover {
  color: #fff !important; background: #0B64F4 !important; }
@media (max-width: 767px) {
  .custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction { max-width: 100% !important; }
}
/* On the dark frame the blue focus ring and the dark red error text are hard to see. */
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input:focus-visible,
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select:focus-visible,
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea:focus-visible,
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form input[type="submit"]:focus-visible { outline-color: #fff !important; }
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld label.preField,
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.errMsg { color: #FFB3A7 !important; }
/* ALTCHA badge: a small white card, centred, so its own dark text stays readable on the frame. */
.custom-ai-form.bg-navy-blue .ecc-form form altcha-widget div.altcha { margin: 0 auto; background: #fff; border-radius: 4px; }

/* SMS / WhatsApp consent (UAT re-test 2026-11-13, CAIPM form "check box not working").
   The form's own consent script hides this option (class ecc-sms-off) until a phone number is entered, and clears it
   while hidden. The display:flex rule for span.oneChoice above was showing it anyway, so a click ticked it and the
   script cleared it at once. Keep it hidden until the form offers it. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice.ecc-sms-off.ecc-sms-off { display: none !important; }
/* Same frame, vertical rhythm (2026-11-13, UAT "inconsistent padding/spacing"). The form is a grid with a 15px row gap; extra
   margins and padding made the gaps 19, 21, 37 and 42px, the consent text was 14.4px under 12px opt-in labels, and the ALTCHA badge
   sat in a wide shadow box far below Submit. Inside the frame only: every row is 15px apart, consent text matches the opt-in labels,
   and the badge sits directly under Submit with no outer box. White-card forms (CEH, contact, popups) are not matched. */
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice { margin: 0 !important; }
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form span.ecc-consent-extra { font-size: 12px !important; line-height: 21.6px !important; }
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form span.ecc-consent-extra,
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form span.ecc-us-sms { color: #fff !important; }
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form div.ecc-sms-hidden span.ecc-consent-extra > span.ecc-channels { margin-top: 0 !important; }
.custom-ai-form.bg-navy-blue .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions { margin: 0 !important; padding: 0 !important; }
.custom-ai-form.bg-navy-blue .ecc-form div.wFormContainer div.wForm form > div[style*="clear"] { display: none !important; }
.custom-ai-form.bg-navy-blue .ecc-form form altcha-widget { margin: 0 !important; box-shadow: none !important; }

/* UAT re-test row 4 / eyes-on 2026-11-17: the CookieYes box (z-index 9999999) sat on top of an open popup (z-index 99999) and hid
   the popup's consent text and, on phones, its Submit button. While one of our popups is open the box and its "revisit" button sit
   just under the popup backdrop. They are not hidden or changed: closing the popup shows the box again, still unanswered.
   Class roots only, no attribute selectors. !important because the CookieYes stylesheet is injected after this file. */
body.ecc-modal-open .cky-consent-container,
body.ecc-modal-open .cky-btn-revisit-wrapper { z-index: 99998 !important; }

/* Page forms while loading (2026-11-17, CEH frame audit: card 768 px empty, then 2,307 px, then 899 px; content below pushed).
   1. The reserved height holds until the form is SHOWN (data-ecc-styled), not until the capture script has written its values
      (data-ecc-ready comes earlier: between the two the card fell to the height of its heading).
   2. The height reserved is the form's own: --ecc-form-h is set per container by the inline script in ecc-forms-speed.php from the
      height this visitor last saw; the defaults below are the measured heights of the forms on the course pages.
   3. Until the form is shown the box draws grey rows (label bar + field bar), as the popups do; the form replaces them in one step.
   Class roots; attribute selectors follow a class (R-142); no !important. */
.ecc-form[data-placement="inline"]:not([data-ecc-styled]) { min-height: var(--ecc-form-h, var(--ecc-form-h-d, 48rem)); }
/* Defaults for a first view (no learned height yet): the course-page inquiry form with its heading, measured in Chrome on the CEH
   page 2026-11-17: 899 px at 1440 and 768 wide, 836 px at 1024, 953 px at 390. */
.ecc-form[data-placement="inline"][data-form="B01"][data-variant="enquiry_program"][data-title]:not([data-title=""]) { --ecc-form-h-d: 899px; }
@media (min-width: 1000px) and (max-width: 1199px) {
  .ecc-form[data-placement="inline"][data-form="B01"][data-variant="enquiry_program"][data-title]:not([data-title=""]) { --ecc-form-h-d: 836px; }
}
@media (max-width: 600px) {
  .ecc-form[data-placement="inline"][data-form="B01"][data-variant="enquiry_program"][data-title]:not([data-title=""]) { --ecc-form-h-d: 953px; }
}
.ecc-form[data-placement="inline"]:not([data-ecc-styled])::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 530px; pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, #DFE2E6 0, #DFE2E6 10px, transparent 10px, transparent 92px) left top / 96px 100% no-repeat,
    repeating-linear-gradient(to bottom, transparent 0, transparent 22px, #EEF0F2 22px, #EEF0F2 66px, transparent 66px, transparent 92px); }
.ecc-form[data-placement="inline"][data-title]:not([data-title=""]):not([data-ecc-styled])::after { top: 85px; }
.admission-inquiry-cciso-n .ecc-form[data-placement="inline"]:not([data-ecc-styled])::after,
.custom-ai-form.bg-navy-blue .ecc-form[data-placement="inline"]:not([data-ecc-styled])::after { top: 49px; opacity: .35; }
.ecc-form[data-placement="inline"][data-ecc-state="error"]::after, .ecc-form[data-placement="inline"][data-ecc-state="no-source"]::after,
.ecc-form[data-placement="inline"][data-ecc-state="blocked-host"]::after { content: none; }
@media (prefers-reduced-motion: no-preference) {
  .ecc-form[data-placement="inline"]:not([data-ecc-styled])::after { animation: ecc-modal-pulse 1.4s ease-in-out infinite; }
}

/* Submit while the form is being sent or the spam check is still running (slice 2): the button looks busy. ecc-forms.js sets
   data-ecc-busy on it and takes it off again; no inline style, because FormAssembly saves and restores the style attribute.
   Element roots before every attribute selector (R-142). */
.ecc-form form input[data-ecc-busy], .ecc-form form button[data-ecc-busy],
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction[data-ecc-busy] { opacity: .55 !important; cursor: progress !important; }

/* Popup on short screens (UAT re-test 2026-11-16, item F: on iPhone SE, 375 x 667, the popup form is about 857 px tall in a
   649 px box, so Submit sat below the edge of the popup with nothing to show that the popup scrolls, and the X scrolled away).
   1. The popup box no longer scrolls as a whole. The title and the X stay where they are and the form scrolls under them, so
      the X is always in reach. The form keeps the height it reserved before (28rem) through a zero-width strut, so a popup
      whose form fits (desktop) has the same size and position as before.
   2. The form's scrolling area runs to the left, right and bottom edge of the box (the box's side padding moves inside it and
      its bottom padding becomes the white strip of point 3), so nothing is cut off short of the edge and focus rings are not clipped.
   3. While there is more form below, the bottom edge of the box carries a grey bar "Scroll for more" (it lies in the box's own
      bottom padding, so it takes no room). A white strip at the very end of the form slides over it once the end (Submit and
      the text under it) is reached. A popup whose form fits never shows it.
   4. overscroll-behavior keeps a swipe that reaches the end of the form from moving the page behind the popup.
   5. In a popup the fields keep 12 px clear of the edge of the scrolling area when they get focus (and scroll-padding-bottom
      keeps them clear of the bar of point 3); the 140 / 270 px set for the sticky site header on page forms pushed a focused
      field out of a short popup (on-screen keyboard open).
   Class roots only; every attribute selector follows a class or an element; no !important (R-142). */
.ecc-modal { overscroll-behavior: contain; }
.ecc-modal .ecc-modal__box { display: flex; flex-direction: column; overflow: hidden; }
.ecc-modal .ecc-modal__box > .ecc-modal__close, .ecc-modal .ecc-modal__box > .ecc-modal__title,
.ecc-modal .ecc-modal__box > .ecc-modal__subtitle { flex: 0 0 auto; }
.ecc-modal .ecc-modal__box > .ecc-form { flex: 0 1 auto; }
.ecc-modal .ecc-modal__box > .ecc-form[data-ecc-styled] { min-height: 0; overflow-x: hidden; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-bottom: 28px;
  margin-left: -24px; margin-right: -24px; margin-bottom: -24px; padding: 0 24px; }
.ecc-modal .ecc-modal__box > .ecc-form[data-ecc-styled]::before { content: ""; float: left; width: 0;
  height: var(--ecc-form-min-h, 28rem); }
.ecc-modal .ecc-modal__box > .ecc-form[data-ecc-styled]::after { content: ""; display: block; clear: both; position: relative; z-index: 3;
  height: 24px; margin: 0 -24px; background: #fff; pointer-events: none; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-ecc-styled])::after { content: "Scroll for more \2193"; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
  box-sizing: border-box; height: 24px; border-top: 1px solid #C9CED4; border-radius: 0 0 4px 4px; background: #EEF0F2; pointer-events: none;
  font: 600 12px/23px Roboto, sans-serif; letter-spacing: .2px; color: #2C3338; text-align: center; }
@media (max-width: 480px) {
  .ecc-modal .ecc-modal__box > .ecc-form[data-ecc-styled] { margin-left: -16px; margin-right: -16px; margin-bottom: -20px; padding: 0 16px; }
  .ecc-modal .ecc-modal__box > .ecc-form[data-ecc-styled]::after { height: 20px; margin: 0 -16px; }
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-ecc-styled])::after { height: 20px; font-size: 11px; line-height: 19px; }
}
.ecc-modal .ecc-form div.wForm form input, .ecc-modal .ecc-form div.wForm form select, .ecc-modal .ecc-form div.wForm form textarea,
.ecc-modal .ecc-form div.wForm form div.oneField,
.ecc-modal .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField { scroll-margin-top: 44px; scroll-margin-bottom: 12px; }   /* 44px, not 12px: room for the label above a focused field under the popup title (item C lane: "First name" label was cut off at 390 after an empty Submit) */

/* UAT re-test 2026-11-16, forms item C (tracker rows 6 and 7, "first name is half not visible").
   The "Please take a moment to review your details, then submit again." notice of ecc-form-guard.js (1.0.1) is a line under the
   Submit button. The form is a grid: the notice spans every column, so it never takes a field's cell. Class-rooted selectors only,
   no !important. */
.ecc-form div.ecc-guard-msg { grid-column: 1 / -1; width: 100%; box-sizing: border-box; margin: 0; padding: 0; text-align: center; font-size: 13px; line-height: 1.5; font-weight: 600; color: #a50e1d; }
.custom-ai-form.bg-navy-blue .ecc-form div.ecc-guard-msg { color: #fff; }

/* ---------- 2026-11-17 FormAssembly embed audit (Steve Graham), findings 1, 2, 6 and 7. ---------- */
/* 1. The page prints *{user-select:none} (copy protection) and it reached the form fields: a visitor could not select or copy what
      they typed, and on iOS Safari it can stop a field taking focus, showing the caret or pasting. Form fields are exempt. */
.ecc-form input, .ecc-form textarea, .ecc-form select { -webkit-user-select: text; -ms-user-select: text; user-select: text; }
/* 2. iOS Safari zooms into any field under 16px when it is tapped (the page jumped sideways after every field). The 15px phone size
      kept for production parity is dropped: fields are 16px at every width. */
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="url"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="number"],
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select,
  .ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea { font-size: 16px !important; }
}
/* 6. One font family, the site's Roboto, and nothing under 14px: labels were Helvetica 12px grey and the marketing-consent sentence
      12px, smaller than the 14.4px text under it. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField {
  font-family: Roboto, sans-serif !important; font-size: 14px !important; line-height: 20px !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField.reqMark::after {
  font-family: Roboto, sans-serif !important; font-size: 14px !important; }
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice label.postField {
  font-family: Roboto, sans-serif !important; font-size: 14px !important; line-height: 21px !important; }
/* 7. After an empty Submit the field row drew a blue line above and below the input instead of a ring. The ring belongs to the
      input itself (the focus-visible rules above); the row draws no focus border or shadow. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField:focus-within {
  border-top-color: transparent !important; border-bottom-color: transparent !important; box-shadow: none !important; outline: 0 !important; }

/* ---------- 2026-11-17 Forms on dark cards (CCISO "Program Inquiry", rgb(39,44,53)). ecc-forms marks the container
   data-ecc-surface="dark" before the form is shown (inc/head.php surface()). Contrast against rgb(39,44,53), WCAG AA 4.5:1:
   labels and consent #E6E8EB 11.4:1 (were 2.75:1 and 1.11:1), helper text #C5CAD3 8.5:1, links #8CC8FF 7.9:1 (was 2.73:1),
   required mark #FF8A7A 6.1:1, error text #FFB4A9 8.3:1, tick-box outline #AEB4BE 6.7:1. Fields stay white boxes with #333 text
   (12.6:1). White cards are unchanged. ---------- */
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField { color: #E6E8EB !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField label.preField.reqMark::after { color: #FF8A7A !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice label.postField { color: #E6E8EB !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.htmlSection,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.htmlSection p,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.htmlSection span,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.htmlSection li,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.htmlSection summary { color: #C5CAD3 !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra span,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra p,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra li,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra label,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra small,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra div { color: #C5CAD3 !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra span.ecc-wtm-toggle { color: #E6E8EB !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form a,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.ecc-consent-extra a,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice label.postField a { color: #8CC8FF !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form .errMsg,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld label.preField { color: #FFB4A9 !important; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form span.oneChoice input[type="checkbox"] { outline: 1px solid #AEB4BE; outline-offset: 0; accent-color: #E30613; }
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input:focus-visible,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select:focus-visible,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea:focus-visible { outline: 3px solid #8CC8FF !important; outline-offset: 2px !important; }

/* ---------- 2026-11-17 eyes-on forms QA, hotfix with B-1 ---------- */
/* 1. ALTCHA on page forms: the widget box ran the full form width with a drop shadow around the 260 px badge (popups were already
      right, rule 4 of the popup block). Page forms now match: badge-wide, centred under Submit, no shadow. */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form altcha-widget {
  width: max-content !important; max-width: 260px !important; margin: 8px auto 0 !important; justify-self: center; box-shadow: none !important; }
/* 2. Error state: every field in a row FormAssembly marks as an error gets the red border, not only those with aria-invalid
      (B05 text fields stayed dark while its select turned red). */
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld div.inputWrapper input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld div.inputWrapper select,
.ecc-form[data-site="eccouncil"] div.wFormContainer div.wForm form div.oneField.errFld div.inputWrapper textarea { border-color: #C02B0A !important; }
/* 3. Brochure-download template (every /…-brochure…/ page) on phones: the form's Elementor column is set to 50% width with no phone
      override, so the form was 165 px wide inside a 370 px row. On phones, the column holding a form takes the full width. */
@media (max-width: 767px) {
  .e-con.e-child:has(> .elementor-widget-shortcode .ecc-form) { --width: 100% !important; width: 100% !important; max-width: 100% !important; }
}

/* 2026-11-18 (client re-test row 27, enterprise-cybersecurity-services: "form is not aligned, partially visible"). The form card
   (.codered-consultant-form-main, white with a shadow) has no padding of its own: on production Gravity Forms' .gform-body gave the
   fields 28px inside the card. With the direct form in its place the labels and fields touched the card's left edge. */
.codered-consultant-form-main .ecc-form[data-site="eccouncil"] { padding: 28px !important; box-sizing: border-box !important; }
@media (max-width: 767px) { .codered-consultant-form-main .ecc-form[data-site="eccouncil"] { padding: 20px 16px !important; } }

/* =====================================================================================================
   ecc-form design parity, re-test rows 62 / 75 / 90 ("Form design does not match live"), 2026-11-18.
   Append AFTER the existing rules in mu-plugins/ecc-forms/assets/ecc-form.css.
   Two production looks are matched:
     A. EFA enquiry forms (production form.efa-form; uatstage .ecc-form[data-legacy^="enq:"])
        row 62 home "Inquire now" modal (enq-181) and every course-card enquiry modal, row 75 /train-certify/ inline enq-1.
     B. Gravity form 94 (production #gform_94; uatstage .ecc-form[data-legacy="gf:eccouncil:94"]), row 90.
   Every selector is rooted by .ecc-form / .ecc-modal class (R-142). Attribute tests are only ever qualifiers of a class or element.
   ===================================================================================================== */

/* ---------- A. EFA enquiry forms ---------- */
/* Grid: production puts First/Last name side by side above 640px and every other field full width (Email and Phone too). */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form {
  grid-template-columns: 1fr 1fr !important; column-gap: 10px !important; row-gap: 15px !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form > div.oneField { grid-column: 1 / -1 !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="First name"]),
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]) { grid-column: auto !important; }
/* Labels: production shows small bold grey labels (12px/600 #77787B) and no required asterisk. */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField label.preField {
  margin: 0 0 6px !important; font-family: Roboto, sans-serif !important; font-size: 12px !important; font-weight: 600 !important;
  line-height: 18px !important; color: #77787B !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField label.preField.reqMark::after { content: none !important; }
/* Production text fields carry no label, only a placeholder. Once a placeholder is set (FormAssembly or ecc-forms.js), the label is
   hidden visually but kept for screen readers. Until then the label stays visible so no field is ever unlabelled. */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField:has(input[placeholder]:not([placeholder=""])) label.preField,
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField:has(textarea[placeholder]:not([placeholder=""])) label.preField {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
/* Inputs and selects: 48px tall, 10px padding, #DDD border, 4px radius, #787878 text (production .efa-form-group input/select). */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select,
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea {
  height: 48px !important; margin: 0 !important; padding: 10px !important; line-height: 26px !important;
  font-family: Roboto, sans-serif !important; font-size: 16px !important; color: #787878 !important;
  border: 1px solid #DDDDDD !important; border-radius: 4px !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select {
  padding-right: 25px !important; background-position: right 12px center !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea { height: 124px !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input::placeholder,
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea::placeholder { color: #787878; opacity: 1; }
/* Consent / notice copy: production 13px, dark, 21px line. */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.htmlSection,
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form span.ecc-consent-extra,
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] .ecc-notice,
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField span.oneChoice label.postField {
  font-family: Roboto, sans-serif !important; font-size: 13px !important; line-height: 21px !important; color: #222222 !important; }
/* Submit: production is a 200px x 48px bold button, centred; full width under 641px. */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.actions { padding: 8px 0 12px !important; margin: 0 !important; }
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction {
  width: 200px !important; height: 48px !important; padding: 11px 26px !important; line-height: 24px !important;
  font-family: Helvetica, Arial, sans-serif !important; font-weight: 700 !important; border-color: #ED0000 !important; }
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form { grid-template-columns: 1fr !important; row-gap: 10px !important; }
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="First name"]),
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]) { grid-column: 1 / -1 !important; }
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select {
    height: 46px !important; font-size: 15px !important; line-height: 24px !important; }
  /* 16px kept on the textarea: iOS zoom guard already in the served file. */
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction { width: 100% !important; }
}
/* EFA modal shell (home "Inquire now" + course cards): production box is 500px, 8px radius, no border, centred 24px/600 title over a divider. */
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"]) { max-width: 500px !important; border: 0 !important; border-radius: 8px !important; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"]) > .ecc-modal__title {
  justify-content: center; margin: 0 -24px 20px !important; padding: 4px 44px 12px !important; border-bottom: 1px solid #E5E5E5;
  font-family: Roboto, sans-serif !important; font-size: 24px !important; font-weight: 600 !important; color: #333333 !important; text-align: center; }
@media (max-width: 640px) {
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"]) > .ecc-modal__title { margin: 0 -16px 16px !important; font-size: 20px !important; }
}

/* ---------- B. Gravity form 94 look (/enterprise-cybersecurity-services/ "Request a Consultation") ---------- */
/* Heading: production prints "Request a Consultation" (Outfit 20px/600) over a divider; uatstage prints none.
   Stopgap in CSS until the shortcode outputs a real heading (title attribute); the text is decorative here, the page H1 carries meaning. */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"]::before {
  content: "Request a Consultation"; display: block; margin: -28px -28px 24px; padding: 16px 24px 16px;
  font-family: Outfit, "Plus Jakarta Sans", sans-serif; font-size: 20px; font-weight: 600; line-height: 28px; color: #2C3338;
  border-bottom: 1px solid #E4E4E7; }
/* Grid: two columns above 640px, pairs as production (First|Last, Email|Company, Phone|Country); the rest full width. */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form {
  grid-template-columns: 1fr 1fr !important; column-gap: 16px !important; row-gap: 14px !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField,
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.section { grid-column: 1 / -1 !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(input[title="First name"]),
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]),
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Phone"]),
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(select[title="Country"]) { grid-column: auto !important; }
/* Email + Company sit in a FormAssembly inline group: make it a two-column row of equal halves (was 197px + 197px, short of the row). */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.section.inline {
  display: grid !important; grid-template-columns: 1fr 1fr; column-gap: 16px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.section.inline > div.oneField {
  width: auto !important; margin: 0 !important; display: block !important; }
/* Labels: Plus Jakarta Sans 14px #18181B, 8px under. */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField label.preField {
  margin: 0 0 8px !important; font-family: "Plus Jakarta Sans", Roboto, sans-serif !important; font-size: 14px !important; font-weight: 400 !important;
  line-height: 21px !important; color: #18181B !important; }
/* Fields: 44px, 6px radius, #D4D4D8 border, 12px side padding, 14px #18181B text. */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="url"],
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select {
  height: 44px !important; margin: 0 !important; padding: 0 12px !important; line-height: 42px !important;
  font-family: Roboto, sans-serif !important; font-size: 14px !important; color: #18181B !important;
  border: 1px solid #D4D4D8 !important; border-radius: 6px !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select {
  font-family: "Plus Jakarta Sans", Roboto, sans-serif !important; padding-right: 32px !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea {
  height: 106px !important; padding: 8px !important; font-size: 16px !important; color: #787878 !important; border-radius: 8px !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input::placeholder { color: #71717A; opacity: 1; }
/* Notice copy 11-12px as production's agreement line. */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.htmlSection,
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form span.ecc-consent-extra,
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] .ecc-notice,
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField span.oneChoice label.postField {
  font-family: Roboto, sans-serif !important; font-size: 12px !important; line-height: 18px !important; color: #333333 !important; }
/* Submit: Plus Jakarta Sans 16px/500, #E11D2E, 6px radius, 127px x 48px. */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction {
  min-width: 127px !important; height: 48px !important; padding: 0 24px !important; line-height: 46px !important;
  font-family: "Plus Jakarta Sans", Roboto, sans-serif !important; font-weight: 500 !important;
  background: #E11D2E !important; border-color: #E11D2E !important; border-radius: 6px !important; }
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"]::before { margin: -16px -16px 20px; padding: 16px; }
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form { grid-template-columns: 1fr !important; }
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(input[title="First name"]),
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]),
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Phone"]),
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.oneField:has(select[title="Country"]) { grid-column: 1 / -1 !important; }
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form > div.section.inline { grid-template-columns: 1fr; row-gap: 14px; }
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select { font-size: 15px !important; }
}

/* =====================================================================================================
   ecc-form design parity, round 2 (2026-11-18): custom_modal_form popups (uatstage .ecc-form[data-legacy^="cmf:"], production
   Gravity forms 72 / 69 in .cmf-modal .modal-content). Reference: production /ethical-hacking-leaderboard/ "Request a Call back"
   (GF 72), measured 2026-11-18 at 1440 and 390:
     1440: box 685 px wide, 80 px padding, 10 px radius; title Inter 32/43 px 500 #2C3338; X 96 x 96 px top right (50 px, weight 100);
           First | Last side by side (11 px gap), every other field full width, about 24 px between rows; text fields 45 px, #787878 text, 2 px radius;
           select labels 12/20 px #77787B; text fields show a placeholder instead of a label.
     390:  full-screen sheet (390 x 900, no radius, no outer gap), padding 70 / 20 / 50, title 24.7 px, one column.
   Every selector is rooted by .ecc-modal / .ecc-form classes (R-142); attribute tests only qualify a class.
   The scroll structure of the popup (the form scrolls inside the box, "Scroll for more" band) is kept: only its insets change.
   ===================================================================================================== */
/* Box */
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) {
  max-width: 685px !important; padding: 72px 80px 24px !important; border-radius: 10px !important; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-form[data-ecc-styled] {
  margin-left: -80px !important; margin-right: -80px !important; padding: 0 80px !important; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-form[data-ecc-styled]::after { margin: 0 -80px !important; }
/* Close: production's large thin X in a 96 px corner box (also a larger touch target than the 44 px one). */
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-modal__close {
  top: 0 !important; right: 0 !important; width: 96px !important; height: 96px !important; font-size: 50px !important;
  font-weight: 100 !important; line-height: 96px !important; color: #1E1E1E !important; }
/* Title */
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-modal__title {
  display: block !important; min-height: 0 !important; margin: 0 0 8px !important; padding: 0 !important;
  font-family: Inter, Roboto, sans-serif !important; font-size: 32px !important; font-weight: 500 !important; line-height: 1.35 !important;
  color: #2C3338 !important; text-align: left !important; }
/* Grid: First | Last side by side, everything else full width (live rule puts Email | Phone side by side too). */
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form {
  grid-template-columns: 1fr 1fr !important; column-gap: 11px !important; row-gap: 24px !important; }
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form > div.oneField { grid-column: 1 / -1 !important; }
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="First name"]),
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]) { grid-column: auto !important; }
/* Labels: production select labels are 12/20 px #77787B, sitting right on the field. */
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField label.preField {
  margin: 0 0 2px !important; font-family: Helvetica, Arial, sans-serif !important; font-size: 12px !important; font-weight: 400 !important;
  line-height: 20px !important; color: #77787B !important; }
/* Text fields: label hidden visually (kept for screen readers) only once the field has a placeholder, as on the EFA forms. */
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField:has(input[placeholder]:not([placeholder=""])) label.preField,
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField:has(textarea[placeholder]:not([placeholder=""])) label.preField {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
/* Fields: production text colour #787878 (box, border and 2 px radius already match). */
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="text"],
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="email"],
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input[type="tel"],
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper select,
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea {
  color: #787878 !important; border-radius: 2px !important; }
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper input::placeholder,
.ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea::placeholder { color: #787878; opacity: 1; }
/* 390: full-screen sheet, as production. */
@media (max-width: 640px) {
  .ecc-modal:has(> .ecc-modal__box > .ecc-form[data-legacy^="cmf:"]) { padding: 0 !important; }
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) {
    max-width: none !important; height: 100% !important; padding: 70px 20px 0 !important; border: 0 !important; border-radius: 0 !important; }
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-form[data-ecc-styled] {
    margin-left: -20px !important; margin-right: -20px !important; padding: 0 20px !important; }
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-form[data-ecc-styled]::after { margin: 0 -20px !important; }
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="cmf:"]) > .ecc-modal__title { font-size: 24.7px !important; }
  .ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form { grid-template-columns: 1fr !important; }
  .ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="First name"]),
  .ecc-modal .ecc-form[data-site="eccouncil"][data-legacy^="cmf:"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]) { grid-column: 1 / -1 !important; }
}

/* ---------- Gravity form 94 heading: real <h3 class="ecc-form__heading"> (proposed inc/shim.php change prints it as the container's first child when the legacy
   [gravityform] call asks for the title, as Gravity did). Same look as the CSS stopgap above; the stopgap switches itself off
   as soon as the real heading is there, so the CSS can ship before or after the PHP change. ---------- */
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"]:has(> .ecc-form__heading)::before { content: none !important; display: none !important; }
.ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] > .ecc-form__heading {
  display: block; margin: -28px -28px 24px; padding: 16px 24px;
  font-family: Outfit, "Plus Jakarta Sans", sans-serif; font-size: 20px; font-weight: 600; line-height: 28px; color: #2C3338;
  text-transform: none; letter-spacing: normal; border-bottom: 1px solid #E4E4E7; }
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"][data-legacy="gf:eccouncil:94"] > .ecc-form__heading { margin: -16px -16px 20px; padding: 16px; }
}

/* =====================================================================================================
   Re-test row 62 (2026-11-19), home page "Course Inquiry" popup (course-card View Course, B01 enquiry_program) vs production
   #efa-modal-efa-enquiry-form-N. Measured with getComputedStyle on both hosts at 1440 (Chromium) and 390 (WebKit iPhone 13).
   Remaining visual differences after the 11-18 parity block, now matched to production:
     close X   production 28px / 400 / #999, ours was 32px / 100 / #1E1E1E (44 x 44 hit area kept, glyph centre unchanged);
               colour #888 instead of #999: #999 on white is 2.85:1, under the WCAG 3:1 for icons; #888 is 3.54:1 and looks the same
     box       production shadow 0 10px 30px rgba(0,0,0,.3) and 20px side inset (15px under 481px, box 370 wide at 390); ours .2 / 24px / 16px
     header    production title text 20px from the top, divider at 56px, first field at 77px (390: 15 / 49 / 70); ours 16 / 60 / 80
     consent   production 12px / 19.2px #000; ours 13px / 21px #222
     errors    production 14px #C0392B; ours 15px #C02B0A
     rows      390: production First/Last 10px apart, then 15px; ours 10px throughout
   Scope: popups whose form is an EFA Course Inquiry (B01 enquiry_program, legacy enq:). Download Brochure (B04), cmf: and every
   page form are unchanged. Every selector is rooted by a class (R-142); attribute tests only qualify .ecc-form. Phone flag, dial
   code and maxlength (rows 63 / 64) are not touched.
   ===================================================================================================== */
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) {
  padding: 0 20px 24px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .3) !important; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) > .ecc-modal__title {
  margin: 0 -20px 20px !important; padding: 20px 44px 10px !important; line-height: 26px !important; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) > .ecc-modal__close {
  font-family: Roboto, Arial, sans-serif !important; font-size: 28px !important; font-weight: 400 !important; color: #888888 !important; }
.ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) > .ecc-modal__close:hover { color: #333333 !important; }
.ecc-modal .ecc-modal__box > .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"][data-ecc-styled] {
  margin-left: -20px; margin-right: -20px; padding: 0 20px; }
.ecc-modal .ecc-modal__box > .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"][data-ecc-styled]::after { margin: 0 -20px; }
.ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] div.wFormContainer div.wForm form div.htmlSection,
.ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] div.wFormContainer div.wForm form span.ecc-consent-extra,
.ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] .ecc-notice,
.ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] div.wFormContainer div.wForm form div.oneField span.oneChoice label.postField {
  font-size: 12px !important; line-height: 19.2px !important; color: #000000 !important; }
.ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] div.wFormContainer div.wForm form div.errMsg {
  font-size: 14px !important; color: #C0392B !important; }
@media (max-width: 640px) {
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) > .ecc-modal__title {
    margin: 0 -15px 20px !important; padding: 15px 44px 10px !important; line-height: 24px !important; }
  .ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] div.wFormContainer div.wForm form { row-gap: 15px !important; }
  .ecc-modal .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"] div.wFormContainer div.wForm form > div.oneField:has(input[title="Last name"]) { margin-top: -5px !important; }
}
@media (max-width: 480px) {
  .ecc-modal:has(.ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) { padding: 10px; }
  .ecc-modal .ecc-modal__box:has(> .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"]) { padding: 0 15px 20px !important; }
  .ecc-modal .ecc-modal__box > .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"][data-ecc-styled] {
    margin-left: -15px; margin-right: -15px; padding: 0 15px; }
  .ecc-modal .ecc-modal__box > .ecc-form[data-legacy^="enq:"][data-form="B01"][data-variant="enquiry_program"][data-ecc-styled]::after { margin: 0 -15px; }
}

/* 2026-11-19 (Marketing Test rows 17 / 37): on the dark navy form panels (CRAGE, CCISO, CAIPM top forms; our script marks them
   data-ecc-surface="dark") the consent opt-in labels and notice copy were #222 on rgb(39,44,53), 1.13:1, i.e. invisible: the
   "Consent / notice copy" rule above (enq forms, #222 !important) won over the dark-surface rules earlier in this file. Same
   selectors plus the dark-surface attribute, so this wins only on dark panels: #E6E8EB, 11.42:1 (WCAG AA). Size and line height
   unchanged; light-panel forms unchanged (CEH 15.91:1). */
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.htmlSection,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form span.ecc-consent-extra,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"][data-legacy^="enq:"] .ecc-notice,
.ecc-form[data-ecc-surface="dark"][data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.oneField span.oneChoice label.postField { color: #E6E8EB !important; }

/* 2026-11-19 (Re-Testing row 45, /train-certify/ top form: Country 156px while the other drop-downs are 322px).
   mu-plugins/ecc-uat-parity.php prints, from 768px, a rule pairing Country (tfa_83) with Program interest (tfa_91) side by side
   (grid-column: auto !important). FormAssembly form 5 now hides Program interest (offstate), so Country sat alone in one half-width
   column. When the pair partner is hidden, Country spans the full row like every other field; when Program interest is shown, the
   pairing is kept. Two ids outrank the parity rule's one id. Attribute tests are rooted by .ecc-form (R-142). */
.ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form:has(> div#tfa_91-D:is(.offstate, .wf-acl-hidden)) > div#tfa_83-D.oneField { grid-column: 1 / -1 !important; }

/* 2026-11-19 (Re-Testing row 97, /ai-courses/ "fields not in correct order"): production's Gravity form 116 puts First and Last
   name on one row; uatstage stacked every field full width. For the gf116 page form only (containers ecc-form-gf116-*, the same
   test ecc-forms.js uses), First and Last name sit side by side above 640px and every other field stays full width, in the order
   ecc-forms.js already sets. Country stays visible (required on FormAssembly form 5). Labels stay visible: the gf116 text fields
   carry no placeholder of their own, so hiding labels would leave them unlabelled. Every attribute test is rooted by .ecc-form (R-142). */
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; column-gap: 10px !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form > * { grid-column: 1 / -1 !important; }
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form > div#tfa_2-D.oneField,
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form > div#tfa_4-D.oneField { grid-column: auto !important; min-width: 0; }
@media (max-width: 640px) {
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form > div#tfa_2-D.oneField,
  .ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form > div#tfa_4-D.oneField { grid-column: 1 / -1 !important; }
}

/* 2026-11-19 (Re-Testing row 110; also row 37's View Course message): once a popup form has given way to its thank-you message
   (container data-ecc-inplace="done"), the popup shrinks to the message as production's does. The reserved-height float (::before,
   --ecc-form-min-h, 28rem) and the "Scroll for more" hint kept a ~450 px empty white box under the message.
   Class roots only; every attribute selector follows a class; no !important (R-142). */
.ecc-modal .ecc-modal__box > .ecc-form.ecc-form[data-ecc-inplace="done"]::before { height: 0; }
.ecc-modal .ecc-modal__box > .ecc-form.ecc-form[data-ecc-inplace="done"] { overflow-y: visible; }
.ecc-modal .ecc-modal__box.ecc-modal__box:has(> .ecc-form[data-ecc-inplace="done"])::after { content: none; display: none; }

/* 2026-11-19 lane W (CEH iPad mini 744): production's enquiry button (.efa-submit-btn, enquiry-form-plugin frontend.min.css) is
   width 100% / max-width 200px, and max-width 100% at max-width 768px, so between 641px and 768px it fills the form card. The rule
   above switched to full width only under 641px, leaving a 200px button on iPad mini / small tablets. Same breakpoint as production. */
@media (min-width: 641px) and (max-width: 768px) {
  .ecc-form[data-site="eccouncil"][data-legacy^="enq:"] div.wFormContainer div.wForm form div.actions input[type="submit"].primaryAction { width: 100% !important; }
}

/* RT1, UAT re-test 2026-11-20 row 13 (CEH on iPad mini: "card alignment is not proper"). In the related-course cards
   (CCISO / CHFI / CPENT, "View Course") the description widget .card-content is a fixed 120 px tall while its text needs
   180-200 px at 176 px card width, so the text ran under the "View Course" button (same on production). Below 1025 px the
   description takes its own height; the card grows and the button sits under the text. Class roots only (R-142). */
@media (max-width: 1024px) {
  .elementor-inner-column .elementor-widget-heading.card-content { height: auto !important; }
  .elementor-inner-column .elementor-widget-heading.card-content > .elementor-widget-container { margin-bottom: 0 !important; }
}

/* 2026-11-20 RT2 row 87: visually hidden label (kept for screen readers) on the /ai-courses/ gf116 form text fields, as production. Class roots only (R-142). */
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form label.preField.ecc-sr {
  position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
/* RT2b: message box at production height (~96px) instead of FormAssembly's 288px; user can still drag it taller. Rooted by element (R-142). */
.ecc-form[data-site="eccouncil"][id^="ecc-form-gf116-"] div.wFormContainer div.wForm form div.oneField div.inputWrapper textarea[id^="tfa_"] {
  height: 96px !important; min-height: 96px !important; }
/* 2026-11-20 ecc-country-geo: Country wrapper hidden once auto-filled (rooted selector, R-142). Shown again by the script if FormAssembly flags the field. */
.ecc-form .oneField.ecc-geo-hidden { display: none !important; }
/* Row 65 (2026-11-20): modal titles print as <p class="ecc-modal__title"> (not <h3>) so the 89 hidden popup shells add no headings to the page outline (production has none). Keeps the look the h3 had: the only computed style the theme's h3 rule added that p lacks is letter-spacing -0.25px; margins/size/weight/line-height come from the .ecc-modal__title rules above. */
.ecc-modal .ecc-modal__box p.ecc-modal__title { letter-spacing: -0.25px; }
