/* ==========================================================================
   SAFARIWEB v3 · onboarding form
   Eight steps, almost entirely clicking. Submit exists only on the last step.
   ========================================================================== */

.ob{background:#fff;border:1px solid var(--line);border-radius:var(--r-xl);
  box-shadow:var(--sh-m);overflow:hidden;max-width:900px;margin-inline:auto}
.ob__top{background:var(--g-deep);color:#fff;padding:20px clamp(20px,3vw,32px)}
.ob__crumbs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px;
  -webkit-mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 28px),transparent 100%);
  mask-image:linear-gradient(90deg,#000 0,#000 calc(100% - 28px),transparent 100%)}
.ob__crumbs::-webkit-scrollbar{display:none}
.crumb{display:flex;align-items:center;gap:7px;padding:8px 14px;border-radius:var(--r-pill);
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);font-size:.76rem;font-weight:800;
  color:rgba(255,255,255,.58);white-space:nowrap;flex:none;transition:.3s var(--ease)}
.crumb b{width:20px;height:20px;border-radius:50%;background:rgba(255,255,255,.14);display:grid;
  place-items:center;font-size:.66rem;flex:none}
.crumb.is-on{background:var(--g-bright);border-color:var(--g-bright);color:#06220A}
.crumb.is-on b{background:rgba(0,0,0,.18);color:#06220A}
.crumb.is-done{color:#8FE3B0;border-color:rgba(143,227,176,.4)}
.crumb.is-done b{background:var(--g-bright);color:#06220A}
.ob__bar{height:5px;border-radius:3px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:15px}
.ob__bar i{display:block;height:100%;width:0;border-radius:3px;
  background:linear-gradient(90deg,var(--g),var(--g-bright));transition:width .44s var(--ease)}
.ob__body{padding:clamp(22px,3vw,38px)}
.ob__step{display:none}
.ob__step.is-on{display:block;animation:fade .4s var(--ease)}
.ob__step h2{font-size:clamp(1.3rem,2.6vw,1.75rem);margin:6px 0 6px;max-width:26ch}
.ob__step>.p{margin-bottom:24px}
.ob__nav{display:flex;gap:12px;justify-content:space-between;align-items:center;
  margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}
.ob__nav .btn{min-width:150px}
.ob__count{font-size:.83rem;font-weight:700;color:var(--muted)}

/* the submit button only exists on the review step, and only turns on
   once every required answer is in — no premature sending */
.btn--send[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none;background:var(--muted)}
.btn--send[disabled]:hover{transform:none;background:var(--muted)}

.q{margin-bottom:26px}
.q:last-child{margin-bottom:0}
.q__l{display:block;font-size:.98rem;font-weight:800;margin-bottom:4px;letter-spacing:-.012em}
.q__h{display:block;font-size:.85rem;color:var(--body);margin-bottom:12px;line-height:1.5}
.opts{display:grid;gap:10px}
.opts--2{grid-template-columns:1fr 1fr}
.opts--3{grid-template-columns:repeat(3,1fr)}
.opts--4{grid-template-columns:repeat(4,1fr)}
.opt{position:relative;display:flex;align-items:flex-start;gap:12px;padding:15px 16px;border-radius:var(--r-m);
  border:1.5px solid var(--line);background:#fff;cursor:pointer;transition:.24s var(--ease)}
.opt:hover{border-color:var(--g-tint2);background:var(--g-tint)}
.opt input{position:absolute;opacity:0;width:0;height:0}
.opt__box{width:22px;height:22px;border-radius:7px;border:2px solid var(--line);flex:none;margin-top:1px;
  display:grid;place-items:center;transition:.2s var(--ease)}
.opt__box--r{border-radius:50%}
.opt__box svg{width:13px;height:13px;color:#fff;opacity:0;transform:scale(.6);transition:.2s var(--ease)}
.opt input:checked~.opt__box{background:var(--g);border-color:var(--g)}
.opt input:checked~.opt__box svg{opacity:1;transform:none}
.opt:has(input:checked){border-color:var(--g);background:var(--g-tint);box-shadow:0 0 0 3px rgba(24,135,74,.12)}
.opt input:focus-visible~.opt__box{outline:3px solid var(--g);outline-offset:2px}
.opt__t{min-width:0}
.opt__t b{display:block;font-size:.93rem;font-weight:700;line-height:1.35}
.opt__t small{display:block;font-size:.81rem;color:var(--body);margin-top:3px;line-height:1.4}
.opt--tile{flex-direction:column;align-items:center;text-align:center;gap:10px;padding:18px 12px}
.opt--tile .opt__box{position:absolute;top:10px;right:10px;width:19px;height:19px;margin:0}
.opt__ico{width:48px;height:48px;border-radius:15px;background:var(--cream-2);display:grid;place-items:center;transition:.24s var(--ease)}
.opt__ico svg{width:24px;height:24px;color:var(--g)}
.opt--tile:has(input:checked) .opt__ico{background:var(--g)}
.opt--tile:has(input:checked) .opt__ico svg{color:#fff}

.in{width:100%;padding:15px 17px;border-radius:var(--r-m);background:#fff;border:1.5px solid var(--line);
  color:var(--ink);font-size:.98rem;font-weight:500;transition:.22s}
.in::placeholder{color:var(--muted)}
.in:focus{outline:none;border-color:var(--g);box-shadow:0 0 0 4px rgba(24,135,74,.13)}
textarea.in{min-height:100px;resize:vertical;line-height:1.55}
select.in{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355655C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 15px center;background-size:18px;padding-right:44px}
.col2{display:grid;grid-template-columns:1fr 1fr;gap:13px}
/* when one question holds two answers — a number and its unit — each half
   says which is which, so the options never read as one long list */
.subq{display:block;font-size:.75rem;font-weight:800;letter-spacing:.08em;
  text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.drop{border:2px dashed var(--line);border-radius:var(--r-m);padding:28px 18px;text-align:center;
  background:var(--cream);transition:.24s var(--ease);cursor:pointer;display:block}
.drop:hover,.drop.is-over{border-color:var(--g);background:var(--g-tint)}
.drop input{display:none}
.drop i{width:52px;height:52px;border-radius:16px;background:#fff;border:1px solid var(--line);
  display:grid;place-items:center;margin:0 auto 12px}
.drop i svg{width:25px;height:25px;color:var(--g)}
.drop b{display:block;font-size:.95rem;font-weight:800}
.drop small{display:block;font-size:.85rem;color:var(--body);margin-top:4px}
.files{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.files li{display:flex;align-items:center;gap:10px;padding:10px 13px;border-radius:var(--r-s);
  background:var(--cream);font-size:.86rem;font-weight:600}
.files svg{width:16px;height:16px;color:var(--g);flex:none}
.files span{margin-left:auto;font-size:.77rem;color:var(--muted);font-weight:700}
.ob__err{background:#FDECEC;border:1px solid #F3C0C0;color:#A32B2B;border-radius:var(--r-s);
  padding:12px 15px;font-size:.88rem;font-weight:700;margin-bottom:18px;display:none}
.ob__err.is-on{display:block}
.ob__done{text-align:center;padding:22px 0}
.ob__done i{width:86px;height:86px;border-radius:50%;background:var(--g);display:grid;place-items:center;
  margin:0 auto 20px;box-shadow:var(--sh-g)}
.ob__done i svg{width:42px;height:42px;color:#fff;stroke-width:2.5}
.ob__sum{text-align:left;background:var(--cream);border-radius:var(--r-m);padding:20px 22px;margin:22px 0}
.ob__sum dl{display:grid;grid-template-columns:auto 1fr;gap:9px 20px;margin:0}
.ob__sum dt{font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.ob__sum dd{margin:0;font-size:.91rem;font-weight:600}

/* a plain-language note where a question could be read two ways */
.note{display:flex;gap:10px;align-items:flex-start;margin-top:11px;padding:11px 14px;
  border-radius:var(--r-s);background:var(--amber-tint);font-size:.84rem;line-height:1.5;color:#7A4F10}
.note svg{width:17px;height:17px;color:var(--amber);flex:none;margin-top:2px}

@media (max-width:760px){
  .opts--3,.opts--4{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .opts--2,.opts--3{grid-template-columns:1fr}
  .opts--4{grid-template-columns:1fr 1fr}
  .col2{grid-template-columns:1fr}
  .ob__nav{flex-direction:column-reverse;gap:10px}
  .ob__nav .btn{width:100%}
  .ob__count{order:-1}
}
