/* HC Forms — front end. (c) 2026 Esfandiar Khosraviani */
.hcf-wrap{--hcf-c:#0d6efd;--hcf-r:8px;--hcf-bg:transparent;--hcf-fg:inherit;--hcf-mut:#64748b;--hcf-bd:#cbd5e1;--hcf-in:#fff;position:relative;box-sizing:border-box;max-width:100%;font:inherit;color:var(--hcf-fg)}
.hcf-wrap *,.hcf-wrap *::before,.hcf-wrap *::after{box-sizing:border-box}
.hcf-theme-modern{background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-radius:calc(var(--hcf-r) + 4px);padding:28px;box-shadow:0 10px 30px -12px rgba(15,23,42,.18)}
.hcf-theme-soft{background:color-mix(in srgb,var(--hcf-c) 7%,#fff);color:#0f172a;border-radius:calc(var(--hcf-r) + 6px);padding:28px}
.hcf-theme-minimal{--hcf-in:transparent;--hcf-bd:#94a3b8}
.hcf-theme-minimal .hcf-input{border-width:0 0 1.5px;border-radius:0;padding-left:0;padding-right:0;background:transparent}
.hcf-theme-dark{--hcf-in:#1e293b;--hcf-bd:#334155;--hcf-mut:#94a3b8;background:#0f172a;color:#e2e8f0;border-radius:calc(var(--hcf-r) + 4px);padding:28px}
.hcf-theme-dark .hcf-btn.hcf-ghost{color:#e2e8f0}
.hcf-theme-inherit{--hcf-in:transparent}
.hcf-fields{display:flex;flex-wrap:wrap;gap:18px 16px}
.hcf-field{flex:0 0 100%;min-width:0;margin:0;padding:0;border:0}
.hcf-w-75{flex-basis:calc(75% - 4px)}.hcf-w-66{flex-basis:calc(66.666% - 5.4px)}.hcf-w-50{flex-basis:calc(50% - 8px)}.hcf-w-33{flex-basis:calc(33.333% - 10.7px)}.hcf-w-25{flex-basis:calc(25% - 12px)}
@media(max-width:620px){.hcf-field{flex-basis:100%!important}}
.hcf-hidden{display:none!important}
.hcf-wrap .hcf-label,.hcf-wrap .hcf-field>legend{display:block;font-weight:600;margin:0 0 6px;padding:0;font-size:.95em}
.hcf-req{color:#dc2626;margin-left:2px}
.hcf-input,.hcf-file{display:block;width:100%;max-width:100%;padding:.65em .85em;border:1px solid var(--hcf-bd);border-radius:var(--hcf-r);background:var(--hcf-in);color:inherit;font:inherit;line-height:1.4;box-shadow:none;margin:0;height:auto}
textarea.hcf-input{resize:vertical;min-height:5em}
select.hcf-input{appearance:auto}
.hcf-input:focus,.hcf-file:focus,.hcf-btn:focus-visible{outline:2px solid var(--hcf-c);outline-offset:1px;border-color:var(--hcf-c)}
.hcf-size-sm{font-size:.92em}.hcf-size-lg{font-size:1.12em}.hcf-size-lg .hcf-input{padding:.85em 1em}
.hcf-file{border-style:dashed;padding:.7em}
.hcf-help,.hcf-hint{color:var(--hcf-mut);font-size:.85em;margin-top:5px}
.hcf-err{color:#dc2626;font-size:.85em;margin-top:5px;display:flex;align-items:flex-start;gap:5px}.hcf-err:empty{display:none}
.hcf-err::before{content:'';flex:0 0 auto}
.hcf-err:not(:empty)::before{content:'\26A0';font-size:.95em;line-height:1.3}
.has-error .hcf-input,.has-error .hcf-file,.has-error .hcf-tag-in{border-color:#dc2626;background-image:none}
.has-error .hcf-input:focus,.has-error .hcf-file:focus{outline-color:#dc2626}
.has-success .hcf-input,.has-success .hcf-file{border-color:#16a34a}
.has-success .hcf-label::after{content:'\2713';color:#16a34a;margin-left:6px;font-weight:700}
@keyframes hcf-shake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(2px)}30%,50%,70%{transform:translateX(-4px)}40%,60%{transform:translateX(4px)}}
.hcf-shake{animation:hcf-shake .4s linear}
@media(prefers-reduced-motion:reduce){.hcf-shake{animation:none}}
.hcf-count{text-align:right;font-size:.8em;color:var(--hcf-mut);margin-top:3px;transition:color .15s}
.hcf-count.is-near{color:#b45309}
.hcf-count.is-over{color:#dc2626;font-weight:600}
.hcf-errsum{display:none;margin:0 0 18px;padding:14px 16px;border-radius:var(--hcf-r);background:#fef2f2;border:1px solid #fecaca;color:#991b1b;font-size:.92em}
.hcf-errsum.is-on{display:block}
/* validation-feedback effect toggles (Style tab) */
.hcf-wrap:not(.hcf-fx-text) .hcf-err{display:none!important}
.hcf-wrap:not(.hcf-fx-border) .has-error .hcf-input,.hcf-wrap:not(.hcf-fx-border) .has-error .hcf-file,.hcf-wrap:not(.hcf-fx-border) .has-error .hcf-tag-in,.hcf-wrap:not(.hcf-fx-border) .has-error .hcf-slide-track{border-color:var(--hcf-bd)}
.hcf-wrap:not(.hcf-fx-border) .has-success .hcf-input,.hcf-wrap:not(.hcf-fx-border) .has-success .hcf-file{border-color:var(--hcf-bd)}
.hcf-wrap:not(.hcf-fx-success) .has-success .hcf-label::after{content:none}
.hcf-wrap:not(.hcf-fx-shake) .hcf-shake{animation:none}
.hcf-errsum:focus{outline:2px solid #dc2626;outline-offset:2px}
.hcf-errsum p{margin:0 0 .5em;font-weight:600}
.hcf-errsum ul{margin:0;padding:0 0 0 1.2em}
.hcf-errsum li{margin:0 0 .3em}
.hcf-errsum button{appearance:none;border:0;background:transparent;color:#991b1b;text-decoration:underline;font:inherit;font-size:.95em;padding:0;cursor:pointer;text-align:left}
.hcf-errsum button:hover,.hcf-errsum button:focus-visible{color:#7f1d1d}
.hcf-wrap .hcf-heading{margin:.3em 0 0;line-height:1.25;font-weight:700}
.hcf-t-divider hr{border:0;border-top:1px solid var(--hcf-bd);margin:6px 0}
.hcf-t-html p:last-child{margin-bottom:0}
/* options */
.hcf-opts{display:grid;gap:9px}.hcf-opts.hcf-inline{display:flex;flex-wrap:wrap;gap:9px 20px}
.hcf-wrap .hcf-opt{display:flex;gap:.6em;align-items:flex-start;cursor:pointer;font-weight:400;margin:0;padding:0}
.hcf-wrap .hcf-opt input{accent-color:var(--hcf-c);width:1.1em;height:1.1em;margin:.25em 0 0;flex:0 0 auto}
.hcf-consent{font-size:.95em}
/* compound */
.hcf-row{display:flex;flex-wrap:wrap;gap:0 12px}.hcf-sub{margin:0 0 10px;flex:1 1 100%}.hcf-half{flex:1 1 calc(50% - 6px)}.hcf-third{flex:1 1 calc(33% - 8px)}
.hcf-wrap .hcf-sublabel{display:block;font-weight:400;font-size:.8em;color:var(--hcf-mut);margin-top:3px}
/* stars */
.hcf-stars{display:inline-flex;flex-direction:row-reverse;gap:2px;position:relative}
.hcf-stars input{position:absolute;opacity:0;width:1px;height:1px}
.hcf-stars label,.hcf-wrap .hcf-stars label{font-size:1.9rem;line-height:1;cursor:pointer;color:#cbd5e1;transition:color .12s;margin:0}
.hcf-stars label::before{content:"\2605"}
.hcf-stars input:checked~label,.hcf-stars label:hover,.hcf-stars label:hover~label{color:#f59e0b}
.hcf-stars input:focus-visible+label{outline:2px solid var(--hcf-c);outline-offset:2px;border-radius:4px}
.hcf-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* NPS */
.hcf-nps{display:grid;grid-template-columns:repeat(11,1fr);gap:5px}
.hcf-nps span{position:relative}.hcf-nps input{position:absolute;opacity:0;width:1px;height:1px}
.hcf-wrap .hcf-nps label{display:block;text-align:center;padding:.6em 0;border:1px solid var(--hcf-bd);border-radius:var(--hcf-r);cursor:pointer;font-weight:600;margin:0;background:var(--hcf-in)}
.hcf-wrap .hcf-nps input:checked+label{background:var(--hcf-c);border-color:var(--hcf-c);color:#fff}
.hcf-nps input:focus-visible+label{outline:2px solid var(--hcf-c);outline-offset:2px}
.hcf-nps-lbl{display:flex;justify-content:space-between;font-size:.8em;color:var(--hcf-mut);margin-top:5px}
@media(max-width:520px){.hcf-nps{grid-template-columns:repeat(6,1fr)}}
/* range */
.hcf-range{display:flex;align-items:center;gap:14px}.hcf-range input{padding:0;border:0;background:transparent;accent-color:var(--hcf-c)}
.hcf-range-out{min-width:2.5em;text-align:center;font-weight:700;color:var(--hcf-c)}
/* matrix */
.hcf-matrix-wrap{overflow-x:auto}
.hcf-matrix{width:100%;border-collapse:collapse;font-size:.92em}
.hcf-matrix th,.hcf-matrix td{padding:9px 6px;text-align:center;border-bottom:1px solid var(--hcf-bd);font-weight:400}
.hcf-matrix thead th{font-weight:600;font-size:.85em}.hcf-matrix tbody th{text-align:left;font-weight:600;min-width:130px}
.hcf-matrix input{accent-color:var(--hcf-c);width:1.15em;height:1.15em}
/* labels left / hidden */
.hcf-labels-left .hcf-field:not(.hcf-t-heading):not(.hcf-t-html):not(.hcf-t-divider):not(.hcf-t-consent){display:grid;grid-template-columns:minmax(120px,28%) 1fr;column-gap:16px;align-items:start}
.hcf-labels-left .hcf-field>.hcf-help,.hcf-labels-left .hcf-field>.hcf-err,.hcf-labels-left .hcf-field>.hcf-count{grid-column:2}
.hcf-labels-left .hcf-label,.hcf-labels-left legend{padding-top:.7em}
.hcf-wrap.hcf-labels-hidden .hcf-field:not(.hcf-t-consent)>.hcf-label,.hcf-labels-hidden .hcf-field>legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
@media(max-width:620px){.hcf-labels-left .hcf-field{display:block!important}}
/* steps */
.hcf-steps{display:flex;gap:6px;list-style:none;margin:0 0 24px;padding:0}
.hcf-steps li{flex:1;display:flex;align-items:center;gap:8px;font-size:.85em;color:var(--hcf-mut);padding-bottom:10px;border-bottom:3px solid var(--hcf-bd);margin:0}
.hcf-sn{display:inline-flex;align-items:center;justify-content:center;width:1.7em;height:1.7em;border-radius:50%;background:var(--hcf-bd);color:#fff;font-weight:700;flex:0 0 auto}
.hcf-steps li.is-on{color:inherit;border-color:var(--hcf-c);font-weight:600}.hcf-steps li.is-on .hcf-sn,.hcf-steps li.is-done .hcf-sn{background:var(--hcf-c)}
.hcf-steps li.is-done{border-color:var(--hcf-c);color:inherit}
@media(max-width:520px){.hcf-st{display:none}.hcf-steps li.is-on .hcf-st{display:inline}}
.hcf-page{display:none}.hcf-page.is-on{display:block}
.hcf-nav{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
/* buttons */
.hcf-btn{appearance:none;-webkit-appearance:none;border:1px solid var(--hcf-c);background:var(--hcf-c);color:#fff;padding:.75em 1.6em;border-radius:var(--hcf-r);font:inherit;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:.6em;line-height:1.2;text-decoration:none;transition:filter .15s}
.hcf-btn:hover{filter:brightness(.92)}.hcf-ghost{background:transparent;color:inherit;border-color:var(--hcf-bd)}
.hcf-full{width:100%;justify-content:center}
.hcf-spin{display:none;width:1em;height:1em;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:hcfspin .7s linear infinite}
.is-busy .hcf-spin{display:inline-block}.is-busy .hcf-submit{opacity:.85;pointer-events:none}
@keyframes hcfspin{to{transform:rotate(360deg)}}
/* messages */
.hcf-msg:empty{display:none}
.hcf-msg{margin:0 0 18px;padding:14px 16px;border-radius:var(--hcf-r);font-size:.95em}
.hcf-msg.ok{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.hcf-msg.err{background:#fef2f2;border:1px solid #fecaca;color:#991b1b}
.hcf-msg p{margin:0 0 .6em}.hcf-msg p:last-child{margin:0}
.hcf-form.is-sent .hcf-page,.hcf-form.is-sent .hcf-steps{display:none}
.hcf-notice{padding:14px 16px;border:1px solid var(--hcf-bd,#cbd5e1);border-radius:8px;background:#f8fafc;color:#334155}
.hcf-captcha{margin-top:4px}
.hcf-rc3-note{font-size:.78em;color:var(--hcf-mut);margin:6px 0 0}
.hcf-rc3-note a{color:inherit;text-decoration:underline}
/* slide-to-verify captcha */
.hcf-slide{outline:0;user-select:none;-webkit-user-select:none}
.hcf-slide-track{position:relative;height:3em;border:1px solid var(--hcf-bd);border-radius:var(--hcf-r);background:var(--hcf-in);overflow:hidden}
.hcf-slide-fill{position:absolute;inset-block:0;left:0;width:calc((100% - 3em) * var(--hcf-sp,0) / 100 + 1.5em);background:color-mix(in srgb,var(--hcf-c) 22%,transparent);transition:width .05s linear}
.hcf-slide-target{position:absolute;inset-block:3px;width:3em;margin-left:-1.5em;border:2px dashed color-mix(in srgb,var(--hcf-c) 60%,var(--hcf-mut));border-radius:calc(var(--hcf-r) - 2px);pointer-events:none}
.hcf-slide-handle{position:absolute;inset-block:3px;left:calc((100% - 3em) * var(--hcf-sp,0) / 100);width:3em;display:flex;align-items:center;justify-content:center;background:var(--hcf-c);color:#fff;border-radius:calc(var(--hcf-r) - 2px);cursor:grab;font-size:1.1em;transition:left .05s linear;touch-action:none}
.hcf-slide.is-drag .hcf-slide-handle{cursor:grabbing;transition:none}
.hcf-slide.is-ok .hcf-slide-handle{background:#16a34a}
.hcf-slide.is-ok .hcf-slide-handle::after{content:'\2713'}
.hcf-slide:focus-visible .hcf-slide-handle{outline:2px solid var(--hcf-c);outline-offset:2px}
.hcf-slide-hint{display:block;margin-top:6px;font-size:.82em;color:var(--hcf-mut)}
.hcf-slide.is-ok .hcf-slide-hint{color:#16a34a}
.has-error .hcf-slide-track{border-color:#dc2626}
/* comment form */
.hcf-cmt-style #commentform{display:grid;gap:16px}
.hcf-cmt-style #commentform p,.hcf-cmt-style #commentform .col-12{margin:0}
.hcf-cmt-style #commentform label{font-weight:600;margin-bottom:6px;font-size:.95em}
.hcf-cmt-style #commentform input[type=text],.hcf-cmt-style #commentform input[type=email],.hcf-cmt-style #commentform input[type=url],.hcf-cmt-style #commentform textarea{width:100%;padding:.7em .9em;border:1px solid #cbd5e1;border-radius:10px;font:inherit;background:#fff;color:inherit;box-sizing:border-box}
.hcf-cmt-style #commentform input:focus,.hcf-cmt-style #commentform textarea:focus{outline:2px solid #0d6efd;outline-offset:1px;border-color:#0d6efd}
.hcf-cmt-style #commentform input[type=submit],.hcf-cmt-style #commentform button[type=submit]{background:#0d6efd;color:#fff;border:0;border-radius:10px;padding:.8em 1.7em;font:inherit;font-weight:600;cursor:pointer}
.hcf-cmt-style #commentform .hcf-field{--hcf-c:#0d6efd;--hcf-mut:#64748b;--hcf-bd:#cbd5e1;--hcf-in:#fff}
.hcf-cmt-style #commentform .hcf-label{display:block;font-weight:600;margin-bottom:6px}
.hcf-cmt-style #commentform .hcf-stars label{margin:0;font-weight:400}
li .comment-respond .hcf-cmt-rating{display:none}
.hcf-rating-line{margin:0 0 4px}
.hcf-rated{display:inline-block;letter-spacing:2px;font-size:1.15em;line-height:1;background:linear-gradient(90deg,#f59e0b var(--p,0%),#cbd5e1 var(--p,0%));-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.hcf-rated-t{font-size:.9em;color:#475569;margin-left:6px}
.hcf-rating-sum{margin:1em 0}

.hcf-wrap .hcf-opt span{font-weight:400}
.hcf-wrap .hcf-consent span{font-weight:400}
.hcf-wrap .hcf-stars input:checked~label,.hcf-wrap .hcf-stars label:hover,.hcf-wrap .hcf-stars label:hover~label{color:#f59e0b}
.hcf-wrap .hcf-stars label::before{content:"\2605"}
.hcf-wrap .hcf-input,.hcf-wrap .hcf-file{max-width:100%;box-shadow:none}
.hcf-wrap .hcf-nps input:checked+label{color:#fff}
.hcf-wrap .hcf-matrix th,.hcf-wrap .hcf-matrix td{font-weight:400}.hcf-wrap .hcf-matrix thead th,.hcf-wrap .hcf-matrix tbody th{font-weight:600}

.hcf-stars label::before{content:"\2605"}.hcf-stars label{font-weight:400}

/* rich text */
.hcf-rte{border:1px solid var(--hcf-bd);border-radius:var(--hcf-r);background:var(--hcf-in);overflow:hidden}
.hcf-rte:focus-within{outline:2px solid var(--hcf-c);outline-offset:1px;border-color:var(--hcf-c)}
.hcf-rte-bar{display:flex;flex-wrap:wrap;gap:4px;padding:6px;border-bottom:1px solid var(--hcf-bd);background:rgba(100,116,139,.08)}
.hcf-wrap .hcf-rte-b{appearance:none;border:1px solid transparent;background:transparent;color:inherit;font:inherit;font-size:.85em;padding:.25em .6em;border-radius:6px;cursor:pointer;line-height:1.3}
.hcf-wrap .hcf-rte-b:hover{background:rgba(100,116,139,.18)}.hcf-wrap .hcf-rte-b.is-on{background:var(--hcf-c);color:#fff}
.hcf-wrap .hcf-rte-area{border:0;border-radius:0;min-height:calc(var(--hcf-rows,5) * 1.5em);max-height:22em;overflow:auto;outline:0;box-shadow:none;white-space:normal}
.hcf-rte-area:empty::before{content:attr(data-ph);color:var(--hcf-mut);pointer-events:none}
.hcf-rte-area p{margin:0 0 .6em}.hcf-rte-area ul,.hcf-rte-area ol{margin:0 0 .6em 1.4em}.hcf-rte-area ul{list-style:disc}.hcf-rte-area ol{list-style:decimal}
.hcf-rte-src{display:none!important}
.has-error .hcf-rte{border-color:#dc2626}

/* scanner */
.hcf-scan{display:flex;gap:8px;align-items:stretch}.hcf-scan .hcf-input{flex:1;min-width:0}
.hcf-wrap .hcf-scan-b{padding:.5em 1em;white-space:nowrap}
.hcf-scan-ov{position:fixed;inset:0;z-index:99999;background:rgba(2,6,23,.88);display:flex;align-items:center;justify-content:center;padding:16px}
.hcf-scan-box{background:#0f172a;color:#e2e8f0;border-radius:14px;width:min(520px,100%);padding:14px;font:15px/1.4 system-ui,sans-serif}
.hcf-scan-v{position:relative;background:#000;border-radius:10px;overflow:hidden;aspect-ratio:4/3}
.hcf-scan-v video{width:100%;height:100%;object-fit:cover;display:block}
.hcf-scan-v::after{content:"";position:absolute;inset:18% 12%;border:3px solid rgba(255,255,255,.85);border-radius:12px;box-shadow:0 0 0 999px rgba(0,0,0,.25);pointer-events:none}
.hcf-scan-m{margin:10px 2px;min-height:1.4em;font-size:.92em}
.hcf-scan-r{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.hcf-scan-r button,.hcf-scan-r label{appearance:none;border:1px solid #475569;background:transparent;color:#e2e8f0;border-radius:8px;padding:.5em 1em;cursor:pointer;font:inherit;display:inline-block}
.hcf-scan-r button:hover,.hcf-scan-r label:hover{background:#1e293b}

/* ===== v1.1: input groups, custom controls, colors ===== */
.hcf-c-primary{--hcf-c:#0d6efd;--hcf-on:#fff}.hcf-c-accent{--hcf-c:#7c3aed;--hcf-on:#fff}.hcf-c-success{--hcf-c:#12a150;--hcf-on:#fff}.hcf-c-danger{--hcf-c:#e5233f;--hcf-on:#fff}
.hcf-c-warning{--hcf-c:#ffc400;--hcf-on:#16181d}.hcf-c-info{--hcf-c:#0ab1ff;--hcf-on:#16181d}.hcf-c-inverse{--hcf-c:#16181d;--hcf-on:#fff}.hcf-c-secondary{--hcf-c:#dfe3e8;--hcf-on:#16181d}
.hcf-ig{display:flex;align-items:stretch;border:1px solid var(--hcf-bd);border-radius:var(--hcf-r);background:var(--hcf-in);overflow:hidden;width:100%}
.hcf-ig:focus-within{outline:2px solid var(--hcf-c);outline-offset:1px;border-color:var(--hcf-c)}
.hcf-wrap .hcf-ig .hcf-input{border:0;border-radius:0;box-shadow:none;outline:0;flex:1 1 auto;min-width:0;background:transparent}
.hcf-ig-t{display:flex;align-items:center;padding:0 .9em;background:rgba(100,116,139,.12);color:var(--hcf-mut);border-right:1px solid var(--hcf-bd);white-space:nowrap}
.hcf-ig-t.hcf-ig-end{border-right:0;border-left:1px solid var(--hcf-bd)}
.hcf-ig-i{display:flex;align-items:center;padding-left:.9em;color:var(--hcf-mut)}
.hcf-ig-i+.hcf-input{padding-left:.6em}
.hcf-wrap .hcf-ig-sel{appearance:auto;-webkit-appearance:menulist;border:0;border-right:1px solid var(--hcf-bd);background:rgba(100,116,139,.12);color:inherit;font:inherit;padding:0 .6em;cursor:pointer;flex:0 0 auto;max-width:48%;margin:0;border-radius:0}
.hcf-wrap .hcf-ig .hcf-ig-sel:last-child{border-right:0;border-left:1px solid var(--hcf-bd)}
/* checkboxes and radios */
.hcf-wrap .hcf-opt input[type=checkbox],.hcf-wrap .hcf-opt input[type=radio]{appearance:none;-webkit-appearance:none;width:1.3em;height:1.3em;margin:.08em 0 0;padding:0;flex:0 0 auto;border:2px solid var(--hcf-bd);background:var(--hcf-in);display:inline-grid;place-content:center;cursor:pointer;transition:background .12s,border-color .12s}
.hcf-wrap .hcf-opt input[type=checkbox]{border-radius:.4em}.hcf-wrap .hcf-opt input[type=radio]{border-radius:50%}
.hcf-wrap .hcf-opt input:checked{background:var(--hcf-c);border-color:var(--hcf-c)}
.hcf-wrap .hcf-opt input[type=checkbox]:checked::after{content:"";width:.34em;height:.64em;border:solid var(--hcf-on,#fff);border-width:0 .17em .17em 0;transform:rotate(45deg) translate(-.05em,-.05em)}
.hcf-wrap .hcf-opt input[type=radio]:checked::after{content:"";width:.5em;height:.5em;border-radius:50%;background:var(--hcf-on,#fff)}
.hcf-wrap .hcf-opt input:focus-visible{outline:2px solid var(--hcf-c);outline-offset:2px}
/* switches */
.hcf-wrap .hcf-switch input[type=checkbox],.hcf-wrap .hcf-switch input[type=radio],.hcf-wrap .hcf-opt.hcf-switch input{width:2.7em;height:1.5em;border-radius:1em;border:2px solid var(--hcf-bd);background:var(--hcf-bd);position:relative;display:inline-block;margin-top:.05em}
.hcf-wrap .hcf-switch input::after,.hcf-wrap .hcf-opt.hcf-switch input::after{content:"";position:absolute;top:50%;left:.14em;width:1.02em;height:1.02em;border:0;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transform:translateY(-50%);transition:left .15s}
.hcf-wrap .hcf-switch input:checked,.hcf-wrap .hcf-opt.hcf-switch input:checked{background:var(--hcf-c);border-color:var(--hcf-c)}
.hcf-wrap .hcf-switch input:checked::after,.hcf-wrap .hcf-opt.hcf-switch input:checked::after{left:calc(100% - 1.16em);background:var(--hcf-on,#fff);width:1.02em;height:1.02em;border:0;transform:translateY(-50%)}
/* chips as choices */
.hcf-opts.hcf-chips{display:flex;flex-wrap:wrap;gap:8px}
.hcf-wrap .hcf-chips .hcf-opt{position:relative;display:inline-flex}
.hcf-wrap .hcf-chips .hcf-opt>input,.hcf-wrap .hcf-chips .hcf-other-l>input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.hcf-wrap .hcf-chips .hcf-opt span{display:inline-block;padding:.4em 1em;border:1px solid var(--hcf-bd);border-radius:999px;background:rgba(100,116,139,.1);transition:background .12s,color .12s}
.hcf-wrap .hcf-chips .hcf-opt input:checked+span{background:var(--hcf-c);border-color:var(--hcf-c);color:var(--hcf-on,#fff)}
.hcf-wrap .hcf-chips .hcf-opt input:focus-visible+span{outline:2px solid var(--hcf-c);outline-offset:2px}
.hcf-other{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hcf-other-l{display:flex;gap:.6em;align-items:center;cursor:pointer;margin:0}
.hcf-wrap .hcf-other-t{flex:1 1 170px;width:auto;padding:.35em .7em}
.hcf-wrap .hcf-other-t:disabled{opacity:.45}
/* stars take the field color */
[class*="hcf-c-"] .hcf-stars input:checked~label,[class*="hcf-c-"] .hcf-stars label:hover,[class*="hcf-c-"] .hcf-stars label:hover~label{color:var(--hcf-c)}
/* slider with fill and bubble */
.hcf-wrap .hcf-range{display:block;--hcf-n:0}
.hcf-rng{position:relative;padding-top:2.3em}
.hcf-wrap .hcf-range input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:1.5em;padding:0;border:0;background:transparent;outline:0;margin:0;box-shadow:none;accent-color:var(--hcf-c)}
.hcf-range input[type=range]::-webkit-slider-runnable-track{height:.55em;border-radius:1em;background:linear-gradient(to right,var(--hcf-c) calc(var(--hcf-n)*100%),#e2e8f0 calc(var(--hcf-n)*100%))}
.hcf-range input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:1.4em;height:1.4em;border-radius:50%;background:var(--hcf-c);border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.35);margin-top:-.425em}
.hcf-range input[type=range]::-moz-range-track{height:.55em;border-radius:1em;background:#e2e8f0}
.hcf-range input[type=range]::-moz-range-progress{height:.55em;border-radius:1em;background:var(--hcf-c)}
.hcf-range input[type=range]::-moz-range-thumb{width:1.1em;height:1.1em;border-radius:50%;background:var(--hcf-c);border:3px solid #fff;box-shadow:0 1px 5px rgba(0,0,0,.35)}
.hcf-range input[type=range]:focus-visible::-webkit-slider-thumb{outline:2px solid var(--hcf-c);outline-offset:2px}
.hcf-bubble{position:absolute;top:0;left:calc(var(--hcf-n)*(100% - 1.4em) + .7em);transform:translateX(-50%);background:var(--hcf-c);color:var(--hcf-on,#fff);border-radius:.5em;padding:.12em .6em;font-size:.85em;font-weight:700;min-width:2.3em;text-align:center;pointer-events:none}
.hcf-bubble::after{content:"";position:absolute;left:50%;top:100%;border:.35em solid transparent;border-top-color:var(--hcf-c);transform:translateX(-50%)}
.hcf-ticks{display:flex;justify-content:space-between;font-size:.75em;color:var(--hcf-mut);margin-top:2px;padding:0 .5em}
/* OTP */
.hcf-otp{display:flex;gap:10px;flex-wrap:wrap}
.hcf-wrap .hcf-otp-slot{width:2.9em;height:3.3em;text-align:center;font:inherit;font-size:1.2em;font-weight:700;border:1px solid var(--hcf-bd);border-radius:var(--hcf-r);background:var(--hcf-in);color:inherit;padding:0;caret-color:var(--hcf-c);box-shadow:none}
.hcf-wrap .hcf-otp-slot:focus{outline:2px solid var(--hcf-c);outline-offset:1px;border-color:var(--hcf-c)}
.has-error .hcf-otp-slot{border-color:#dc2626}
.hcf-otp-src,.hcf-tag-src{display:none!important}
/* password */
.hcf-wrap .hcf-pw-t{border:0;background:transparent;color:var(--hcf-mut);padding:0 .85em;cursor:pointer;display:flex;align-items:center;margin:0}
.hcf-wrap .hcf-pw-t:hover{color:inherit}
.hcf-strength{display:flex;gap:6px;margin-top:9px}
.hcf-strength i{flex:1;height:.42em;border-radius:1em;background:#e2e8f0;transition:background .2s}
.hcf-strength[data-s="1"] i:nth-child(-n+1){background:#e5233f}.hcf-strength[data-s="2"] i:nth-child(-n+2){background:#f59e0b}.hcf-strength[data-s="3"] i:nth-child(-n+3){background:#84cc16}.hcf-strength[data-s="4"] i{background:#12a150}
.hcf-str-l{font-size:.85em;margin-top:4px;min-height:1.3em;color:var(--hcf-mut)}
/* tags */
.hcf-chipbox{display:flex;flex-wrap:wrap;gap:6px;align-items:center;padding:.4em .6em;min-height:2.9em;cursor:text;height:auto}
.hcf-chipbox:focus-within{outline:2px solid var(--hcf-c);outline-offset:1px;border-color:var(--hcf-c)}
.hcf-wrap .hcf-tag-in{flex:1 1 9em;min-width:6em;border:0;outline:0;background:transparent;color:inherit;font:inherit;padding:.25em 0;box-shadow:none;margin:0}
.hcf-chip{display:inline-flex;align-items:center;gap:.45em;background:rgba(100,116,139,.16);border-radius:999px;padding:.2em .4em .2em .85em;font-size:.92em}
.hcf-wrap .hcf-chip-x{border:0;background:rgba(100,116,139,.28);color:inherit;border-radius:50%;width:1.45em;height:1.45em;line-height:1;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:1em}
.hcf-wrap .hcf-chip-x:hover{background:#e5233f;color:#fff}
.hcf-wrap .hcf-opt input.hcf-other-t{width:auto;height:auto;margin:0;flex:1 1 170px;max-width:100%}
.hcf-wrap .hcf-chips .hcf-other{display:flex;flex-wrap:wrap;align-items:center}
.hcf-wrap .hcf-chips .hcf-other-l span{display:inline-block;padding:.4em 1em;border:1px solid var(--hcf-bd);border-radius:999px;background:rgba(100,116,139,.1)}
.hcf-wrap .hcf-chips .hcf-other-l input:checked+span{background:var(--hcf-c);border-color:var(--hcf-c);color:var(--hcf-on,#fff)}
/* "use as comments" list, printed by the [hc_comments] shortcode above the form itself */
.hcf-comments{--hcf-mut:#64748b;--hcf-bd:#e2e8f0;--hcf-cardbg:#fff;position:relative;max-width:100%;font:inherit;margin:0 0 32px}
.hcf-comments *,.hcf-comments *::before,.hcf-comments *::after{box-sizing:border-box}
.hcf-comments-dark{--hcf-mut:#94a3b8;--hcf-bd:#334155;--hcf-cardbg:#1e293b;color:#e2e8f0}
.hcf-comments-head{display:flex;align-items:center;gap:10px;margin:0 0 22px}
.hcf-comments-icon{width:22px;height:22px;color:var(--hcf-c,#0d6efd);flex:0 0 auto}
.hcf-comments-title{margin:0;font-size:1.3em;font-weight:700;letter-spacing:-.01em}
.hcf-comments-empty{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:38px 20px;margin:0 0 30px;border:1.5px dashed var(--hcf-bd);border-radius:calc(var(--hcf-r,8px) + 6px);color:var(--hcf-mut)}
.hcf-comments-empty .hcf-comments-icon{width:32px;height:32px;opacity:.4}
.hcf-comments-empty p{margin:0;font-size:.98em}
.hcf-comment-list{list-style:none;margin:0 0 30px;padding:0;position:relative}
.hcf-comment-list::before{content:'';position:absolute;left:23px;top:6px;bottom:6px;width:2px;background:linear-gradient(to bottom,var(--hcf-bd),transparent)}
.hcf-comment-item{display:flex;gap:14px;align-items:flex-start;position:relative;padding:0 0 18px;animation:hcf-c-in .45s ease backwards;animation-delay:calc(var(--hcf-i,0) * 70ms)}
.hcf-comment-item:last-child{padding-bottom:0}
@keyframes hcf-c-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hcf-comment-item{animation:none}}
.hcf-comment-avatar{position:relative;z-index:1;flex:0 0 auto}
.hcf-comment-avatar img{display:block;border-radius:50%;box-shadow:0 0 0 3px var(--hcf-cardbg),0 0 0 4.5px color-mix(in srgb,var(--hcf-c,#0d6efd) 35%,transparent)}
.hcf-comment-card{flex:1 1 auto;min-width:0;background:var(--hcf-cardbg);border:1px solid var(--hcf-bd);border-radius:var(--hcf-r,8px);padding:14px 16px;transition:box-shadow .18s ease,transform .18s ease}
.hcf-comment-card:hover{box-shadow:0 8px 20px -10px rgba(15,23,42,.22);transform:translateY(-1px)}
.hcf-comment-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px;margin:0 0 6px}
.hcf-comment-author{font-weight:700}
.hcf-comment-date{font-size:.78em;color:var(--hcf-mut);position:relative;padding-left:11px}
.hcf-comment-date::before{content:'';position:absolute;left:3px;top:50%;width:3px;height:3px;border-radius:50%;background:currentColor;transform:translateY(-50%)}
.hcf-comment-text{line-height:1.65;font-size:.96em}
.hcf-comment-text p{margin:0 0 .6em}
.hcf-comment-text p:last-child{margin-bottom:0}
.hcf-comments-formwrap{margin-top:4px}
.hcf-comments-formtitle{margin:0 0 16px;font-size:1.08em;font-weight:700}
@media(max-width:520px){.hcf-comment-list::before{left:19px}.hcf-comment-avatar img{width:38px;height:38px}}
