.cf { position: fixed; inset: 0 0 0 auto; width: clamp(480px, 36vw, 960px); max-width: 100%; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--paper); color: var(--ink); overflow: hidden auto; overscroll-behavior: contain; transform: translateX(100%); transition: transform 0.45s var(--e-link); }
.cf.is-in { transform: none; }
.cf::backdrop { background: rgb(40 8 14 / 0.45); opacity: 0; transition: opacity 0.35s var(--e-out); }
.cf.is-in::backdrop { opacity: 1; }
.cf-in { box-sizing: border-box; width: clamp(480px, 36vw, 960px); display: flex; flex-direction: column; min-height: 100%; padding: calc(var(--pad) * 0.75) calc(var(--pad) * 1.5) calc(var(--pad) * 1.5); }
.cf-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(28px, 3vw, 80px); }
.cf-pill { margin: 0; padding: 6px 22px 8px; border: 1px solid var(--ink); border-radius: 50%; font-size: clamp(18px, 1.05vw, 30px); }
.cf-x { display: grid; place-items: center; width: 48px; height: 48px; margin-right: -12px; }
.cf-x svg { width: clamp(22px, 1.3vw, 34px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.5; }
.cf-h { margin: 0; font: 400 clamp(40px, 3.6vw, 140px)/1 var(--display); letter-spacing: -0.04em; }
.cf-h:focus { outline: none; }
.cf-p { max-width: 28em; margin: 14px 0 0; font-size: var(--fs-body); line-height: 1.35; }

.cf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: clamp(28px, 2.6vw, 72px); }
.cf-wide { grid-column: 1 / -1; }
.cf-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cf-f label { font-size: var(--fs-small); line-height: 1.3; }
.cf-opt { opacity: 1; }
.cf-f input, .cf-f textarea { width: 100%; min-height: 52px; padding: 13px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: 400 max(16px, var(--fs-body))/1.4 var(--sans); }
.cf-f textarea { min-height: 150px; resize: vertical; }
.cf-f input:focus-visible, .cf-f textarea:focus-visible { outline-offset: 0; }
.cf-f [aria-invalid="true"] { border-width: 2px; padding: 12px 13px; }
.cf-e { min-height: 1.4em; margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.cf-e:not(:empty)::before { content: "! "; font-weight: 600; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.cf-send { min-height: 56px; padding: 0 30px; background: var(--red); color: var(--white); font: 400 max(17px, var(--fs-body))/1 var(--display); letter-spacing: -0.01em;
  transition: background-color 0.2s var(--e-out); }
.cf-send:hover { background: var(--ink-sky); }
.cf-send[aria-disabled="true"] { cursor: progress; background: var(--ink-sky); }
.cf-st, .cf-fail { margin: 0; font-size: var(--fs-small); line-height: 1.4; }
.cf-fail { max-width: 34em; margin-top: 10px; }
.cf-fail a { text-decoration: underline; text-underline-offset: 0.15em; }
.cf-done .cf-act { margin-top: clamp(28px, 2.6vw, 72px); }

@media (max-width: 767px) {
  .cf { inset: 24px 0 0 0; width: 100%; height: auto; transform: translateY(100%); }
  .cf-in { width: auto; padding: 12px var(--pad) calc(var(--pad) + env(safe-area-inset-bottom)); }
  .cf-form { grid-template-columns: 1fr; }
}
html.rm .cf, html.rm .cf::backdrop { transition: none; }

.no-ring.no-ring:focus-visible { outline: none; }
