/* Shared by index4/5/6: form, buttons, consent bar, sticky CTA, entrance motion.
   Each page sets the --f-* tokens (and --btn-radius) to match its own look. */
:root {
  --ease: cubic-bezier(.32, .72, 0, 1);
  --f-ink: #111;
  --f-muted: #555;
  --f-field: #eee;
  --f-field-bd: #eee;
  --f-focus: #111;
  --f-err: #a01c1c;
  --f-btn-bg: #111;
  --f-btn-ink: #fff;
  --f-btn-hi: #333;
  --f-bar-bg: #fff;
  --f-bar-ink: #111;
  --btn-radius: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: #fff; color: #111; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 26px; border: 0; border-radius: var(--btn-radius); background: var(--f-btn-bg); color: var(--f-btn-ink); font: 700 1.0625rem/1 var(--text); text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform .5s var(--ease), background-color .25s; }
.btn:hover { background: var(--f-btn-hi); }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .875rem; }
.btn--block { display: flex; width: 100%; min-height: 58px; }
.btn--ghost { background: color-mix(in srgb, var(--f-bar-ink) 12%, var(--f-bar-bg)); color: var(--f-bar-ink); }
.btn--ghost:hover { background: color-mix(in srgb, var(--f-bar-ink) 22%, var(--f-bar-bg)); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn__arrow { display: inline-grid; place-items: center; width: 28px; height: 28px; background: rgba(255,255,255,.2); transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -2px); }

/* form */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 4px; font-weight: 600; color: var(--f-ink); }
.field input, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--f-field-bd); border-radius: 0; background: var(--f-field); color: var(--f-ink); font: 400 16px/1.3 var(--text); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input::placeholder { color: var(--f-muted); opacity: .8; }
.field input:focus, .field select:focus { border-color: var(--f-focus); outline: 0; }
.field.invalid input, .field.invalid select { border-color: var(--f-err); }
.err { display: none; margin-top: 6px; color: var(--f-err); font-size: .875rem; font-weight: 600; }
.invalid .err, .err--check.show { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 8px; font-size: .9375rem; color: var(--f-muted); }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--f-btn-bg); }
.check a { color: var(--f-ink); }
.err--check { margin: 0 0 12px; }
.form-error { margin: 12px 0 0; color: var(--f-err); font-weight: 600; }
.formcard__note { margin: 12px 0 0; color: var(--f-muted); font-size: .875rem; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* sticky mobile CTA + consent bar */
.sticky { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; display: flex; align-items: center; justify-content: center; min-height: 56px; border-radius: var(--btn-radius); background: var(--f-btn-bg); color: var(--f-btn-ink); font-weight: 700; text-decoration: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.sticky.gone { opacity: 0; transform: translateY(20px); pointer-events: none; }
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 20px; background: var(--f-bar-bg); color: var(--f-bar-ink); font-size: .9375rem; }
.consent p { margin: 0; flex: 1 1 280px; }
.consent__btns { display: flex; gap: 8px; }
body:has(#consent:not([hidden])) .sticky { display: none; }
@media (min-width: 720px) { .sticky { display: none; } }

/* entrance motion (content is visible without JS) */
.mask { display: block; overflow: hidden; padding: .04em 0 .2em; margin-bottom: -.2em; }
.mask__in { display: block; white-space: normal; }
.js .mask__in { transform: translateY(110%); transition: transform 1s var(--ease); }
.js.ready .mask__in { transform: none; }
.js.ready .mask:nth-child(2) .mask__in { transition-delay: .12s; }
.js [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-rise].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .mask__in, .js [data-rise] { transform: none; opacity: 1; transition: none; }
  * { transition-duration: .01ms !important; animation: none !important; }
}
