/* Копия /own/reelsmaker/parts/99-form/A.css для /snippets. Окно записи — общая основа (.p-form) и вариант A «Пропуск» (.p-form-A). Вариант B — в B.css. */

/* ---------- Оболочка ---------- */
.p-form { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.p-form[hidden] { display: none; }
.p-form .rmf__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .84); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); opacity: 0; transition: opacity .55s; }
.p-form.is-open .rmf__bg { opacity: 1; }
.p-form .rmf__sw { position: fixed; z-index: 4; top: 16px; left: 20px; display: flex; align-items: center; gap: 6px; font: 500 12px/1.2 var(--fb); color: var(--ink3); opacity: 0; transition: opacity .5s .2s; }
.p-form.is-open .rmf__sw { opacity: 1; }
.p-form .rmf__sw span { margin-right: 6px; }
.p-form .rmf__swb { height: 28px; padding: 0 12px; border-radius: 999px; background: #141414; color: var(--ink2); font: 500 12px/1 var(--fb); transition: background-color .25s, color .25s; }
.p-form .rmf__swb:hover { color: var(--ink); }
.p-form .rmf__swb.is-on { background: var(--ink); color: #000; }
.p-form .rmf__x { position: absolute; z-index: 6; top: 16px; right: 16px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--ink3); transition: color .3s, transform .6s var(--e); }
.p-form .rmf__x:hover { color: #fff; transform: rotate(90deg); }
.p-form .rmf__x svg { width: 22px; height: 22px; }
.p-form .rmf__box { position: relative; z-index: 2; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; background: #000; border-radius: 28px; box-shadow: 0 50px 140px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .55s var(--e), transform .8s var(--e); scrollbar-width: none; }
.p-form .rmf__box::-webkit-scrollbar { display: none; }
.p-form.is-open .rmf__box { opacity: 1; transform: none; }

/* ---------- Заголовок ---------- */
.p-form .rmf__t { font-family: var(--fd); font-weight: 300; letter-spacing: -.05em; line-height: 1.04; font-size: clamp(24px, 2.1vw, 30px); max-width: 17em; padding-right: 44px; text-wrap: balance; }
.p-form .rmf__t b { font-weight: 600; display: block; }
.p-form .rmf__p { color: var(--ink3); font-size: 13.5px; line-height: 1.55; margin: 14px 0 6px; max-width: 54ch; }

/* ---------- Поля ---------- */
.p-form .rmf__f { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.p-form .f2 { position: relative; display: block; padding-top: 20px; min-width: 0; }
.p-form .f2--w { grid-column: 1 / -1; }
.p-form .f2 input, .p-form .f2 textarea { display: block; width: 100%; height: 50px; padding: 0; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .13); border-radius: 0; color: var(--ink); font: 400 17px/1.3 var(--fb); outline: 0; -webkit-appearance: none; appearance: none; }
.p-form .f2 textarea { height: 56px; padding-top: 15px; resize: none; }
.p-form .f2__ln { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--e); pointer-events: none; }
.p-form .f2:focus-within .f2__ln { transform: scaleX(1); }
.p-form .f2.is-bad .f2__ln { transform: scaleX(1); background: var(--red); }
.p-form .f2__l { position: absolute; left: 0; top: 34px; color: var(--ink3); font-size: 17px; line-height: 1.2; pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--e), color .3s; white-space: nowrap; }
.p-form .f2 input:focus ~ .f2__l, .p-form .f2 input:not(:placeholder-shown) ~ .f2__l,
.p-form .f2 textarea:focus ~ .f2__l, .p-form .f2 textarea:not(:placeholder-shown) ~ .f2__l { transform: translateY(-25px) scale(.74); color: var(--ink2); }
/* «необязательно» — справа, 12 px, намного бледнее подсказки */
.p-form .f2__opt { position: absolute; right: 0; top: 37px; font-size: 12px; line-height: 1.2; color: #474645; pointer-events: none; transition: opacity .3s; }
.p-form .f2 input:not(:placeholder-shown) ~ .f2__opt, .p-form .f2 textarea:not(:placeholder-shown) ~ .f2__opt { opacity: 0; }

/* телефон и выбор страны */
.p-form .f2--tel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; }
.p-form .f2--tel .f2__in { position: relative; }
.p-form .f2--tel .f2__l { top: 14px; }
.p-form .rmf-cc { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 12px 0 0; margin-right: 12px; border-bottom: 1px solid rgba(255, 255, 255, .13); color: var(--ink); font: 400 17px/1 var(--fb); white-space: nowrap; transition: color .3s; }
.p-form .rmf-cc__f { font-size: 18px; line-height: 1; }
.p-form .rmf-cc svg { width: 10px; height: 10px; color: var(--ink3); transition: transform .4s var(--e); }
.p-form .rmf-cc[aria-expanded="true"] svg { transform: rotate(180deg); }
.p-form .rmf-cc:hover svg { color: var(--ink); }
.p-form .rmf-ccp { position: absolute; z-index: 20; left: 0; top: calc(100% + 8px); width: min(340px, 86vw); background: #121212; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .75); padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: 20% 0; pointer-events: none; transition: opacity .25s, transform .4s var(--e); }
.p-form .rmf-ccp.is-open { opacity: 1; transform: none; pointer-events: auto; }
.p-form .f2 .rmf-ccp__s { display: block; width: 100%; height: 42px; border-bottom: 0; padding: 0 12px; border: 0; border-radius: 12px; background: #1d1d1d; color: var(--ink); font: 400 15px/1 var(--fb); outline: 0; }
.p-form .f2 .rmf-ccp__s::placeholder { color: var(--ink3); }
.p-form .rmf-ccp__l { max-height: 268px; overflow: auto; margin-top: 6px; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.p-form .rmf-ccp__o { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: 10px; text-align: left; font-size: 14.5px; color: var(--ink2); }
.p-form .rmf-ccp__o b { font-weight: 400; color: var(--ink); }
.p-form .rmf-ccp__o span:last-child { color: var(--ink3); font-variant-numeric: tabular-nums; }
.p-form .rmf-ccp__o.is-act, .p-form .rmf-ccp__o:hover { background: #222; }
.p-form .rmf-ccp__o[aria-selected="true"] { color: var(--ink); }
.p-form .rmf-ccp__o[aria-selected="true"] b { font-weight: 600; }
.p-form .rmf-ccp.is-up { top: auto; bottom: calc(100% + 8px); transform-origin: 20% 100%; }
.p-form .rmf-ccp__sep { height: 1px; margin: 6px 10px; background: rgba(255, 255, 255, .08); }
.p-form .rmf-ccp__no { padding: 14px 10px; color: var(--ink3); font-size: 14px; }
.p-form .rmf-ccp__bg { display: none; }

/* роли */
.p-form .rmf-seg { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 6px; margin: 20px 0 0; border: 0; padding: 0; }
.p-form .rmf-seg legend { float: left; margin-right: 12px; padding: 0; color: var(--ink3); font-size: 14px; }
.p-form .rmf-seg label { position: relative; cursor: pointer; }
.p-form .rmf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.p-form .rmf-seg span { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #121212; color: var(--ink2); font-size: 14px; transition: background-color .3s, color .3s, transform .4s var(--e); }
.p-form .rmf-seg label:hover span { color: var(--ink); }
.p-form .rmf-seg input:checked + span { background: var(--ink); color: #000; }
.p-form .rmf-seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.p-form .rmf-seg.is-bad span { box-shadow: inset 0 0 0 1px rgba(255, 0, 0, .6); }

.p-form .rmf__go { grid-column: 1 / -1; width: 100%; height: 60px; margin-top: 26px; font-size: 16px; }
.p-form .chk { margin-top: 12px; }
.p-form .chk input { position: absolute; opacity: 0; }
.p-form .rmf__mock { margin-top: 14px; color: #3d3c3b; font-size: 11.5px; }

/* экран успеха */
.p-form .rmf-ok { display: none; }
.p-form .is-done .rmf-ok { display: block; animation: form-okin .9s var(--e) both; }
.p-form .is-done .rmf-hide { display: none; }
.p-form .rmf-ok h3 { font-family: var(--fd); font-weight: 300; letter-spacing: -.05em; font-size: clamp(30px, 3vw, 44px); line-height: 1.02; }
.p-form .rmf-ok h3 b { font-weight: 600; }
.p-form .rmf-ok p { margin-top: 16px; color: var(--ink2); max-width: 44ch; }
.p-form .rmf-ok .rmf__mock { margin-top: 26px; }
.p-form .rmf-ok .btn { margin-top: 30px; }
@keyframes form-okin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* обложки бонусов: широкие баннеры — целиком поверх размытой копии себя */
.p-form .rmf-cov { position: relative; overflow: hidden; background: #111; }
.p-form .rmf-cov::before { content: ''; position: absolute; inset: -20%; background: var(--img) center / cover no-repeat; filter: blur(20px) saturate(1.5) brightness(.95); transform: scale(1.1); }
.p-form .rmf-cov img { position: relative; width: 100%; height: 100%; object-fit: cover; }
.p-form .rmf-cov { container-type: inline-size; }
.p-form .rmf-cov.is-wide::before { filter: blur(20px) saturate(1.3) brightness(.45); }
.p-form .rmf-cov.is-wide img { position: absolute; left: 0; top: 13%; width: 100%; height: auto; object-fit: contain; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.p-form .rmf-cov__t { position: absolute; left: 9%; right: 9%; bottom: 9%; font-family: var(--fd); font-weight: 600; letter-spacing: -.03em; font-size: 8.4cqw; line-height: 1.08; color: #fff; text-wrap: balance; }
@container (max-width: 70px) { .p-form .rmf-cov__t { display: none; } .p-form .rmf-cov.is-wide img { top: 50%; transform: translateY(-50%); box-shadow: none; } }

/* =================== Вариант A «Пропуск» =================== */
.p-form-A { width: min(1160px, calc(100vw - 48px)); }
.p-form-A .fa { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.p-form-A .fa__stage { position: relative; display: flex; flex-direction: column; padding: 40px 28px 30px 44px; overflow: hidden; background: radial-gradient(52% 46% at 50% 66%, rgba(255, 255, 255, .075), transparent 72%); }
.p-form-A .fa__lbl { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--ink3); }
.p-form-A .fa__lbl b { font-weight: 500; color: var(--ink2); }
.p-form-A .fa__cnt { font-variant-numeric: tabular-nums; transition: color .4s; }
.p-form-A .fa__cnt.is-full { color: var(--ink); }
.p-form-A .fa__arena { position: relative; flex: 1; min-height: 520px; perspective: 1400px; }
.p-form-A .fa__deck, .p-form-A .fa__pass { position: absolute; left: 50%; bottom: 18px; width: 236px; height: 372px; margin-left: -118px; }
.p-form-A .fa__card { position: absolute; left: 50%; top: 0; width: 152px; height: 204px; margin-left: -76px; border-radius: 14px; transform-origin: 50% 210%; box-shadow: 0 18px 50px rgba(0, 0, 0, .65); filter: grayscale(.9) brightness(.62); transition: transform 1.1s var(--e), filter .9s, box-shadow .4s; cursor: pointer; }
.p-form-A .fa__card .rmf-cov { width: 100%; height: 100%; border-radius: inherit; }
.p-form-A .fa__card.is-on { filter: none; }
.p-form-A .fa__card:hover, .p-form-A .fa__card.is-hl { filter: none; box-shadow: 0 26px 70px rgba(0, 0, 0, .8); }
.p-form-A .fa__pass { z-index: 10; border-radius: 24px; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .9s var(--e); background: linear-gradient(158deg, #1d1d1d 0%, #0c0c0c 48%, #050505 100%); box-shadow: 0 40px 90px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .04); overflow: hidden; color: var(--ink); }
.p-form-A .fa__pass::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .03) 0 1px, transparent 1px 6px), repeating-radial-gradient(circle at 92% 96%, rgba(255, 255, 255, .025) 0 1px, transparent 1px 7px); pointer-events: none; }
.p-form-A .fa__sheen { position: absolute; inset: 0; background: radial-gradient(240px 240px at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .13), transparent 60%); mix-blend-mode: screen; pointer-events: none; transition: opacity .4s; }
.p-form-A .fa__sweep { position: absolute; inset: -40% -60%; background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .16) 50%, transparent 58%); transform: translateX(-70%); pointer-events: none; }
.p-form-A .fa.is-ready .fa__sweep { animation: formA-sweep 1.6s var(--e2) .1s; }
@keyframes formA-sweep { to { transform: translateX(70%); } }
.p-form-A .fa__pin { position: relative; height: 100%; display: flex; flex-direction: column; padding: 22px 22px 20px; }
.p-form-A .fa__top { display: flex; align-items: center; justify-content: space-between; }
.p-form-A .fa__top img { width: 78px; height: auto; }
.p-form-A .fa__top span { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); }
.p-form-A .fa__ev { margin-top: 30px; font-family: var(--fd); font-weight: 300; letter-spacing: -.05em; font-size: 25px; line-height: 1.02; }
.p-form-A .fa__ev b { font-weight: 600; }
.p-form-A .fa__guest { margin-top: auto; min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; }
.p-form-A .fa__gl { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink3); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s var(--e); }
.p-form-A .fa__name { display: block; margin-top: 6px; font-family: var(--fd); font-weight: 600; letter-spacing: -.045em; font-size: 26px; line-height: 1.02; overflow-wrap: anywhere; min-height: 1em; }
.p-form-A .fa__name i { font-style: normal; display: inline-block; animation: formA-ch .5s var(--e) both; }
@keyframes formA-ch { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.p-form-A .fa.has-name .fa__gl { opacity: 1; transform: none; }
.p-form-A .fa__bot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; font-size: 12px; color: var(--ink3); position: relative; }
.p-form-A .fa__bot::before { content: ''; position: absolute; left: 0; right: 0; top: 0; border-top: 1px dashed rgba(255, 255, 255, .12); }
.p-form-A .fa__role { color: var(--ink); transition: opacity .4s; }
.p-form-A .fa__st { display: inline-flex; align-items: center; gap: 7px; }
.p-form-A .fa__dot { width: 7px; height: 7px; border-radius: 50%; background: #333; transition: background-color .5s; }
.p-form-A .fa.is-ready .fa__dot { background: var(--red); }
.p-form-A .fa__cap { min-height: 42px; margin-top: 10px; text-align: center; font-size: 14px; line-height: 1.45; color: var(--ink); transition: opacity .3s; }
.p-form-A .fa__cap small { display: block; color: var(--ink3); font-size: 12px; }
.p-form-A .fa__main { position: relative; padding: 46px 56px 34px 26px; }
.p-form-A .rmf-ok { padding-top: 60px; }

@media (max-width: 980px) {
  .p-form-A .fa { grid-template-columns: 1fr; }
  .p-form-A .fa__main { order: 1; padding: 54px 22px 28px; }
  .p-form-A .fa__stage { order: 2; padding: 24px 18px 28px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .p-form-A .fa__arena { min-height: 400px; }
}
@media (max-width: 720px) {
  .p-form { padding: 0; place-items: stretch; }
  .p-form .rmf__box { max-height: 100vh; max-height: 100dvh; height: 100%; border-radius: 0; width: 100%; }
  .p-form .rmf__sw { top: 12px; left: 14px; }
  .p-form .rmf__sw span { display: none; }
  .p-form .rmf__x { position: fixed; top: 6px; right: 6px; }
  .p-form .rmf__f { grid-template-columns: 1fr; }
  .p-form .rmf__t { padding-right: 0; }
  .p-form .rmf-ccp { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; border-radius: 22px 22px 0 0; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); transform: translateY(30px); z-index: 30; }
  .p-form .rmf-ccp.is-open { transform: none; }
  .p-form .rmf-ccp__l { max-height: 52vh; }
  .p-form .rmf-ccp__o { height: 50px; font-size: 16px; }
  .p-form .f2 .rmf-ccp__s { height: 48px; font-size: 16px; }
  .p-form .rmf-ccp__bg { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .6); }
  .p-form .rmf-ccp__bg.is-open { display: block; }
  .p-form-A .fa__stage { padding-top: 24px; }
  .p-form-A .fa__arena { min-height: 392px; }
  .p-form-A .fa__deck, .p-form-A .fa__pass { width: 170px; height: 268px; margin-left: -85px; bottom: 8px; }
  .p-form-A .fa__card { width: 104px; height: 140px; margin-left: -52px; border-radius: 11px; }
  .p-form-A .fa__pin { padding: 16px 16px 14px; }
  .p-form-A .fa__top img { width: 58px; }
  .p-form-A .fa__ev { margin-top: 18px; font-size: 18px; }
  .p-form-A .fa__name { font-size: 19px; }
  .p-form-A .fa__guest { min-height: 64px; }
  .p-form-A .fa__cap { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-form-A .fa__card, .p-form-A .fa__pass { transition: none; }
}

/* перенос на сайт: сообщение под кнопкой и отметка у обязательной галочки согласия */
.p-form .rmf__msg { min-height: 0; margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink2); }
.p-form .rmf__msg:empty { display: none; }
.p-form .chk.is-bad .chk__b { box-shadow: 0 0 0 1px var(--red); }
.p-form .rmf__go[aria-busy="true"] { opacity: .7; pointer-events: none; }
