/* ==========================================================================
   Hosted signup forms: the payer's page, and the builder canvas that shows it

   Everything is scoped under .sf-root. On the hosted page that is <body>; in
   the builder it is the canvas element inside the portal layout, so the same
   rules draw both and the portal's own styles never reach the form (nor the
   form's reach the portal). The designer's theme arrives as the --sf-*
   custom properties on .sf-root (App\Services\SignupForms\ThemeCss), so
   nothing here hard codes a colour, a font, a shadow or a size.
   ========================================================================== */

.sf-root {
    font-family: var(--sf-font);
    font-size: var(--sf-font-size);
    color: var(--sf-text);
    background: var(--sf-bg);
    line-height: var(--sf-leading);
    -webkit-font-smoothing: antialiased;
}
.sf-root, .sf-root *, .sf-root *::before, .sf-root *::after { box-sizing: border-box; }

.sf-root .sf-page { padding: calc(var(--sf-page-pad) * .6) 16px calc(var(--sf-page-pad) * 1.2); }
/* The box the form sits in. A "flat" card is transparent with no border or
   shadow (ThemeCss), so the blocks sit straight on the page. */
.sf-root .sf-card {
    max-width: var(--sf-width);
    margin: 0 auto;
    background: var(--sf-card-bg);
    border: var(--sf-card-border-w) solid var(--sf-card-border);
    border-radius: var(--sf-radius);
    box-shadow: var(--sf-card-shadow);
    padding: calc(var(--sf-card-pad) * .78) calc(var(--sf-card-pad) * .67);
}
@media (min-width: 640px) {
    .sf-root .sf-card { padding: var(--sf-card-pad) calc(var(--sf-card-pad) * 1.11); }
    .sf-root .sf-page { padding-top: var(--sf-page-pad); }
}

/* The hosted page fills the window, so under a short form the footer and
   the BankTap line still sit at the bottom of the screen. */
body.sf-root { min-height: 100vh; display: flex; flex-direction: column; }
body.sf-root > .sf-page { flex: 1 0 auto; }

/* The blocks above the form (partials/header.blade.php) and under it
   (partials/footer.blade.php), each row across the whole page. They have
   no look of their own: every block carries its background, text colour
   and space (.sf-el below), and blocks touch, so neighbours with the same
   background read as one bar and a banner with no space reaches the
   edges. A block is the full row, a share of it, or only as wide as what
   it shows ("auto"). Auto blocks keep to their alignment: the first of a
   run aligned centre or right takes the free space before it, and the
   last of a centred run the space after it, so a logo and a name on the
   left and a link on the right sit like the top of a website. On a phone
   shares become full rows. */
.sf-root .sf-footer { font-size: .9em; line-height: 1.5; }
.sf-root .sf-zone { display: flex; flex-wrap: wrap; align-items: stretch; }
.sf-root .sf-zcell { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.sf-root .sf-zcell--auto { flex: 0 1 auto; }
@media (min-width: 640px) {
    .sf-root .sf-zcell--half { flex-basis: 50%; }
    .sf-root .sf-zcell--third { flex-basis: 33.3333%; }
    .sf-root .sf-zcell--two_thirds { flex-basis: 66.6667%; }
}
.sf-root .sf-zcell--auto.sf-zcell--right:not(.sf-zcell--auto.sf-zcell--right + .sf-zcell--auto.sf-zcell--right),
.sf-root .sf-zcell--auto.sf-zcell--center:not(.sf-zcell--auto.sf-zcell--center + .sf-zcell--auto.sf-zcell--center) { margin-left: auto; }
.sf-root .sf-zcell--auto.sf-zcell--center:not(:has(+ .sf-zcell--auto.sf-zcell--center)):not(:has(+ .sf-zcell--auto.sf-zcell--right)) { margin-right: auto; }
/* A styled block fills its cell, so side by side blocks are as tall as
   each other and their backgrounds line up. */
.sf-root .sf-zcell > .sf-el { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
.sf-root .sf-zone .sf-zcell > :where(:not(.sf-section)), .sf-root .sf-zone .sf-zcell > .sf-el > * { margin-top: 0; margin-bottom: 0; }
.sf-root .sf-zone h1, .sf-root .sf-zone h2, .sf-root .sf-zone h3 { color: inherit; margin: 0; line-height: 1.25; }
.sf-root .sf-zone h1 { font-size: 1.6em; }
.sf-root .sf-zone h2 { font-size: 1.25em; }
.sf-root .sf-zone h3 { font-size: 1.05em; }
.sf-root .sf-zone .sf-rich p { margin-bottom: 4px; }
.sf-root .sf-zone .sf-rich > :last-child { margin-bottom: 0; }
.sf-root .sf-zone a:where(:not(.sf-btn)) { color: inherit; }
.sf-root .sf-zone .sf-divider { border-top-color: currentColor; opacity: .25; }
.sf-root .sf-zcell--auto .sf-image img { width: auto; max-width: 100%; }

/* A block with a style of its own (ElementStyle): a box, named by its id,
   that the page's element stylesheet styles. In the form the box keeps the
   gap under it, so what is inside drops its own outer margins (they outweigh
   each widget's margin rule). The box's own margin weighs nothing (:where),
   so the designer's margin, set on the box, always wins. */
.sf-root .sf-el > :first-child { margin-top: 0; }
.sf-root .sf-el > :last-child { margin-bottom: 0; }
:where(.sf-root .sf-card .sf-el:not(.sf-section, .sf-col)) { margin-bottom: var(--sf-field-gap); }

/* A section (partials/section.blade.php), as in Elementor: a row of
   columns sharing the width by their own (--sf-col-w), --sf-gap apart. Its
   content is as wide as the form, or a width of its own, unless it is
   "full". Columns stack on a phone, in reverse if the section says so. The
   builder's phone preview is a narrow frame, not a phone, so .sf-phone on
   the canvas does the same. */
.sf-root .sf-section { display: flex; flex-direction: column; justify-content: center; min-height: var(--sf-sec-min, 0); }
.sf-root .sf-section-inner { display: flex; gap: var(--sf-gap, 24px); width: 100%; margin: 0 auto; align-items: flex-start; }
.sf-root .sf-section--boxed > .sf-section-inner { max-width: var(--sf-sec-w, var(--sf-width)); }
.sf-root .sf-section--v-center > .sf-section-inner { align-items: center; }
.sf-root .sf-section--v-bottom > .sf-section-inner { align-items: flex-end; }
.sf-root .sf-section--v-stretch > .sf-section-inner { align-items: stretch; }
.sf-root .sf-col { flex: var(--sf-col-w, 100) 1 0%; min-width: 0; display: flex; flex-direction: column; }
.sf-root .sf-col--v-center { justify-content: center; }
.sf-root .sf-col--v-bottom { justify-content: flex-end; }
.sf-root .sf-col > :last-child { margin-bottom: 0; }
/* A widget without a box of its own ends a column with no gap under it either. */
.sf-root .sf-section .sf-col > :last-child:not(.sf-el) { margin-bottom: 0; }
:where(.sf-root .sf-card .sf-section) { margin-bottom: var(--sf-field-gap); }
@media (max-width: 639px) {
    .sf-root .sf-section > .sf-section-inner { flex-direction: column; align-items: stretch; }
    .sf-root .sf-section--reverse > .sf-section-inner { flex-direction: column-reverse; }
    .sf-root .sf-col { flex: 0 0 auto; }
}
.sf-root.sf-phone .sf-section > .sf-section-inner { flex-direction: column; align-items: stretch; }
.sf-root.sf-phone .sf-section--reverse > .sf-section-inner { flex-direction: column-reverse; }
.sf-root.sf-phone .sf-col { flex: 0 0 auto; }

/* A Links block: a row of links, or of outlined buttons. In the body they
   take the link colour; in the header and footer, the text colour there. */
.sf-root .sf-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-links.sf-align-center { justify-content: center; }
.sf-root .sf-links.sf-align-right { justify-content: flex-end; }
.sf-root .sf-links a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sf-root .sf-links--buttons { gap: 8px 10px; }
.sf-root .sf-links--buttons a { text-decoration: none; padding: 7px 16px; border: 1.5px solid currentColor; border-radius: var(--sf-button-radius); line-height: 1.3; }
.sf-root .sf-links--buttons a:hover { text-decoration: underline; }
/* A Copyright block: the year moves on by itself. */
.sf-root .sf-copyright { font-weight: 600; }

/* The BankTap footer (partials/powered.blade.php): a white band across the
   very bottom of every hosted page, the same on every form whatever its
   theme. The body is a column (above), so on a short page the band still
   sits at the bottom of the screen. */
.sf-root .sf-banktap { margin-top: auto; background: #fff; border-top: 1px solid #e5e7eb; padding: 16px; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.sf-root .sf-banktap-link { display: flex; align-items: center; justify-content: center; gap: 12px; color: #4b5563; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; }
.sf-root .sf-banktap-link img { display: block; height: 30px; width: auto; }
.sf-root .sf-banktap-link:hover span { color: #111827; }

.sf-root h1, .sf-root h2, .sf-root h3 { font-family: var(--sf-heading-font); color: var(--sf-heading); line-height: 1.25; margin: 0 0 12px; font-weight: var(--sf-heading-weight); }
.sf-root h1 { font-size: var(--sf-h1); }
.sf-root h2 { font-size: calc(var(--sf-h1) * .74); margin-top: 8px; }
.sf-root h3 { font-size: calc(var(--sf-h1) * .63); }
.sf-root p { margin: 0 0 12px; }
.sf-root a { color: var(--sf-link); }
.sf-root ul, .sf-root ol { margin: 0 0 12px; padding-left: 22px; }
.sf-root ul { list-style: disc; }
.sf-root ol { list-style: decimal; }
.sf-root strong, .sf-root b { font-weight: 700; }
.sf-root em, .sf-root i { font-style: italic; }

.sf-root .sf-logo { display: block; margin: 0 0 20px; }
.sf-root .sf-logo img { display: inline-block; max-width: 100%; width: auto; }
.sf-root .sf-align-left { text-align: left; }
.sf-root .sf-align-center { text-align: center; }
.sf-root .sf-align-right { text-align: right; }
.sf-root .sf-divider { border: 0; border-top: 1px solid var(--sf-border); margin: 20px 0; }
/* The grid a page goes on once any of its blocks is narrower than the full
   row (partials/blocks.blade.php): six columns, so halves and thirds both
   fit, and one column on a phone. */
.sf-root .sf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.sf-root .sf-cell { grid-column: span 6; min-width: 0; }
@media (min-width: 640px) {
    .sf-root .sf-cell--half { grid-column: span 3; }
    .sf-root .sf-cell--third { grid-column: span 2; }
    .sf-root .sf-cell--two_thirds { grid-column: span 4; }
}
/* An Image block: the designer's own picture, as tall as they set it. */
.sf-root .sf-image { margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-image img { display: block; width: 100%; }
.sf-root .sf-image a { display: block; }
.sf-root .sf-image--rounded img { border-radius: var(--sf-inner-radius); }
/* A page block, drawn only on the builder canvas: the hosted form starts a
   new screen there instead (FormPages). */
.sf-root .sf-page-break { display: flex; align-items: center; gap: 12px; margin: 10px 0; color: var(--sf-primary); font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sf-root .sf-page-break::before, .sf-root .sf-page-break::after { content: ""; flex: 1 1 0; border-top: 2px dashed var(--sf-primary); opacity: .45; }
.sf-root .sf-rich p:last-child { margin-bottom: 0; }
.sf-root .sf-rich { margin-bottom: 16px; }

.sf-root .sf-field { margin-bottom: var(--sf-field-gap); }
.sf-root .sf-label { display: block; font-weight: var(--sf-label-weight); margin-bottom: 6px; color: var(--sf-label); }
.sf-root .sf-label .sf-optional { font-weight: 400; opacity: .7; font-size: .9em; }
.sf-root .sf-help { font-size: .9em; opacity: .75; margin: 4px 0 0; }
.sf-root .sf-input, .sf-root .sf-select, .sf-root .sf-textarea {
    width: 100%;
    font: inherit;
    color: var(--sf-input-text);
    background: var(--sf-input-bg);
    border: var(--sf-input-border-w) solid var(--sf-input-border);
    border-radius: var(--sf-inner-radius);
    padding: var(--sf-input-pad);
    margin: 0;
}
/* In the builder the portal's own theme rules reach every input and select
   ([data-theme="dark"] input[type="text"] and friends). Doubling the root
   class outranks them, so the canvas keeps the designer's colours. */
.sf-root.sf-root .sf-input, .sf-root.sf-root .sf-select, .sf-root.sf-root .sf-textarea { color: var(--sf-input-text); background: var(--sf-input-bg); }
.sf-root.sf-root .sf-select option { color: var(--sf-input-text); background: var(--sf-input-bg); }
.sf-root .sf-input:focus, .sf-root .sf-select:focus, .sf-root .sf-textarea:focus { outline: 2px solid var(--sf-focus); outline-offset: 1px; border-color: var(--sf-focus); }
.sf-root .sf-input.is-invalid, .sf-root .sf-select.is-invalid { border-color: #b91c1c; }
.sf-root .sf-textarea { min-height: 96px; resize: vertical; }
.sf-root .sf-check { display: flex; gap: 10px; align-items: flex-start; }
.sf-root .sf-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--sf-focus); flex: 0 0 auto; }
.sf-root .sf-error { color: #b91c1c; font-size: .9em; margin: 6px 0 0; }
/* A tick the payer must give before submitting: its own tinted, bordered box so it stands out from the text around it. */
.sf-root .sf-confirm { border: 2px solid var(--sf-primary); border-radius: var(--sf-inner-radius); background: transparent; background: color-mix(in srgb, var(--sf-primary) 8%, transparent); padding: 14px 16px; margin: 18px 0; }
.sf-root .sf-confirm .sf-check { cursor: pointer; font-weight: 700; }
.sf-root .sf-confirm .sf-check input { width: 22px; height: 22px; margin-top: 1px; }
.sf-root .sf-confirm--error { border-color: #b91c1c; background: #fef2f2; }
.sf-root .sf-locked .sf-confirm { margin-bottom: 0; }
.sf-root .sf-warning { border: 1px solid #fcd34d; background: #fffbeb; color: #92400e; border-radius: var(--sf-inner-radius); font-size: .9em; padding: 8px 12px; margin: 8px 0 0; }
.sf-root .sf-alert { border: 1px solid #fca5a5; background: #fef2f2; color: #991b1b; border-radius: var(--sf-inner-radius); padding: 12px 14px; margin-bottom: 18px; }
.sf-root .sf-alert p { margin: 0; }
.sf-root .sf-notice { border: 1px solid var(--sf-border); background: rgba(0, 0, 0, .025); border-radius: var(--sf-inner-radius); padding: 14px 16px; margin-bottom: 18px; }
.sf-root .sf-notice p:last-child { margin-bottom: 0; }

.sf-root .sf-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; }
.sf-root .sf-btn {
    font: inherit; font-weight: 600; cursor: pointer;
    background: var(--sf-button-bg); color: var(--sf-button-fg);
    border: 1px solid var(--sf-button-border); border-radius: var(--sf-button-radius);
    box-shadow: var(--sf-button-shadow);
    padding: var(--sf-button-pad); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    width: var(--sf-button-width);
}
.sf-root .sf-actions .sf-btn { flex: 0 0 var(--sf-button-width); }
.sf-root .sf-btn:disabled { opacity: .6; cursor: wait; }
.sf-root .sf-btn--ghost { background: transparent; color: var(--sf-button); box-shadow: none; }

/* Address search above the address fields: type part of an address or a
   postcode and pick from the list under the box. The fields stay tucked
   away until an address is picked or "Enter address manually" is clicked. */
.sf-root .sf-lookup { grid-column: 1 / -1; }
.sf-root .sf-lookup-box { position: relative; }
.sf-root .sf-lookup-list {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px);
    margin: 0; padding: 4px 0; list-style: none; max-height: 280px; overflow-y: auto;
    color: var(--sf-input-text); background: var(--sf-input-bg);
    border: var(--sf-input-border-w) solid var(--sf-input-border); border-radius: var(--sf-inner-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.sf-root .sf-lookup-list li { padding: 8px 12px; cursor: pointer; line-height: 1.35; }
.sf-root .sf-lookup-list li:hover, .sf-root .sf-lookup-list li.is-active { background: rgba(0, 0, 0, .06); }
.sf-root .sf-lookup .sf-lookup-message { margin-top: 6px; }
.sf-root .sf-lookup-manual { display: inline-block; margin-top: 8px; background: none; border: 0; padding: 0; font: inherit; font-size: .9em; color: var(--sf-link); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sf-root .sf-lookup [hidden], .sf-root .sf-field[hidden], .sf-root .sf-cell[hidden], .sf-root .sf-el[hidden] { display: none !important; }

.sf-root .sf-progress { display: flex; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.sf-root .sf-progress li { flex: 1; font-size: .8em; text-align: center; opacity: .55; }
.sf-root .sf-progress li span { display: block; height: 4px; border-radius: 2px; background: var(--sf-border); margin-bottom: 6px; }
.sf-root .sf-progress li.is-done span, .sf-root .sf-progress li.is-current span { background: var(--sf-primary); }
.sf-root .sf-progress li.is-current { opacity: 1; font-weight: 600; }

.sf-root .sf-question { border: 1px solid var(--sf-border); border-radius: var(--sf-inner-radius); padding: 16px; margin-bottom: 16px; }
.sf-root .sf-question legend { font-weight: var(--sf-label-weight); color: var(--sf-label); padding: 0 4px; }
.sf-root .sf-radios { display: flex; gap: 20px; margin-top: 8px; }
.sf-root .sf-radios label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sf-root .sf-radios input { accent-color: var(--sf-focus); width: 18px; height: 18px; }
.sf-root .sf-summary { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.sf-root .sf-summary th, .sf-root .sf-summary td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--sf-border); vertical-align: top; }
.sf-root .sf-summary th { width: 42%; font-weight: var(--sf-label-weight); color: var(--sf-label); padding-right: 12px; }
.sf-root .sf-locked { border: 1px solid var(--sf-border); border-radius: var(--sf-inner-radius); padding: 18px; margin: 18px 0; }
.sf-root .sf-locked h3 { display: flex; align-items: center; gap: 10px; }
.sf-root .sf-dd-logo { height: 34px; width: auto; }
.sf-root .sf-guarantee ul { padding-left: 20px; margin: 0; }
.sf-root .sf-guarantee li { margin-bottom: 8px; }
.sf-root .sf-small { font-size: .88em; opacity: .8; }
.sf-root .sf-preview-banner { background: #fef3c7; color: #92400e; font-size: .85em; text-align: center; padding: 8px 12px; border-radius: var(--sf-inner-radius); margin-bottom: 18px; }
.sf-root .sf-honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.sf-root .sf-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--sf-button); color: var(--sf-button-text); display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 0 16px; }
.sf-root .sf-boxes { font-family: "Courier New", monospace; letter-spacing: .35em; font-size: 1.15em; }

/* The completed Direct Debit Instruction on the success page
   (partials/instruction.blade.php), drawn like the paper Instruction the
   sponsoring bank approves. Its look is fixed on purpose: black on white in
   a plain sans serif whatever the theme, so none of the --sf-* variables
   reach it. Two columns from 640px; one under that. */
.sf-root .sf-ddi-form { background: #fff; color: #111; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.35; padding: 18px; margin-top: 28px; border-radius: 4px; }
.sf-root .sf-ddi-form h2, .sf-root .sf-ddi-form h3 { color: #000; font-family: inherit; font-weight: 700; letter-spacing: 0; }
.sf-root .sf-ddi-form h2 { font-size: 22px; margin: 0 0 6px; }
.sf-root .sf-ddi-form p { margin: 0; }
.sf-root .sf-ddi-row { display: grid; grid-template-columns: 1fr; gap: 0 40px; }
.sf-root .sf-ddi-su p { padding-left: 4px; }
.sf-root .sf-ddi-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0 8px; }
.sf-root .sf-ddi-title p { font-size: 16px; line-height: 1.25; }
.sf-root .sf-ddi-title img, .sf-root .sf-ddi-guarantee-head img { height: 36px; width: auto; flex: 0 0 auto; }
.sf-root .sf-ddi-col { display: flex; flex-direction: column; }
.sf-root .sf-ddi-label { display: block; font-size: 11px; margin: 14px 0 4px; }
.sf-root .sf-ddi-box { border: 1px solid #666; border-radius: 4px; padding: 5px 7px; min-height: 30px; font-size: 14px; word-break: break-word; }
.sf-root .sf-ddi-tag { font-size: 11px; margin-right: 18px; white-space: nowrap; }
.sf-root .sf-ddi-bank { padding-top: 3px; }
.sf-root .sf-ddi-col h3 { font-size: 15px; font-weight: 400; margin: 6px 0 4px; }
.sf-root .sf-ddi-instruction { font-size: 11px; }
.sf-root .sf-ddi-date { margin-top: 16px; min-height: 70px; display: flex; flex-direction: column; justify-content: space-between; padding-top: 10px; }
.sf-root .sf-ddi-note { text-align: center; margin: 8px 0 14px !important; }
.sf-root .sf-ddi-guarantee { border: 1px solid #666; border-radius: 4px; padding: 10px 8px 4px; }
.sf-root .sf-ddi-guarantee-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sf-root .sf-ddi-guarantee-head h3 { font-size: 19px; margin: 0 0 4px; }
.sf-root .sf-ddi-guarantee ul { margin: 0 0 8px; padding-left: 20px; }
.sf-root .sf-ddi-guarantee li { margin-bottom: 7px; }
.sf-root .sf-ddi-guarantee-sub { margin-top: 4px; }
@media (min-width: 640px) {
    .sf-root .sf-ddi-row { grid-template-columns: 1fr 1fr; }
    .sf-root .sf-ddi-title { margin: 22px 0 0; }
    .sf-root .sf-ddi-date { margin-top: auto; }
}

/* Products and Donation blocks (partials/block.blade.php). A choice is a
   card the whole width of the form; the chosen one takes the primary
   colour, so it reads in any theme. */
.sf-root .sf-products, .sf-root .sf-donation { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.sf-root .sf-products legend, .sf-root .sf-donation legend { padding: 0; }
.sf-root .sf-product { margin-top: 10px; }
.sf-root .sf-product-head { margin: 14px 0 6px; }
.sf-root .sf-product-name { display: block; font-weight: 700; color: var(--sf-heading); }
.sf-root .sf-product-desc { display: block; font-size: .9em; opacity: .75; }
.sf-root .sf-choice {
    border: var(--sf-input-border-w) solid var(--sf-input-border);
    border-radius: var(--sf-inner-radius);
    margin-top: 8px;
    background: var(--sf-input-bg);
}
.sf-root .sf-choice.is-chosen { border-color: var(--sf-primary); box-shadow: 0 0 0 1px var(--sf-primary); }
.sf-root .sf-choice-main { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; margin: 0; }
.sf-root .sf-choice-main input { width: 18px; height: 18px; accent-color: var(--sf-focus); flex: 0 0 auto; margin: 0; }
.sf-root .sf-choice-text { flex: 1 1 auto; min-width: 0; }
.sf-root .sf-choice-name { display: block; font-weight: 600; color: var(--sf-heading); }
.sf-root .sf-choice-desc { display: block; font-size: .88em; opacity: .75; }
.sf-root .sf-choice-price { flex: 0 0 auto; font-weight: 700; text-align: right; white-space: nowrap; }
.sf-root .sf-choice-price small { display: block; font-weight: 400; font-size: .78em; opacity: .75; }
.sf-root .sf-qty { display: flex; align-items: center; gap: 8px; padding: 0 14px 12px 44px; flex-wrap: wrap; }
.sf-root .sf-qty label { font-size: .9em; margin-right: 4px; }
.sf-root .sf-qty .sf-qty-input { width: 64px; text-align: center; padding: 6px 4px; -moz-appearance: textfield; }
.sf-root .sf-qty .sf-qty-input::-webkit-outer-spin-button, .sf-root .sf-qty .sf-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sf-root .sf-qty-btn {
    font: inherit; font-weight: 700; line-height: 1; cursor: pointer;
    width: 32px; height: 32px; border-radius: 50%;
    border: var(--sf-input-border-w) solid var(--sf-input-border); background: var(--sf-input-bg); color: var(--sf-heading);
}
.sf-root .sf-qty-btn:hover { border-color: var(--sf-primary); color: var(--sf-primary); }
.sf-root .sf-subtotal { margin: 10px 0 0; font-weight: 600; text-align: right; }
.sf-root .sf-amounts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sf-root .sf-amount {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    min-width: 76px; padding: 10px 16px; cursor: pointer; font-weight: 600;
    border: var(--sf-input-border-w) solid var(--sf-input-border); border-radius: var(--sf-inner-radius); background: var(--sf-input-bg);
}
.sf-root .sf-amount input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-root .sf-amount.is-chosen { border-color: var(--sf-primary); background: var(--sf-primary); color: var(--sf-button-text); }
.sf-root .sf-amount:focus-within { outline: 2px solid var(--sf-primary); outline-offset: 2px; }
.sf-root .sf-amount--none { font-weight: 400; }
.sf-root .sf-other { margin-top: 12px; max-width: 220px; }
/* Collection date block: one drop down, sized to its choices, with the
   date of the first payment under it. */
.sf-root .sf-collection { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.sf-root .sf-collection legend { padding: 0; }
.sf-root .sf-collection .sf-select { max-width: 320px; }
.sf-root .sf-collection-first { margin: 8px 0 0; font-weight: 600; }
.sf-root .sf-order td.sf-num, .sf-root .sf-order th.sf-num { text-align: right; white-space: nowrap; }
.sf-root .sf-order th { width: auto; }
.sf-root .sf-order tfoot th, .sf-root .sf-order tfoot td { font-weight: 700; border-bottom: 0; }

@media print {
    .sf-root { background: #fff; }
    .sf-root .sf-page { padding: 0; }
    .sf-root .sf-card { border: 0; box-shadow: none; max-width: none; padding: 0; }
    .sf-root .sf-no-print { display: none !important; }
    .sf-root .sf-ddi-form { padding: 0; }
    .sf-root .sf-ddi-row { grid-template-columns: 1fr 1fr; }
}

/* ------------------------------------------------------- widget library */
/* The widgets of partials/block.blade.php (WidgetProps). Colours come from
   the theme (--sf-primary, --sf-button-*, --sf-border) unless the widget or
   the element's style says otherwise. */

.sf-root .sf-ico { width: 1em; height: 1em; flex: 0 0 auto; fill: currentColor; }

/* Button: the theme's button, at a size of its own, or a plain link. */
.sf-root .sf-wbtn-row { margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-wbtn { width: auto; }
.sf-root .sf-wbtn .sf-ico { width: 1.1em; height: 1.1em; }
.sf-root .sf-wbtn--small { padding: 7px 14px; font-size: .9em; }
.sf-root .sf-wbtn--large { padding: 16px 32px; font-size: 1.1em; }
.sf-root .sf-wbtn--outline { background: transparent; color: var(--sf-button); }
.sf-root .sf-wbtn--link { background: transparent; color: var(--sf-link); border-color: transparent; box-shadow: none; padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 3px; }
.sf-root .sf-wbtn--full { display: flex; width: 100%; }
.sf-root .sf-wbtn:hover { filter: brightness(1.06); }

/* Spacer: empty height, smaller on a phone when set. */
.sf-root .sf-spacer { height: var(--sf-h); }
@media (max-width: 639px) { .sf-root .sf-spacer { height: var(--sf-hp, var(--sf-h)); } }
.sf-root.sf-phone .sf-spacer { height: var(--sf-hp, var(--sf-h)); }

/* Icon: alone, or in a filled or outlined circle or square. */
.sf-root .sf-wicon-row { margin: 0 0 var(--sf-field-gap); line-height: 0; }
.sf-root .sf-wicon { display: inline-flex; align-items: center; justify-content: center; font-size: var(--sf-ico-size, 48px); color: var(--sf-ico-color, var(--sf-primary)); }
.sf-root .sf-wicon--stacked, .sf-root .sf-wicon--framed { width: 1.8em; height: 1.8em; }
.sf-root .sf-wicon--stacked .sf-ico, .sf-root .sf-wicon--framed .sf-ico { width: .55em; height: .55em; }
.sf-root .sf-wicon--stacked { background: var(--sf-ico-color, var(--sf-primary)); color: #fff; }
.sf-root .sf-wicon--framed { border: 2px solid currentColor; }
.sf-root .sf-wicon--circle { border-radius: 50%; }
.sf-root .sf-wicon--square { border-radius: var(--sf-inner-radius); }

/* Icon list: ticks and benefits, one under another or in a row. */
.sf-root .sf-ilist { list-style: none; margin: 0 0 var(--sf-field-gap); padding: 0; display: flex; flex-direction: column; gap: var(--sf-list-gap, 8px); }
.sf-root .sf-ilist--inline { flex-direction: row; flex-wrap: wrap; column-gap: calc(var(--sf-list-gap, 8px) * 2.5); }
.sf-root .sf-ilist.sf-align-center { align-items: center; justify-content: center; }
.sf-root .sf-ilist.sf-align-right { align-items: flex-end; justify-content: flex-end; }
.sf-root .sf-ilist li, .sf-root .sf-ilist a { display: inline-flex; align-items: flex-start; gap: 10px; }
.sf-root .sf-ilist a { color: inherit; text-decoration: none; }
.sf-root .sf-ilist a:hover span { text-decoration: underline; }
.sf-root .sf-ilist .sf-ico { width: var(--sf-ico-size, 18px); height: var(--sf-ico-size, 18px); color: var(--sf-ico-color, var(--sf-primary)); margin-top: .15em; }

/* Image box and icon box: a picture or icon with a heading and words. */
.sf-root .sf-ibox { display: flex; flex-direction: column; gap: 14px; margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-ibox.sf-align-center { align-items: center; }
.sf-root .sf-ibox.sf-align-right { align-items: flex-end; }
.sf-root .sf-ibox-img { display: block; width: 100%; height: var(--sf-ibox-h, 200px); object-fit: cover; }
.sf-root .sf-ibox-img--rounded { border-radius: var(--sf-inner-radius); }
.sf-root .sf-ibox-title { margin: 0 0 6px; font-size: 1.15em; }
.sf-root .sf-ibox-title a { color: inherit; text-decoration: none; }
.sf-root .sf-ibox-text { margin: 0; opacity: .9; }
@media (min-width: 640px) {
    .sf-root .sf-ibox--left, .sf-root .sf-ibox--right { flex-direction: row; align-items: flex-start; text-align: left; }
    .sf-root .sf-ibox--right { flex-direction: row-reverse; }
    .sf-root .sf-ibox--left > .sf-ibox-img, .sf-root .sf-ibox--right > .sf-ibox-img { flex: 0 0 var(--sf-ibox-w, 35%); width: var(--sf-ibox-w, 35%); height: auto; aspect-ratio: 4 / 3; }
    .sf-root .sf-ibox--left > .sf-wicon { flex: 0 0 auto; }
}

/* Video: a YouTube or Vimeo player at its own shape. */
.sf-root .sf-video { position: relative; width: 100%; margin: 0 0 var(--sf-field-gap); border-radius: var(--sf-inner-radius); overflow: hidden; background: #000; }
.sf-root .sf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Quote: a testimonial with stars, a name and a role. */
.sf-root .sf-quote { margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-quote blockquote { margin: 0 0 12px; font-size: 1.1em; font-style: italic; line-height: 1.5; }
.sf-root .sf-quote-stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; }
.sf-root .sf-quote-stars span:not(.is-on) { opacity: .25; }
.sf-root .sf-quote figcaption { display: inline-flex; align-items: center; gap: 10px; }
.sf-root .sf-quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.sf-root .sf-quote figcaption > span { display: flex; flex-direction: column; text-align: left; }
.sf-root .sf-quote figcaption > span > span { font-size: .9em; opacity: .75; }

/* Alert: a note in one of four tones. */
.sf-root .sf-walert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin: 0 0 var(--sf-field-gap); border-radius: var(--sf-inner-radius); border: 1px solid; }
.sf-root .sf-walert .sf-ico { width: 20px; height: 20px; margin-top: 2px; }
.sf-root .sf-walert p { margin: 4px 0 0; }
.sf-root .sf-walert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.sf-root .sf-walert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.sf-root .sf-walert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.sf-root .sf-walert--danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* Accordion: questions that open to their answers (details and summary). */
.sf-root .sf-acc { margin: 0 0 var(--sf-field-gap); border: 1px solid var(--sf-border); border-radius: var(--sf-inner-radius); overflow: hidden; }
.sf-root .sf-acc-item + .sf-acc-item { border-top: 1px solid var(--sf-border); }
.sf-root .sf-acc-item summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.sf-root .sf-acc-item summary::-webkit-details-marker { display: none; }
.sf-root .sf-acc-item summary::after { content: "+"; font-weight: 700; color: var(--sf-primary); }
.sf-root .sf-acc-item[open] summary::after { content: "\2212"; }
.sf-root .sf-acc-item > .sf-rich { padding: 0 16px 14px; margin: 0; }

/* Tabs: one panel at a time (signup-form-public.js switches them). */
.sf-root .sf-tabs { margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-tabs-list { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--sf-border); margin-bottom: 14px; }
.sf-root .sf-tab { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; color: inherit; opacity: .7; padding: 8px 12px; cursor: pointer; margin-bottom: -1px; }
.sf-root .sf-tab.is-active { opacity: 1; color: var(--sf-primary); border-bottom-color: var(--sf-primary); }
.sf-root .sf-tab-panel { margin: 0; }

/* Social icons: brand colours, dark, light or outlined. */
.sf-root .sf-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-social.sf-align-center { justify-content: center; }
.sf-root .sf-social.sf-align-right { justify-content: flex-end; }
.sf-root .sf-social a { width: var(--sf-social-size, 40px); height: var(--sf-social-size, 40px); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: transform .12s ease; }
.sf-root .sf-social a:hover { transform: translateY(-2px); }
.sf-root .sf-social .sf-ico { width: 50%; height: 50%; }
.sf-root .sf-social--circle a { border-radius: 50%; }
.sf-root .sf-social--rounded a { border-radius: 25%; }
.sf-root .sf-social--brand a { background: var(--sf-brand); color: #fff; }
.sf-root .sf-social--dark a { background: #111827; color: #fff; }
.sf-root .sf-social--light a { background: #fff; color: #111827; border: 1px solid var(--sf-border); }
.sf-root .sf-social--outline a { border: 2px solid currentColor; color: inherit; }

/* Map and the designer's own HTML: framed at a set height. */
.sf-root .sf-map { margin: 0 0 var(--sf-field-gap); border-radius: var(--sf-inner-radius); overflow: hidden; }
.sf-root .sf-map iframe, .sf-root .sf-html { display: block; width: 100%; height: 100%; border: 0; }
.sf-root .sf-html { margin: 0 0 var(--sf-field-gap); }

/* Counter and countdown: big numbers. */
.sf-root .sf-counter { margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-counter-num { font-family: var(--sf-heading-font); font-weight: var(--sf-heading-weight); font-size: 2.6em; line-height: 1.1; color: var(--sf-primary); }
.sf-root .sf-counter-title { margin-top: 4px; opacity: .8; }
.sf-root .sf-countdown { margin: 0 0 var(--sf-field-gap); }
.sf-root .sf-countdown-parts { display: inline-flex; gap: 10px; }
.sf-root .sf-countdown-part { min-width: 70px; padding: 10px 8px; border-radius: var(--sf-inner-radius); background: var(--sf-primary); color: #fff; text-align: center; }
.sf-root .sf-countdown-part span { display: block; font-family: var(--sf-heading-font); font-size: 1.8em; font-weight: 700; line-height: 1.1; }
.sf-root .sf-countdown-part small { font-size: .75em; text-transform: uppercase; letter-spacing: .06em; opacity: .9; }
.sf-root .sf-countdown-over { margin: 0; font-weight: 600; }

/* Choices: radio buttons and checkbox groups, one under another or in a row. */
.sf-root .sf-choices { border: 0; padding: 0; margin-left: 0; margin-right: 0; min-width: 0; }
.sf-root .sf-choices > legend { padding: 0; }
.sf-root .sf-choice-list { display: flex; flex-direction: column; gap: 8px; }
.sf-root .sf-choice-list--inline { flex-direction: row; flex-wrap: wrap; column-gap: 20px; }
.sf-root .sf-check a { color: var(--sf-link); }
