/* css/form.css: the Form's one style sheet (SW-170 DS 3.10.1): every process rule, moved here with no change to a
   declaration from css/globals.css (section WIZARD), css/accounts.css (the code box, the registration card's own
   rules, the log-in card) and css/application.css. Enqueued as syn-form in the head at priority 13 (DS 6.1.6).
   The @media print sizes of the WIZARD rules stay in css/globals.css (post-print.php pastes it). */

/* ===================================================================== */
/* WIZARD: every step-by-step process on every site (Anthony, 24 Oct 2026) */
/* Markup: php/wizard/wizard.php (Syndesi_Wizard::card); browser:         */
/* js/wizard.js. A white landscape card with a soft shadow. The steps     */
/* (Anthony, 25 Oct 2026): a row of step numbers on top (layout 'top',    */
/* the phone look, every wizard at every width); the rail on the left     */
/* (layout 'rail') only where a card asks for it (the contact page's      */
/* application); a slim bar (layout 'bar') stays available. On a phone    */
/* the rail is the row of numbers too. Only the variables above (rule    */
/* C2). Messages: .message-display (above).                               */
/* ===================================================================== */
.syn-form--wizard {
    display: grid;
    grid-template-columns: var(--wizard-rail-width) minmax(0, 1fr);
    width: 100%;
    max-width: var(--wizard-max-width);
    margin: 1.5em auto;
    box-sizing: border-box;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(var(--color-shadow-rgb), .06), 0 8px 24px rgba(var(--color-shadow-rgb), .08);
    overflow: hidden;
    color: var(--color-text-dark);
    font-family: var(--font-body);
    font-size: var(--syn-type-body);
    line-height: 1.5;
    text-align: left;
}
.syn-form--wizard *, .syn-form--wizard *::before, .syn-form--wizard *::after { box-sizing: border-box; }
.syn-form--wizard [hidden] { display: none !important; }

/* ---- the rail ---- */
.syn-form__rail { background: var(--color-secondary-light); padding: 22px 16px; display: grid; align-content: start; gap: 18px; }
.syn-form__rail-title { margin: 0; font-family: var(--font-elegant); font-weight: 700; color: var(--color-primary-dark); font-size: var(--syn-type-heading); line-height: 1.25; }
.syn-form__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: syn-form-step; }
.syn-form__step { position: relative; display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; font-family: var(--font-button); font-size: var(--syn-type-body); line-height: 1.2; color: var(--color-text-faint); }
.syn-form__step::before { counter-increment: syn-form-step; content: counter(syn-form-step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: var(--syn-type-body); background: var(--color-white); border: 2px solid var(--color-border); color: var(--color-text-faint); position: relative; z-index: 1; }
.syn-form__step:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; width: 2px; height: 14px; background: var(--color-border); }
.syn-form__step.is-done { color: var(--color-primary-dark); }
.syn-form__step.is-done::before { content: "\2713"; background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.syn-form__step.is-done::after { background: var(--color-primary); }
.syn-form__step.is-current { color: var(--color-primary-dark); font-weight: 700; }
.syn-form__step.is-current::before { content: counter(syn-form-step); background: var(--color-white); border-color: var(--color-primary); color: var(--color-primary-dark); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .18); }
/* The application (Anthony, 24 Oct 2026): as wide as its container, desktop and phone, for more room, with a margin on
   each side (in em, rule C4) so the card's shadow and rounded corners never touch the edge; other flows keep --wizard-max-width. */
.syn-form--wizard.syn-form--application { width: auto; max-width: none; margin: 1.5em 1em; }
@media (max-width: 600px) { .syn-form--wizard.syn-form--application { margin: 1em 0.5em; } }
.syn-form__step-name { min-width: 0; overflow-wrap: anywhere; }
/* A step one can go back to (Anthony, 24 Oct 2026): clickable; colour and font stay exactly as they are, in every state. */
.syn-form__step.is-link { cursor: pointer; }
.syn-form__step.is-link:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }   /* keyboard only */
/* A second, smaller line under a step's name (e.g. the student's "J. Smith" under "Student 1", js/wizard.js sub()). */
.syn-form__step-sub { display: block; margin-top: 2px; font-size: .85em; font-weight: 400; color: var(--color-text-faint); }
@media (min-width: 601px) {
    .syn-form--wizard-rail .syn-form__step.is-subtitled { align-items: start; }
    .syn-form--wizard-rail .syn-form__step.is-subtitled .syn-form__step-name { padding-top: 5px; }
    .syn-form--wizard-rail .syn-form__step.is-subtitled:not(:last-child)::after { height: calc(100% - 12px); }   /* the line still reaches the next step */
}

/* ---- the slim bar (layout 'bar') ---- */
.syn-form__bar { display: none; gap: 8px; }
.syn-form__bar-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-family: var(--font-button); font-size: var(--syn-type-body); color: var(--color-text-muted); }
.syn-form__bar-count { color: var(--color-primary-dark); font-weight: 700; }
.syn-form__bar-track { height: 6px; border-radius: 9999px; background: var(--color-secondary-light); overflow: hidden; }
.syn-form__bar-fill { display: block; height: 100%; background: var(--color-primary); transform-origin: left; transform: scaleX(var(--syn-form-progress, 0)); }
.syn-form--wizard-bar { grid-template-columns: minmax(0, 1fr); }
.syn-form--wizard-bar .syn-form__rail { display: none; }
.syn-form--wizard-bar .syn-form__bar { display: grid; padding: 20px 24px 0; }

/* ---- the row of numbers on top (layout 'top'; Anthony, 25 Oct 2026: the phone look at every width) ---- */
.syn-form--wizard-top { grid-template-columns: minmax(0, 1fr); }
.syn-form--wizard-top .syn-form__rail { padding: 12px 14px; gap: 0; }
.syn-form--wizard-top .syn-form__rail-title { display: none; }
.syn-form__lang:not(:has(> .syn-form__field--check input:checked)) > .syn-form__lang-levels { display: none; }   /* the languages step: a language's levels once it is ticked (SW-202) */
/* SW-202 (Anthony, 18 Nov 2026: "make that whole component look nicer"): the levels' key in the info notice box, two columns;
   the languages as the choice tiles in columns, a ticked one first, a card of the full width with its levels */
.syn-form__lang-levels select:has(option[value="native"]:checked) { border-left: 6px solid var(--color-primary-dark); }   /* a chosen level in its group's colour */
.syn-form__lang-levels select:has(option[value^="C"]:checked) { border-left: 6px solid var(--color-primary); }
.syn-form__lang-levels select:has(option[value^="B"]:checked) { border-left: 6px solid rgba(var(--color-primary-rgb), .65); }
.syn-form__lang-levels select:has(option[value^="A"]:checked) { border-left: 6px solid rgba(var(--color-primary-rgb), .4); }
.syn-accordion__content:has(> .syn-form__lang) { display: flex; flex-wrap: wrap; gap: .5em; align-items: flex-start; }
.syn-form__lang { flex: 1 1 10em; }
.syn-form__lang > .syn-form__field--check > label { padding: .5em .7em; border: 1px solid var(--color-border-input); border-radius: 6px; background: var(--color-white); cursor: pointer; }
.syn-form__lang > .syn-form__field--check > label:hover { border-color: var(--color-primary); }
.syn-form__lang:has(> .syn-form__field--check input:checked) { flex-basis: 100%; order: -1; }   /* a ticked language: first, its own row; the tick says it is chosen (no card; Anthony, 18 Nov 2026) */
.syn-form__lang:has(> .syn-form__field--check input:checked) > .syn-form__field--check > label { padding: 0; border: 0; background: transparent; font-weight: 700; }
.syn-form__req:has(> .syn-form__field--check input:checked) > .syn-form__req-why { display: none; }   /* step 4: an unticked requirement asks why (SW-202) */
.syn-form__req-why { margin: .3em 0 .8em 1.6em; }
.syn-form__req:not(:has(> .syn-form__field--check input:checked)) > .syn-form__req-when { display: none; }   /* a ticked point asks where and when (SW-202) */
.syn-form__req-when { margin: .3em 0 .8em 1.6em; }
.syn-form__req { padding-left: 1em; }
.syn-form__req-more:not(:has(> .syn-form__field--check input:checked)) > .syn-form__req-place { display: none; }   /* another job, up to three, each opened by its tick (SW-202) */
.syn-form__req-more { margin-top: .6em; }   /* step 4: each point indented as a list item under its sub-menu (Anthony, 18 Nov 2026) */
.syn-form__req .syn-form__field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) { padding: .65em .9em; line-height: 1.5; }   /* every box under a point one height, in the font's own units (no pixels) */
.syn-form__req-why:not(:has(input[value="other"]:checked)) > .syn-form__fields > .syn-form__field:nth-child(2) { display: none; }   /* "Tell us more" only with Other (Anthony, 18 Nov 2026: "we don't need a tell us more text box") */
.syn-form__req .syn-form__choice { padding: .3em .5em; line-height: 1.3; font-family: var(--font-button); font-size: var(--syn-type-body); font-weight: 400; }   /* "Why not?" titled as "Where"; its buttons 30% smaller, their text the label's, not bold (Anthony, 18 Nov 2026) */
.syn-form .syn-accordion__content > .syn-accordion--nested + .syn-accordion--nested { margin-top: .4em; }
.syn-form--wizard .syn-accordion--rows:not(#_) > .syn-accordion__title, .syn-form--wizard .syn-accordion--rows:not(#_) > .syn-accordion__title > .syn-accordion__icon { font-size: var(--syn-type-heading) !important; }   /* the wizard's sub-menu rows one step up: the wizard's smaller scale (0.81) brings them to the posting page's rows (Anthony, 18 Nov 2026) */   /* step 4: "Required", then "Nice to have", rows of their own */
.syn-form__lang-levels > .syn-form__fields { grid-template-columns: minmax(0, 18em); margin-bottom: .6em; }   /* one level per language (Anthony, 18 Nov 2026) */
.syn-form--wizard-top.syn-form--application .syn-form__rail-title { display: block; margin: 0 0 .35em; text-align: center; }   /* Apply on a posting: the job over the numbers, every width (SW-202, Anthony 18 Nov 2026) */
.syn-form--wizard-top .syn-form__steps { grid-auto-flow: column; grid-auto-columns: minmax(36px, 1fr); gap: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 3px 0; }   /* many steps: the row scrolls, js/wizard.js keeps the current one in view */
.syn-form--wizard-top .syn-form__steps::-webkit-scrollbar { display: none; }
.syn-form--wizard-top .syn-form__steps { width: 100%; max-width: 32em; margin: 0 auto; }   /* a wide card: the numbers stay close together, centred */
.syn-form--wizard-top .syn-form__step { grid-template-columns: 1fr; justify-items: center; }
.syn-form--wizard-top .syn-form__step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* hidden on screen, still read by screen readers */
.syn-form--wizard-top .syn-form__step:not(:last-child)::after { left: calc(50% + 15px); right: calc(-50% + 15px); top: 12px; width: auto; height: 2px; }

/* ---- ‹ › arrows when the row of step numbers does not fit (js/wizard.js arrows(); Anthony, 25 Oct 2026). Hidden
   unless the row overflows (rail.is-overflow): up to the card's width the row is exactly as before. ---- */
.syn-form__rail .syn-form__scroll { display: none !important; }   /* !important: Hello Elementor styles every button (display, pink outline), so its rule must not show them (live check 25 Oct 2026) */
.syn-form__rail.is-overflow { display: flex; align-items: center; gap: 2px; }
.syn-form__rail.is-overflow .syn-form__steps { flex: 1 1 auto; min-width: 0; }
.syn-form__rail.is-overflow .syn-form__scroll {   /* a round button the size of a step number (Anthony, 25 Oct 2026) */
    display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 30px; box-sizing: border-box;
    width: 30px; height: 30px; padding: 0; margin: 0; border: 2px solid var(--color-primary-dark); border-radius: 50%;
    background: var(--color-white); color: var(--color-primary-dark); line-height: 1; cursor: pointer;
}
.syn-form__rail.is-overflow .syn-form__scroll svg { display: block; }
.syn-form__rail.is-overflow .syn-form__scroll:hover { background: var(--color-primary-dark); color: var(--color-white); }
.syn-form__rail.is-overflow .syn-form__scroll:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }
.syn-form__rail.is-overflow .syn-form__scroll:disabled { opacity: .3; cursor: default; background: var(--color-white); color: var(--color-primary-dark); }

/* ---- the step ---- */
.syn-form__main { padding: 22px 24px 18px; display: grid; gap: 16px; align-content: start; min-width: 0; margin: 0; }
.syn-form__head { display: grid; gap: 4px; }
.syn-form__eyebrow { font-family: var(--font-button); font-size: var(--syn-type-small); text-transform: uppercase; letter-spacing: .1em; color: var(--color-highlight); }
.syn-form--wizard .syn-form__title { margin: 0; font-family: var(--font-elegant); font-weight: 700; font-size: var(--syn-type-title); line-height: 1.2; color: var(--color-primary-dark); text-wrap: balance; }
.syn-form__lead { margin: 0; color: var(--color-text-secondary); font-size: var(--syn-type-body); }
.syn-form__body { display: grid; gap: 14px; min-width: 0; }
.syn-form__panel { display: grid; gap: 14px; min-width: 0; }
.syn-form--wizard .syn-form__sub { margin: 4px 0 0; font-family: var(--font-elegant); font-weight: 700; font-size: var(--syn-type-heading); line-height: 1.25; color: var(--color-primary-dark); }   /* a heading inside a step (Anthony, 24 Oct 2026: bigger, the heading font) */
/* A section inside a step (e.g. Age check, Contact information, Essay or video): its own soft panel so it reads as a
   separate part (Anthony, 24 Oct 2026). A section inside a section stays plain. */
.syn-form__section { display: grid; gap: 12px; padding: 14px 16px 16px; border-radius: 8px; background: var(--color-surface-soft); border: 1px solid var(--color-border-light); min-width: 0; }
.syn-form__section .syn-form__section { padding: 0; border: 0; background: transparent; }
.syn-form__text { margin: 0; color: var(--color-text-secondary); font-size: var(--syn-type-body); }   /* a short paragraph inside a step */

/* ---- fields: two columns; --full spans both ---- */
.syn-form__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.syn-form__field { display: grid; gap: 6px; align-content: start; min-width: 0; }
/* Fields side by side line up (Anthony, 24 Oct 2026: a label on two lines pushed its box below its neighbour's): each
   field uses its row's shared tracks: label, control, hint, error. Fields with other content keep their own layout. */
@supports (grid-template-rows: subgrid) {
    .syn-form__fields > .syn-form__field:not(:has(> :nth-child(5))) { grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .syn-form__fields > .syn-form__field:not(:has(> :nth-child(5))) > label { align-self: end; margin-bottom: 6px; }
    .syn-form__fields > .syn-form__field:not(:has(> :nth-child(5))) > .syn-form__field-hint,
    .syn-form__fields > .syn-form__field:not(:has(> :nth-child(5))) > .syn-form__error { margin-top: 4px; }
}
.syn-form__field--full, .syn-form__field--check { grid-column: 1 / -1; }
.syn-form__field > label { font-family: var(--font-button); font-weight: 700; font-size: var(--syn-type-body); color: var(--color-text-dark); line-height: 1.3; }
.syn-form__field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.syn-form__field select,
.syn-form__field textarea { width: 100%; font: inherit; font-size: var(--syn-type-body); /* the labels' size on a wide screen (SW-202); a phone keeps the heading size (phone block below) */ padding: 10px 12px; background: var(--color-white); color: var(--color-text-dark); }
.syn-form__field textarea { min-height: 6em; resize: vertical; }
.syn-form__field input[readonly]:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .syn-form__field select[readonly] { background: var(--color-bg-light); color: var(--color-text-muted); }   /* read only: the email; the country, set by the phone's (SW-202) */
.syn-form__field select[readonly] { pointer-events: none; appearance: none; }
/* SW-198: the phone's country choice in front of the number */
.syn-form__phone { display: flex; gap: 6px; min-width: 0; }
.syn-form__phone > .syn-form__phone-country { flex: 0 0 auto; width: auto; field-sizing: content; }   /* as wide as the chosen flag + code (18 Nov 2026) */
.syn-form__phone > input { flex: 1 1 auto; min-width: 0; }
.syn-form__field--check > label { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-weight: 400; font-size: var(--syn-type-body); }
.syn-form__field--check input { margin-top: 3px; flex: none; }
.syn-form__field-hint { font-size: var(--syn-type-small); color: var(--color-text-muted); }
.syn-form__error { font-size: var(--syn-type-small); color: var(--color-error-text); }
.syn-form__field.is-error input, .syn-form__field.is-error select, .syn-form__field.is-error textarea { border-color: var(--color-error-text) !important; }

/* ---- message box + progress line: the standard ones, spaced for the card ---- */
.syn-form__messages--wizard:has(> .syn-form__message:empty):has(> .message-display-progress-indicator[hidden]) { display: none; }   /* no message, not busy: no empty gap */
.syn-form__messages--wizard .syn-form__message { margin-top: 0; }
.syn-form__messages--wizard .message-display-progress-indicator { text-align: center; font-size: var(--syn-type-body); }

/* ---- Back (quiet) + Continue (main) ---- */
.syn-form__foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 14px; border-top: 1px solid var(--color-border-light); }
/* Buttons never break their own text: when they do not fit side by side, each goes on its own line, centred (Anthony, 25 Oct 2026).
   The card's main column is a container, so this holds in a narrow card or popup on a wide screen too, not only on a phone. */
.syn-form__main { container-type: inline-size; }
.syn-form__foot > *, .syn-form__foot button, .syn-form__foot a { white-space: nowrap; flex: none; }
@container (max-width: 400px) { .syn-form__foot { justify-content: center; } .syn-form__foot > * { margin-inline: 0 !important; } }
.syn-form--wizard .syn-form__next {
    margin-left: auto;
    font-weight: 700; line-height: 1.2; cursor: pointer;   /* font, size, padding, border, corners, colours: the pill's (Form DS 0.7 4.4.8) */
    box-shadow: 0 4px 12px rgba(var(--color-highlight-rgb), .3);
}
.syn-form--wizard .syn-form__next:hover, .syn-form--wizard .syn-form__next:focus { background: var(--color-highlight); border-color: var(--color-highlight); color: var(--color-white); filter: brightness(1.1); }
.syn-form--wizard .syn-form__next:disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
.syn-form--wizard .syn-form__back {
    font-family: var(--font-button); font-weight: 700; font-size: var(--syn-type-body);
    background: transparent; border: 0; padding: 11px 4px; color: var(--color-primary); cursor: pointer;
}
.syn-form--wizard .syn-form__back::before { content: "\2190\00a0"; }
.syn-form--wizard .syn-form__back:hover, .syn-form--wizard .syn-form__back:focus { background: transparent; color: var(--color-primary-dark); text-decoration: underline; }
.syn-form--wizard .syn-form__next:focus-visible, .syn-form--wizard .syn-form__back:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }
.syn-form__note { text-align: center; font-size: var(--syn-type-small); color: var(--color-text-muted); }
.syn-form__note p { margin: 0; }
.syn-form__note a, .syn-form__lead a, .syn-form__text a, .syn-form__field-hint a, .syn-form__field--check a { color: var(--color-link); text-decoration: underline; }

/* ---- phone (and any narrow column): the rail becomes a row of numbers on top, one column of fields
   unless a field is --half, the main button full width with Back under it ---- */
@media (max-width: 600px) {
    .syn-form__field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .syn-form__field select, .syn-form__field textarea { font-size: var(--syn-type-heading); }   /* a phone keeps the larger size: no zoom on an iPhone (SW-202) */
    .syn-form--wizard { grid-template-columns: minmax(0, 1fr); margin: 1em auto; }
    .syn-form__rail { padding: 12px 14px; gap: 0; }
    .syn-form__rail-title { display: none; }
    .syn-form__steps { grid-auto-flow: column; grid-auto-columns: minmax(36px, 1fr); gap: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 3px 0; }   /* many steps: the row scrolls, js/wizard.js keeps the current one in view */
    .syn-form__steps::-webkit-scrollbar { display: none; }
    .syn-form__step { grid-template-columns: 1fr; justify-items: center; }
    .syn-form__step-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* hidden on screen, still read by screen readers */
    .syn-form__step:not(:last-child)::after { left: calc(50% + 15px); right: calc(-50% + 15px); top: 12px; width: auto; height: 2px; }
    .syn-form--wizard-bar .syn-form__bar { padding: 16px 14px 0; }
    .syn-form__main { padding: 16px 14px 14px; gap: 14px; }
    .syn-form__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .syn-form__field { grid-column: 1 / -1; }
    .syn-form__field--half { grid-column: auto; }
    /* Buttons keep their pill size on a phone, centred, as the site's other pills (Anthony, 25 Oct 2026: full width looked out of place) */
    .syn-form__foot { flex-wrap: wrap; justify-content: center; }
    .syn-form--wizard .syn-form__next { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) { .syn-form--wizard .syn-form__next { transition: filter .15s ease; } .syn-form__bar-fill { transition: transform .3s ease; } }

/* ==== from css/accounts.css ==== */
.syn-form--wizard.syn-form--registration .syn-form__note { display: grid; gap: 4px; }

/* ---- 2. the email-code box on its own (contact form: under Send; camp application: inside a wizard panel) ---- */
.syndesi-code-step[hidden] { display: none !important; }
.syn-form__code-box {
    display: grid; gap: 10px; width: 100%; max-width: var(--wizard-max-width); margin: 12px auto; box-sizing: border-box;
    padding: 16px 18px; background: var(--color-white); border: 1px solid var(--color-border-light); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(var(--color-shadow-rgb), .06), 0 8px 24px rgba(var(--color-shadow-rgb), .08);
    text-align: left; font-family: var(--font-body); color: var(--color-text-dark);
}
.syn-form__code-box *, .syn-form__code-box *::before, .syn-form__code-box *::after { box-sizing: border-box; }
.syn-form--wizard .syn-form__code-box { margin: 0; max-width: none; background: var(--color-surface-soft); box-shadow: none; }   /* inside a wizard card: an inset, not a second card */
.syn-form__code-form { display: grid; gap: 8px; margin: 0; }
.syn-form__code-box .syn-form__code-title { margin: 0; font-family: var(--font-elegant); font-weight: 700; font-size: var(--syn-type-heading); line-height: 1.25; color: var(--color-primary-dark); }
.syn-form__code-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.syn-form__code-row .syn-form__field { flex: 1 1 200px; }
.syn-form__code-box .syn-form__field > label { font-family: var(--font-button); font-weight: 700; font-size: var(--syn-type-body); color: var(--color-text-dark); }
.syn-form__code-box .syn-form__field input { width: 100%; font-size: var(--syn-type-heading); padding: 10px 12px; }
.syn-form__code-box .syn-form__code-verify {   /* the look is the pill's (pill DS 0.3 4.1.24) */
    flex: 0 0 auto; margin: 0; font-weight: 700; line-height: 1.2; cursor: pointer;
    box-shadow: 0 4px 12px rgba(var(--color-highlight-rgb), .3);
}
.syn-form__code-box .syn-form__code-verify:hover,
.syn-form__code-box .syn-form__code-verify:focus { background: var(--color-highlight); border-color: var(--color-highlight); color: var(--color-white); filter: brightness(1.1); }
.syn-form__code-box .syn-form__code-verify:disabled,
.syn-form__code-box .syn-form__code-verify.disabled { opacity: .5; cursor: not-allowed; filter: none; box-shadow: none; }
.syn-form__code-box .syn-form__code-verify:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }
.syn-form__code-resend { margin: 0; font-size: var(--syn-type-body); }
.syn-form__code-box .syn-form__message { margin-top: 0; }
@media (max-width: 600px) {
    .syn-form__code-box { padding: 14px; }
    .syn-form__code-box .syn-form__code-verify { margin: 0 auto; }   /* pill size on a phone, centred (25 Oct 2026, was full width) */
}
.syn-form__code-box .syn-form__code-intro { margin: 0; font-size: var(--syn-type-body); line-height: 1.45; color: var(--color-text-dark); }

/* Registration step 1 (24 Oct 2026, Anthony): Log in as a teal pill just left of Continue (gold), the wizard's own button
   size (css/globals.css .syn-form__next); on a phone the same size, side by side, centred (25 Oct 2026, was full width). */
.syn-form--wizard .syn-form__login-wrap { margin-left: auto; }
.syn-form--wizard .syn-form__login-wrap + .syn-form__next { margin-left: 0; }
.syn-form--wizard a.syn-form__login {   /* the look is the pill's (pill DS 0.3 4.1.24) */
    display: inline-block; font-weight: 700; line-height: 1.2; text-decoration: none;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), .3);
}
.syn-form--wizard a.syn-form__login:hover, .syn-form--wizard a.syn-form__login:focus { color: var(--color-white); filter: brightness(1.1); text-decoration: none; }
.syn-form--wizard a.syn-form__login:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
@media (max-width: 600px) {
    .syn-form--wizard .syn-form__login-wrap { margin-left: 0; }
}

/* ---- OUR LOGIN (25 Oct 2026; php/accounts/account-code-login.php): one card, three ways in (code, password, forgot) ---- */
.syn-form--wizard.syn-form--login .syn-form__rail, .syn-form--wizard.syn-form--profile .syn-form__rail { display: none; }   /* no step row: one short card (the log-in card; a member profile box, SW-171 DS 4.1.8) */

/* ---- THE CAREERS VARIANT (SW-202, Anthony 18 Nov 2026: "a second class of this wizard ... for careers"): the open
   jobs page in the wizard's frame, in the wizard's top layout (syn-form--wizard-top; Anthony, 18 Nov 2026: "the
   filters go on top in a wizard format instead of the side"): the Filter's tick boxes in the band on top, a smaller
   type so a label like "Tourism and hospitality" keeps one line ---- */
/* the page's width, as the application wizard (above), so three job cards fit side by side on a wide screen */
.syn-form--wizard.syn-form--careers { max-width: none; }
.syn-form--careers .syn-form__rail { padding: 16px 18px; }
.syn-form--careers .syn-form__main { padding-top: 22px; }
.syn-form--careers .syn-form__choices { gap: .35em; }
.syn-form--careers .syn-form__choice { padding: .4em .5em; gap: .4em; font-size: var(--syn-type-fine); }
/* the boxes open ticked, so a ticked box keeps the plain white look; the tick itself shows the choice */
.syn-form--careers .syn-form__choice:has(input:checked) { border-color: var(--color-border-input); background: var(--color-white); }
@media (max-width: 600px) {
    .syn-form--careers .syn-form__rail { padding: 12px 10px; }
    .syn-form--careers .syn-form__main { padding: 12px 8px; }
    .syn-form--careers .syn-form__choice { padding: .35em .45em; gap: .35em; }
}

/* ==== from css/application.css ==== */
/* A student's step: its parts one under the other (age check, contact information, essay or video), each with a
   small heading (.syn-wiz-sub); the parent / guardian part inside contact information. */
.syn-form--wizard.syn-form--application .syn-form__card,
.syn-form--wizard.syn-form--application .syn-form__part { display: grid; gap: 12px; min-width: 0; }
.syn-form--wizard.syn-form--application .syn-form__card { gap: 22px; }
.syn-form--wizard.syn-form--application .syn-form__part > .syn-form__sub:first-child { margin-top: 0; }

/* File picker: the browser's own button can't be translated, so it is replaced (as the contact form's). The real file
   input covers the button and the file name (transparent): the click lands on it and opens the picker in every browser. */
.syn-form--wizard.syn-form--application .app-file { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.syn-form--wizard.syn-form--application .syn-form__file-pick { position: relative; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.syn-form--wizard.syn-form--application .app-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; font-size: 0; margin: 0; padding: 0; }
.syn-form--wizard.syn-form--application .app-file-button {
    padding: 6px 14px; border: 1px solid var(--color-primary); border-radius: 4px;
    color: var(--color-primary); background: var(--color-white); font-family: var(--font-button); font-weight: 700;
}
.syn-form--wizard.syn-form--application .syn-form__file-pick:hover .app-file-button { color: var(--color-white); background: var(--color-primary); }
.syn-form--wizard.syn-form--application .app-file-input:focus-visible ~ .app-file-button { outline: 2px solid var(--color-highlight); outline-offset: 2px; }
.syn-form--wizard.syn-form--application .app-file-name { overflow-wrap: anywhere; color: var(--color-text-secondary); }
.syn-form--wizard.syn-form--application .syn-form__file-clear {
    font: inherit; cursor: pointer; background: none; border: 0; padding: 4px 0;
    color: var(--color-primary); text-decoration: underline;
}

/* The rules' notices (AP4 age exception, AP12 country) under their field: the site's standard message box
   (.message-display, css/globals.css); an 'info' notice has no colour class, so it is shown here. */
.syn-form--wizard.syn-form--application .syn-form__notice.syn-form__message { display: block; margin-top: 2px; grid-column: 1 / -1; }   /* a row of its own under its field's row */

/* On a phone the school's country and city each take the whole row (a half-width list clips "Choose a country"). */
@media (max-width: 600px) {
    .syn-form--wizard.syn-form--application .syn-form__field--wide { grid-column: 1 / -1; }
}

/* Confirm: who is being applied for */
.syn-form--wizard.syn-form--application .syn-form__summary-list { margin: 0; padding-left: 1.4em; }
.syn-form--wizard.syn-form--application .syn-form__summary .syn-form__text { margin: 0; }


/* Done, AP18 already applied: the three contact icons right under the message */
.syn-form--wizard.syn-form--application .syn-form__existing-box { display: flex; justify-content: center; }
/* On Done the message (references, or AP18's reason) comes first and the step's content (the icons) under it. */
.syn-form--wizard.syn-form--application.is-done .syn-form__messages--wizard { order: 1; }
.syn-form--wizard.syn-form--application.is-done .syn-form__body { order: 2; }
.syn-form--wizard.syn-form--application.is-done .syn-form__foot,
.syn-form--wizard.syn-form--application.is-done .syn-form__note { order: 3; }   /* AP18 with other students: their button last */
.syn-form--wizard.syn-form--application.is-done .syn-form__foot:has(> .syn-form__next[hidden]):has(> .syn-form__back[hidden]),
.syn-form--wizard.syn-form--application .syn-form__done:empty { display: none; }   /* nothing to go back to or on with */

/* Done after a sent application (Anthony, 24 Oct 2026): each student's reference with "Withdraw this application"
   (a quiet link-like button), then "Add a student" (outlined pill, the main button stays "Start a new application"). */
.syn-form--wizard.syn-form--application .syn-form__done { display: grid; gap: 14px; justify-items: start; }
.syn-form--wizard.syn-form--application .syn-form__onfile { display: grid; gap: 10px; margin-bottom: 18px; }
.syn-form--wizard.syn-form--application .syn-form__onfile[hidden] { display: none; }
.syn-form--wizard.syn-form--application .syn-form__onfile .syn-form__sub { margin: 0; }
.syn-form--wizard.syn-form--application .syn-form__done-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.syn-form--wizard.syn-form--application .syn-form__done-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 10px 12px; border: 1px solid var(--color-border-light); border-radius: 8px; background: var(--color-surface-soft); }
.syn-form--wizard.syn-form--application .syn-form__done-ref { font-weight: 700; color: var(--color-text-dark); overflow-wrap: anywhere; }
.syn-form--wizard.syn-form--application .syn-form__remove-student { grid-column: 1 / -1; justify-self: start; margin-top: -4px; }
.syn-form--wizard.syn-form--application .syn-form__withdraw, .syn-form--wizard.syn-form--application .syn-form__remove-student { font: inherit; font-size: .92em; background: none; border: 0; padding: 0; color: var(--color-link); text-decoration: underline; cursor: pointer; }
.syn-form--wizard.syn-form--application .syn-form__withdraw:hover, .syn-form--wizard.syn-form--application .syn-form__withdraw:focus,
.syn-form--wizard.syn-form--application .syn-form__remove-student:hover, .syn-form--wizard.syn-form--application .syn-form__remove-student:focus { background: none; color: var(--color-primary-dark); }
.syn-form--wizard.syn-form--application .syn-form__add-student {
    font-weight: 700; cursor: pointer;   /* font, size, padding, border, corners, colours: the pill's (Form DS 0.7 4.4.8) */
}
.syn-form--wizard.syn-form--application .syn-form__add-student:hover, .syn-form--wizard.syn-form--application .syn-form__add-student:focus { background: var(--color-primary) !important; color: var(--color-white) !important; }


/* Who is applying: option buttons (Anthony, 24 Oct 2026), one row each, the whole row clickable. */
.syn-form__choices { display: flex; flex-direction: column; gap: .5em; }
.syn-form__role { display: flex; flex-direction: column; gap: .5em; }
.syn-form__role-positions { padding-left: 1.5em; }   /* a role's positions under it (SW-202) */
.syn-form__role:has(> .syn-form__choice input:not(:checked)) > .syn-form__role-positions { display: none; }   /* shown while the role is ticked */
.syn-accordion--no-first-label > .syn-accordion__content > .syn-form__fields:first-child > .syn-form__field:first-child > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* the row's title says it (Anthony, 18 Nov 2026) */
.syn-form__fields:not(:has(input[data-syn-specify]:checked)) > .syn-form__field:has([data-syn-specify-text]) { display: none; }   /* the words box only for the choice that asks them: Other, Private insurance (Anthony, 18 Nov 2026) */
.syn-form__choice { display: flex; align-items: center; gap: .6em; padding: .65em .9em; border: 1px solid var(--color-border-input, #ccc); border-radius: 6px; background: var(--color-white, #fff); cursor: pointer; color: var(--color-text-dark, #333); }
.syn-form__choice:hover { border-color: var(--color-primary, #528377); }
.syn-form__choice input[type="radio"] { margin: 0; width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.syn-form__choice:has(input:checked) { border-color: var(--color-primary, #528377); background: var(--color-secondary-light, #E8ECE7); }
.syn-form__choice:has(input:focus-visible) { outline: 2px solid var(--color-primary, #528377); outline-offset: 2px; }

/* ===================================================================== */
/* THE MEMBER PROFILE (SW-171 DS 2.1.14, 2.2.3): today's WCBY modules/css/userProfileTemplates.css, then
   modules/css/subscription.css less its lines 556-593 (the gate notice: css/accounts.css), moved as they are. */
/* ===================================================================== */
/* ---- from modules/css/userProfileTemplates.css ---- */
/* Begin user profile enhancements */

/* Style for the profile container */
.syn-member-profile .user-profile-container{
    display: flex;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important; /* Align content to the top */
    margin: 1em auto!important;
    padding: 1em;
    gap:1em !important;
    background-color: #ffffff;
    border-radius: 8px;
    border-width:0px;
    border-style:groove;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    width:calc(350px + (500 - 350) * ((100vw - 300px) / (1600 - 300))) !important;
}


.syn-member-profile .anonymous-login-container{
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    text-align:center;
}


.syn-member-profile .subscription-info-content-column{
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    width:100%;
    gap: 1em;
}

.syn-member-profile .avatar-preview{
    border-radius: 50%;
    width: 104px;
    height: 104px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    background-color: #FFCC33;
    display: flex;
    justify-content: center;
    align-items: center;
}

.syn-member-profile .avatar-preview:hover{
    width:  108px;
    height: 108px;
}


.syn-member-profile .avatar-link img{
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}

.syn-member-profile .info_label_single_object{
    font-weight: bold; /* Make labels bold for better visibility */
    text-align: left; /* Align text to the left */
    font-size: var(--syn-type-body) !important;
    font-family: 'Averia', 'Libre Serif', serif;
    width:100%;
}

.syn-member-profile .info_label_single_object_centered{
    font-weight: bold; /* Make labels bold for better visibility */
    text-align: center; /* Align text to the left */
    font-size: var(--syn-type-body) !important;
    font-family: 'Averia', 'Libre Serif', serif;
    color: #446344;
    width:100%;
}

.syn-member-profile .label-group{
    display: flex;
    align-items: center;
    gap: 1em;
    justify-content: flex-start;
    width: 100%;
    font-family: 'Averia', 'Libre Serif', serif;
    color: #446344;
    width:100%;
}


.syn-member-profile .readonly-info-box-label{
    font-weight: bold; /* Make labels bold for better visibility */
    font-size: var(--syn-type-body) !important;
    text-align:left;
    width:calc(80px + (120 - 80) * ((100vw - 300px) / (1600 - 300)));

}

.syn-member-profile .readonly-info-box{
    font-size: var(--syn-type-body) !important;
    text-align:left;
}

.syn-member-profile .info-box-label{
    font-weight: bold; /* Make labels bold for better visibility */
    font-size: var(--syn-type-body) !important;
    width:calc(80px + (120 - 80) * ((100vw - 300px) / (1600 - 300)));
}

.syn-member-profile .info-box{
    font-size: var(--syn-type-body) !important;
}

.syn-member-profile #country_dropdown{
    width:calc(120px + (160 - 120) * ((100vw - 300px) / (1600 - 300)));
    font-size: var(--syn-type-body) !important;
    font-family: 'Averia', 'Libre Serif', serif;
    color: #446344;
}

.syn-member-profile #profile_display_name{
    width:calc(130px + (170 - 130) * ((100vw - 300px) / (1600 - 300)));
    font-size: var(--syn-type-body) !important;
    font-family: 'Averia', 'Libre Serif', serif;
    color: #446344;
    background-color: #FFFFFF;
}

.syn-member-profile #profile_biography{
    width:100%;
}


.syn-member-profile #admonition_displayname.show{ display: block; }
.syn-member-profile #admonition_displayname.hide{ display: none; }


/* Style for buttons */
.syn-member-profile .update-profile-button{
    font-family: 'Averia', 'Libre Serif', serif !important;
    font-weight: 500 !important;
    font-size: var(--syn-type-body) !important;
    color: #446344;
    background-color: #ffffff;
    border-color: #446344 !important;
    border-width: 1px !important;
    border-style: groove !important;
    border-radius: 10px !important;
    padding: 8px 16px !important;
    cursor: pointer;
}

.syn-member-profile .update-profile-button:hover{
    color: #FFCC33 !important;
    border-color: #FFCC33 !important;
    background-color: #FFFFFF !important;
}

.syn-member-profile .update-profile-button:active{
    color: #FFCC33 !important;
    border-color: #FFCC33 !important;
    background-color: #FFFFFF !important;
}

.syn-member-profile .update-profile-button.disabled{
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #E0E0E0 !important;
    border-color:#E0E0E0 !important;
}

.syn-member-profile .update-profile-button.disabled:hover{
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #E0E0E0 !important;
    border-color:#E0E0E0 !important;
}

.syn-member-profile #update-button-avatar.disabled{
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background-color: #E0E0E0 !important;
    border-color:#E0E0E0 !important;
}



.syn-member-profile .input{
    font-size: var(--syn-type-body);
    font-family: 'Verdana', sans-serif;
    max-width: calc(300px + (300 - 175) * ((100vw - 300px) / (1600 - 300)));
    width: 100%;
    display: block;
    margin: 0 auto;
}


.syn-member-profile .input-label{
    width: 185px; /* Set a fixed width for labels */
    font-weight: bold; /* Make labels bold for better visibility */
    text-align: left; /* Align text to the left */
    font-size: var(--syn-type-body) !important;
    margin:1em !important; /* Space between rows */
    font-family:'Averia Serif Libre', serif !important;
    color:var(--e-global-color-primary) !important;
}

.syn-member-profile .subscription-activation{
    display: flex; /* Use flexbox for layout */
    flex-direction: column;
    margin:1em; 
    align-items: center;
}



.syn-member-profile .profile-membership-button.subscribed{
    background-color: var(--e-global-color-secondary,#446344); /* Green for active */
    color: #FFFFFF;
    border-color:var(--e-global-color-secondary,#446344);
}

.syn-member-profile .profile-membership-button.subscribed:hover{
    background-color: var(--e-global-color-7620581,#FFCC33);
    color: #FFFFFF;
    border-color: var(--e-global-color-7620581,#FFCC33);
}

.syn-member-profile .profile-membership-button.unsubscribed{
    background-color: #B22222;
    color: #FFFFFF;
    border-color:#B22222;
    font-weight:600 !important;
}

.syn-member-profile .profile-membership-button.unsubscribed:hover{
    background-color: var(--e-global-color-7620581,#FFCC33);
    border-color: var(--e-global-color-7620581,#FFCC33);
    font-weight:600 !important;
}


.syn-member-profile #subscription-email-newsletter-button{
     min-width:100%;
     width:300px;
     margin-bottom: 1em;
}

/* ---- from modules/css/subscription.css (lines 1-555) ---- */
/*
 * WCBY registration popup — form.css (18 Oct 2026).
 * Part 1 = the old css/userSubscriptionDetectionAndProcesses.css as it was (modal, form, steps),
 * one change: the close button is a text "×" (the old background image pointed at a hard-coded
 * staging URL). Part 2 = the few new elements (poll notice, privacy line, password rules,
 * message colours, the hidden state of #syn-account__modal).
 */

/* ===================== PART 1: the old stylesheet ===================== */
/* ----------------------------------- */
/* Start modal styles */


/* Prevent scrolling when the modal is active */
 body.syn-member-profile.no-scroll{
    overflow: hidden;
}  


/* Modal overlay for blocking user interaction */
.syn-member-profile .modal-overlay-full{
    position: fixed;
    top: 40%; /* Show the top 40% of the page */
    left: 0;
    width: 100%;
    height: 60%; /* Block the rest 60% */
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    z-index: 1000;
}
.syn-member-profile .modal-overlay-full-mobile{
    position: fixed;
    top: 40%;
    left: 0;
    width: 100%;
    height: 60%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* Remove close button when max article count reached */
.syn-member-profile .modal-content.no-close .close{
    display: none;
}
.syn-member-profile .modal-content.no-close-mobile .close-mobile{
    display: none;
}

.syn-member-profile #close-modal-button{
    margin-top:1.3em;
    margin-bottom:1em;
    /* 18 Oct 2026: text × instead of the old staging-URL image */
    background-size: contain; /* Adjust the size to cover the button */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Do not repeat the background image */
    background-color: #E0E0E0;
    width: calc(20px + (40 - 20) * ((100vw - 300px) / (1600 - 300)))!important;
    height: calc(20px + (40 - 20) * ((100vw - 300px) / (1600 - 300)))!important;
    border: 1px solid #aaa; /* Subtle border for the beveled look */
    border-radius: 4px; /* Rounded corners */
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.8), inset -2px -2px 5px rgba(0, 0, 0, 0.2); /* Beveled effect */
    transition: box-shadow 0.1s ease, transform 0.1s ease; /* Smooth transition */
    padding:0.5em;
}

.syn-member-profile #close-modal-button:hover{
    background-color: var(--e-global-color-7620581);
}

/* Modal overlay */
.syn-member-profile .modal-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}
.syn-member-profile .modal-overlay-mobile{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

/* Modal content */
.syn-member-profile .modal-content{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    padding:1em;
    z-index: 1001;
    border-radius: 8px;
    width: calc(260px + (600 - 260) * ((100vw - 300px) / (1600 - 300))) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-height:340px;
}

.syn-member-profile .modal-content-mobile{
    position: fixed !important;
    top: 37%;
    left: 50%!important;
    transform: translate(-50%, -50%) !important;
    background-color: #ffffff;
    margin:0.1em;
    padding: 1em;
    z-index: 1001;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    min-height: 340px;
    width: calc(300px + (600 - 300) * ((100vw - 300px) / (1600 - 300)));
    left: 0; /* Align to the left of the overlay */
    transform: none; /* Remove transform to prevent centering */
}


.syn-member-profile .modal-content-text1{
    margin:1em;
    font-size: var(--syn-type-body) !important;
}
.syn-member-profile .modal-content-text1-mobile{
    margin:1em;
    max-width:100%;
    font-size: var(--syn-type-body) !important;
}

.syn-member-profile .modal-content-text2{
    margin-bottom: 1em;
    font-size: var(--syn-type-body) !important;
}
.syn-member-profile .modal-content-text2-mobile{
    margin-bottom: 1em;
    font-size: var(--syn-type-body) !important;
}

.syn-member-profile .modal-content-header h2{
    margin-left: 1em !important;
    margin-right: 1em !important;
    margin-top:1em !important;
    margin-bottom:0px !important;
    font-size: var(--syn-type-title) !important;
    font-weight:600 !important;
    
}

.syn-member-profile .modal-content-header-mobile h2{
    margin-left: 1em !important;
    margin-right: 1em !important;
    margin-bottom:0px !important;
    font-size: var(--syn-type-title) !important;
    margin-top:1em !important;
    font-weight:600 !important;
}

/* Close button */
.syn-member-profile .close{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: var(--syn-type-heading);
}
.syn-member-profile .close-mobile{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: var(--syn-type-heading);
}


/* ---------------------------------------------------------------- */
/* TOUR ACCESS BLOCKING MODAL - POSITIVE & CENTERED (SPECIFIC ONLY) */
/* ---------------------------------------------------------------- */

/* Prevent scrolling when modal is open */
body.syn-member-profile.tour-modal-open{
    overflow: hidden;
}

/* Full-screen overlay wrapper */
.syn-member-profile .tour-access-modal-wrapper{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);  /* 20% opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    padding: 20px;
    box-sizing: border-box;
}

/* The actual modal card - only affects this modal */
.syn-member-profile .tour-access-modal-content{
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    padding: 40px 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 9999;
    animation: tourModalFadeIn 0.4s ease-out;
}

@keyframes tourModalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* Header - Welcome! */
.syn-member-profile .tour-access-modal-header h2{
    font-size: calc(var(--syn-type-title) * 1.14);
    font-weight: 600;
    color: var(--e-global-color-primary, #446344);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Thank you message */
.syn-member-profile .tour-access-modal-text1{
    font-size: var(--syn-type-heading);
    line-height: 1.6;
    margin: 0 0 24px 0;
    color: #333;
}
.syn-member-profile .tour-access-modal-text1 strong{
    color: var(--e-global-color-primary, #446344);
    font-weight: 600;
}

/* Secondary message */
.syn-member-profile .tour-access-modal-text2{
    font-size: var(--syn-type-body);
    color: #666;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

/* Close button - clean × */
.syn-member-profile .tour-access-close{
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: var(--syn-type-title);
    width: 40px;
    height: 40px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.syn-member-profile .tour-access-close:hover{
    color: var(--e-global-color-primary, #446344);
    background: rgba(68, 99, 68, 0.1);
}

/* Center the subscription form inside this modal */
.syn-member-profile .tour-access-modal-content .custom-subscription-process-container{
    display: flex;
    justify-content: center;
    width: 100%;
}
.syn-member-profile .tour-access-modal-content .syn-account__popup-body{
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: rgba(224, 224, 224, 0.3);
    border-radius: 12px;
    padding: 24px;
    border: 2px groove #2C3E2C;
}

/* Hide old partial overlays - not needed anymore */
.syn-member-profile .modal-overlay-full,
.syn-member-profile .modal-overlay-full-mobile{
    display: none !important;
}


/* -------------------------------------------END-------------------------------------------------------  */
/*                                  SUBSCRIPTION DETECTION MODAL                                          */
/* -----------------------------------------------------------------------------------------------------  */



/* -------------------------------------------BEGIN---------------------------------------------------------*/
/*                              USER SUBSCRIPTION PROCESSES CLASS                                           */
/* ---------------------------------------------------------------------------------------------------------*/

.syn-member-profile .custom-subscription-process-container{
    background-color: rgba(224, 224, 224, 0.4);
}

.syn-member-profile .syn-account__popup-body{
    display: flex;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    padding:1em !important;
    margin:0.25em;
    width: calc(260px + (520 - 260) * ((100vw - 300px) / (1600 - 300)));
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius:10px;
    border-style:groove;
    border-width:2px;
    border-color:#2C3E2CCC;
    z-index: 1002;
 
}

.syn-member-profile .modal-contentsubscription-container{
    margin:0px !important;
    width: calc(260px + (560 - 260) * ((100vw - 300px) / (1600 - 300))) !important;
}
.syn-member-profile .subscription-heading-group{
     margin:1em;
     gap:1em;
}

.syn-member-profile .subscription-heading{
    text-align:center !important;
    font-weight:600 !important;
    font-size: var(--syn-type-title) !important;
    font-family:'Averia Serif Libre', serif !important;
    color:var(--e-global-color-primary) !important;
    padding: 0px !important;
    margin:0px !important;
}

.syn-member-profile .send-new-code-button-div{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding:0px !important;
    height:50%;
}

.syn-member-profile .resend-new-code-link{
    text-align: center !important;
    font-weight: 400 !important;
    font-size: var(--syn-type-section) !important;
    font-family: 'Averia Serif Libre', serif !important;    
    color: #0275BD !important;
}

.syn-member-profile #resend-new-code-link-0.disabled, .syn-member-profile #resend-new-code-link-1.disabled,
.syn-member-profile #resend-new-code-link-2.disabled, .syn-member-profile #resend-new-code-link-3.disabled{
    opacity: 0.6;
    cursor: not-allowed !important;
    background-color: #E0E0E0 !important;
}

.syn-member-profile .resend-new-code-link:hover{
    color:#FFCC33 !important;
}

.syn-member-profile .subscription-form-label{
    text-align:center;
    font-weight:600;
    font-size: var(--syn-type-body);
    font-family:'Averia Serif Libre', serif;
    color:var(--e-global-color-primary);
    margin-top:1em !important;
}

.syn-member-profile .subscription-button-group{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    gap:1em;
}

.syn-member-profile .subscription-label{
    font-family: 'Averia Serif Libre', serif !important;
    font-size: var(--syn-type-small);
    color: var(--e-global-color-secondary,'#446344');
    font-weight: 400;
    text-align:center;
}

.syn-member-profile input.subscription-input{
    font-size: var(--syn-type-fine) !important;
    font-family: 'Verdana', sans-serif !important;
}

.syn-member-profile .password-input-wrapper{
    position: relative;
}

.syn-member-profile .toggle-password{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.syn-member-profile #password-field{
    padding-right: 1em;
}


.syn-member-profile input.subscription-input::placeholder{
    color: #999;
    font-style: italic;
    font-size: var(--syn-type-small) !important;
    opacity: 0.7;
    font-family: 'Verdana', sans-serif !important;
}


.syn-member-profile .subscription-password-input::placeholder{
    color: #999;
    font-style: italic;
    font-size: var(--syn-type-small);
    opacity: 0.7;
    font-family: 'Verdana', sans-serif !important;
}


.syn-member-profile .toggle-password{
    position: absolute;
    cursor: pointer;
    font-size: calc(var(--syn-type-title) * 1.10) !important;
    display: flex;
    align-items: center;
    height: 160%;
    margin-bottom:1em;
    padding-right:1em;
}

.syn-member-profile .password-input-wrapper{
    position: relative;
}

.syn-member-profile #password-field-0,.syn-member-profile #password-field-1,.syn-member-profile #password-field-2,.syn-member-profile #password-field-3,.syn-member-profile #password-field-4,.syn-member-profile #password-field-5, .syn-member-profile #password-field-6, .syn-member-profile #password-field-7,.syn-member-profile #password-field-8{
    padding-right: 2em; /* Add some padding to prevent text overlap with the icon */
}

.syn-member-profile #subscription-button-0, .syn-member-profile #subscription-button-1, .syn-member-profile #subscription-button-2,.syn-member-profile #subscription-button-3,.syn-member-profile #subscription-button-4,.syn-member-profile #subscription-button-5,
.syn-member-profile #subscription-button-6, .syn-member-profile #subscription-button-7, .syn-member-profile #subscription-button-8{
    /* the look is the pill's (pill DS 0.3 4.1.24; decision 9.63); the layout stays */
    width: 60%;
    display: block; /* Makes the button a block element */
    margin: 0 auto; /* Centers the button horizontally */
    cursor: pointer; /* Changes cursor to pointer on hover */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

.syn-member-profile #subscription-button-0.disabled, .syn-member-profile #subscription-button-1.disabled, .syn-member-profile #subscription-button-2.disabled,.syn-member-profile #subscription-button-3.disabled, .syn-member-profile #subscription-button-4.disabled,
.syn-member-profile #subscription-button-5.disabled, .syn-member-profile #subscription-button-6.disabled, .syn-member-profile #subscription-button-7.disabled, .syn-member-profile #subscription-button-8.disabled{
    opacity: 0.6;
    cursor: not-allowed !important;
}




/* Make sure the form is centered horizontally when shown */

.syn-member-profile .syn-account__popup-form{
    display: flex;
    flex-direction:column;
    width: 100%;
}







/* -------------------------------------------END---------------------------------------------------------*/
/*                              USER SUBSCRIPTION PROCESSES CLASS                                           */
/* ---------------------------------------------------------------------------------------------------------*/



/* -------------------------------------------BEGIN-----------------------------------------------------*/
/* (PHP add_shortcode('custom_subscription_button', 'custom_subscription_button_shortcode');)           */
/* logged in user info shortcode                                                                        */
/* ---------------------------------------------------------------------------------------------------  */


/* Flexbox styling for the logged-in user info container */
.syn-member-profile .logged-in-user-info{
    display: flex; /* Use flexbox for horizontal alignment */
    align-items: center; /* Align items vertically centered */
    gap: 10px; /* Space between the elements */
    margin-bottom: 20px; /* Margin below the container */
}

/* Style for the avatar size */
.syn-member-profile .logged-in-user-info img.avatar{
    width: 30px; /* Set the desired width for the avatar */
    height: 30px; /* Set the desired height for the avatar */
    border-radius: 50%; /* Optional: Make the avatar circular */
}
/* Style for the text and link elements inside the flexbox */
.syn-member-profile .logged-in-user-info p{
    margin: 0; /* Remove default margin */
    font-family: var(--e-global-typography-Text-font-family, 'Arial');
    font-size: var(--syn-type-small) !important;
}
.syn-member-profile .logged-in-user-info a{
    color: var(--e-global-color-link, #0275BD) !important; /* Fallback to white color if variable is not found */
    font-family: var(--e-global-typography-accent-font-family, 'Arial') !important; /* Fallback to 'Arial' if variable is not found */
    font-size: var(--syn-type-small) !important;
    font-weight: 600 !important;
}
.syn-member-profile .logged-in-user-info a:hover{
    color: var(--e-global-color-Hover, #FFCC33) !important;
}

/* ===================== PART 2: additions, 18 Oct 2026 ===================== */
.syn-member-profile #syn-account__modal[hidden]{ display: none; }
.syn-member-profile #syn-account__modal.is-open{ display: block; }
.syn-member-profile .syn-account__modal .close-modal-buttons{ font-size: 1.3em; line-height: 1; color: #446344; }
.syn-member-profile .syn-account__modal .modal-content{ max-height: 90vh; overflow: auto; }

/* Messages (success / error / warning, links and help inside them): the shared theme's css/globals.css .message-display only (24 Oct 2026). */
.syn-member-profile .syn-account__popup-body .message-display-progress-indicator[hidden]{ display: none; }
.syn-member-profile .syn-account__popup-body .message-display-progress-indicator{ margin-top: .5em; font-style: italic; opacity: .8; }

.syn-member-profile .syn-account__popup-form .syn-account__privacy,
.syn-member-profile .syn-account__popup-form .syn-account__rules{ font-size: .8em; line-height: 1.35; opacity: .85; margin: .6em 0 0; flex-basis: 100%; }
.syn-member-profile .syn-account__popup-form .syn-account__privacy a,
.syn-member-profile .syn-account__popup-form .syn-account__rules a{ text-decoration: underline; }
.syn-member-profile .syn-account__popup-form input[name="confirmation_code"]{ letter-spacing: .25em; text-align: center; font-weight: 600; }
.syn-member-profile .syn-account__popup-form .toggle-password{ background: none; border: 0; cursor: pointer; font-size: 1.1em; padding: 0 .4em; }
.syn-member-profile .syn-account__popup-form .subscription-submit-button.disabled,
.syn-member-profile .syn-account__popup-form .resend-new-code-link.disabled{ opacity: .5; pointer-events: none; }
.syn-member-profile a.subscription-submit-button{ display: inline-block; text-align: center; text-decoration: none; }
.syn-member-profile .wcby-sub-verified-page{ max-width: 640px; margin: 3em auto; padding: 0 16px; text-align: center; }

/* ---- from modules/css/subscription.css (lines 594-627) ---- */
.syn-member-profile .syn-account__popup-body .subscription-heading{ color: var(--color-primary-dark, #3f6058) !important; font-family: inherit !important; }
.syn-member-profile .syn-account__popup-body .user-login a,
.syn-member-profile .syn-account__popup-body .resend-new-code-link,
.syn-member-profile .syn-account__popup-body .syn-account__privacy a,
.syn-member-profile .syn-account__popup-body .syn-account__rules a,
.syn-member-profile .syn-account__popup-body .generate-password{ color: var(--color-link, #2b678e) !important; text-decoration: underline; font-size: .9em; font-weight: 400; }
.syn-member-profile .syn-account__popup-body .user-login a:hover,
.syn-member-profile .syn-account__popup-body .resend-new-code-link:hover{ color: var(--color-primary-dark, #3f6058) !important; }
.syn-member-profile .syn-account__popup-body .send-new-code-button-div{ text-align: right; margin: 0; }
.syn-member-profile .syn-account__popup-body .syn-account__popup-form input[type="email"],
.syn-member-profile .syn-account__popup-body .syn-account__popup-form input[type="text"],
.syn-member-profile .syn-account__popup-body .syn-account__popup-form input[type="password"]{
    border: 1px solid var(--color-border-input, #ccc) !important; border-radius: 6px; background: var(--color-white, #fff); color: var(--color-text-dark, #333);
    letter-spacing: normal; font-weight: 400; text-align: left; box-shadow: none;
}
.syn-member-profile .syn-account__popup-body .syn-account__popup-form input[name="confirmation_code"]{ text-align: center; letter-spacing: .2em; font-weight: 600; }
.syn-member-profile .syn-account__popup-body .syn-account__popup-form input:focus{ outline: 2px solid var(--color-primary, #528377); outline-offset: 1px; border-color: var(--color-primary, #528377) !important; }
.syn-member-profile .syn-account__popup-body .subscription-submit-button,
.syn-member-profile .syn-account__popup-body a.subscription-submit-button{
    background: var(--color-primary, #528377) !important; color: var(--color-white, #fff) !important; border: 1px solid var(--color-primary-dark, #3f6058) !important;
    border-radius: 6px; font-weight: 600; cursor: pointer;
}
.syn-member-profile .syn-account__popup-body .subscription-submit-button:hover,
.syn-member-profile .syn-account__popup-body a.subscription-submit-button:hover{ background: var(--color-primary-dark, #3f6058) !important; }
.syn-member-profile .syn-account__popup-body .toggle-password{ color: var(--color-primary, #528377); }

/* ===================================================================== */
/* CLOSE AND CANCEL (Anthony, 19 Nov 2026: "The X button simply closes the wizard without deleting the info"; "the cancel will
   give a warning in a modal"). One close button: the registration popup's and the application card's x (top right, above the
   card); the Cancel warning: a dialog with the popup's backdrop, Keep (teal pill) left, Cancel (orange) after it. */
.syn-account__modal .syn-account__close, .syn-form__close {
    position: absolute; top: 0; right: 0; z-index: 2; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
    background: var(--color-white); border: 1px solid var(--color-border-light); border-radius: 9999px; color: var(--color-primary-dark); font-size: var(--syn-type-section); line-height: 1; cursor: pointer; text-decoration: none;
}
.syn-account__modal .syn-account__close:hover, .syn-account__modal .syn-account__close:focus,
.syn-form__close:hover, .syn-form__close:focus { background: var(--color-secondary-light); color: var(--color-primary-dark); }
.syn-form__dialog { max-width: var(--wizard-max-width); width: calc(100% - 32px); padding: 1.5em; border: 1px solid var(--color-border-light); border-radius: 12px;   /* the card's own corners */ background: var(--color-white); color: inherit; }
.syn-form__dialog::backdrop { background: rgba(var(--color-shadow-rgb), .55); }
.syn-form__dialog-actions { display: flex; flex-wrap: wrap; gap: .75em; margin-top: 1.25em; }
