/* The studio's shared parts (web-design, draft request, contact form): one set of buttons, fields, choices, the
   dialog and the step bar, in the calm, precise manner of linear.app on berlab.ch's grey paper. The booking page
   (bo/assets/book.css) uses the same values. */
:root {
  --bg: #e9e9ea; --surface: #f8f8f9; --raised: #fff; --ink: #141416; --ink-2: #2c2c31; --soft: #5f5f66; --faint: #8b8b93;
  --line: rgba(20, 20, 22, .1); --line-2: rgba(20, 20, 22, .18); --ring: rgba(20, 20, 22, .1); --bad: #c0392b;
  --r: 10px; --r-sm: 8px; --r-lg: 14px;
  --shadow: 0 1px 1px rgba(20, 20, 22, .03), 0 2px 6px -2px rgba(20, 20, 22, .06), 0 18px 40px -24px rgba(20, 20, 22, .22);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

[hidden] { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--ink); color: #fff; font: 500 14px/1 "Inter", system-ui, sans-serif; letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 1px 2px rgba(20, 20, 22, .2); transition: background .15s, box-shadow .15s, transform .1s, opacity .15s; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.btn.ghost { background: var(--raised); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(20, 20, 22, .06); }
.btn.ghost:hover { background: #fff; border-color: rgba(20, 20, 22, .3); }
.btn.lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn .arr { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(2px); }
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* fields: the label above, the field below, always the same height, so nothing sits out of line */
.field { display: grid; gap: 7px; margin-top: 18px; }
.field:first-child { margin-top: 0; }
.field > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field > span small { font-weight: 400; color: var(--faint); margin-left: 4px; }
.field input, .field textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--raised); color: var(--ink);
  font: 400 15px/1.4 "Inter", system-ui, sans-serif; box-shadow: 0 1px 2px rgba(20, 20, 22, .04); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.field textarea { height: auto; min-height: 112px; padding: 10px 12px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: rgba(20, 20, 22, .28); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
.field.bad input, .field.bad textarea { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(192, 57, 43, .1); }
.field .err { font-size: 12.5px; color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.row2 .field { margin-top: 18px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* choices: radio and checkbox cards */
.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--raised);
  font-size: 14.5px; color: var(--ink); cursor: pointer; box-shadow: 0 1px 2px rgba(20, 20, 22, .04); transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover { border-color: rgba(20, 20, 22, .3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice i { flex: none; display: grid; place-items: center; width: 18px; height: 18px; border: 1.5px solid rgba(20, 20, 22, .35); border-radius: 50%; transition: border-color .15s, background .15s; }
.choice input[type=checkbox] + i { border-radius: 5px; }
.choice i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .18s var(--ease); }
.choice input[type=checkbox] + i::after { width: 9px; height: 5px; border-radius: 0; background: none; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); margin-top: -2px; }
.choice input:checked + i { background: var(--ink); border-color: var(--ink); }
.choice input:checked + i::after { transform: scale(1); }
.choice input[type=checkbox]:checked + i::after { transform: rotate(-45deg) scale(1); }
.choice input:focus-visible + i { box-shadow: 0 0 0 3px var(--ring); }
.choice span { flex: 1; }
.choice b { font-weight: 500; color: var(--soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.group-label { margin: 24px 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); }

/* the dialog (contact form) */
dialog.sheet { width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(20, 20, 22, .35), 0 2px 6px rgba(20, 20, 22, .06); overflow: auto; }
dialog.sheet[open] { animation: sheet-in .28s var(--ease); }
dialog.sheet::backdrop { background: rgba(233, 233, 234, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade-in .2s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0 24px; }
.sheet-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.sheet-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: var(--r-sm); background: none; color: var(--soft); cursor: pointer; transition: background .15s, color .15s; }
.sheet-x:hover { background: rgba(20, 20, 22, .06); color: var(--ink); }
.sheet-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.sheet-body { padding: 20px 24px 8px; }
.sheet-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 16px 24px 22px; }
.sheet-foot .note { margin-right: auto; font-size: 13px; color: var(--bad); }

/* done: a check that draws itself */
.done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff; }
.done-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .5s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { dialog.sheet[open], dialog.sheet::backdrop, .done-mark svg { animation: none; stroke-dashoffset: 0; } .btn, .choice, .field input, .field textarea { transition: none; } }
