/* Opsfitter Forms: the look of a form people fill out. Six styles and four fonts, each business picks its own.
   --acc is the business's own color. Big tap targets for phones. Author: C.Perry */
.ofm{--acc:#1E9E6E;--ink:#12304A;--sub:#5B6B7A;--line:#DCE3EA;--card:#fff;--page:#F4F7F9;--soft:#F1F5F8;--bad:#C0392B;--badbg:#FDECEA;
  font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);max-width:720px;margin:0 auto;font-size:17px;line-height:1.5;position:relative}
.ofm *{box-sizing:border-box}
.ofm.ft-serif{font-family:Georgia,"Iowan Old Style","Times New Roman",serif}
.ofm.ft-round{font-family:"Nunito","Varela Round","Trebuchet MS",Inter,sans-serif}
.ofm.ft-mono{font-family:"Courier Prime","Courier New",ui-monospace,monospace}
.ofm .hidden,.ofm .ofm-hid{display:none!important}
.ofm-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.ofm-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* header */
.ofm-head{background:var(--card);border-radius:18px 18px 0 0;overflow:hidden;border:1px solid var(--line);border-bottom:0}
.ofm-cover img{display:block;width:100%;max-height:220px;object-fit:cover}
.ofm-headin{padding:26px 28px 8px;border-top:6px solid var(--acc)}
.ofm-cover+.ofm-headin{border-top:0}
.ofm-logo{max-height:56px;max-width:200px;display:block;margin-bottom:12px}
.ofm-biz{font-weight:800;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--acc);margin-bottom:6px}
.ofm h1{font-size:28px;line-height:1.2;margin:0 0 8px;letter-spacing:-.01em}
.ofm-intro{color:var(--sub);margin:0 0 6px}
.ofm-prog{background:var(--card);padding:4px 28px 0;border-left:1px solid var(--line);border-right:1px solid var(--line)}
.ofm-bar{height:6px;background:var(--soft);border-radius:6px;overflow:hidden}
.ofm-bar span{display:block;height:100%;background:var(--acc);width:0;transition:width .35s ease}
.ofm-step{font-size:13px;color:var(--sub);margin-top:6px;font-weight:600}
.ofm-note{background:#EAF6FF;border-left:1px solid var(--line);border-right:1px solid var(--line);padding:12px 28px;font-size:15px}
.ofm-note.bad{background:var(--badbg);color:var(--bad);font-weight:600}
.ofm-body{background:var(--card);border-left:1px solid var(--line);border-right:1px solid var(--line);padding:10px 28px 6px;margin:0}
.ofm-nav{background:var(--card);border:1px solid var(--line);border-top:0;border-radius:0 0 18px 18px;padding:12px 28px 26px;display:flex;justify-content:space-between;gap:12px}
.ofm-foot{text-align:center;padding:16px 8px 30px;font-size:13px;color:var(--sub);display:flex;flex-direction:column;gap:8px;align-items:center}

/* fields */
.ofm-f{padding:16px 0;border-bottom:1px solid var(--soft)}
.ofm-f:last-child{border-bottom:0}
.ofm-q{display:block;font-weight:700;font-size:17px;margin:0 0 6px}
.ofm-req{color:var(--bad)}
.ofm-help{color:var(--sub);font-size:14px;margin:-2px 0 8px}
.ofm-h{font-size:21px;margin:8px 0 2px;color:var(--acc)}
.ofm-text{color:var(--ink);background:var(--soft);border-radius:12px;padding:12px 14px;font-size:15px}
.ofm-ptitle{font-size:21px;margin:12px 0 0}
.ofm-in{width:100%;border:2px solid var(--line);border-radius:12px;padding:12px 14px;background:#fff;color:#12304A;font:inherit;font-size:17px;min-height:52px}
textarea.ofm-in{min-height:110px;resize:vertical}
.ofm-in:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 4px color-mix(in srgb,var(--acc) 18%,transparent)}
select.ofm-in{appearance:auto}
.ofm-inrow{display:flex;align-items:center;gap:8px}
.ofm-unit{color:var(--sub);font-weight:600;white-space:nowrap}
.ofm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ofm-addr{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
.ofm-addr .a-st{grid-column:1/-1}
.ofm-set{border:0;margin:0;padding:0;min-width:0}
.ofm-opts{display:grid;gap:8px}
.ofm-opts.many{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.ofm-opt{display:flex;align-items:center;gap:12px;border:2px solid var(--line);border-radius:12px;padding:12px 14px;cursor:pointer;background:#fff;color:#12304A;min-height:52px;font-weight:500}
.ofm-opt:hover{border-color:var(--acc)}
.ofm-opt input[type=radio],.ofm-opt input[type=checkbox]{width:22px;height:22px;accent-color:var(--acc);flex:none;margin:0}
.ofm-opt:has(input:checked){border-color:var(--acc);background:color-mix(in srgb,var(--acc) 9%,#fff)}
.ofm-other .ofm-in{min-height:40px;padding:6px 10px;font-size:15px;flex:1}
.ofm-yn{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-width:360px}
.ofm-yn button,.ofm-scale button,.ofm-slots button,.ofm-irb button{font:inherit;border:2px solid var(--line);background:#fff;color:#12304A;border-radius:12px;min-height:52px;font-weight:700;cursor:pointer}
.ofm-yn button[aria-checked=true],.ofm-scale button.on,.ofm-slots button.on{background:var(--acc);border-color:var(--acc);color:#fff}
.ofm-stars{display:flex;gap:6px;flex-wrap:wrap}
.ofm-stars button{background:none;border:0;padding:2px;cursor:pointer;width:48px;height:48px}
.ofm-stars svg{width:44px;height:44px;fill:#E3E8EE;transition:transform .12s}
.ofm-stars button.on svg{fill:#F5B301}
.ofm-stars button:hover svg{transform:scale(1.1)}
.ofm-scale{display:grid;grid-template-columns:repeat(11,1fr);gap:4px}
.ofm-scale button{min-height:46px;padding:0;font-size:15px}
.ofm-scalel{display:flex;justify-content:space-between;color:var(--sub);font-size:13px;margin-top:4px}
.ofm-insp{display:grid;gap:8px}
.ofm-ir{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border:2px solid var(--line);border-radius:12px;padding:8px 10px 8px 14px;background:#fff;color:#12304A}
.ofm-ir.fail{border-color:#F0B6AE;background:#FFF8F7}
.ofm-irn{font-weight:600}
.ofm-irb{display:flex;gap:4px}
.ofm-irb button{min-height:42px;min-width:58px;font-size:14px;padding:0 10px}
.ofm-irb .m-Pass.on{background:#157A55;border-color:#157A55;color:#fff}
.ofm-irb .m-Fail.on{background:var(--bad);border-color:var(--bad);color:#fff}
.ofm-irb .m-NA.on{background:#5B6B7A;border-color:#5B6B7A;color:#fff}
.ofm-irnote{grid-column:1/-1;min-height:44px;font-size:15px}
.ofm-prod{display:grid;gap:8px}
.ofm-pi{display:flex;justify-content:space-between;align-items:center;gap:12px;border:2px solid var(--line);border-radius:12px;padding:10px 12px 10px 14px;background:#fff;color:#12304A}
.ofm-pi.on{border-color:var(--acc)}
.ofm-pin{display:flex;flex-direction:column}
.ofm-pin small{color:var(--sub);font-size:13px}
.ofm-pin span{font-weight:700;color:var(--acc)}
.ofm-qty{display:flex;align-items:center;gap:4px}
.ofm-qty button{width:42px;height:42px;border-radius:50%;border:2px solid var(--line);background:#fff;color:#12304A;font-size:22px;font-weight:700;cursor:pointer;line-height:1}
.ofm-qty input{width:52px;text-align:center;border:0;font:inherit;font-weight:800;font-size:18px;background:transparent;color:#12304A}
.ofm-ptot{background:var(--soft);border-radius:12px;padding:10px 14px;display:grid;gap:4px;font-size:15px;color:#12304A}
.ofm-ptot>div{display:flex;justify-content:space-between}
.ofm-ptot .big{font-size:19px;border-top:1px solid var(--line);padding-top:6px}
.ofm-calc{display:flex;justify-content:space-between;align-items:center;background:var(--soft);border-radius:12px;padding:14px 16px;color:#12304A}
.ofm-calc .ofm-q{margin:0}
.ofm-calcv{font-size:24px;font-weight:800;color:var(--acc)}
.ofm-appt{display:grid;gap:10px}
.ofm-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:6px}
.ofm-slots button{min-height:44px;font-size:15px}
.ofm-files{display:grid;gap:10px}
.ofm-filein{position:absolute;width:1px;height:1px;opacity:0}
.ofm-drop{display:flex;flex-direction:column;align-items:center;gap:4px;border:2px dashed var(--line);border-radius:14px;padding:22px;cursor:pointer;background:#fff;color:#12304A;text-align:center}
.ofm-drop:hover,.ofm-drop.over{border-color:var(--acc);background:color-mix(in srgb,var(--acc) 6%,#fff)}
.ofm-drop svg{width:34px;height:34px;fill:none;stroke:var(--acc);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ofm-drop span{font-weight:700}
.ofm-drop small{color:var(--sub)}
.ofm-filein:focus+.ofm-drop,.ofm-files:focus-within .ofm-drop{border-color:var(--acc)}
.ofm-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.ofm-th{position:relative;width:110px;border:1px solid var(--line);border-radius:10px;padding:6px;background:#fff;color:#12304A;text-align:center}
.ofm-th img{width:100%;height:80px;object-fit:cover;border-radius:6px}
.ofm-th small{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ofm-th button{position:absolute;top:-8px;right:-8px;width:28px;height:28px;border-radius:50%;border:0;background:var(--bad);color:#fff;font-size:18px;cursor:pointer}
.ofm-fic{display:flex;height:80px;align-items:center;justify-content:center;background:var(--soft);border-radius:6px;font-weight:800;color:var(--sub)}
.ofm-sig{border:2px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}
.ofm-sig canvas{display:block;width:100%;height:auto;aspect-ratio:10/3;touch-action:none;cursor:crosshair;background:repeating-linear-gradient(transparent 0 calc(100% - 34px),#E3E8EE calc(100% - 34px) calc(100% - 32px),transparent calc(100% - 32px))}
.ofm-sigbar{display:flex;justify-content:space-between;align-items:center;padding:4px 10px;border-top:1px solid var(--soft);font-size:13px;color:var(--sub)}
.ofm-terms{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:14px;background:#FBFCFD;color:#12304A;font-size:14px;margin-bottom:10px}
.ofm-agree{font-weight:700}
.ofm-err{color:var(--bad);font-weight:600;font-size:14px;margin-top:6px}
.ofm-err:empty{display:none}
.ofm-f.bad .ofm-in,.ofm-f.bad .ofm-sig,.ofm-f.bad .ofm-opt,.ofm-f.bad .ofm-drop{border-color:#E8A49C}
.ofm-link{background:none;border:0;color:var(--acc);font:inherit;font-weight:700;cursor:pointer;text-decoration:underline;padding:4px}

/* buttons */
.ofm-btn{font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:12px 26px;border-radius:14px;border:2px solid var(--acc);background:var(--acc);color:#fff;font-weight:800;font-size:17px;cursor:pointer;text-decoration:none}
.ofm-btn:hover{filter:brightness(1.06)}
.ofm-btn.line{background:#fff;color:#12304A;border-color:var(--line)}
.ofm-btn[disabled]{opacity:.6;cursor:default}
.ofm-kbd{font-weight:600;opacity:.75;font-size:12px}
.ofm-spin{width:18px;height:18px;border:3px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:ofmspin .8s linear infinite}
@keyframes ofmspin{to{transform:rotate(360deg)}}
.ofm-badge{display:inline-flex;align-items:center;gap:6px;color:var(--sub);font-weight:600;text-decoration:none;font-size:13px;border:1px solid var(--line);border-radius:30px;padding:6px 12px;background:#fff}
.ofm-badge svg{width:16px;height:16px}
.ofm-badge:hover{color:#12304A}
.ofm-saved{min-height:1em}

/* one question at a time */
.ofm.md-cards .ofm-body{min-height:300px;display:flex;align-items:center;padding:20px 28px}
.ofm-card{width:100%}
.ofm-card .ofm-f{border:0}
.ofm-card .ofm-q{font-size:22px}
.ofm-card.in-r{animation:ofmin .28s ease}
.ofm-card.in-l{animation:ofminl .28s ease}
@keyframes ofmin{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes ofminl{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}

/* done */
.ofm-done{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:40px 28px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.ofm-done h1{outline:none}
.ofm-done p{color:var(--sub);max-width:480px;margin:0 0 6px}
.ofm-num{font-size:15px}
.ofm-check svg{width:76px;height:76px;fill:none;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.ofm-check circle{stroke:var(--acc);opacity:.25}
.ofm-check path{stroke:var(--acc);stroke-dasharray:40;stroke-dashoffset:40;animation:ofmdraw .5s .15s ease forwards}
.ofm-check.off path{stroke:var(--sub)}
@keyframes ofmdraw{to{stroke-dashoffset:0}}
.ofm-pay{margin:10px 0}
.ofm-doneact{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:10px 0 14px}

/* styles */
.ofm.st-navy .ofm-headin{background:#12304A;color:#fff;border-top-color:var(--acc)}
.ofm.st-navy .ofm-intro{color:#C9D6E2}
.ofm.st-navy .ofm-biz{color:#7FE3B9}
.ofm.st-mint{--page:#EAF8F1}
.ofm.st-mint .ofm-headin{background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 16%,#fff),#fff 70%)}
.ofm.st-paper{--card:#FFFCF5;--line:#E9E0CC;--soft:#F5EEDD}
.ofm.st-paper .ofm-headin{border-top-style:double;border-top-width:8px}
.ofm.st-night{--card:#16212E;--ink:#EEF3F8;--sub:#A7B5C4;--line:#2C3B4D;--soft:#1E2B3A;--badbg:#3A1E1E}
.ofm.st-night .ofm-text,.ofm.st-night .ofm-calc,.ofm.st-night .ofm-ptot{color:#EEF3F8}
.ofm.st-night .ofm-btn.line{background:#1E2B3A;color:#EEF3F8;border-color:#2C3B4D}
.ofm.st-bold .ofm-headin{background:var(--acc);color:#fff;border-top-color:rgba(0,0,0,.15)}
.ofm.st-bold .ofm-intro,.ofm.st-bold .ofm-biz{color:rgba(255,255,255,.88)}
.ofm.st-bold .ofm-h{color:var(--ink)}

/* Narrow layout follows the box the form sits in (phone, builder phone preview, the Forms page playground), not just the screen. Author: C.Perry */
.ofm-root{container-type:inline-size}
@container (max-width:620px){
  .ofm{font-size:16px}
  .ofm-headin,.ofm-body,.ofm-nav,.ofm-prog,.ofm-note{padding-left:16px;padding-right:16px}
  .ofm h1{font-size:24px}
  .ofm-addr{grid-template-columns:1fr 1fr}
  .ofm-scale{grid-template-columns:repeat(6,1fr)}
  .ofm-ir{grid-template-columns:1fr}
  .ofm-irb button{flex:1}
  .ofm-nav .ofm-btn{flex:1}
}
@container (max-width:420px){
  .ofm h1{font-size:22px}
  .ofm-headin{padding-top:18px}
  .ofm.md-cards .ofm-body{padding:14px 16px;min-height:240px}
  .ofm-card .ofm-q{font-size:19px}
  .ofm-pi{padding:8px 8px 8px 10px;gap:6px}
  .ofm-qty button{width:34px;height:34px;font-size:18px}
  .ofm-qty input{width:34px;font-size:16px}
  .ofm-addr{grid-template-columns:1fr}
}
@media print{.ofm-nav,.ofm-foot,.ofm-prog{display:none}}
@media (prefers-reduced-motion:reduce){.ofm *{animation:none!important;transition:none!important}}
