/* ===================================================================
   submit-service — this page's own stylesheet.

   Ported from concept/mockups/02-site-v1/css/pages/submit-service.css. This page had NO
   deployed stylesheet at all until 2026-09-05, which is why its mockup rules
   were never ported and why the frontend review found them one by one as page
   defects. ea-enqueue.php registers this file and enqueues it on the page
   whose slug it is named for.

   WHAT BELONGS HERE: only what this page measured for itself. A rule that
   applies to more than one page belongs in ea-content.css or in the block
   stylesheet that owns the component, and putting it here instead is how the
   shared layer loses a rule the next page also needs.

   PORT VALUES, DO NOT ROUND THEM. Several numbers in the mockup page sheets
   are collision sweeps against that page's own copy, not preferences, and the
   comments that say so travel with them.
   ===================================================================*/

/* A FINGERPRINT, NOT DECORATION. LiteSpeed combines every stylesheet into one
   hashed file, so no page sheet has a URL of its own in the delivered HTML and
   "is this sheet loaded" cannot be answered by looking for a <link>. It has to
   be answered by asking the CSSOM for something only this file declares.
   concept/verify/wp asserts this property on the page named by the slug, which
   is what turns a silently missing enqueue into a reported failure rather than
   into a page that merely looks a little wrong. */
:root {
    --ea-page-sheet-submit-service: 1;
}

/* ==================================================================
   1. WHAT HAPPENS NEXT (mockup section 8, 19 §2.5)
   Ported from concept/mockups/02-site-v1/css/pages/submit-service.css
   L751-794. blocks/submit-form/style.css names this section as the page
   sheet's to carry, and until this file existed nothing carried it, so
   the three steps rendered as a plain indented `<ol>`.
   ==================================================================*/

/* WRITTEN AT (0,2,0) ON PURPOSE. WordPress composes this section from a
   core group block, so the live section reads
   `class="ea-section ea-wash ea-next wp-block-group"` and ea-content.css
   §1's `.ea-section { padding: var(--section-padding-y) ... }` is a tie
   at (0,1,0). A tie is decided by whichever sheet a combining cache
   emits last, and tie means lose eventually (build trap 27). */
.ea-section.ea-next {
    padding: var(--ea-s8) var(--section-padding-x);
}

/* `.ea-next__title`'s `margin: 0 0 var(--ea-s6)` is NOT restated here.
   ea-content.css:1338 already carries it as
   `.entry-content .ea-next__title, .ea-main .ea-next__title`, and it
   measures 34px / 600 / 32px bottom against the mockup exactly. A second
   owner for one declaration is how a component drifts. */

/* THE NUMERAL IS A COUNTER AND NOT A SPAN, and that is a markup
   constraint rather than a preference. The mockup writes each step as
   `<li><span class="ea-steps__n">1</span><span class="ea-steps__t">…`;
   the editor composes this list from the core list block, which emits a
   bare `<li>` and can emit nothing else. So `.ea-steps__n` and
   `.ea-steps__t` would be two rules matching nothing, exactly the defect
   the frontend review found four of elsewhere in this tree, and the pill
   is drawn by `::before` instead. Every value below is the mockup's own.

   The mockup's `counter-reset: none` is the one declaration that could
   not travel: it is there because the mockup's numerals are typed into
   the markup. Here the counter IS the numeral, so the list has to open
   one. */
.ea-next .ea-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ea-s6);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: ea-step;
}
/* THE MOCKUP'S `display: flex` ON THE `li` IS THE ONE DECLARATION THAT
   COULD NOT BE PORTED, and the reason is measured rather than stylistic.
   Flex wraps each contiguous run of child TEXT in an anonymous item but
   leaves every child ELEMENT as an item of its own, and each step opens
   with `<strong>A person reads it.</strong>`, so the step became two
   items: the bold sentence and the rest of the paragraph, laid out side
   by side. Measured at 1440 with the flex version deployed, the first
   step's text resolved to three boxes of 49x112, 10x23 and 49x23 against
   the mockup's single 287x84, and the row grew from 84px to 112px.
   Absolute positioning keeps the step one paragraph, and the 52px column
   is the mockup's own 36px pill plus its 16px gap.

   The typography that the mockup puts on `.ea-steps__t` sits on the `li`
   instead, because with no span to carry it there is nothing else to put
   it on. Same 0.94rem / 28px / ink-700, and ink-700 is 10.4:1 on
   --ea-blue-050.

   `min-height` replaces what flex gave for free: a flex line is as tall
   as its tallest item, so a one-line step still reserved the pill's
   36px. */
.ea-next .ea-steps li {
    position: relative;
    min-height: 36px;
    padding-left: calc(36px + var(--ea-s4));
    font-size: 0.94rem;
    line-height: 28px;
    color: var(--ea-ink-700);
}
.ea-next .ea-steps li::before {
    counter-increment: ea-step;
    content: counter(ea-step);
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--ea-radius-pill);
    background: var(--ea-blue-700);
    color: #ffffff; /* 10.86:1 */
    font-family: var(--font-heading);
    font-size: 1rem;
    /* Not in the mockup, and needed only here: the mockup's `<span>` had
       no inherited 28px line box to shake off, this pseudo-element does,
       and 28px inside a 36px circle pushes the glyph off centre. */
    line-height: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.ea-next .ea-steps li strong {
    color: var(--ea-ink-900);
}

/* ==================================================================
   2. THE CLOSING BAND'S STAR ARC (mockup section 9, L797-808)
   ==================================================================*/
/* -110px overrides ea-content.css §5.5's shared -84px: this band is 90px
   shorter, and at -84 the arc's ink reaches the criteria link between
   1025 and 1281px.

   THE MOCKUP'S `<img class="ea-stars ea-stars--closing-corner">` IS
   `.ea-closing--stars-closing-corner::before` HERE, per
   blocks/closing-band/style.css, and `height: auto` is not restated
   because that file gives the pseudo-element `aspect-ratio: 1` from the
   asset's own 240 by 240 viewBox.

   (0,2,0) AND NOT THE MOCKUP'S (0,1,0). blocks/closing-band/style.css
   declares the shared placement on `.ea-closing--stars-closing-corner`
   at (0,1,0); at equal specificity the winner would be whichever handle
   WordPress emits last, and the block sheet is enqueued by the band's
   own render rather than by this page's dependency chain. Same reasoning
   as css/pages/methodology.css, which raises the same placement to
   (0,3,0) for the same reason. */
.ea-closing.ea-closing--stars-closing-corner::before {
    right: -64px;
    top: -110px;
    width: 300px;
    transform: rotate(90deg);
}

/* ==================================================================
   3. RESPONSIVE (mockup section 10, L810-975)
   Only the rules that belong to sections 8 and 9 and to the two bands.
   Sections 5, 6 and 7 keep theirs in blocks/submit-form/style.css.
   ==================================================================*/

/* -- 1024px and below ------------------------------------------------*/
@media (max-width: 1024px) {
    /* Stays here: a measurement against THIS page's star arc, not a style
       choice belonging in the shared layer.

       ea-content.css §5.2 names this page by name as one of "two pages
       knowingly off by a narrow band", because at the time submit-service
       had no stylesheet of its own to carry the difference and so
       collapsed at the shared 999 instead of its own 1024. It has one
       now, so the difference is carried where that comment says it
       belongs, and the 25px window between 1000 and 1024 stops being a
       recorded deviation. The gap comes with it: the shared floor uses
       --ea-s6 and this page swept --ea-s5. */
    .ea-closing .ea-closing__row {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ea-s5);
    }
    .ea-closing.ea-closing--stars-closing-corner::before {
        top: auto;
        bottom: -104px;
        right: -78px;
        transform: rotate(180deg);
    }
    .ea-section.ea-next {
        padding-block: var(--ea-s7);
    }
}

/* -- 900px and below -------------------------------------------------*/
@media (max-width: 900px) {
    .ea-next .ea-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--ea-s5);
        max-width: var(--ea-measure);
    }
}

/* -- 768px and below -------------------------------------------------*/
@media (max-width: 768px) {
    /* THE RESERVE AND THE ARC'S `bottom` MOVE TOGETHER: the corner arc is
       anchored to the band's bottom edge, and
       blocks/identity-band/style.css already ships the arc half of this
       pair (`right: -40px; bottom: -140px; width: 220px; rotate(180deg)`)
       without the reserve that lets it breathe under the lead. This is
       that reserve.

       (0,2,0) because ea-content.css §5.2's phone block sets
       `padding-block: var(--ea-s6)` on `.ea-id, .ea-closing` at (0,1,0)
       below 767, which would otherwise take 16px back off the bottom. */
    .ea-band.ea-id {
        padding-bottom: var(--ea-s7);
    }
}

/* -- 600px and below -------------------------------------------------*/
@media (max-width: 600px) {
    /* `bottom: -136px` sits in a measured plateau: at -120 and above the
       arc lands on the criteria link's arrow, at -144 and below the
       band's edge takes the last whole star. 220px draws the hero arc's
       own 45.3px star. The band's own bottom reserve is the other half
       of that measurement, as on the identity band above. */
    .ea-band.ea-closing {
        padding-bottom: var(--ea-s7);
    }
    .ea-closing.ea-closing--stars-closing-corner::before {
        width: 220px;
        bottom: -136px;
        right: -46px;
    }
}

/* ==================================================================
   3. THE SUREFORMS ENGINE (client item SB1)

   WHAT THIS SECTION IS FOR. The two forms on this page are SureForms
   forms (deploy/ea-sureforms-build.php, rendered by
   ea_submit_sureforms_markup()). SureForms is asked not to enqueue its
   own frontend sheet — the form container carries `srfm-styling-none`,
   which is what `disableDefaultStyles` produces — so without the rules
   below a SureForms form on this page renders as unstyled boxes with
   every per-field error sentence permanently visible.

   THIS IS A MAPPING SHEET, NOT A THEME. Every rule below exists to make
   one SureForms element measure the same as the `.ea-form` element it
   replaces, and each one names the element it is standing in for. The
   numbers are not invented: they are copied from the rule in
   blocks/submit-form/style.css that paints the custom form's equivalent,
   and `fieldmap.mjs` pairs the two element by element and compares
   typography, colour, border, radius, padding and box, so a value that
   drifts here shows up as a numbered difference rather than as an
   opinion. Where a measurement cannot be reached from CSS, the rule says
   so rather than approximating quietly.

   ONE SHEET STILL ARRIVES FROM SUREFORMS and it is not the form's:
   `deps/tom-select.css`. Every dropdown on this page is a Tom Select
   control whatever `searchable` says — the block script initialises it
   unconditionally and only uses `searchable` to decide whether the
   control has a text input — so the native `<select>` is present,
   `aria-hidden`, disabled and 1px wide, and the visible control is a
   `.ts-wrapper`. That is why the rules below paint `.ts-control` and not
   `select`.

   WHY IT LIVES IN THE PAGE SHEET AND NOT IN THE BLOCK SHEET. The block
   sheet is the signed-off form's own stylesheet and is loaded on every
   route that can carry the block. These rules apply to one page.
   ==================================================================*/

/* The shortcode's own container adds a stacking context, a background and
   a padding box the custom form does not have. Neutralise all three so the
   comparison measures the fields rather than the wrapper. */
.ea-form--srfm .srfm-form-container {
    padding: 0;
    background: none;
    border-radius: 0;
}
.ea-form--srfm .srfm-form {
    margin: 0;
}

/* `.srfm-block` stands in for `.ea-field`. */
.ea-form--srfm .srfm-block {
    margin-bottom: var(--ea-s5);
}
.ea-form--srfm .srfm-block > fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* `.srfm-block-label` and `.srfm-block-legend` stand in for
   `.ea-field > label` and `.ea-field > legend`, and every declaration is
   that rule's. The `margin-left: 0` and `padding: 0` are here for the
   reason the block sheet gives: Blocksy ships
   `legend { padding: 0 15px; margin-left: -15px }`, and a fieldset with
   no border leaves that negative margin to start the legend 15px left of
   its own fields.

   `line-height: 26px` and not a ratio. A 1.45 ratio computes to 24.65px
   at this font size, which is a 1.35px difference nobody sees on the
   label and a visible one on the "Required" word beside it, because that
   word is 0.82rem and inherits the line box. Measured. */
.ea-form--srfm .srfm-block-label,
.ea-form--srfm .srfm-block-legend,
.ea-form--srfm .ea-srfm-legend {
    display: block;
    margin-bottom: var(--ea-s1);
    margin-left: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 26px;
    color: var(--ea-ink-900);
}

/* The contact group's heading, which `ea_submit_srfm_contact_intro()`
   prints into an srfm/html block because SureForms has no field type
   that groups two fields under one heading. It stands in for the
   `<legend>` of `.ea-field--set`, and the hidden/shown span pair is the
   same swap the custom form does when the visitor says they operate the
   tool. */
.ea-form--srfm .ea-srfm-contact-intro {
    margin-bottom: var(--ea-s2);
}
/* `width: fit-content` because the element it stands in for is a <legend>,
   and a legend shrinks to its text while a <p> fills its line. Nothing about
   the painted result changes, but the box does, and the box is what the
   parity check measures. */
.ea-form--srfm .ea-srfm-legend {
    width: fit-content;
    max-width: 100%;
}
.ea-form--srfm .ea-srfm-legend span[hidden] {
    display: none;
}
.ea-form--srfm .ea-srfm-contact-hint {
    margin-bottom: 0;
}

/* `.srfm-description` stands in for `.ea-hint`. SureForms prints it
   BETWEEN the label and the control, which is where `.ea-hint` sits too,
   so only the typography has to move. */
.ea-form--srfm .srfm-description,
.ea-form--srfm .ea-hint {
    margin: 0 0 var(--ea-s2);
    font-size: 0.88rem;
    line-height: 24px;
    color: var(--ea-ink-500);
}

/* The controls themselves need no rules: `.ea-form input[type="text"]`
   and its siblings in the block sheet are already scoped to `.ea-form`,
   and `ea_submit_sureforms_markup()` wraps the shortcode in one. This
   comment is here so the next reader does not add a duplicate set. */

/* SureForms prints every per-field error sentence into the DOM and lets
   its own stylesheet hide them. With that stylesheet suppressed they are
   all visible at rest, which is the single largest visual difference and
   the one a reviewer notices first. `toggleErrorState()` in the SureForms
   frontend script toggles `srfm-error` on the block, so that is the hook. */
.ea-form--srfm .srfm-block .srfm-error-message {
    display: none;
}
.ea-form--srfm .srfm-block.srfm-error .srfm-error-message {
    display: block;
    margin: var(--ea-s1) 0 0;
    font-size: 0.88rem;
    line-height: 24px;
    color: var(--ea-err-700, #b3261e);
}

/* A SUBMISSION MUST NEVER BE SWALLOWED SILENTLY, which is this page's own
   history and the reason these two rules exist. SureForms prints a form-
   level error paragraph at the head and the foot of every form, hidden
   until the transport fails, and with its own stylesheet suppressed a
   `hidden` attribute is the only thing keeping it out of view — so when
   the script unhides it, it would arrive unstyled and unread. This gives
   it the same red panel `.ea-fail` gives the custom form's failure. */
.ea-form--srfm .srfm-common-error-message[hidden] {
    display: none;
}
.ea-form--srfm .srfm-common-error-message {
    display: flex;
    gap: var(--ea-s2);
    align-items: flex-start;
    margin: 0 0 var(--ea-s4);
    padding: var(--ea-s3) var(--ea-s4);
    border: 1px solid var(--ea-err-700, #b3261e);
    border-radius: var(--ea-radius-card);
    background: var(--ea-err-100, #fdeceb);
    font-size: 0.94rem;
    line-height: 24px;
    color: var(--ea-ink-900);
}
.ea-form--srfm .srfm-common-error-message .srfm-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    color: var(--ea-err-700, #b3261e);
}

/* The two contact fields sit on one row, as `.ea-pair` does. SureForms
   expresses the width as `srfm-block-width-50` on the block, but with no
   flex or grid parent to act on, so the parent is supplied here. */
.ea-form--srfm .srfm-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--ea-s4);
}
.ea-form--srfm .srfm-block,
.ea-form--srfm .srfm-submit-container,
.ea-form--srfm > .srfm-form-container > .srfm-form > p {
    flex: 1 1 100%;
}
.ea-form--srfm .srfm-block-width-50 {
    flex: 1 1 calc(50% - var(--ea-s4) / 2);
}

/* `.ea-pair .ea-field > label` gives the two contact labels a lighter
   weight than the questions above them, because they are the second line
   of a group rather than questions of their own. */
.ea-form--srfm .srfm-block-width-50 .srfm-block-label {
    font-size: 0.94rem;
    font-weight: 400;
    color: var(--ea-ink-700);
}

/* -- the radio pair -------------------------------------------------
   `.srfm-multi-choice-single` stands in for `.ea-choice`. SureForms draws
   two inline SVG icons per option and hides the native radio behind them;
   the custom form styles the native control. Hiding the icon container and
   restoring the radio is the only way to reach the same box, and it is
   also the only way to keep the control keyboard-operable without the
   SureForms sheet that positions those icons. */
.ea-form--srfm .srfm-block-wrap:has(.srfm-multi-choice-single) {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ea-s2) var(--ea-s5);
}
.ea-form--srfm .srfm-multi-choice-single {
    display: flex;
    align-items: center;
    gap: var(--ea-s3);
    min-height: 44px;
    padding: 0 var(--ea-s3) 0 var(--ea-s2);
    border-radius: var(--ea-radius-card);
}
.ea-form--srfm .srfm-multi-choice-single:hover {
    background: var(--ea-blue-050);
}
.ea-form--srfm .srfm-icon-container {
    display: none;
}
.ea-form--srfm .srfm-input-multi-choice-single {
    flex: none;
    width: 20px;
    height: 20px;
    min-height: 0;
    margin: 0;
    accent-color: var(--ea-blue-700);
}
.ea-form--srfm .srfm-input-multi-choice-single:focus-visible {
    outline: 2px solid var(--ea-blue-700);
    outline-offset: 3px;
}
.ea-form--srfm .srfm-block-content-wrap,
.ea-form--srfm .srfm-option-container {
    display: flex;
    align-items: center;
}
.ea-form--srfm .srfm-option-container label {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    /* 32px, which is what the custom form's `.ea-choice span` inherits from
       the page rather than declares. Copied as a number because the SureForms
       label sits three elements deeper and inherits something else. */
    line-height: 32px;
    color: var(--ea-ink-900);
    cursor: pointer;
}

/* -- the dropdowns --------------------------------------------------
   `.ts-control` stands in for `.ea-form select`, and every declaration
   below is that rule's. The native `<select>` is still in the DOM but
   Tom Select has disabled it and clipped it to a 1px box, so painting it
   would paint nothing a reader can see. */
.ea-form--srfm .ts-wrapper {
    width: 100%;
    /* tom-select.css writes the control's padding-right as
       `calc(var(--ts-pr-min) + var(--ts-pr-clear-button) + var(--ts-pr-caret))`
       with `!important`, so a plain `padding-right` here loses and the box
       measured 0 on the right against the custom select's 8px. Setting the
       three inputs to the calc is how that rule is reached without an
       `!important` of our own: the clear button is hidden and the caret is in
       flow, so both contribute nothing and the minimum is the token. */
    --ts-pr-min: var(--ea-s2);
    --ts-pr-clear-button: 0px;
    --ts-pr-caret: 0px;
}
.ea-form--srfm .ts-wrapper .ts-control {
    display: flex;
    align-items: center;
    gap: var(--ea-s2);
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 11px var(--ea-s2) 11px var(--ea-s3);
    border: 1px solid var(--ea-border-control);
    border-radius: var(--ea-radius-card);
    background: var(--ea-surface);
    box-shadow: none;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 24px;
    color: var(--ea-ink-900);
}
.ea-form--srfm .ts-wrapper:not(.disabled) .ts-control:hover {
    border-color: var(--ea-ink-500);
}
.ea-form--srfm .ts-wrapper.focus .ts-control {
    outline: 2px solid var(--ea-blue-700);
    outline-offset: 2px;
    border-color: var(--ea-blue-700);
    box-shadow: none;
}
/* The placeholder reads as the custom select's empty first option does. */
.ea-form--srfm .ts-control .ts-control-placeholder,
.ea-form--srfm .ts-control > input::placeholder {
    color: var(--ea-ink-700);
    opacity: 1;
}
.ea-form--srfm .ts-control > input {
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 24px;
    color: var(--ea-ink-900);
}
/* Tom Select's clear button has no counterpart on a native select, and a
   second control inside the box is a second thing to explain. The caret
   stays, because that is the affordance a select has. */
.ea-form--srfm .ts-control .clear-button {
    display: none;
}
.ea-form--srfm .ts-control .ts-dropdown-icon {
    display: flex;
    flex: none;
    margin-left: auto;
    color: var(--ea-ink-700);
}
.ea-form--srfm .ts-dropdown {
    margin: 4px 0 0;
    border: 1px solid var(--ea-border-control);
    border-radius: var(--ea-radius-card);
    background: var(--ea-surface);
    box-shadow: 0 8px 24px rgb(20 24 31 / 12%);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ea-ink-900);
}
.ea-form--srfm .ts-dropdown .option {
    padding: 8px var(--ea-s3);
    line-height: 24px;
}
.ea-form--srfm .ts-dropdown .option.active {
    color: var(--ea-blue-700);
    background: var(--ea-blue-050);
}
.ea-form--srfm .ts-dropdown .optgroup-header {
    padding: var(--ea-s2) var(--ea-s3) 4px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 22px;
    color: var(--ea-ink-500);
    background: none;
}

/* -- the repeater ---------------------------------------------------
   `.srfm-repeater-item` stands in for `.ea-alt`, its header's label for
   `.ea-alt__label`, and its two buttons for `.ea-addbtn` and
   `.ea-alt__remove`.

   THE SHAPE IS NOT THE SAME AND THE DIFFERENCE IS REPORTED RATHER THAN
   HIDDEN. The custom form draws one "Add another tool" button under the
   list and a "Remove" button on every row after the first; SureForms
   draws an add and a remove control on EVERY row, in the row's own
   header, beside a "#N" index. The two rules below take the difference as
   far as CSS honestly can: the remove control disappears on the only row
   that may not be removed, and the add control disappears on every row
   but the last, so exactly one of each is on screen at a time. What
   remains different is that they sit at the top right of a row rather
   than under the list, and that the row's heading repeats the question
   with an index rather than reading "Another tool it is an alternative
   to". */
.ea-form--srfm .srfm-repeater-item + .srfm-repeater-item {
    margin-top: var(--ea-s4);
}
.ea-form--srfm .srfm-repeater-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--ea-s3);
}
.ea-form--srfm .srfm-repeater-label-container {
    display: flex;
    align-items: baseline;
    gap: var(--ea-s2);
}
/* The question is drawn once, on the first row; the rows under it carry
   the lighter secondary label the custom form gives an added row. */
.ea-form--srfm .srfm-repeater-item:not([data-index="0"]) .srfm-block-label {
    font-size: 0.94rem;
    font-weight: 400;
    line-height: 24px;
    color: var(--ea-ink-700);
}
.ea-form--srfm .srfm-repeater-item:not([data-index="0"]) .srfm-block-label .ea-tag,
.ea-form--srfm .srfm-repeater-item:not([data-index="0"]) .srfm-description {
    display: none;
}
/* -- the row ordinal, taken off the screen (client item 3) ----------
   THE MOCKUP HAS NO ORDINAL. concept/mockups/02-site-v1/submit-service.html
   draws the first row as a bare input under the question (L237-247) and every
   added row with the secondary label "Another tool it is an alternative to"
   plus its own Remove button (the <template> at L470-486). There is no "#N"
   anywhere in the design, so what SureForms adds here is not a placement
   problem to solve but an element the design does not have.

   IT ALSO CARRIES NO INFORMATION. The rows are an unordered set of equal
   values: nothing in the form, the entry, the notification email or the CSV
   export refers to "the second alternative", and a visitor may not reorder
   them, so the number cannot mean rank and cannot mean identity. In the state
   the page is in when it is first seen the repeater has exactly one row, which
   makes "#1" an ordinal over a set of one.

   AND IT LANDS IN THE WORST AVAILABLE PLACE. SureForms puts it inside
   `.srfm-repeater-label-container`, immediately after the <label>, so at 1440
   the line reads "Which widely used tool is it an alternative to?" then the
   "Required" tag this build already prints there, then "#1", three things
   competing on one baseline. That is what the client saw.

   VISUALLY HIDDEN RATHER THAN `display: none`. The number is in the
   accessibility tree today, inside a `role="group"` whose `aria-labelledby`
   points at the shared question label, so every row currently announces the
   same name and the index is the only thing separating them for a screen
   reader. Removing the box removes that too. The sr-only pattern below fixes
   the visual defect the client reported and changes nothing for assistive
   technology, which is the smaller of the two changes and the one that cannot
   regress anything. */
.ea-form--srfm .srfm-repeater-index {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.ea-form--srfm .srfm-repeater-item-controls {
    display: flex;
    flex: none;
    gap: var(--ea-s2);
}
.ea-form--srfm .srfm-repeater-add-btn,
.ea-form--srfm .srfm-repeater-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: var(--ea-radius-card);
    background: none;
    color: var(--ea-blue-700);
    cursor: pointer;
}
.ea-form--srfm .srfm-repeater-add-btn:hover,
.ea-form--srfm .srfm-repeater-remove-btn:hover {
    background: var(--ea-blue-050);
}
.ea-form--srfm .srfm-repeater-add-btn:focus-visible,
.ea-form--srfm .srfm-repeater-remove-btn:focus-visible {
    outline: 2px solid var(--ea-blue-700);
    outline-offset: 2px;
}
.ea-form--srfm .srfm-repeater-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}
/* One add control and one remove control on screen, never five of each. */
.ea-form--srfm .srfm-repeater-item[data-index="0"] .srfm-repeater-remove-btn {
    display: none;
}
.ea-form--srfm .srfm-repeater-item:not(:last-child) .srfm-repeater-add-btn {
    display: none;
}
/* At the cap the repeater script disables the add control rather than
   removing it (`srfm-disable`). The custom form hides its own add button at
   the same point, so this hides it too. What is NOT reproduced is the
   sentence the custom form puts in its place — "That is as many as we can
   take." — because SureForms has nowhere to print it; reported rather than
   faked with generated content, which no translation layer can reach. */
.ea-form--srfm .srfm-repeater-add-btn.srfm-disable,
.ea-form--srfm .srfm-repeater-remove-btn.srfm-disable {
    display: none;
}

/* -- the character counter ------------------------------------------
   `.srfm-char-counter-wrap` stands in for `.ea-count`. SureForms writes
   "0/300" where the custom form writes "0 of 300 characters"; the
   wording is SureForms' own and is reported rather than rewritten,
   because a script that rebuilds it in the browser is the exact defect
   the counter's own docblock in ea-submit.php records. */
.ea-form--srfm .srfm-char-counter-wrap {
    margin: var(--ea-s1) 0 0;
    font-size: 0.82rem;
    line-height: 22px;
    color: var(--ea-ink-500);
    font-variant-numeric: tabular-nums;
}

/* -- the submit button ----------------------------------------------
   `.srfm-submit-container` stands in for `.ea-actions`, and the button
   for `.ea-btn.ea-submit`. The declarations are the ones ea-content.css
   gives `.ea-btn`; they are repeated rather than the class being added to
   the markup, because the markup is SureForms' and this sheet is the only
   thing in the build that may touch it. */
.ea-form--srfm .srfm-submit-container {
    display: flex;
    align-items: center;
    gap: var(--ea-s4);
    margin-top: var(--ea-s5);
}
.ea-form--srfm .srfm-submit-container .wp-block-button {
    margin: 0;
}
.ea-form--srfm .srfm-submit-button {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 0.63em 1.8em;
    border: 0;
    border-radius: var(--btn-border-radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    /* `.ea-actions .ea-btn` overrides the base button on this form and its
       comment says why: the base `.ea-btn` measures 41.8px, under the 44px
       hit-area floor. The three declarations are copied with it, so the
       SureForms button is 48px like the custom form's rather than 41.8px. */
    min-height: 48px;
    padding-block: 0;
    line-height: 48px;
    text-align: center;
    color: var(--ea-blue-700);
    background: var(--ea-gold-500);
    cursor: pointer;
}
/* -- the Kenntnisnahme line, now inside the form (client item 2) ----
   `ea_submit_srfm_privacy_note()` prints it on `srfm_after_field_content`,
   which lands it inside the <form> as a direct child of `.srfm-form` and
   directly above `.srfm-submit-container`. The base rule for `.ea-privacy` is
   the mockup's, in blocks/submit-form/style.css; only what the flex parent
   changes is restated here.

   `flex: 1 1 100%` because `.srfm-form` is a wrap-flex row (see the
   `.srfm-block-width-50` rule above) and an unsized <p> would otherwise share
   a line with whatever precedes it.

   `margin-top: var(--ea-s2)`, and it is arithmetic rather than taste. The
   mockup puts 32px (--ea-s6) between the last fieldset and the note's top
   rule. Flex items do not collapse margins, and the block above already
   contributes its own 24px (`.ea-form--srfm .srfm-block { margin-bottom:
   var(--ea-s5) }`), so the note owes the remaining 8px and no more. */
.ea-form--srfm .srfm-form > .ea-privacy {
    flex: 1 1 100%;
    margin-top: var(--ea-s2);
}

/* `gap: 0`, not a spacing token. The wrap holds the caption and a loader
   that is empty until the form is submitting, so any gap is 8px of dead
   space on the resting button and the button measures wider than the
   custom form's. Measured at 192.2px against 184.2px before this rule. */
.ea-form--srfm .srfm-submit-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.ea-form--srfm .srfm-loader:not(:empty) {
    margin-left: var(--ea-s2);
}

/* ==================================================================
   THE CONFIRMATION (client item 4)
   Ported from concept/mockups/02-site-v1/css/pages/submit-service.css
   L692-747, section "7. SUCCESS", where the component is `.ea-done`.
   ==================================================================*/

/* The success box is empty until a submission lands, but it is in the DOM
   from the first paint and an empty box with a border is still a box. */
.ea-form--srfm .srfm-success-box:empty,
.ea-form--srfm .srfm-success-box-description:empty {
    display: none;
}

/* WHAT WAS THERE BEFORE. SureForms ships no confirmation styling at all:
   `.srfm-form-container .srfm-success-box.srfm-active` is
   `display:flex; flex-direction:column; align-items:center;
   justify-content:center; min-height:20vh` and nothing else, so the landed
   message rendered as body text on the page's own white with no background,
   no border and no mark. Measured on the shipped build at 1440 and 390 in
   both languages: background `rgba(0, 0, 0, 0)`, border `0px none`,
   `::before` content `none`. The client's report — "completely unstyled and
   therefore almost easy to miss" — is exactly that.

   EVERY VALUE BELOW IS THE MOCKUP'S `.ea-done`, not a new design.

   SCOPED TO `.srfm-active`, WHICH IS THE CLASS THE BUNDLE ADDS ON A LANDED
   SUBMISSION (assets/build/formSubmit.js). Painting the box unconditionally
   would put a bordered green panel on the page before anybody has submitted
   anything, which the `:empty` rule above only half prevents: the container is
   never `:empty`, it always holds the description div. */
.ea-form--srfm .srfm-success-box.srfm-active {
    display: block;
    max-width: var(--ea-form-col);
    min-height: 0;
    padding: var(--ea-s7) var(--ea-s5);
    border: 1px solid var(--ea-pos-700);
    border-radius: var(--ea-radius-card);
    background: var(--ea-pos-100);
    text-align: center;
    white-space: normal;
}

/* The mockup's `.ea-done__mark`: a 56px disc in --ea-pos-700 carrying the
   sprite's `#i-check` at 28px in white, which measures 4.96:1 on the disc.

   A PSEUDO-ELEMENT AND NOT MARKUP, on purpose. The confirmation reaches the
   page as a string that `Helper::strip_js_attributes()` round-trips through
   DOMDocument before the bundle assigns it with innerHTML, and DOMDocument is
   not a safe carrier for inline SVG. The badge is decorative — the words
   beside it say the same thing — so CSS is the correct owner and there is
   nothing here for a screen reader to lose. */
.ea-form--srfm .srfm-success-box.srfm-active::before {
    content: "";
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--ea-s4);
    border-radius: var(--ea-radius-pill);
    background-color: var(--ea-pos-700);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.6 5 5 10-11'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
}

/* THE TWO SPANS ARE MADE BLOCKS HERE AND NOT LEFT TO SUREFORMS' OWN RULE,
   because that rule does not reach this page. SureForms declares
   `.srfm-form-container .srfm-success-box .srfm-success-box-description
   { display: flex; flex-direction: column; gap: 8px; font-size: .9em }`, and
   the first attempt at this section relied on it for the stacking. Measured at
   1440 and 390 in both languages: the title and the body rendered on ONE line,
   "Danke, wir haben esEin Redakteur prüft es…", so the flex column was not in
   effect. This build's container carries `srfm-styling-none` and does not get
   the whole of SureForms' frontend sheet (see ea-submit.php §11.8 on the five
   sheets the canvas is missing), so anything this component needs, it declares.

   `display: block` plus the title's own bottom margin, not a flex `gap`: a gap
   is inert on a block container, and the block layout is the one that cannot
   silently stop working if the plugin's sheet arrives or leaves. */
.ea-form--srfm .srfm-success-box .srfm-success-box-description {
    display: block;
    font-size: 1rem;
    color: var(--ea-ink-700);
}

/* Ink-900 on --ea-pos-100 measures 14.0:1; a fourth green element turns
   the confirmation into a colour field. */
.ea-form--srfm .srfm-success-box .ea-done__title {
    display: block;
    margin: 0 0 var(--ea-s2);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ea-ink-900);
}
.ea-form--srfm .srfm-success-box .ea-done__body {
    display: block;
    max-width: 30em;
    margin: 0 auto;
    line-height: 26px;
    color: var(--ea-ink-700); /* 10.9:1 on --ea-pos-100 */
}

/* A form that could not be found says so. */
.ea-form__missing {
    max-width: var(--ea-form-col);
    padding: var(--ea-s4);
    border: 1px solid var(--ea-err-700, #b3261e);
    border-radius: var(--ea-radius-card);
    color: var(--ea-ink-900);
}

/* The two contact fields fall to one column on the narrow layout, as
   `.ea-pair` does at the same breakpoint. */
@media (max-width: 600px) {
    .ea-form--srfm .srfm-block-width-50 {
        flex: 1 1 100%;
    }

    /* `.ea-actions .ea-btn` goes full width in the same block on the custom
       form, at the portal's own one-column gate for this page. The button
       needs its wrapper widened too: SureForms puts it inside a
       `.wp-block-button` that is a shrink-to-fit flex item, so a 100 per cent
       width on the button alone measured 184.2px against the custom form's
       339px. */
    .ea-form--srfm .srfm-submit-container .wp-block-button {
        flex: 1 1 100%;
        width: 100%;
    }

    .ea-form--srfm .srfm-submit-button {
        display: block;
        width: 100%;
    }

    /* The mockup narrows the confirmation's padding at the same gate
       (mockup submit-service.css L964: `.ea-done { padding: var(--ea-s6)
       var(--ea-s4) }`). */
    .ea-form--srfm .srfm-success-box.srfm-active {
        padding: var(--ea-s6) var(--ea-s4);
    }
}
