/* Araft: the one form for the whole site (js/form.js). Works on old and new (v3) pages: uses styles.css tokens. */
.af { position: fixed; inset: 0; z-index: 220; display: grid; place-items: center; padding: 16px; background: rgba(12, 12, 13, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .2s ease; }
.af.open { opacity: 1; }
.af[hidden] { display: none; }
.af__card { width: 100%; max-width: 720px; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg, #fff); border: 1px solid var(--line); border-radius: 26px; padding: 30px 34px; box-shadow: 0 30px 90px rgba(0, 0, 0, .28); transform: translateY(14px) scale(.98); transition: transform .25s ease; color: var(--white); }
.af.open .af__card { transform: none; }
.af--inline { position: static; display: block; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; opacity: 1; z-index: auto; }
.af--inline .af__card { max-width: none; max-height: none; overflow: visible; transform: none; box-shadow: 0 30px 80px rgba(12, 12, 13, .07); padding: clamp(24px, 4vw, 44px); }
.af__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.af__kick { font: 600 .74rem var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--a1); }
.af__top h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; line-height: 1.15; margin-top: 8px; color: var(--ink, var(--white)); }
.af__x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.af__x:hover { border-color: var(--white); }
.af__sub { color: var(--muted); font-size: .95rem; margin: 6px 0 20px; }
.af__body > .af__sub { margin-top: 12px; }
/* step 0: what do you want to do? */
.af__types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.af__type { display: grid; grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; text-align: left; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: transparent; color: var(--white); cursor: pointer; font: inherit; transition: border-color .2s, background .2s, transform .25s; }
.af__type:hover { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 6%, transparent); transform: translateY(-2px); }
.af__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); }
.af__ic svg { width: 22px; height: 22px; }
.af__type b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink, var(--white)); }
.af__type small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.45; margin-top: 3px; }
.af__type > svg { width: 18px; height: 18px; color: var(--muted); transition: transform .25s; }
.af__type:hover > svg { transform: translateX(3px); color: var(--a1); }
/* steps */
.af__bar { height: 4px; border-radius: 4px; background: var(--tint-2); margin: 22px 0 10px; overflow: hidden; }
.af__bar i { display: block; height: 100%; width: 25%; background: var(--a1); border-radius: 4px; transition: width .3s ease; }
.af__steps { display: flex; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.af__steps li { flex: 1; }
.af__steps li.on { color: var(--a1); }
.af__step h3 { font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink, var(--white)); margin-top: 18px; }
.af__step:first-child h3 { margin-top: 16px; }
.af__steps + .af__form .af__step h3 { margin-top: 0; }
.af__step textarea { min-height: 96px; }
.af .field input, .af .field select, .af .field textarea { border-radius: 14px; }
.af__nav { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.af__nav span { flex: 1; }
.af__nav [hidden] { display: none; }
.af__btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; background: var(--ink, #0c0c0d); color: var(--bg, #fff); font: 600 .95rem var(--font); cursor: pointer; transition: background .25s, transform .25s; }
.af__btn svg { width: 17px; height: 17px; }
.af__btn:hover { background: var(--a1); color: #fff; transform: translateY(-1px); }
.af__btn:disabled { opacity: .6; cursor: wait; transform: none; }
.af__btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.af__btn--ghost:hover { background: transparent; color: var(--white); border-color: var(--white); }
.af .af__err { margin: 0 0 14px; }
.af .chips { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 14px; }
.af .chips.is-empty { outline: 2px solid #e0533d; outline-offset: 6px; }
.af .chip { position: relative; cursor: pointer; }
.af .chip input { position: absolute; opacity: 0; pointer-events: none; }
.af .chip span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; font-weight: 500; line-height: 1.3; transition: border-color .15s, background .15s, color .15s; }
.af .chip:hover span { color: var(--white); }
.af .chip input:checked + span { border-color: var(--a1); background: color-mix(in srgb, var(--a1) 10%, transparent); color: var(--white); }
.af .chip input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--a1); }
.af .chip input:focus-visible + span { outline: 2px solid var(--a1); outline-offset: 2px; }
.af__done { text-align: center; padding: 26px 10px 8px; }
.af__done h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; color: var(--ink, var(--white)); margin: 16px 0 8px; }
.af__done p { color: var(--muted); max-width: 46ch; margin: 0 auto 22px; }
.af__tick { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--a1) 12%, transparent); color: var(--a1); }
.af__tick svg { width: 30px; height: 30px; }
body.af-lock { overflow: hidden; }
body.af-lock .aw-consent { display: none !important; }
@media (max-width: 860px) { .af .form-row { gap: 0; } }
@media (max-width: 600px) {
  .af:not(.af--inline) { padding: 0; place-items: end stretch; }
  .af:not(.af--inline) .af__card { max-height: 94dvh; border-radius: 22px 22px 0 0; padding: 22px 18px; }
  .af__types { grid-template-columns: 1fr; }
  .af__steps { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) { .af, .af__card, .af__bar i { transition: none; } }
