/* ============================================================================
   Car Claims Check: the claim journey 1.0.1 (2026-10-20, copy ccc-forms-v1).

   WHAT IT STYLES: Gravity Forms 1 (/find-my-agreements/) and 2 (/mo) in the client's look, their four steps
   (about you, address, contact + the four statements, sign), the address lookup, the signature step laid out as
   the reference sign page, the final-submit wait line, the one-time-code box, the closing messages, and the
   two journey pages' own layout (.ccc-fma*, the /mo page). msp-custom.v1.css styles everything else
   and loads first; this file reads its tokens (--msp-navy, --msp-orange, --msp-font, ...) with fallbacks, so it
   works on its own too.

   THE CLIENT'S LOOK (carclaimscheck.com/find-my-agreements/, captured 2026-10-20; their Elementor post-11 and
   custom CSS quoted where a value comes from them):
   - labels sit ON the box's top border, on white, 15px in from the left (".gfield_label { padding: 0 10px;
     margin-left: 15px; background-color: #ffffff; position: relative }" + ".ginput_container_text { margin-top:
     -20px }"); boxes #8C8C8C 1px, 5px corners; the date of birth is one bordered group of three selects
     ("div#input_10_31 { border: solid 1px #C4C4C4; padding: 20px 10px 10px; border-radius: 5px }");
   - no asterisks and no "* indicates required fields" line ("span.gfield_required { display: none }");
   - buttons full width, navy #060360, hover orange #FF9C00 (Next) / #FFC300 (submit);
   - the sign page: "Please sign below to start your claim", the pad (dashed #DDDDDD, 180px), the text centred in
     small type with the first and last sentences in bold, then the full-width button.
   Departures, on purpose: Previous stays visible (theirs hides it), the sign-page text is 13-14px (theirs 11-12px),
   every control is 44px or more, and focus is always visible.

   Specificity: "html body #gform_wrapper_N" out-ranks Gravity Forms' orbital rules (0,4,0) and the inline
   variables it prints per form. Cache: security-hardening.php enqueues this file with ?ver = the first 12 hex of the
   deployed file's md5, so a change gets a new URL by itself; purge Cloudflare and compare the served bytes anyway.
   ========================================================================== */

:root {
    --ccc-navy:   var(--msp-navy, #060360);
    --ccc-orange: var(--msp-orange, #FF9C00);
    --ccc-star:   var(--msp-star, #FFC300);
    --ccc-cream:  var(--msp-cream, #FFFDF7);
    --ccc-field:  var(--msp-field, #8C8C8C);
    --ccc-group:  #C4C4C4;                       /* their date-of-birth group border */
    --ccc-pad:    #DDDDDD;                       /* the reference sign page: the pad's dashed border */
    --ccc-muted:  var(--msp-muted, #3B3A6E);
    --ccc-line:   var(--msp-line, #E6E6EE);
    --ccc-danger: var(--msp-danger, #B3141B);
    --ccc-font:   var(--msp-font, "Mulish", "Muli", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
    --ccc-display: var(--msp-display, "Poppins", "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
    --ccc-radius: 5px;
    --ccc-t:      .2s;
}

/* ---- Gravity Forms' own variables, retinted (forms 1 and 2) ---- */
html body #gform_wrapper_1[data-form-index].gform-theme,
html body #gform_wrapper_2[data-form-index].gform-theme {
    --gf-color-primary: #060360; --gf-color-primary-rgb: 6, 3, 96; --gf-color-primary-contrast: #FFFFFF; --gf-color-primary-contrast-rgb: 255, 255, 255;
    --gf-color-primary-darker: #03013A; --gf-color-primary-lighter: #2A2780;
    --gf-color-secondary: #FFFFFF; --gf-color-secondary-contrast: #060360; --gf-color-secondary-contrast-rgb: 6, 3, 96; --gf-color-secondary-darker: #F4F4F8;
    --gf-color-out-ctrl-dark: #060360; --gf-color-out-ctrl-dark-rgb: 6, 3, 96; --gf-color-out-ctrl-dark-darker: #03013A; --gf-color-out-ctrl-dark-lighter: #3B3A6E;
    --gf-color-out-ctrl-light: rgba(6, 3, 96, .12); --gf-color-out-ctrl-light-darker: #8C8C8C;
    --gf-color-in-ctrl: #FFFFFF; --gf-color-in-ctrl-contrast: #060360; --gf-color-in-ctrl-contrast-rgb: 6, 3, 96;
    --gf-color-in-ctrl-primary: #060360; --gf-color-in-ctrl-primary-rgb: 6, 3, 96; --gf-color-in-ctrl-primary-contrast: #FFFFFF;
    --gf-color-in-ctrl-primary-darker: #03013A; --gf-color-in-ctrl-primary-lighter: #2A2780;
    --gf-color-in-ctrl-light: rgba(6, 3, 96, .12); --gf-color-in-ctrl-light-darker: #8C8C8C; --gf-color-in-ctrl-dark: #060360; --gf-color-in-ctrl-dark-darker: #03013A;
    --gf-color-danger: #B3141B; --gf-color-danger-rgb: 179, 20, 27;
    --gf-radius: 5px; --gf-font-size-secondary: 14px; --gf-font-size-tertiary: 13px;
    font-family: var(--ccc-font);
}
#gform_wrapper_1, #gform_wrapper_2 { font-family: var(--ccc-font); color: var(--ccc-navy); }
#gform_wrapper_1 .gform_heading, #gform_wrapper_2 .gform_heading { display: none; }
html body #gform_wrapper_1 .gform_required_legend, html body #gform_wrapper_2 .gform_required_legend,
html body #gform_wrapper_1 .gfield_required, html body #gform_wrapper_2 .gfield_required { display: none !important; }   /* theirs */
#gform_wrapper_1 .gf_progressbar_wrapper, #gform_wrapper_2 .gf_progressbar_wrapper { display: none !important; }   /* their form shows no progress bar */
html body #gform_wrapper_1 .gform_fields, html body #gform_wrapper_2 .gform_fields { row-gap: 22px !important; column-gap: 12px !important; }
html body #gform_wrapper_1 .gfield, html body #gform_wrapper_2 .gfield { margin: 0 !important; }

/* ---- the floating label: on the box's top border, on white (theirs) ---- */
html body #gform_wrapper_1 .gfield:not(.gfield--type-checkbox):not(.gfield--type-html) > .gfield_label,
html body #gform_wrapper_2 .gfield:not(.gfield--type-checkbox):not(.gfield--type-html) > .gfield_label,
html body #gform_wrapper_1 .gfield--type-date > legend.gfield_label,
html body #gform_wrapper_2 .gfield--type-date > legend.gfield_label {
    position: relative; z-index: 2; display: inline-block !important; float: none !important; width: auto !important;
    margin: 0 0 -9px 15px !important; padding: 0 10px !important; background: #FFFFFF;
    color: var(--ccc-navy) !important; font: 700 14px/18px var(--ccc-font) !important; letter-spacing: 0 !important;
}
/* GF puts a hidden_label class on the gfield (the four statements): their legend is for screen readers only */
html body #gform_wrapper_1 .hidden_label > .gfield_label, html body #gform_wrapper_2 .hidden_label > .gfield_label,
html body #gform_wrapper_1 .gfield_label.screen-reader-text, html body #gform_wrapper_2 .gfield_label.screen-reader-text,
.ccc-sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important;
}
#gform_wrapper_1 .gfield_description, #gform_wrapper_2 .gfield_description,
#gform_wrapper_1 .gform-field-label--type-sub, #gform_wrapper_2 .gform-field-label--type-sub { color: var(--ccc-muted) !important; font-size: 13px !important; line-height: 1.45 !important; }

/* ---- boxes ---- */
html body #gform_wrapper_1 input[type="text"], html body #gform_wrapper_1 input[type="email"], html body #gform_wrapper_1 input[type="tel"], html body #gform_wrapper_1 select,
html body #gform_wrapper_2 input[type="text"], html body #gform_wrapper_2 input[type="email"], html body #gform_wrapper_2 input[type="tel"], html body #gform_wrapper_2 select {
    width: 100%; min-height: 52px !important; min-block-size: 52px !important; margin: 0 !important; padding: 15px 14px 9px 15px !important; box-sizing: border-box !important;
    background-color: #FFFFFF !important; color: var(--ccc-navy) !important;
    border: 1px solid var(--ccc-field) !important; border-radius: var(--ccc-radius) !important; box-shadow: none !important;
    font: 400 16px/1.3 var(--ccc-font) !important;
    transition: border-color var(--ccc-t) ease !important;
}
html body #gform_wrapper_1 select, html body #gform_wrapper_2 select { padding-right: 36px !important; cursor: pointer; }
html body #gform_wrapper_1 input:focus, html body #gform_wrapper_1 select:focus,
html body #gform_wrapper_2 input:focus, html body #gform_wrapper_2 select:focus {
    border-color: var(--ccc-navy) !important; outline: 2px solid var(--ccc-navy) !important; outline-offset: 1px !important; box-shadow: none !important;
}
#gform_wrapper_1 input::placeholder, #gform_wrapper_2 input::placeholder { color: #6B6B80 !important; opacity: 1; }
/* the mobile number and email checks mark a box aria-invalid="true" (security-hardening.php): red border, kept while focused */
html body #gform_wrapper_1 input[aria-invalid="true"], html body #gform_wrapper_2 input[aria-invalid="true"] { border-color: var(--ccc-danger) !important; }

/* ---- page 1: the line under the heading, Title + names on one row from 640px (theirs: 1/4, 5/12, 1/3) ---- */
#gform_wrapper_1 .ccc-step-intro p, #gform_wrapper_2 .ccc-step-intro p { margin: 0; color: var(--ccc-navy); font: 400 15px/1.6 var(--ccc-font); }
@media (min-width: 640px) {
    html body #gform_wrapper_1 #field_1_26, html body #gform_wrapper_2 #field_2_26 { grid-column: span 3 !important; }
    html body #gform_wrapper_1 #field_1_1, html body #gform_wrapper_2 #field_2_1 { grid-column: span 5 !important; }
    html body #gform_wrapper_1 #field_1_2, html body #gform_wrapper_2 #field_2_2 { grid-column: span 4 !important; }
}

/* ---- date of birth: one bordered group of three selects (theirs) ---- */
html body #gform_wrapper_1 .gfield--type-date .ginput_complex, html body #gform_wrapper_2 .gfield--type-date .ginput_complex {
    display: flex !important; flex-wrap: nowrap !important; gap: 10px !important; width: 100% !important; margin: 0 !important;
    padding: 20px 10px 10px !important; box-sizing: border-box; border: 1px solid var(--ccc-group); border-radius: var(--ccc-radius);
}
html body #gform_wrapper_1 .gfield--type-date .gform-grid-col, html body #gform_wrapper_2 .gfield--type-date .gform-grid-col { flex: 1 1 0 !important; min-width: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
html body #gform_wrapper_1 .gfield--type-date select, html body #gform_wrapper_2 .gfield--type-date select { min-height: 46px !important; min-block-size: 46px !important; padding: 10px 28px 10px 10px !important; }

/* ---- page 2: the address history ---- */
#gform_wrapper_1 #field_1_57, #gform_wrapper_2 #field_2_57 { padding-top: 6px; border-top: 1px solid var(--ccc-line); }

/* ---- page 3: the two headings, then the four statements ---- */
#gform_wrapper_1 .ccc-step-h h2, #gform_wrapper_2 .ccc-step-h h2 { margin: 0 !important; color: var(--ccc-navy) !important; font: 700 18px/1.35 var(--ccc-font) !important; letter-spacing: 0 !important; text-transform: none !important; }
html body #gform_wrapper_1 #field_1_64, html body #gform_wrapper_1 #field_1_65,
html body #gform_wrapper_2 #field_2_64, html body #gform_wrapper_2 #field_2_65 { margin-bottom: -8px !important; }

/* ---- page 3 (after the email): the four statements, as cards (each its own required box) ---- */
#gform_wrapper_1 .ccc-statements-intro p, #gform_wrapper_2 .ccc-statements-intro p { margin: 0; padding-top: 18px; border-top: 1px solid var(--ccc-line); color: var(--ccc-navy); font: 700 16px/1.5 var(--ccc-font); }
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice, html body #gform_wrapper_2 .gfield--type-checkbox .gchoice {
    display: flex !important; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 14px 16px;
    background: #FFFFFF; border: 1px solid var(--ccc-field); border-radius: var(--ccc-radius); transition: border-color var(--ccc-t), background-color var(--ccc-t);
}
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice:hover, html body #gform_wrapper_2 .gfield--type-checkbox .gchoice:hover { border-color: var(--ccc-navy); background: var(--ccc-cream); }
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice:has(input:checked), html body #gform_wrapper_2 .gfield--type-checkbox .gchoice:has(input:checked) { border-color: var(--ccc-navy); background: var(--ccc-cream); }
html body #gform_wrapper_1 .gfield--type-checkbox input[type="checkbox"], html body #gform_wrapper_2 .gfield--type-checkbox input[type="checkbox"] {
    flex: none; position: relative; z-index: 1; width: 22px !important; height: 22px !important; min-width: 22px; margin: 1px 0 0 !important; accent-color: var(--ccc-navy); cursor: pointer;
}   /* above the card overlay below, so a tap on the box itself is a tap on the box */
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice label, html body #gform_wrapper_2 .gfield--type-checkbox .gchoice label {
    flex: 1; margin: 0 !important; padding: 0 !important; max-width: none !important; color: var(--ccc-navy) !important; font: 400 15px/1.55 var(--ccc-font) !important; cursor: pointer;
}
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice label a, html body #gform_wrapper_2 .gfield--type-checkbox .gchoice label a { color: var(--ccc-navy); text-decoration: underline; text-underline-offset: 2px; }
/* the whole card ticks the box (WCAG 2.5.8), except a card whose label holds a link (statement 3): there the overlay
   would swallow the link, so only the box and the words tick it */
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice:not(:has(a)), html body #gform_wrapper_2 .gfield--type-checkbox .gchoice:not(:has(a)) { position: relative; }
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice:not(:has(a)) label::after, html body #gform_wrapper_2 .gfield--type-checkbox .gchoice:not(:has(a)) label::after { content: ""; position: absolute; inset: 0; border-radius: var(--ccc-radius); }
html body #gform_wrapper_1 .gfield--type-checkbox.gfield_error .gchoice, html body #gform_wrapper_2 .gfield--type-checkbox.gfield_error .gchoice { border: 2px solid var(--ccc-danger); }
html body #gform_wrapper_1 .gfield--type-checkbox .gchoice:focus-within, html body #gform_wrapper_2 .gfield--type-checkbox .gchoice:focus-within { outline: 2px solid var(--ccc-navy); outline-offset: 2px; }

/* ---- page 4: the sign step, as the reference sign page ---- */
#gform_wrapper_1 .ccc-sign-head, #gform_wrapper_2 .ccc-sign-head { text-align: center; }
#gform_wrapper_1 .ccc-sign-head .ccc-sign-lead, #gform_wrapper_2 .ccc-sign-head .ccc-sign-lead { margin: 0 0 18px; color: var(--ccc-navy); font: 400 18px/1.4 var(--ccc-font); }
#gform_wrapper_1 .ccc-sign-head .ccc-sign-lead strong, #gform_wrapper_2 .ccc-sign-head .ccc-sign-lead strong { font-weight: 800; }
#gform_wrapper_1 .ccc-sign-head .ccc-sign-label, #gform_wrapper_2 .ccc-sign-head .ccc-sign-label { margin: 0; color: var(--ccc-navy); font: 700 15px/1.3 var(--ccc-font); text-align: left; }
html body .mpc-sig-wrap { margin: 8px 0 0 !important; }
html body .mpc-sig-title { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }   /* "Please Sign" above names it */
html body .mpc-sig-padbox { position: relative; background: #FFFFFF !important; border: 2px dashed var(--ccc-pad) !important; border-radius: 0 !important; overflow: hidden; }
html body .mpc-sig-padbox:focus { outline: 3px solid var(--ccc-navy); outline-offset: 2px; }
html body .mpc-sig-canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
html body .mpc-sig-baseline { position: absolute; left: 16px; right: 16px; bottom: 30px; border-bottom: 1px solid var(--ccc-line); color: var(--ccc-muted) !important; font-size: 12px; text-align: center; pointer-events: none; }
html body #gform_wrapper_1 .mpc-sig-clear, html body #gform_wrapper_2 .mpc-sig-clear {
    display: block; min-block-size: 44px !important; min-height: 44px !important; min-width: 72px; margin: 8px 0 0 auto !important; padding: 8px 16px !important;
    background: #FFFFFF !important; color: var(--ccc-navy) !important; border: 1px solid var(--ccc-navy) !important; border-radius: var(--ccc-radius) !important; box-shadow: none !important;
    font: 700 14px/1 var(--ccc-font) !important; cursor: pointer;
}
html body #gform_wrapper_1 .mpc-sig-clear:hover, html body #gform_wrapper_2 .mpc-sig-clear:hover { background: var(--ccc-navy) !important; color: #FFFFFF !important; }
html body .mo-sign-helper { position: absolute; top: 10px; left: 12px; color: var(--ccc-muted); font: 700 13px/1 var(--ccc-font); pointer-events: none; }
/* the client's sign-page text under the pad: centred, small, first and last sentences bold */
html body .mpc-sig-legal { margin: 18px 0 0 !important; color: var(--ccc-navy) !important; font: 400 13px/1.6 var(--ccc-font) !important; text-align: center; }
html body .mpc-sig-legal p, html body .mpc-sig-legal ul, html body .mpc-sig-legal li { font-size: inherit !important; line-height: inherit !important; color: inherit !important; }
html body .mpc-sig-legal .msp-sig-intro, html body .mpc-sig-legal .msp-sig-close { margin: 0 0 10px !important; font-size: 14px !important; }
html body .mpc-sig-legal .msp-sig-close { margin: 10px 0 0 !important; }
html body .mpc-sig-legal strong, html body .mpc-sig-legal b { font-weight: 800 !important; }   /* the opening and closing sentences (theirs bold); a reset elsewhere set it back to normal */
html body .mpc-sig-legal ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
html body .mpc-sig-legal li { margin: 0 0 4px !important; padding: 0 !important; }
html body .mpc-sig-legal li::before { content: "\2022\00a0"; }
html body .mpc-sig-legal a { color: var(--ccc-navy); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
html body .mpc-sign-msg { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--ccc-radius); background: #FFF4F4; border: 2px solid var(--ccc-danger); color: var(--ccc-danger); font: 700 14px/1.4 var(--ccc-font); text-align: left; }

/* ---- buttons: Next / Previous / Find My Agreement(s) ---- */
html body #gform_wrapper_1 .gform_page_footer, html body #gform_wrapper_1 .gform-page-footer, html body #gform_wrapper_1 .gform_footer,
html body #gform_wrapper_2 .gform_page_footer, html body #gform_wrapper_2 .gform-page-footer, html body #gform_wrapper_2 .gform_footer {
    display: flex !important; flex-wrap: wrap; align-items: center; gap: 10px !important; margin: 24px 0 0 !important; padding: 0 !important; border: 0 !important;
}
html body #gform_wrapper_1 .gform_next_button, html body #gform_wrapper_1 .gform_button, html body #gform_wrapper_1 #gform_submit_button_1,
html body #gform_wrapper_2 .gform_next_button, html body #gform_wrapper_2 .gform_button, html body #gform_wrapper_2 #gform_submit_button_2 {
    order: 1; flex: 1 1 100%; width: 100% !important; min-height: 48px !important; min-block-size: 48px !important; margin: 0 !important; padding: 12px 20px !important;
    background: var(--ccc-navy) !important; color: #FFFFFF !important; border: 0 !important; border-radius: var(--ccc-radius) !important; box-shadow: none !important;
    font: 700 16px/1.2 var(--ccc-font) !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer;
    transition: background-color var(--ccc-t) ease, color var(--ccc-t) ease !important;
}
/* their hovers: orange on Next, star yellow on the submit; navy text on both (white on #FF9C00 is 2.1:1) */
html body #gform_wrapper_1 .gform_next_button:hover, html body #gform_wrapper_2 .gform_next_button:hover { background: var(--ccc-orange) !important; color: var(--ccc-navy) !important; }
html body #gform_wrapper_1 #gform_submit_button_1:not([disabled]):hover, html body #gform_wrapper_2 #gform_submit_button_2:not([disabled]):hover { background: var(--ccc-star) !important; color: var(--ccc-navy) !important; }
html body #gform_wrapper_1 .gform_next_button:focus-visible, html body #gform_wrapper_2 .gform_next_button:focus-visible,
html body #gform_wrapper_1 #gform_submit_button_1:focus-visible, html body #gform_wrapper_2 #gform_submit_button_2:focus-visible,
html body #gform_wrapper_1 .gform_previous_button:focus-visible, html body #gform_wrapper_2 .gform_previous_button:focus-visible { outline: 3px solid var(--ccc-orange) !important; outline-offset: 2px !important; }
html body #gform_wrapper_1 .gform_previous_button, html body #gform_wrapper_2 .gform_previous_button {
    order: 2; flex: 1 1 100%; width: 100% !important; min-height: 44px !important; min-block-size: 44px !important; margin: 0 !important; padding: 10px 18px !important;
    background: #FFFFFF !important; color: var(--ccc-navy) !important; border: 1px solid var(--ccc-navy) !important; border-radius: var(--ccc-radius) !important; box-shadow: none !important;
    font: 700 15px/1.2 var(--ccc-font) !important; letter-spacing: 0 !important; text-transform: none !important;
}
html body #gform_wrapper_1 .gform_previous_button:hover, html body #gform_wrapper_2 .gform_previous_button:hover { background: var(--ccc-cream) !important; }
html body #gform_wrapper_1 button[disabled], html body #gform_wrapper_1 input[type="submit"][disabled],
html body #gform_wrapper_2 button[disabled], html body #gform_wrapper_2 input[type="submit"][disabled] { opacity: .45 !important; cursor: not-allowed !important; }
/* CRO S5: the disabled submit lets a tap through to its footer, which says why (sign first) */
html body #gform_wrapper_1 #gform_submit_button_1[disabled], html body #gform_wrapper_2 #gform_submit_button_2[disabled] { pointer-events: none !important; }
html body .gform_page_footer .gform_next_button.addr-locked { opacity: .45 !important; cursor: not-allowed !important; }   /* CRO S1: still tappable; a tap says why */
#gform_wrapper_1 .gform-loader, #gform_wrapper_1 .gform_ajax_spinner, #gform_wrapper_2 .gform-loader, #gform_wrapper_2 .gform_ajax_spinner { border-left-color: var(--ccc-orange) !important; }

/* ---- validation ---- */
html body #gform_wrapper_1 .gform_validation_errors, html body #gform_wrapper_2 .gform_validation_errors { margin: 0 0 18px !important; padding: 12px 14px !important; background: #FFF4F4 !important; border: 2px solid var(--ccc-danger) !important; border-radius: var(--ccc-radius) !important; box-shadow: none !important; }
html body #gform_wrapper_1 .gform_validation_errors h2, html body #gform_wrapper_2 .gform_validation_errors h2 { color: var(--ccc-danger) !important; font: 700 15px/1.4 var(--ccc-font) !important; }
html body #gform_wrapper_1 .gfield_error input, html body #gform_wrapper_1 .gfield_error select,
html body #gform_wrapper_2 .gfield_error input, html body #gform_wrapper_2 .gfield_error select { border-color: var(--ccc-danger) !important; }
html body #gform_wrapper_1 .gfield_error.gfield--type-date .ginput_complex, html body #gform_wrapper_2 .gfield_error.gfield--type-date .ginput_complex { border-color: var(--ccc-danger); }
html body #gform_wrapper_1 .validation_message, html body #gform_wrapper_2 .validation_message,
html body #gform_wrapper_1 .gfield_validation_message, html body #gform_wrapper_2 .gfield_validation_message { margin-top: 6px !important; padding: 0 !important; background: none !important; border: 0 !important; color: var(--ccc-danger) !important; font: 700 13px/1.4 var(--ccc-font) !important; }
/* msp-leads' refusal (off mode) and signature messages replace GF's summary */
.msp-form-error { color: var(--ccc-danger) !important; font: 700 15px/1.45 var(--ccc-font) !important; }
.gform_confirmation_message.msp-form-error { margin: 0; padding: 14px 16px; background: #FFF4F4; border: 2px solid var(--ccc-danger); border-radius: var(--ccc-radius); }

/* ---- the address lookup (getaddress-lookup prints its own inline <style>; the wrapper id wins) ---- */
html body #gform_wrapper_1 .address-search-btn, html body #gform_wrapper_2 .address-search-btn {
    height: 52px; min-height: 52px; min-block-size: 52px; padding: 0 18px; border: 0; border-radius: var(--ccc-radius); box-shadow: none;
    background: var(--ccc-navy); color: #FFFFFF; font: 700 15px/1 var(--ccc-font); letter-spacing: 0; text-transform: none; opacity: 1;
}
html body #gform_wrapper_1 .address-search-btn:hover, html body #gform_wrapper_2 .address-search-btn:hover { background: var(--ccc-orange); color: var(--ccc-navy); }
html body #gform_wrapper_1 .address-search-btn:hover svg, html body #gform_wrapper_2 .address-search-btn:hover svg { fill: var(--ccc-navy); }
body .address-dropdown { border: 1px solid var(--ccc-navy); border-radius: var(--ccc-radius); }
body .address-dropdown-item { font-size: 15px; color: var(--ccc-navy); }
body .address-dropdown-item:hover, body .address-dropdown-item:focus { background: var(--ccc-cream); }
body .address-manual-link, body .address-selected-summary .addr-change { color: var(--ccc-navy); }
body .address-helper { color: var(--ccc-muted); }
body .address-selected-summary { background: var(--ccc-cream); border: 1px solid var(--ccc-navy); color: var(--ccc-navy); }
@media (max-width: 420px) {
    html body #gform_wrapper_1 .address-search-btn, html body #gform_wrapper_2 .address-search-btn { padding: 0 12px; font-size: 14px; }
    html body #gform_wrapper_1 .address-search-btn svg, html body #gform_wrapper_2 .address-search-btn svg { display: none; }
}

/* ---- the final-submit wait line (msp-leads.js) ---- */
.msp-wait { order: 3; flex: 1 1 100%; display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; background: var(--ccc-cream); border: 1px solid var(--ccc-navy); border-radius: var(--ccc-radius); color: var(--ccc-navy); font: 700 14px/1.45 var(--ccc-font); opacity: 0; }
.msp-wait.is-on { opacity: 1; }
.msp-wait__spin { flex: none; width: 18px; height: 18px; margin-top: 1px; border: 3px solid var(--ccc-line); border-top-color: var(--ccc-orange); border-radius: 50%; animation: ccc-spin 1s linear infinite; }
@keyframes ccc-spin { to { transform: rotate(360deg); } }
.msp-wait--fail { display: block; background: #FFF4F4; border: 2px solid var(--ccc-danger); color: var(--ccc-danger); }
.msp-wait a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
#gform_wrapper_1.msp-waiting .gform-loader, #gform_wrapper_2.msp-waiting .gform-loader { display: none !important; }
#gform_wrapper_1.msp-waiting .gform-has-spinner, #gform_wrapper_2.msp-waiting .gform-has-spinner { -webkit-text-fill-color: currentColor !important; cursor: progress !important; }
#gform_wrapper_1.msp-wait-failed .gform_page_footer button, #gform_wrapper_1.msp-wait-failed .gform_footer button,
#gform_wrapper_1.msp-wait-failed .gform_page_footer input[type="submit"], #gform_wrapper_2.msp-wait-failed .gform_page_footer input[type="submit"],
#gform_wrapper_2.msp-wait-failed .gform_footer button, #gform_wrapper_2.msp-wait-failed .gform_page_footer button { opacity: .45 !important; pointer-events: none !important; cursor: not-allowed !important; }

/* ---- the one-time-code box (msp-leads; it replaces the form) ---- */
.msp-otp { margin: 0; color: var(--ccc-navy); font-family: var(--ccc-font); }
.msp-otp:focus { outline: none; }
.msp-otp .msp-otp-h { margin: 0 0 8px !important; color: var(--ccc-navy) !important; font: 800 22px/1.25 var(--ccc-font) !important; letter-spacing: 0 !important; }
.msp-otp .msp-otp-p { margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.msp-otp-form { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 14px; }
.msp-otp-form label { flex: 1 1 100%; margin: 0; color: var(--ccc-navy); font: 700 14px/1.35 var(--ccc-font); }
.msp-otp-form input { flex: 1 1 180px; min-width: 0; min-height: 52px; margin: 0; padding: 10px 14px; box-sizing: border-box; background: #FFFFFF; color: var(--ccc-navy); border: 1px solid var(--ccc-field); border-radius: var(--ccc-radius); font: 700 22px/1.2 var(--ccc-font); letter-spacing: .14em; }
.msp-otp-form input:focus { border-color: var(--ccc-navy); outline: 2px solid var(--ccc-navy); outline-offset: 1px; }
.msp-otp-form input:disabled { background: #F4F4F8; color: var(--ccc-muted); }
.msp-otp-button { flex: 1 1 140px; min-height: 52px; margin: 0; padding: 13px 22px; background: var(--ccc-navy); color: #FFFFFF; border: 0; border-radius: var(--ccc-radius); font: 700 17px/1.15 var(--ccc-font); cursor: pointer; }
.msp-otp-button:not([disabled]):hover { background: var(--ccc-star); color: var(--ccc-navy); }
.msp-otp-button:focus-visible { outline: 3px solid var(--ccc-orange); outline-offset: 2px; }
.msp-otp-button[disabled] { opacity: .55; cursor: progress; }
.msp-otp-status, .msp-otp-msg { flex: 1 1 100%; margin: 0; font-size: 14px; font-weight: 700; line-height: 1.45; }
.msp-otp-status:empty, .msp-otp-msg:empty { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; white-space: nowrap; }
.msp-otp-msg { padding: 10px 12px; background: #FFF4F4; border: 2px solid var(--ccc-danger); border-radius: var(--ccc-radius); color: var(--ccc-danger); }
.msp-otp .msp-otp-help { margin: 0; color: var(--ccc-muted); font-size: 14px; line-height: 1.5; }
.msp-otp a, .msp-outcome a { color: var(--ccc-navy); font-weight: 700; text-decoration: underline; }
/* the closing messages: where the form was, or in the code box */
.msp-outcome { padding: 18px 18px 16px; background: var(--ccc-cream); border: 1px solid var(--ccc-navy); border-radius: var(--ccc-radius); font-family: var(--ccc-font); color: var(--ccc-navy); }
.msp-outcome:focus { outline: none; }
.msp-outcome .msp-outcome__msg { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.msp-outcome .msp-outcome__ref { margin: 0; font-size: 16px; line-height: 1.55; }
.msp-outcome .msp-outcome__ref strong { white-space: nowrap; }

/* ============================================================================
   THE JOURNEY PAGES: /find-my-agreements/ and /mo, the client's layout:
   the form on the left, the "how it works" card on the right (below the form on phones) with the car resting on
   its top edge, then the navy band and two centred text sections.
   The car picture: img/ccc-car-small-277.webp beside this file (or set --ccc-car-small to another url()).
   Without it the card shows without the car.
   The page heading shows on the first step only (as the client's form), and is kept for screen readers after it.
   The sign step is one centred column without the side card (as the reference sign page); /mo keeps its card
   there, because it carries "Where we got your details". Both rules key on Gravity Forms hiding every page but
   the current one with an inline display:none; a browser without :has() keeps the two-column layout.
   ========================================================================== */
.ccc-fma { padding: 36px 0 56px; background: #FFFFFF; }
.ccc-fma__inner { max-width: calc(var(--msp-container, 1140px) + 2 * var(--msp-gutter, 20px)); margin: 0 auto; padding: 0 var(--msp-gutter, 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; box-sizing: border-box; }
.ccc-fma__form, .ccc-fma__card { min-width: 0; }
.ccc-fma__inner:has(#gform_page_1_1[style*="none"], #gform_page_2_1[style*="none"]) .ccc-fma__title {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip-path: inset(50%) !important; border: 0 !important; white-space: nowrap !important;
}
.ccc-fma:not(.ccc-mo) .ccc-fma__inner:has(.gform_page:not([style*="none"]) #gform_submit_button_1) .ccc-fma__card { display: none; }
.ccc-fma__title { margin: 0 0 6px; color: var(--ccc-navy); font: 800 clamp(1.875rem, 1.55rem + 1.3vw, 2.25rem)/1.2 var(--ccc-font); letter-spacing: 0; }
.ccc-fma__title span { white-space: nowrap; }
.ccc-fma__form .gform_wrapper { margin: 0; }
.ccc-fma__card {
    position: relative; align-self: start; margin-top: 70px; padding: 84px 24px 24px;
    background: var(--ccc-cream); border: 2px solid var(--ccc-navy); border-radius: var(--msp-radius-cta-m, 150px 30px 30px 30px);
    color: var(--ccc-navy); font-family: var(--ccc-font);
}
.ccc-fma__car {
    position: absolute; left: -8px; top: -70px; width: 240px; height: 132px; pointer-events: none;
    background: var(--ccc-car-small, url("img/ccc-car-small-277.webp")) left bottom / contain no-repeat;
}
.ccc-fma__lede { margin: 0 0 18px; font: 400 16px/1.5 var(--ccc-font); }
.ccc-fma__list { margin: 0 0 18px; padding: 0; list-style: none; }
.ccc-fma__item { position: relative; margin: 0 0 18px; padding-left: 52px; font: 400 15px/1.45 var(--ccc-font); }
.ccc-fma__item::before {
    content: ""; position: absolute; left: 4px; top: 0; width: 34px; height: 34px; background: var(--ccc-navy);
    -webkit-mask: var(--ccc-ico) center / contain no-repeat; mask: var(--ccc-ico) center / contain no-repeat;
}
.ccc-fma__item--shield { --ccc-ico: var(--msp-ico-shield, none); }
.ccc-fma__item--search { --ccc-ico: var(--msp-ico-search, none); }
.ccc-fma__item--check  { --ccc-ico: var(--msp-ico-check-square, none); }
.ccc-fma__item strong { font-weight: 800; }
.ccc-fma__privacy { margin: 0; font: 400 12px/1.5 var(--ccc-font); text-align: center; }
.ccc-fma__privacy a { color: #B26D00; text-decoration: underline; }   /* their orange link, darkened to 4.6:1 on cream */
.ccc-band { margin: 0; padding: 10px var(--msp-gutter, 20px); background: var(--ccc-navy); border-bottom: 2px solid var(--ccc-orange); color: #FFFFFF; font: 400 clamp(1rem, .9rem + .5vw, 1.25rem)/1.5 var(--ccc-font); text-align: center; }
.ccc-fma-text { max-width: calc(var(--msp-container, 1140px) + 2 * var(--msp-gutter, 20px)); margin: 0 auto; padding: 56px var(--msp-gutter, 20px); box-sizing: border-box; color: var(--ccc-navy); text-align: center; font-family: var(--ccc-font); }
.ccc-fma-text h2 { margin: 0 0 18px; color: var(--ccc-navy); font: 800 clamp(1.375rem, 1.15rem + 1vw, 1.875rem)/1.3 var(--ccc-font); letter-spacing: 0; }
.ccc-fma-text p { margin: 0 auto 16px; max-width: 1100px; font: 400 16px/1.7 var(--ccc-font); }
.ccc-fma-text p:last-child { margin-bottom: 0; }
/* /mo: where the details came from (UK GDPR art. 14), under the card */
.ccc-mo-source { margin: 22px 0 0; padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--ccc-line); border-radius: var(--ccc-radius); color: var(--ccc-navy); font: 400 13px/1.55 var(--ccc-font); }
.ccc-mo-source strong { font-weight: 800; }
.ccc-mo-source a { color: var(--ccc-navy); font-weight: 700; text-decoration: underline; }
@media (min-width: 960px) {
    .ccc-fma { padding: 72px 0 90px; }
    .ccc-fma__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 60px; align-items: start; }
    .ccc-fma:not(.ccc-mo) .ccc-fma__inner:has(.gform_page:not([style*="none"]) #gform_submit_button_1) { grid-template-columns: minmax(0, 760px); justify-content: center; }
    .ccc-fma__card { margin-top: 64px; padding: 80px 34px 26px; border-radius: var(--msp-radius-cta, 30px 150px 30px 30px); }
    .ccc-fma__car { left: 6px; top: -78px; width: 250px; height: 140px; }
}
@media (max-width: 380px) {
    .ccc-fma__card { padding: 78px 16px 20px; }
    .ccc-fma__car { width: 200px; height: 110px; top: -58px; }
}

@media (prefers-reduced-motion: reduce) {
    .msp-wait__spin { animation: none; }
}
@media print {
    .ccc-fma__car { display: none; }
}
