/* ==========================================================================
   Sysgage Forms — front-end styles
   Everything is scoped under .sgf-wrap so themes cannot leak into the site.
   Themes: modern (default), classic, minimal, rounded, dark, inherit.
   ========================================================================== */

.sgf-wrap {
	--sgf-primary: #4f46e5;
	--sgf-primary-contrast: #fff;
	--sgf-radius: 10px;
	--sgf-font-size: 16px;
	--sgf-gap: 20px;
	--sgf-text: #0f172a;
	--sgf-muted: #64748b;
	--sgf-border: #cbd5e1;
	--sgf-border-strong: #94a3b8;
	--sgf-bg: #fff;
	--sgf-soft: #f1f5f9;
	--sgf-error: #dc2626;
	--sgf-error-soft: #fef2f2;
	--sgf-success: #047857;
	--sgf-success-soft: #ecfdf5;
	--sgf-focus: color-mix(in srgb, var(--sgf-primary) 22%, transparent);
	--sgf-primary-soft: color-mix(in srgb, var(--sgf-primary) 10%, #fff);
	box-sizing: border-box;
	font-size: var(--sgf-font-size);
	line-height: 1.5;
	color: var(--sgf-text);
	margin: 0 0 1.5em;
	width: 100%;
	position: relative;
}
.sgf-wrap *, .sgf-wrap *::before, .sgf-wrap *::after { box-sizing: border-box; }
.sgf-wrap [hidden] { display: none !important; }
.sgf-wrap .sgf-sr, .sgf-wrap .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.sgf-wrap .sgf-form-header { margin: 0 0 calc(var(--sgf-gap) * 1.1); }
.sgf-wrap .sgf-form-title { margin: 0 0 .35em; font-size: 1.5em; line-height: 1.25; font-weight: 700; color: inherit; }
.sgf-wrap .sgf-form-description { color: var(--sgf-muted); }
.sgf-wrap .sgf-form-description > :last-child { margin-bottom: 0; }

/* ---------- Layout grid ---------- */
.sgf-wrap .sgf-fields { display: flex; flex-wrap: wrap; gap: var(--sgf-gap) 16px; margin: 0; padding: 0; }
.sgf-wrap .sgf-field { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0; border: 0; position: relative; }
.sgf-wrap .sgf-w-three-quarters { flex-basis: calc(75% - 4px); }
.sgf-wrap .sgf-w-two-thirds { flex-basis: calc(66.666% - 5.4px); }
.sgf-wrap .sgf-w-half { flex-basis: calc(50% - 8px); }
.sgf-wrap .sgf-w-third { flex-basis: calc(33.333% - 10.7px); }
.sgf-wrap .sgf-w-quarter { flex-basis: calc(25% - 12px); }
.sgf-wrap .sgf-hidden-field { display: none; }
.sgf-wrap .sgf-cond-hidden { display: none !important; }
.sgf-wrap fieldset.sgf-field { min-inline-size: 0; }

/* ---------- Labels ---------- */
.sgf-wrap .sgf-label {
	display: block; font-weight: 600; margin: 0 0 6px; padding: 0; font-size: .95em; color: inherit; float: none; width: auto; line-height: 1.4;
}
.sgf-wrap legend.sgf-label { margin-bottom: 8px; }
.sgf-wrap .sgf-required { color: var(--sgf-error); font-weight: 600; margin-left: 2px; }
.sgf-wrap .sgf-description { font-size: .875em; color: var(--sgf-muted); margin: 6px 0 0; }
.sgf-wrap .sgf-description p { margin: 0 0 .5em; }
.sgf-wrap .sgf-sublabel { display: block; font-size: .8em; color: var(--sgf-muted); margin-top: 4px; }
.sgf-wrap .sgf-label-hidden > .sgf-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.sgf-wrap.sgf-labels-left .sgf-field:not(.sgf-field--section):not(.sgf-field--html),
.sgf-wrap .sgf-field.sgf-label-left { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; column-gap: 16px; align-items: start; }
.sgf-wrap.sgf-labels-left .sgf-field > .sgf-label, .sgf-wrap .sgf-field.sgf-label-left > .sgf-label { grid-column: 1; padding-top: 10px; }
.sgf-wrap.sgf-labels-left .sgf-field > :not(.sgf-label), .sgf-wrap .sgf-field.sgf-label-left > :not(.sgf-label) { grid-column: 2; }
.sgf-wrap.sgf-labels-left .sgf-field > .sgf-label { text-align: left; }
.sgf-wrap.sgf-labels-right .sgf-field > .sgf-label { text-align: right; }

/* ---------- Controls ---------- */
.sgf-wrap .sgf-control,
.sgf-wrap input[type=text].sgf-control, .sgf-wrap input[type=email].sgf-control, .sgf-wrap input[type=tel].sgf-control,
.sgf-wrap input[type=url].sgf-control, .sgf-wrap input[type=number].sgf-control, .sgf-wrap input[type=password].sgf-control,
.sgf-wrap input[type=date].sgf-control, .sgf-wrap select.sgf-control, .sgf-wrap textarea.sgf-control {
	display: block; width: 100%; max-width: 100%; min-height: 46px; margin: 0;
	padding: 10px 14px; font: inherit; font-size: 1em; line-height: 1.4; color: var(--sgf-text);
	background: var(--sgf-bg); border: 1px solid var(--sgf-border); border-radius: var(--sgf-radius);
	box-shadow: none; outline: none; appearance: none; -webkit-appearance: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.sgf-wrap textarea.sgf-control { min-height: 120px; resize: vertical; }
.sgf-wrap select.sgf-control {
	padding-right: 40px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.sgf-wrap select.sgf-multi { background-image: none; padding-right: 14px; min-height: 120px; }
.sgf-wrap .sgf-control:hover { border-color: var(--sgf-border-strong); }
.sgf-wrap .sgf-control:focus { border-color: var(--sgf-primary); box-shadow: 0 0 0 4px var(--sgf-focus); }
.sgf-wrap .sgf-control::placeholder { color: #94a3b8; opacity: 1; }
.sgf-wrap .sgf-control[readonly] { background: var(--sgf-soft); }
.sgf-wrap .sgf-control.sgf-calc { font-weight: 700; }
.sgf-wrap .sgf-control:disabled { opacity: .6; cursor: not-allowed; }
.sgf-wrap .has-error .sgf-control, .sgf-wrap .sgf-control[aria-invalid=true] { border-color: var(--sgf-error); }
.sgf-wrap .has-error .sgf-control:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--sgf-error) 18%, transparent); }

.sgf-wrap .sgf-row { display: grid; gap: 12px; }
.sgf-wrap .sgf-row + .sgf-row { margin-top: 12px; }
.sgf-wrap .sgf-row-1 { grid-template-columns: 1fr; }
.sgf-wrap .sgf-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgf-wrap .sgf-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgf-wrap .sgf-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sgf-wrap .sgf-sub { min-width: 0; }

.sgf-wrap .sgf-affix { display: flex; align-items: stretch; }
.sgf-wrap .sgf-affix .sgf-control { flex: 1; min-width: 0; }
.sgf-wrap .sgf-prefix, .sgf-wrap .sgf-suffix {
	display: inline-flex; align-items: center; padding: 0 14px; background: var(--sgf-soft); border: 1px solid var(--sgf-border);
	color: var(--sgf-muted); font-weight: 600; white-space: nowrap;
}
.sgf-wrap .sgf-prefix { border-right: 0; border-radius: var(--sgf-radius) 0 0 var(--sgf-radius); }
.sgf-wrap .sgf-suffix { border-left: 0; border-radius: 0 var(--sgf-radius) var(--sgf-radius) 0; }
.sgf-wrap .sgf-affix .sgf-prefix + .sgf-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.sgf-wrap .sgf-affix .sgf-control:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

.sgf-wrap .sgf-counter { font-size: .78em; color: var(--sgf-muted); text-align: right; margin-top: 4px; }

/* ---------- Choices ---------- */
.sgf-wrap .sgf-choices { display: flex; flex-direction: column; gap: 10px; }
.sgf-wrap .sgf-layout-horizontal { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
.sgf-wrap .sgf-layout-columns-2, .sgf-wrap .sgf-layout-columns-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.sgf-wrap .sgf-layout-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sgf-wrap .sgf-choice { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.sgf-wrap .sgf-choice > label { cursor: pointer; margin: 0; font-weight: 400; line-height: 1.45; padding-top: 1px; }
.sgf-wrap .sgf-choice input[type=radio], .sgf-wrap .sgf-choice input[type=checkbox], .sgf-wrap .sgf-consent input[type=checkbox] {
	appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--sgf-border-strong);
	background: var(--sgf-bg); cursor: pointer; display: inline-grid; place-content: center; transition: border-color .15s, background .15s, box-shadow .15s;
}
.sgf-wrap .sgf-choice input[type=checkbox] { border-radius: 6px; }
.sgf-wrap .sgf-choice input[type=radio] { border-radius: 50%; }
.sgf-wrap .sgf-choice input[type=checkbox]::before {
	content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #fff;
}
.sgf-wrap .sgf-choice input[type=radio]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; transform: scale(0); transition: transform .12s; background: #fff; }
.sgf-wrap .sgf-choice input:checked { background: var(--sgf-primary); border-color: var(--sgf-primary); }
.sgf-wrap .sgf-choice input:checked::before { transform: scale(1); }
.sgf-wrap .sgf-choice input:focus-visible { box-shadow: 0 0 0 4px var(--sgf-focus); outline: none; }
.sgf-wrap .sgf-choice-other { flex-wrap: wrap; align-items: center; }
.sgf-wrap .sgf-choice-other .sgf-other-input { flex: 1 1 200px; min-height: 40px; padding: 7px 12px; }
.sgf-wrap .sgf-select-all { padding-bottom: 8px; border-bottom: 1px dashed var(--sgf-border); }
.sgf-wrap .sgf-price { color: var(--sgf-muted); font-weight: 600; margin-left: 4px; white-space: nowrap; }

/* Button-style choices. */
.sgf-wrap .sgf-layout-buttons { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.sgf-wrap .sgf-layout-buttons .sgf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgf-wrap .sgf-layout-buttons .sgf-choice > label {
	display: inline-block; padding: 9px 16px; border: 1px solid var(--sgf-border); border-radius: 999px; background: var(--sgf-bg); font-weight: 500; transition: all .15s;
}
.sgf-wrap .sgf-layout-buttons .sgf-choice > label:hover { border-color: var(--sgf-primary); }
.sgf-wrap .sgf-layout-buttons .sgf-choice input:checked + label { background: var(--sgf-primary); border-color: var(--sgf-primary); color: var(--sgf-primary-contrast); }
.sgf-wrap .sgf-layout-buttons .sgf-choice input:focus-visible + label { box-shadow: 0 0 0 4px var(--sgf-focus); }

.sgf-wrap .sgf-consent { align-items: flex-start; }
.sgf-wrap .sgf-consent input[type=checkbox] { border-radius: 6px; margin-top: 1px; }
.sgf-wrap .sgf-consent input[type=checkbox]::before {
	content: ""; width: 12px; height: 12px; transform: scale(0); transition: transform .12s; background: #fff;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.sgf-wrap .sgf-consent > label { font-size: .95em; }

/* Image choices. */
.sgf-wrap .sgf-image-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sgf-wrap .sgf-cols-1 { grid-template-columns: 1fr; }
.sgf-wrap .sgf-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sgf-wrap .sgf-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sgf-wrap .sgf-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sgf-wrap .sgf-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.sgf-wrap .sgf-image-choice {
	position: relative; display: flex; flex-direction: column; border: 2px solid var(--sgf-border); border-radius: var(--sgf-radius); overflow: hidden;
	cursor: pointer; background: var(--sgf-bg); transition: border-color .15s, box-shadow .15s, transform .15s; margin: 0;
}
.sgf-wrap .sgf-image-choice:hover { border-color: var(--sgf-border-strong); transform: translateY(-1px); }
.sgf-wrap .sgf-image-choice input { position: absolute; opacity: 0; pointer-events: none; }
.sgf-wrap .sgf-image-frame { display: block; aspect-ratio: 4 / 3; background: var(--sgf-soft); }
.sgf-wrap .sgf-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; }
.sgf-wrap .sgf-image-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--sgf-soft), color-mix(in srgb, var(--sgf-primary) 14%, #fff)); }
.sgf-wrap .sgf-image-label { padding: 10px 12px; font-weight: 600; font-size: .92em; }
.sgf-wrap .sgf-image-choice:has(input:checked) { border-color: var(--sgf-primary); box-shadow: 0 0 0 3px var(--sgf-focus); }
.sgf-wrap .sgf-image-choice:has(input:checked)::after {
	content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--sgf-primary);
	color: #fff; font-size: 14px; font-weight: 700; display: grid; place-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.sgf-wrap .sgf-image-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--sgf-focus); }

/* ---------- Slider ---------- */
.sgf-wrap .sgf-slider { display: flex; align-items: center; gap: 14px; }
.sgf-wrap .sgf-range { flex: 1; accent-color: var(--sgf-primary); height: 28px; margin: 0; }
.sgf-wrap .sgf-range-value { min-width: 64px; text-align: center; font-weight: 700; padding: 6px 10px; border-radius: var(--sgf-radius); background: var(--sgf-primary-soft); color: var(--sgf-primary); }

/* ---------- Time / date ---------- */
.sgf-wrap .sgf-time { display: flex; align-items: center; gap: 8px; max-width: 360px; }
.sgf-wrap .sgf-time .sgf-control { flex: 1; min-width: 72px; }
.sgf-wrap .sgf-time-sep { font-weight: 700; color: var(--sgf-muted); }

/* ---------- Rating / NPS / Likert / Rank ---------- */
.sgf-wrap .sgf-rating { display: inline-flex; gap: 4px; }
.sgf-wrap .sgf-rating-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgf-wrap .sgf-rating-star { font-size: 2em; line-height: 1; color: #d1d5db; cursor: pointer; transition: color .1s, transform .1s; margin: 0; }
.sgf-wrap .sgf-rating:not(:hover):has(.sgf-rating-input:checked) .sgf-rating-star { color: #fbbf24; }
.sgf-wrap .sgf-rating:not(:hover) .sgf-rating-input:checked + .sgf-rating-star ~ .sgf-rating-star { color: #d1d5db; }
.sgf-wrap .sgf-rating:hover .sgf-rating-star { color: #fbbf24; }
.sgf-wrap .sgf-rating .sgf-rating-star:hover ~ .sgf-rating-star { color: #d1d5db; }
.sgf-wrap .sgf-rating-star:hover { transform: scale(1.12); }
.sgf-wrap .sgf-rating-input:focus-visible + .sgf-rating-star { outline: 2px solid var(--sgf-primary); outline-offset: 2px; border-radius: 4px; }

.sgf-wrap .sgf-nps-scale { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 4px; }
.sgf-wrap .sgf-nps-scale input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgf-wrap .sgf-nps-scale label {
	display: grid; place-content: center; height: 44px; border: 1px solid var(--sgf-border); border-radius: calc(var(--sgf-radius) * .7);
	cursor: pointer; font-weight: 600; background: var(--sgf-bg); transition: all .12s; margin: 0;
}
.sgf-wrap .sgf-nps-scale label:hover { border-color: var(--sgf-primary); color: var(--sgf-primary); }
.sgf-wrap .sgf-nps-scale input:checked + label { background: var(--sgf-primary); border-color: var(--sgf-primary); color: #fff; }
.sgf-wrap .sgf-nps-scale input:focus-visible + label { box-shadow: 0 0 0 4px var(--sgf-focus); }
.sgf-wrap .sgf-nps-legend { display: flex; justify-content: space-between; font-size: .8em; color: var(--sgf-muted); margin-top: 6px; }

.sgf-wrap .sgf-likert { overflow-x: auto; }
.sgf-wrap .sgf-likert table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0; border: 1px solid var(--sgf-border); border-radius: var(--sgf-radius); overflow: hidden; }
.sgf-wrap .sgf-likert th, .sgf-wrap .sgf-likert td { padding: 10px 8px; text-align: center; border: 0; border-bottom: 1px solid var(--sgf-border); font-size: .88em; background: transparent; }
.sgf-wrap .sgf-likert thead th { font-weight: 600; color: var(--sgf-muted); background: var(--sgf-soft); }
.sgf-wrap .sgf-likert thead td { background: var(--sgf-soft); }
.sgf-wrap .sgf-likert tbody th { text-align: left; font-weight: 500; }
.sgf-wrap .sgf-likert tbody tr:last-child > * { border-bottom: 0; }
.sgf-wrap .sgf-likert input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sgf-wrap .sgf-likert td label { display: inline-block; width: 24px; height: 24px; border: 2px solid var(--sgf-border-strong); border-radius: 50%; cursor: pointer; margin: 0; transition: all .12s; }
.sgf-wrap .sgf-likert input:checked + label { border-color: var(--sgf-primary); background: radial-gradient(circle, var(--sgf-primary) 45%, transparent 50%); }
.sgf-wrap .sgf-likert input:focus-visible + label { box-shadow: 0 0 0 4px var(--sgf-focus); }

.sgf-wrap .sgf-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; counter-reset: sgfrank; }
.sgf-wrap .sgf-rank-item {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--sgf-border); border-radius: var(--sgf-radius);
	background: var(--sgf-bg); counter-increment: sgfrank; user-select: none; margin: 0;
}
.sgf-wrap .sgf-rank-item::before {
	content: counter(sgfrank); width: 26px; height: 26px; border-radius: 50%; background: var(--sgf-primary-soft); color: var(--sgf-primary);
	display: grid; place-content: center; font-weight: 700; font-size: .85em; flex: none;
}
.sgf-wrap .sgf-rank-item.is-dragging { opacity: .6; border-style: dashed; border-color: var(--sgf-primary); }
.sgf-wrap .sgf-rank-handle { cursor: grab; color: var(--sgf-muted); letter-spacing: -2px; font-weight: 700; }
.sgf-wrap .sgf-rank-label { flex: 1; }
.sgf-wrap .sgf-rank-btns { display: flex; gap: 4px; }
.sgf-wrap .sgf-rank-btns button {
	width: 32px; height: 32px; border: 1px solid var(--sgf-border); border-radius: 8px; background: var(--sgf-bg); cursor: pointer; color: var(--sgf-text); font-size: 15px; padding: 0; line-height: 1;
}
.sgf-wrap .sgf-rank-btns button:hover { border-color: var(--sgf-primary); color: var(--sgf-primary); }
.sgf-wrap .sgf-rank-item:first-child .sgf-rank-up, .sgf-wrap .sgf-rank-item:last-child .sgf-rank-down { opacity: .35; }

/* ---------- Uploads ---------- */
.sgf-wrap .sgf-dropzone { position: relative; }
.sgf-wrap .sgf-dropzone .sgf-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sgf-wrap:not(.sgf-js) .sgf-dropzone .sgf-file { position: static; width: auto; height: auto; opacity: 1; margin-bottom: 8px; }
.sgf-wrap .sgf-dropzone-inner {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 26px 16px;
	border: 2px dashed var(--sgf-border); border-radius: var(--sgf-radius); background: var(--sgf-soft); transition: all .15s;
}
.sgf-wrap .sgf-dropzone.is-over .sgf-dropzone-inner { border-color: var(--sgf-primary); background: var(--sgf-primary-soft); }
.sgf-wrap .sgf-dropzone-icon {
	width: 40px; height: 40px; border-radius: 50%; background: var(--sgf-primary-soft); margin-bottom: 4px; position: relative;
}
.sgf-wrap .sgf-dropzone-icon::before {
	content: ""; position: absolute; inset: 10px; background: var(--sgf-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l5 5h-3v6h-4V8H7l5-5zM5 18h14v3H5z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l5 5h-3v6h-4V8H7l5-5zM5 18h14v3H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sgf-wrap .sgf-dropzone-text { font-weight: 500; }
.sgf-wrap .sgf-dropzone-browse { color: var(--sgf-primary); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sgf-wrap .sgf-dropzone-hint { font-size: .8em; color: var(--sgf-muted); }
.sgf-wrap .sgf-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sgf-wrap .sgf-file-list:empty { display: none; }
.sgf-wrap .sgf-file-item {
	display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 10px; padding: 8px 10px 8px 14px;
	border: 1px solid var(--sgf-border); border-radius: var(--sgf-radius); background: var(--sgf-bg); font-size: .9em; margin: 0;
}
.sgf-wrap .sgf-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.sgf-wrap .sgf-file-meta { color: var(--sgf-muted); font-size: .85em; }
.sgf-wrap .sgf-file-progress { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--sgf-soft); overflow: hidden; display: none; }
.sgf-wrap .is-uploading .sgf-file-progress { display: block; }
.sgf-wrap .sgf-file-progress span { display: block; height: 100%; width: 0; background: var(--sgf-primary); transition: width .2s; }
.sgf-wrap .sgf-file-item.is-done { border-color: color-mix(in srgb, var(--sgf-success) 40%, var(--sgf-border)); }
.sgf-wrap .sgf-file-remove {
	width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--sgf-soft); color: var(--sgf-muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 0;
}
.sgf-wrap .sgf-file-remove:hover { background: var(--sgf-error-soft); color: var(--sgf-error); }

/* ---------- List ---------- */
.sgf-wrap .sgf-list-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; }
.sgf-wrap .sgf-list-table th { text-align: left; font-size: .85em; color: var(--sgf-muted); font-weight: 600; padding: 0 6px 6px 0; border: 0; background: none; }
.sgf-wrap .sgf-list-table td { padding: 0 6px 8px 0; border: 0; vertical-align: middle; background: none; }
.sgf-wrap .sgf-list-actions { width: 76px; white-space: nowrap; }
.sgf-wrap .sgf-list-add, .sgf-wrap .sgf-list-remove {
	width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--sgf-border); background: var(--sgf-bg); cursor: pointer; font-size: 18px; line-height: 1; color: var(--sgf-text); padding: 0; margin-right: 4px;
}
.sgf-wrap .sgf-list-add:hover { border-color: var(--sgf-primary); color: var(--sgf-primary); }
.sgf-wrap .sgf-list-remove:hover { border-color: var(--sgf-error); color: var(--sgf-error); }
.sgf-wrap .sgf-list-add:disabled, .sgf-wrap .sgf-list-remove:disabled { opacity: .35; cursor: default; }

/* ---------- Signature ---------- */
.sgf-wrap .sgf-signature { border: 1px solid var(--sgf-border); border-radius: var(--sgf-radius); background: var(--sgf-bg); overflow: hidden; }
.sgf-wrap .sgf-signature-pad {
	display: block; width: 100%; cursor: crosshair;
	background: linear-gradient(transparent calc(100% - 46px), var(--sgf-border) calc(100% - 46px), var(--sgf-border) calc(100% - 45px), transparent calc(100% - 45px));
}
.sgf-wrap .sgf-signature-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-top: 1px solid var(--sgf-border); background: var(--sgf-soft); font-size: .85em; color: var(--sgf-muted); }
.sgf-wrap .sgf-signature.is-signed .sgf-signature-hint::before { content: "✓ "; color: var(--sgf-success); font-weight: 700; }

/* ---------- Password strength ---------- */
.sgf-wrap .sgf-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: .82em; color: var(--sgf-muted); }
.sgf-wrap .sgf-strength-bar { flex: 1; max-width: 220px; height: 6px; border-radius: 3px; background: var(--sgf-soft); overflow: hidden; }
.sgf-wrap .sgf-strength-bar span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.sgf-wrap .sgf-strength[data-score="0"] .sgf-strength-bar span { width: 15%; background: #ef4444; }
.sgf-wrap .sgf-strength[data-score="1"] .sgf-strength-bar span { width: 40%; background: #f97316; }
.sgf-wrap .sgf-strength[data-score="2"] .sgf-strength-bar span { width: 70%; background: #eab308; }
.sgf-wrap .sgf-strength[data-score="3"] .sgf-strength-bar span { width: 100%; background: #16a34a; }

/* ---------- Pricing ---------- */
.sgf-wrap .sgf-product { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 18px; }
.sgf-wrap .sgf-product > .sgf-choices, .sgf-wrap .sgf-product > select, .sgf-wrap .sgf-product > .sgf-affix { flex: 1 1 240px; }
.sgf-wrap .sgf-product-price-display { font-size: 1.25em; font-weight: 700; color: var(--sgf-text); }
.sgf-wrap .sgf-product-qty { width: 110px; }
.sgf-wrap .sgf-product-qty .sgf-sublabel { margin: 0 0 4px; }
.sgf-wrap .sgf-shipping-single { font-weight: 600; }
.sgf-wrap .sgf-coupon { display: flex; gap: 8px; }
.sgf-wrap .sgf-coupon .sgf-control { flex: 1; text-transform: uppercase; letter-spacing: .04em; }
.sgf-wrap .sgf-coupon-msg { font-size: .85em; margin-top: 6px; }
.sgf-wrap .sgf-coupon-msg.is-ok { color: var(--sgf-success); }
.sgf-wrap .sgf-coupon-msg.is-bad { color: var(--sgf-error); }
.sgf-wrap .sgf-total {
	display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: var(--sgf-radius);
	background: var(--sgf-primary-soft); border: 1px solid color-mix(in srgb, var(--sgf-primary) 25%, transparent);
}
.sgf-wrap .sgf-total-amount { font-size: 1.5em; font-weight: 800; color: var(--sgf-primary); letter-spacing: -.01em; }

/* ---------- Section / HTML ---------- */
.sgf-wrap .sgf-field--section { padding-top: 6px; border-bottom: 1px solid var(--sgf-border); padding-bottom: 8px; }
.sgf-wrap .sgf-section-title { margin: 0; font-size: 1.15em; font-weight: 700; }
.sgf-wrap .sgf-html > :last-child { margin-bottom: 0; }
.sgf-wrap .sgf-html img { max-width: 100%; height: auto; }

/* ---------- Captcha ---------- */
.sgf-wrap .sgf-math { display: flex; align-items: center; gap: 12px; }
.sgf-wrap .sgf-math label { font-weight: 700; font-size: 1.05em; white-space: nowrap; }
.sgf-wrap .sgf-math .sgf-control { max-width: 120px; }
.sgf-wrap .sgf-recaptcha-note { font-size: .78em; color: var(--sgf-muted); margin: 0; }
.sgf-wrap .sgf-notice { padding: 10px 14px; border-radius: var(--sgf-radius); background: #fffbeb; border: 1px solid #fde68a; color: #92400e; font-size: .9em; }

/* ---------- Errors ---------- */
.sgf-wrap .sgf-error { color: var(--sgf-error); font-size: .85em; font-weight: 500; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.sgf-wrap .sgf-error::before { content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--sgf-error); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-content: center; margin-top: 2px; }
.sgf-wrap .sgf-error-summary {
	margin: 0 0 var(--sgf-gap); padding: 14px 16px; border-radius: var(--sgf-radius); background: var(--sgf-error-soft);
	border: 1px solid color-mix(in srgb, var(--sgf-error) 30%, transparent); color: #991b1b; font-size: .92em;
}
.sgf-wrap .sgf-error-summary:focus { outline: none; }
.sgf-wrap .sgf-resume-notice { margin: 0 0 var(--sgf-gap); padding: 12px 16px; border-radius: var(--sgf-radius); background: var(--sgf-success-soft); color: var(--sgf-success); font-weight: 500; }
.sgf-wrap .sgf-form-closed { padding: 18px 20px; border-radius: var(--sgf-radius); background: var(--sgf-soft); border: 1px solid var(--sgf-border); }
.sgf-wrap .sgf-form-closed > :last-child { margin-bottom: 0; }

/* ---------- Progress ---------- */
.sgf-wrap .sgf-progress { margin: 0 0 calc(var(--sgf-gap) * 1.2); }
.sgf-wrap .sgf-progress-label { display: flex; align-items: baseline; gap: 8px; font-size: .9em; margin-bottom: 8px; }
.sgf-wrap .sgf-progress-text { font-weight: 700; }
.sgf-wrap .sgf-progress-name { color: var(--sgf-muted); }
.sgf-wrap .sgf-progress-pct { margin-left: auto; font-weight: 600; color: var(--sgf-primary); }
.sgf-wrap .sgf-progress-track { height: 8px; border-radius: 4px; background: var(--sgf-soft); overflow: hidden; }
.sgf-wrap .sgf-progress-bar { height: 100%; background: linear-gradient(90deg, var(--sgf-primary), color-mix(in srgb, var(--sgf-primary) 65%, #22d3ee)); border-radius: 4px; transition: width .35s ease; min-width: 4%; }
.sgf-wrap .sgf-steps { display: flex; list-style: none; margin: 0 0 calc(var(--sgf-gap) * 1.2); padding: 0; gap: 6px; counter-reset: none; }
.sgf-wrap .sgf-step { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; position: relative; padding: 0 0 10px; margin: 0; border-bottom: 3px solid var(--sgf-soft); color: var(--sgf-muted); font-size: .88em; }
.sgf-wrap .sgf-step-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-content: center; background: var(--sgf-soft); font-weight: 700; font-size: .9em; }
.sgf-wrap .sgf-step-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sgf-wrap .sgf-step.is-current { color: var(--sgf-text); border-color: var(--sgf-primary); }
.sgf-wrap .sgf-step.is-current .sgf-step-num { background: var(--sgf-primary); color: #fff; }
.sgf-wrap .sgf-step.is-done { border-color: color-mix(in srgb, var(--sgf-primary) 45%, #fff); }
.sgf-wrap .sgf-step.is-done .sgf-step-num { background: var(--sgf-primary-soft); color: var(--sgf-primary); }
.sgf-wrap .sgf-step.is-done .sgf-step-num { font-size: 0; }
.sgf-wrap .sgf-step.is-done .sgf-step-num::after { content: "✓"; font-size: 13px; }

/* ---------- Footer / buttons ---------- */
.sgf-wrap .sgf-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: calc(var(--sgf-gap) * 1.3); }
.sgf-wrap .sgf-align-center { justify-content: center; }
.sgf-wrap .sgf-align-right { justify-content: flex-end; }
.sgf-wrap .sgf-align-full .sgf-btn { flex: 1; }
.sgf-wrap .sgf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; margin: 0;
	font: inherit; font-size: 1em; font-weight: 700; line-height: 1.2; letter-spacing: .01em; text-decoration: none; text-transform: none;
	border: 2px solid transparent; border-radius: var(--sgf-radius); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .15s;
	box-shadow: none; width: auto;
}
.sgf-wrap .sgf-btn:active { transform: translateY(1px); }
.sgf-wrap .sgf-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--sgf-focus); }
.sgf-wrap .sgf-btn-primary { background: var(--sgf-primary); color: var(--sgf-primary-contrast); }
.sgf-wrap .sgf-btn-primary:hover { background: color-mix(in srgb, var(--sgf-primary) 86%, #000); color: var(--sgf-primary-contrast); }
.sgf-wrap .sgf-btn-secondary { background: var(--sgf-bg); color: var(--sgf-text); border-color: var(--sgf-border); }
.sgf-wrap .sgf-btn-secondary:hover { border-color: var(--sgf-primary); color: var(--sgf-primary); background: var(--sgf-bg); }
.sgf-wrap.sgf-btn-outline .sgf-btn-primary { background: transparent; color: var(--sgf-primary); border-color: var(--sgf-primary); }
.sgf-wrap.sgf-btn-outline .sgf-btn-primary:hover { background: var(--sgf-primary); color: #fff; }
.sgf-wrap.sgf-btn-pill .sgf-btn { border-radius: 999px; }
.sgf-wrap.sgf-btn-gradient .sgf-btn-primary { background: linear-gradient(120deg, var(--sgf-primary), color-mix(in srgb, var(--sgf-primary) 55%, #ec4899)); }
.sgf-wrap .sgf-link { background: none; border: 0; padding: 4px 2px; color: var(--sgf-primary); font: inherit; font-size: .92em; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sgf-wrap .sgf-save-continue { margin-left: auto; }
.sgf-wrap .sgf-spinner { display: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sgf-spin .7s linear infinite; }
.sgf-wrap.is-busy .sgf-submit .sgf-spinner { display: inline-block; }
.sgf-wrap.is-busy .sgf-btn { opacity: .75; cursor: progress; }
@keyframes sgf-spin { to { transform: rotate(360deg); } }

/* ---------- Honeypot ---------- */
.sgf-wrap .sgf-hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Confirmation / saved ---------- */
.sgf-wrap .sgf-confirmation {
	padding: 22px 24px; border-radius: var(--sgf-radius); background: var(--sgf-success-soft); border: 1px solid color-mix(in srgb, var(--sgf-success) 25%, transparent);
	animation: sgf-pop .35s ease;
}
.sgf-wrap .sgf-confirmation:focus { outline: none; }
.sgf-wrap .sgf-confirmation > :last-child, .sgf-wrap .sgf-confirmation-message > :last-child { margin-bottom: 0; }
.sgf-wrap .sgf-confirmation table { width: 100%; }
.sgf-wrap .sgf-saved-box { background: var(--sgf-primary-soft); border-color: color-mix(in srgb, var(--sgf-primary) 25%, transparent); }
.sgf-wrap .sgf-saved-link { display: flex; gap: 8px; margin: 12px 0; }
.sgf-wrap .sgf-saved-link .sgf-control { flex: 1; font-size: .88em; }
.sgf-wrap .sgf-resume-email { margin-top: 14px; }
.sgf-wrap .sgf-resume-email label { display: block; font-weight: 600; margin-bottom: 6px; }
.sgf-wrap .sgf-resume-email-msg { font-size: .88em; margin-top: 6px; }
.sgf-wrap .sgf-resume-email-msg.is-ok { color: var(--sgf-success); }
.sgf-wrap .sgf-resume-email-msg.is-bad { color: var(--sgf-error); }
.sgf-wrap .sgf-payment-pending, .sgf-wrap .sgf-payment-cancelled { padding: 4px 0; }
.sgf-wrap .sgf-preview-note { font-size: .8em; color: var(--sgf-muted); margin: 10px 0 0; }
@keyframes sgf-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Poll results ---------- */
.sgf-wrap .sgf-poll-results { display: flex; flex-direction: column; gap: 22px; }
.sgf-wrap .sgf-poll-q { font-weight: 700; margin-bottom: 10px; }
.sgf-wrap .sgf-poll-row { margin-bottom: 10px; }
.sgf-wrap .sgf-poll-label { display: flex; justify-content: space-between; gap: 10px; font-size: .92em; margin-bottom: 4px; }
.sgf-wrap .sgf-poll-meta { color: var(--sgf-muted); white-space: nowrap; }
.sgf-wrap .sgf-poll-bar { height: 10px; border-radius: 5px; background: var(--sgf-soft); overflow: hidden; }
.sgf-wrap .sgf-poll-bar span { display: block; height: 100%; background: var(--sgf-primary); border-radius: 5px; animation: sgf-grow .8s ease; }
.sgf-wrap .sgf-poll-row.is-mine .sgf-poll-label span:first-child { font-weight: 700; }
.sgf-wrap .sgf-poll-row.is-mine .sgf-poll-label span:first-child::after { content: " ✓"; color: var(--sgf-primary); }
.sgf-wrap .sgf-poll-total { font-size: .82em; color: var(--sgf-muted); }
@keyframes sgf-grow { from { width: 0; } }

/* ==========================================================================
   Themes
   ========================================================================== */

/* Classic: square, subtle, traditional. */
.sgf-wrap.sgf-theme-classic { --sgf-radius: 3px; --sgf-border: #b6bec9; }
.sgf-wrap.sgf-theme-classic .sgf-control { min-height: 40px; padding: 8px 10px; background: #fcfcfd; }
.sgf-wrap.sgf-theme-classic .sgf-btn { min-height: 42px; padding: 10px 22px; text-transform: uppercase; font-size: .88em; letter-spacing: .06em; }
.sgf-wrap.sgf-theme-classic .sgf-label { font-size: .9em; }

/* Minimal: underline inputs, airy. */
.sgf-wrap.sgf-theme-minimal { --sgf-radius: 0; --sgf-border: #d4d4d8; }
.sgf-wrap.sgf-theme-minimal .sgf-control,
.sgf-wrap.sgf-theme-minimal input[type].sgf-control,
.sgf-wrap.sgf-theme-minimal select.sgf-control,
.sgf-wrap.sgf-theme-minimal textarea.sgf-control { border-width: 0 0 2px; background-color: transparent; padding-left: 2px; padding-right: 2px; }
.sgf-wrap.sgf-theme-minimal select.sgf-control { padding-right: 32px; background-position: right 4px center; }
.sgf-wrap.sgf-theme-minimal .sgf-control:focus { box-shadow: none; border-color: var(--sgf-primary); }
.sgf-wrap.sgf-theme-minimal .sgf-label { text-transform: uppercase; letter-spacing: .08em; font-size: .75em; color: var(--sgf-muted); }
.sgf-wrap.sgf-theme-minimal .sgf-btn { border-radius: 0; }

/* Rounded: soft pill fields, filled backgrounds. */
.sgf-wrap.sgf-theme-rounded { --sgf-radius: 18px; --sgf-border: transparent; --sgf-bg: #f1f5f9; --sgf-soft: #e2e8f0; }
.sgf-wrap.sgf-theme-rounded .sgf-control { border: 2px solid transparent; background-color: #f1f5f9; }
.sgf-wrap.sgf-theme-rounded .sgf-control:focus { background-color: #fff; border-color: var(--sgf-primary); }
.sgf-wrap.sgf-theme-rounded .sgf-btn { border-radius: 999px; padding-left: 32px; padding-right: 32px; }
.sgf-wrap.sgf-theme-rounded .sgf-choice input[type=radio], .sgf-wrap.sgf-theme-rounded .sgf-choice input[type=checkbox] { background: #fff; border-color: #cbd5e1; }
.sgf-wrap.sgf-theme-rounded .sgf-choice input:checked { background: var(--sgf-primary); border-color: var(--sgf-primary); }
.sgf-wrap.sgf-theme-rounded .sgf-image-choice, .sgf-wrap.sgf-theme-rounded .sgf-rank-item, .sgf-wrap.sgf-theme-rounded .sgf-file-item,
.sgf-wrap.sgf-theme-rounded .sgf-nps-scale label, .sgf-wrap.sgf-theme-rounded .sgf-signature { border-color: #e2e8f0; }
.sgf-wrap.sgf-theme-rounded .sgf-likert table { border-color: #e2e8f0; }
.sgf-wrap.sgf-theme-rounded .sgf-prefix, .sgf-wrap.sgf-theme-rounded .sgf-suffix { border-color: transparent; }

/* Dark. */
.sgf-wrap.sgf-theme-dark {
	--sgf-text: #e2e8f0; --sgf-muted: #94a3b8; --sgf-border: #334155; --sgf-border-strong: #475569; --sgf-bg: #0f172a; --sgf-soft: #1e293b;
	--sgf-error: #f87171; --sgf-error-soft: rgba(248, 113, 113, .12); --sgf-success: #34d399; --sgf-success-soft: rgba(52, 211, 153, .12);
	--sgf-primary-soft: color-mix(in srgb, var(--sgf-primary) 22%, #0f172a);
	color: var(--sgf-text);
}
.sgf-wrap.sgf-theme-dark .sgf-control { color-scheme: dark; }
.sgf-wrap.sgf-theme-dark .sgf-error-summary { color: #fecaca; }
.sgf-wrap.sgf-theme-dark .sgf-notice { background: #422006; border-color: #92400e; color: #fde68a; }
.sgf-wrap.sgf-theme-dark .sgf-rating-star { color: #475569; }
.sgf-wrap.sgf-theme-dark .sgf-choice input[type=checkbox]::before, .sgf-wrap.sgf-theme-dark .sgf-choice input[type=radio]::before { background: #fff; }
.sgf-wrap.sgf-theme-dark select.sgf-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Inherit: let the theme style the fields; keep only layout helpers. */
.sgf-wrap.sgf-theme-inherit .sgf-control { min-height: 0; border-radius: 0; background-image: none; appearance: auto; -webkit-appearance: auto; padding: revert; border: revert; background-color: revert; color: inherit; }
.sgf-wrap.sgf-theme-inherit .sgf-choice input[type=radio], .sgf-wrap.sgf-theme-inherit .sgf-choice input[type=checkbox], .sgf-wrap.sgf-theme-inherit .sgf-consent input[type=checkbox] { appearance: auto; -webkit-appearance: auto; width: auto; height: auto; border: revert; background: revert; }
.sgf-wrap.sgf-theme-inherit .sgf-choice input::before { display: none; }
.sgf-wrap.sgf-theme-inherit .sgf-btn { border-radius: revert; background: revert; color: revert; border: revert; font-weight: revert; min-height: 0; padding: revert; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
	.sgf-wrap .sgf-field, .sgf-wrap .sgf-w-three-quarters, .sgf-wrap .sgf-w-two-thirds, .sgf-wrap .sgf-w-half, .sgf-wrap .sgf-w-third, .sgf-wrap .sgf-w-quarter { flex-basis: 100%; }
	.sgf-wrap .sgf-row-2, .sgf-wrap .sgf-row-3, .sgf-wrap .sgf-row-4 { grid-template-columns: 1fr; }
	.sgf-wrap .sgf-date-dropdowns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.sgf-wrap .sgf-layout-columns-2, .sgf-wrap .sgf-layout-columns-3 { grid-template-columns: 1fr; }
	.sgf-wrap .sgf-image-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sgf-wrap .sgf-cols-1 { grid-template-columns: 1fr; }
	.sgf-wrap.sgf-labels-left .sgf-field, .sgf-wrap .sgf-field.sgf-label-left { display: block; }
	.sgf-wrap.sgf-labels-left .sgf-field > .sgf-label { padding-top: 0; }
	.sgf-wrap .sgf-nps-scale { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.sgf-wrap .sgf-footer { flex-direction: column-reverse; align-items: stretch; }
	.sgf-wrap .sgf-footer .sgf-btn { width: 100%; }
	.sgf-wrap .sgf-save-continue { margin: 0 auto; }
	.sgf-wrap .sgf-step-name { display: none; }
	.sgf-wrap .sgf-step { justify-content: center; }
	.sgf-wrap .sgf-step.is-current .sgf-step-name { display: block; }
	.sgf-wrap .sgf-step.is-current { flex: 3; justify-content: flex-start; }
	.sgf-wrap .sgf-likert.is-multi table, .sgf-wrap .sgf-likert.is-multi tbody, .sgf-wrap .sgf-likert.is-multi tr { display: block; }
	.sgf-wrap .sgf-likert.is-multi thead { display: none; }
	.sgf-wrap .sgf-likert.is-multi tbody tr { border-bottom: 1px solid var(--sgf-border); padding: 10px 12px; }
	.sgf-wrap .sgf-likert.is-multi tbody tr:last-child { border-bottom: 0; }
	.sgf-wrap .sgf-likert.is-multi tbody th { display: block; border: 0; padding: 0 0 8px; }
	.sgf-wrap .sgf-likert.is-multi tbody td { display: flex; align-items: center; gap: 10px; border: 0; padding: 5px 0; text-align: left; }
	.sgf-wrap .sgf-likert.is-multi tbody td::after { content: attr(data-label); font-size: .95em; order: 2; }
	.sgf-wrap .sgf-likert.is-multi tbody td label { order: 1; }
	.sgf-wrap .sgf-list-table thead { display: none; }
	.sgf-wrap .sgf-list-table, .sgf-wrap .sgf-list-table tbody, .sgf-wrap .sgf-list-table tr { display: block; }
	.sgf-wrap .sgf-list-table tr { padding: 10px; border: 1px solid var(--sgf-border); border-radius: var(--sgf-radius); margin-bottom: 8px; }
	.sgf-wrap .sgf-list-table td { display: block; padding: 0 0 8px; }
	.sgf-wrap .sgf-list-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: .8em; color: var(--sgf-muted); margin-bottom: 3px; }
	.sgf-wrap .sgf-saved-link { flex-direction: column; }
	.sgf-wrap .sgf-coupon .sgf-btn { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.sgf-wrap *, .sgf-wrap *::before, .sgf-wrap *::after { animation: none !important; transition: none !important; }
}
