/* FormsBat public forms. Colours, fonts and shapes come from the theme variables set per form (see /js/forms/themes.js).
   Solid colours only. Works at 320px and up, in iframes and in the builder preview. */
.fb-body { margin: 0; background: var(--fb-bg, #f3f4f6); min-height: 100vh; }
.fb-body:has(.fb-form) { background: var(--fb-page-bg, transparent); }
.fb-form { background: var(--fb-bg); color: var(--fb-text); font-family: var(--fb-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100%; }
.fb-body .fb-form { min-height: 100vh; }
.fb-form *, .fb-form *::before, .fb-form *::after { box-sizing: border-box; }
.fb-shell { max-width: 720px; margin: 0 auto; padding: 40px 16px 32px; }
.fb-embed .fb-shell { padding: 12px 8px; }
.fb-embed .fb-form { min-height: 0; }
.fb-card { background: var(--fb-card); border: 1px solid var(--fb-border); border-radius: var(--fb-radius); overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .05); }
.fb-lay-flat .fb-card { border: 0; box-shadow: none; background: transparent; }
.fb-cover { border-radius: var(--fb-radius); overflow: hidden; margin-bottom: 16px; aspect-ratio: 4 / 1; background: var(--fb-accent-soft); }
.fb-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Header */
.fb-header { padding: 36px 40px 8px; }
.fb-head-band .fb-header { background: var(--fb-accent); color: var(--fb-on-accent); padding: 34px 40px 30px; margin-bottom: 28px; }
.fb-head-band .fb-title, .fb-head-band .fb-desc { color: var(--fb-on-accent); }
.fb-head-centered .fb-header { text-align: center; padding-top: 44px; }
.fb-head-centered .fb-header::after { content: ""; display: block; width: 56px; height: 2px; background: var(--fb-accent); margin: 20px auto 4px; }
.fb-logo { max-height: 56px; max-width: 200px; display: block; margin: 0 0 18px; object-fit: contain; }
.fb-logo-center .fb-logo { margin-left: auto; margin-right: auto; }
.fb-logo-center .fb-header { text-align: center; }
.fb-form h1, .fb-form h2, .fb-form h3 { color: var(--fb-text); }
.fb-title { font-family: var(--fb-heading); font-size: var(--fb-title-size); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; color: var(--fb-text); overflow-wrap: anywhere; }
.fb-t-elegant .fb-title { font-weight: 400; letter-spacing: 0; }
.fb-t-minimal .fb-title { font-weight: 500; }
.fb-desc { margin: 0 0 8px; color: var(--fb-muted); white-space: pre-line; font-size: 16.5px; }
.fb-app { padding: 20px 40px 36px; }
.fb-lay-flat .fb-header, .fb-lay-flat .fb-app { padding-left: 0; padding-right: 0; }
.fb-loading { color: var(--fb-muted); display: grid; gap: 10px; }
@keyframes fb-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.fb-sk { display: block; border-radius: min(calc(var(--fb-radius, 12px) * .65), 10px); background: var(--fb-accent-soft, #ede9fe); animation: fb-pulse 1.2s ease-in-out infinite; }
.fb-sk-label { height: 14px; width: 40%; margin-top: 8px; }
.fb-sk-input { height: 48px; }
.fb-sk-btn { height: 48px; width: 140px; justify-self: end; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .fb-sk { animation: none; } }
.fb-closed { padding: 18px 20px; border-radius: calc(var(--fb-radius) * .6); background: var(--fb-accent-soft); color: var(--fb-text); }
.fb-closed p { margin: 0; }

/* Progress */
.fb-progress { margin: 0 0 26px; }
.fb-progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--fb-muted); margin-bottom: 8px; font-weight: 600; }
.fb-progress-bar { height: 6px; border-radius: 99px; background: var(--fb-accent-soft); overflow: hidden; }
.fb-progress-bar span { display: block; height: 100%; background: var(--fb-accent); border-radius: 99px; transition: width .35s ease; }
.fb-page-title { font-family: var(--fb-heading); font-size: 22px; margin: 0 0 6px; font-weight: 700; }
.fb-page-help { color: var(--fb-muted); margin: 0 0 22px; }

/* Fields */
.fb-fields { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.fb-field { grid-column: 1 / -1; margin: 0 0 var(--fb-gap, 26px); min-width: 0; border: 0; padding: 0; }
.fb-field.half { grid-column: span 1; }
@media (max-width: 560px) { .fb-field.half { grid-column: 1 / -1; } .fb-header, .fb-head-band .fb-header { padding-left: 22px; padding-right: 22px; } .fb-app { padding: 16px 22px 28px; } .fb-shell { padding-top: 16px; } .fb-title { font-size: calc(var(--fb-title-size) * .78); } }
.fb-field[hidden] { display: none; }
.fb-label, .fb-field legend { display: block; font-weight: 600; font-size: 16px; margin: 0 0 8px; padding: 0; color: var(--fb-text); }
.fb-req { color: var(--fb-accent); margin-left: 3px; }
.fb-help { color: var(--fb-muted); font-size: 14px; margin: -4px 0 10px; }
.fb-section { grid-column: 1 / -1; margin: 10px 0 22px; padding-top: 8px; }
.fb-section h2 { font-family: var(--fb-heading); font-size: 21px; margin: 0 0 4px; font-weight: 700; }
.fb-section p { color: var(--fb-muted); margin: 0; }
.fb-section::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 3px; background: var(--fb-accent); margin-bottom: 14px; }

.fb-form .fb-input { width: 100%; height: auto; font: inherit; font-size: 16px; color: var(--fb-text); background: var(--fb-input); border: 1.5px solid var(--fb-border); border-radius: min(calc(var(--fb-radius) * .65), 12px); padding: 12px 14px; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none; min-height: 48px; }
.fb-form textarea.fb-input { min-height: 120px; resize: vertical; line-height: 1.5; }
.fb-form select.fb-input { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.fb-form .fb-input::placeholder { color: var(--fb-muted); opacity: .7; }
.fb-form .fb-input:hover { border-color: color-mix(in srgb, var(--fb-border) 50%, var(--fb-text)); }
.fb-form .fb-input:focus { outline: none; border-color: var(--fb-accent); box-shadow: 0 0 0 4px var(--fb-accent-soft); }
.fb-in-filled .fb-input { border-color: transparent; background: color-mix(in srgb, var(--fb-text) 5%, var(--fb-card)); }
.fb-in-filled .fb-input:focus { background: var(--fb-card); border-color: var(--fb-accent); }
.fb-in-underline .fb-input { border-width: 0 0 1.5px; border-radius: 0; padding-left: 0; padding-right: 0; background-color: transparent; }
.fb-in-underline select.fb-input { padding-right: 30px; background-position: right 4px center; }
.fb-in-underline textarea.fb-input { border-width: 1.5px; padding: 12px; border-radius: 4px; }
.fb-in-underline .fb-input:focus { box-shadow: 0 2px 0 0 var(--fb-accent); }
.fb-invalid .fb-input { border-color: #d92d20; }
.fb-error { display: flex; gap: 6px; align-items: flex-start; color: var(--fb-err, #c4320a); font-size: 14px; font-weight: 500; margin-top: 8px; }
.fb-error:empty { display: none; }
.fb-error::before { content: "!"; flex: none; width: 17px; height: 17px; border-radius: 50%; background: #d92d20; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 2px; }

/* Choices */
.fb-options { display: grid; gap: 10px; }
.fb-options.cols { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.fb-option { position: relative; display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--fb-border); border-radius: min(calc(var(--fb-radius) * .65), 12px); background: var(--fb-input); cursor: pointer; transition: border-color .15s, background .15s; font-size: 15.5px; }
.fb-option:hover { border-color: var(--fb-accent); }
.fb-option input { -webkit-appearance: none; appearance: none; margin: 0; flex: none; width: 20px; height: 20px; border: 2px solid var(--fb-border); background: var(--fb-card); border-radius: 50%; display: grid; place-items: center; transition: all .15s; }
.fb-option input[type=checkbox] { border-radius: 6px; }
.fb-option input:checked { border-color: var(--fb-accent); background: var(--fb-accent); }
.fb-option input[type=radio]:checked { box-shadow: inset 0 0 0 4px var(--fb-card); }
.fb-option input[type=checkbox]:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--fb-on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.fb-option:has(input:checked) { border-color: var(--fb-accent); background: var(--fb-accent-soft); }
.fb-option:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--fb-accent-soft); border-color: var(--fb-accent); }
.fb-option .fb-other-input { margin-left: 4px; flex: 1; min-height: 38px; padding: 6px 10px; }
.fb-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 360px; }
.fb-yesno .fb-option { justify-content: center; font-weight: 600; }
.fb-yesno .fb-option input { position: absolute; opacity: 0; }

/* Rating and scale */
.fb-rating { display: flex; gap: 6px; flex-wrap: wrap; }
.fb-star { position: relative; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.fb-rating.ten .fb-star { width: 34px; }
.fb-star input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.fb-star svg { width: 34px; height: 34px; fill: transparent; stroke: var(--fb-border); stroke-width: 1.6; transition: fill .12s, stroke .12s, transform .12s; }
.fb-rating.ten .fb-star svg { width: 28px; height: 28px; }
.fb-star.on svg { fill: var(--fb-accent); stroke: var(--fb-accent); }
.fb-star:hover svg { transform: scale(1.08); }
.fb-star:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--fb-accent-soft); }
.fb-scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.fb-scale label { position: relative; display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--fb-border); border-radius: min(calc(var(--fb-radius) * .55), 10px); font-weight: 600; cursor: pointer; background: var(--fb-input); font-variant-numeric: tabular-nums; transition: all .12s; }
.fb-scale label:hover { border-color: var(--fb-accent); }
.fb-scale input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-scale label:has(input:checked) { background: var(--fb-accent); border-color: var(--fb-accent); color: var(--fb-on-accent); }
.fb-scale label:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--fb-accent-soft); }
.fb-scale-labels { display: flex; justify-content: space-between; gap: 12px; color: var(--fb-muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 480px) { .fb-scale.many { grid-auto-flow: row; grid-template-columns: repeat(6, 1fr); } }

/* Address, file, signature */
.fb-address { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-address .wide { grid-column: 1 / -1; }
.fb-address label { font-size: 13px; color: var(--fb-muted); display: grid; gap: 4px; }
@media (max-width: 480px) { .fb-address { grid-template-columns: 1fr; } }
.fb-file { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; border: 1.5px dashed var(--fb-border); border-radius: min(calc(var(--fb-radius) * .65), 12px); text-align: center; cursor: pointer; background: var(--fb-input); transition: border-color .15s, background .15s; }
.fb-file:hover, .fb-file.over { border-color: var(--fb-accent); background: var(--fb-accent-soft); }
.fb-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.fb-file:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--fb-accent-soft); border-color: var(--fb-accent); }
.fb-file b { color: var(--fb-accent); }
.fb-file small { color: var(--fb-muted); }
.fb-file-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.fb-file-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; background: var(--fb-accent-soft); font-size: 14px; overflow-wrap: anywhere; }
.fb-file-list button { border: 0; background: none; color: var(--fb-muted); cursor: pointer; font: inherit; font-size: 13px; text-decoration: underline; }
.fb-sig { border: 1.5px solid var(--fb-border); border-radius: min(calc(var(--fb-radius) * .65), 12px); background: #fff; position: relative; overflow: hidden; }
.fb-sig canvas { display: block; width: 100%; height: 170px; touch-action: none; cursor: crosshair; }
.fb-sig::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 38px; border-bottom: 1.5px solid #d0d5dd; pointer-events: none; }
.fb-sig-hint { position: absolute; left: 20px; bottom: 12px; font-size: 12.5px; color: #98a2b3; pointer-events: none; }
.fb-sig-tools { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 14px; }
.fb-sig-tools button { border: 0; background: none; color: var(--fb-accent); font: inherit; font-weight: 600; cursor: pointer; padding: 4px 0; }
.fb-sig-tools .fb-input { flex: 1; min-width: 180px; }
.fb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.fb-actions { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 6px; flex-wrap: wrap; }
.fb-actions .fb-spacer { flex: 1; }
.fb-btn { font: inherit; font-weight: 650; font-size: 16px; padding: 0 28px; min-height: 50px; border-radius: var(--fb-btn-radius); border: 1.5px solid var(--fb-accent); background: var(--fb-accent); color: var(--fb-on-accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: filter .15s, transform .05s, background .15s; text-decoration: none; }
.fb-btn:hover { filter: brightness(1.08); }
.fb-btn:active { transform: translateY(1px); }
.fb-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--fb-accent-soft); }
.fb-btn:disabled { opacity: .6; cursor: progress; }
.fb-btn.ghost { background: transparent; color: var(--fb-text); border-color: var(--fb-border); }
.fb-btn-outline .fb-btn:not(.ghost) { background: transparent; color: var(--fb-accent); text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.fb-btn-outline .fb-btn:not(.ghost):hover { background: var(--fb-accent); color: var(--fb-on-accent); filter: none; }
@media (max-width: 480px) { .fb-actions .fb-btn:not(.ghost) { flex: 1; } }
.fb-spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fb-spin .7s linear infinite; }
@keyframes fb-spin { to { transform: rotate(360deg); } }

/* Error summary */
.fb-summary { border: 1.5px solid var(--fb-err-line, #d92d20); background: var(--fb-err-bg, #fef3f2); color: var(--fb-err-text, #7a271a); border-radius: min(calc(var(--fb-radius) * .65), 12px); padding: 14px 18px; margin: 0 0 22px; }
.fb-summary:focus { outline: none; box-shadow: 0 0 0 4px rgba(217, 45, 32, .18); }
.fb-summary h2 { font-size: 16px; margin: 0 0 6px; color: inherit; }
.fb-summary ul { margin: 0; padding-left: 20px; }
.fb-summary a { color: var(--fb-err-link, #b42318); font-weight: 600; }

/* Success */
.fb-done { text-align: center; padding: 30px 0 14px; animation: fb-pop .4s ease; }
.fb-done-icon { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--fb-accent-soft); display: grid; place-items: center; }
.fb-done-icon svg { width: 42px; height: 42px; stroke: var(--fb-accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: fb-draw .5s .15s ease forwards; }
.fb-done h2 { font-family: var(--fb-heading); font-size: 26px; margin: 0 0 10px; }
.fb-done p { color: var(--fb-muted); margin: 0 auto 18px; max-width: 460px; white-space: pre-line; }
.fb-done .fb-sign-box { margin: 22px auto 4px; max-width: 440px; padding: 18px 20px; border-radius: min(var(--fb-radius), 14px); border: 1.5px solid var(--fb-border); background: var(--fb-input); display: grid; gap: 12px; justify-items: center; }
.fb-done .fb-sign-box p { margin: 0; color: var(--fb-text); }
@keyframes fb-draw { to { stroke-dashoffset: 0; } }
@keyframes fb-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fb-done, .fb-done-icon svg, .fb-progress-bar span { animation: none; transition: none; stroke-dashoffset: 0; } }

.fb-brand { text-align: center; font-size: 13px; margin: 18px 0 0; }
.fb-brand a { color: var(--fb-muted); text-decoration: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--fb-border); background: var(--fb-card); display: inline-block; }
.fb-brand a:hover { color: var(--fb-text); }
.fb-brand b { color: var(--fb-text); }
.fb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- widths: 2 or 3 questions on a row (6 column grid) ---------- */
.fb-fields { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fb-field, .fb-section { grid-column: span 6; }
.fb-field.w-half, .fb-field.half { grid-column: span 3; }
.fb-field.w-third { grid-column: span 2; }
.fb-field.w-twothirds { grid-column: span 4; }
@media (max-width: 560px) { .fb-field.w-half, .fb-field.w-third, .fb-field.w-twothirds { grid-column: span 6; } }

/* ---------- computed values, payments, misc ---------- */
.fb-output { display: block; font-family: var(--fb-heading); font-size: 26px; font-weight: 700; color: var(--fb-accent); padding: 6px 0 2px; font-variant-numeric: tabular-nums; }
.fb-score { font-weight: 700; color: var(--fb-text); }
.fb-sig-small canvas { height: 110px; }
.fb-saved { margin-top: 16px; padding: 14px 16px; border-radius: min(calc(var(--fb-radius) * .65), 12px); background: var(--fb-accent-soft); display: grid; gap: 8px; }
.fb-saved p { margin: 0; }
.fb-actions .fb-save { font-size: 14px; min-height: 42px; padding: 0 14px; }
.fb-lang-wrap { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.fb-lang { font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--fb-border); background: var(--fb-card); color: var(--fb-text); }
.fb-captcha { margin: 0 0 14px; max-width: 280px; }
.fb-form[style*="background-image"] { background-size: cover; background-position: center; background-attachment: fixed; }
.fb-num { color: var(--fb-accent); margin-right: 10px; font-weight: 700; }
.fb-hint { color: var(--fb-muted); font-size: 13px; }

/* ---------- conversational layout: one question at a time ---------- */
.fb-layout-conv .fb-shell { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.fb-embed .fb-layout-conv .fb-shell { min-height: 0; }
.fb-layout-conv .fb-card { min-height: min(560px, 80vh); display: flex; flex-direction: column; }
.fb-layout-conv .fb-app { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 34px 44px 30px; }
.fb-conv .fb-progress { margin-bottom: 30px; }
.fb-conv .fb-label, .fb-conv .fb-field legend { font-family: var(--fb-heading); font-size: 24px; line-height: 1.3; font-weight: 600; margin-bottom: 14px; }
.fb-conv .fb-section h2 { font-size: 28px; }
.fb-conv .fb-help { font-size: 16px; margin-bottom: 16px; }
.fb-conv .fb-input { font-size: 20px; min-height: 56px; }
.fb-conv .fb-step { animation: fb-slide .32s ease; }
.fb-conv .fb-btn svg { margin-left: 2px; }
.fb-conv .fb-option { font-size: 17px; padding: 15px 18px; }
@keyframes fb-slide { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fb-welcome { text-align: center; display: grid; justify-items: center; gap: 6px; animation: fb-pop .4s ease; }
.fb-welcome-cover { width: 100%; max-height: 220px; object-fit: cover; border-radius: calc(var(--fb-radius) * .7); margin-bottom: 18px; }
.fb-welcome .fb-title { font-size: calc(var(--fb-title-size) * 1.05); }
.fb-welcome .fb-desc { max-width: 520px; margin: 0 auto 18px; }
.fb-welcome-meta { color: var(--fb-muted); font-size: 13px; margin: 6px 0 0; }
@media (max-width: 560px) { .fb-layout-conv .fb-app { padding: 24px 22px; } .fb-conv .fb-label, .fb-conv .fb-field legend { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .fb-conv .fb-step, .fb-welcome { animation: none; } }

/* ---------- own HTML forms: sensible defaults the owner's CSS can override ---------- */
.fb-mode-html .fb-app form { display: grid; gap: 12px; }
.fb-mode-html .fb-app input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]), .fb-mode-html .fb-app select, .fb-mode-html .fb-app textarea {
  font: inherit; font-size: 16px; color: var(--fb-text); background: var(--fb-input); border: 1.5px solid var(--fb-border); border-radius: min(calc(var(--fb-radius) * .65), 12px); padding: 11px 13px; width: 100%; box-sizing: border-box; }
.fb-mode-html .fb-app input:focus, .fb-mode-html .fb-app select:focus, .fb-mode-html .fb-app textarea:focus { outline: none; border-color: var(--fb-accent); box-shadow: 0 0 0 4px var(--fb-accent-soft); }
.fb-mode-html .fb-app label { font-weight: 600; }
.fb-mode-html .fb-app fieldset { border: 1px solid var(--fb-border); border-radius: 10px; padding: 10px 14px; }
.fb-mode-html .fb-app fieldset label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 4px 0; }
.fb-mode-html .fb-app button[type=submit], .fb-mode-html .fb-app input[type=submit] { font: inherit; font-weight: 650; background: var(--fb-accent); color: var(--fb-on-accent); border: 0; border-radius: var(--fb-btn-radius); padding: 13px 26px; cursor: pointer; justify-self: start; }
.fb-mode-html [aria-invalid="true"] { border-color: #d92d20 !important; }


/* ---------- images and media ---------- */
.fb-media { margin: 0 0 14px; }
.fb-media img { display: block; max-width: 100%; height: auto; border-radius: min(calc(var(--fb-radius) * .65), 12px); }
.fb-media figcaption { color: var(--fb-muted); font-size: 13.5px; margin-top: 6px; }
.fb-img.size-small img { width: min(160px, 100%); }
.fb-img.size-medium img { width: min(340px, 100%); }
.fb-img.size-large img { width: min(560px, 100%); }
.fb-img.size-full img { width: 100%; }
.fb-img.align-center { text-align: center; } .fb-img.align-center img { margin-inline: auto; }
.fb-img.align-right { text-align: right; } .fb-img.align-right img { margin-left: auto; }
.fb-q-img { margin: 4px 0 12px; }
.fb-section .fb-media { margin-top: 14px; }
.fb-block { margin-bottom: var(--fb-gap, 26px); }
.fb-divider-wrap { margin-bottom: calc(var(--fb-gap, 26px) * .8); }
.fb-divider { border: 0; border-top: 1px solid var(--fb-border); margin: 4px 0 0; }
.fb-video { position: relative; aspect-ratio: 16 / 9; border-radius: min(calc(var(--fb-radius) * .65), 12px); overflow: hidden; background: #000; }
.fb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fb-text { line-height: 1.6; overflow-wrap: anywhere; }
.fb-text > :first-child { margin-top: 0; } .fb-text > :last-child { margin-bottom: 0; }
.fb-text h3 { font-family: var(--fb-heading); font-size: 19px; margin: 18px 0 6px; } .fb-text h4 { font-size: 16px; margin: 14px 0 4px; }
.fb-text a { color: var(--fb-accent); }
.fb-text ul, .fb-text ol { padding-left: 22px; }

/* picture choice */
.fb-pictures { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fb-pictures.small { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.fb-pictures.large { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.fb-pic { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--fb-border); border-radius: min(calc(var(--fb-radius) * .65), 12px); background: var(--fb-input); cursor: pointer; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.fb-pic:hover { border-color: var(--fb-accent); }
.fb-pic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fb-pic-img { display: block; aspect-ratio: 4 / 3; background: var(--fb-accent-soft); }
.fb-pic-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-pic-none { display: grid; place-items: center; height: 100%; font-size: 30px; font-weight: 700; color: var(--fb-accent); }
.fb-pic-label { padding: 10px 12px; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.fb-pic-check { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--fb-card); border: 1.5px solid var(--fb-border); display: grid; place-items: center; }
.fb-pic-check svg { width: 15px; height: 15px; fill: none; stroke: var(--fb-on-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fb-pic:has(input:checked) { border-color: var(--fb-accent); box-shadow: 0 0 0 3px var(--fb-accent-soft); }
.fb-pic:has(input:checked) .fb-pic-check { background: var(--fb-accent); border-color: var(--fb-accent); }
.fb-pic:has(input:checked) .fb-pic-check svg { opacity: 1; }
.fb-pic:has(input:focus-visible) { outline: 3px solid var(--fb-accent); outline-offset: 2px; }
@media (max-width: 480px) { .fb-pictures, .fb-pictures.large { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* photo uploads */
.fb-thumbs li { justify-content: flex-start; }
.fb-thumbs li span { flex: 1; min-width: 0; }
.fb-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: var(--fb-card); }
