/*
  Spirit of J — requesting a session, on the Services page (28 Nov: the separate booking page was folded in here).
  The form is the page's last section. As it comes into view the hooded guide gives way to her lantern alone, with the
  request shown on a glass ticket beneath it; the lantern brightens once the request is sent.
*/
.scn{position:absolute;inset:0;transition:opacity 1100ms ease}
.scn-lantern{opacity:0;visibility:hidden;transition:opacity 1100ms ease,visibility 0s linear 1100ms}
.is-request .scn-guide{opacity:0}
.is-request .scn-lantern{opacity:1;visibility:visible;transition:opacity 1100ms ease}
@media (prefers-reduced-motion:reduce){.scn,.scn-lantern,.is-request .scn-lantern{transition:none}}
/* Booking: steps breathe; a glass ticket under the lantern shows the request as it takes shape; the lantern brightens once it is sent */
.g-step + .g-step{margin-top:44px}
.g-opt{transition:border-color 220ms ease,background 220ms ease,box-shadow 320ms ease}
.g-opt.is-on{box-shadow:0 0 0 1px rgba(242,184,101,.25),0 0 34px rgba(242,184,101,.1)}
.bk-sum{position:absolute;left:calc(var(--fh) * .6667 * .5);bottom:clamp(18px,4.5vh,48px);transform:translateX(-50%);width:min(380px,calc(var(--fh) * .6667 - 56px));box-sizing:border-box;display:grid;grid-template-columns:auto minmax(0,1fr);gap:20px;align-items:center;padding:18px 22px 18px 20px;border:1px solid rgba(214,190,255,.22);border-radius:14px;
  background:linear-gradient(160deg,rgba(70,48,116,.22),rgba(12,8,22,.42));-webkit-backdrop-filter:blur(12px) saturate(1.5);backdrop-filter:blur(12px) saturate(1.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 24px 60px rgba(0,0,0,.5)}
.bk-sum .em{--cw:74px}
.bk-sum p{margin:0;display:grid;gap:3px;font-family:'Newsreader',Georgia,serif}
.bk-sum .c{font-style:italic;font-size:16px;color:#F2B865}
.bk-sum .n{font-size:24px;line-height:1.15;color:#F3EADB}
.bk-sum .m{font-size:16px;color:#CFC4B3}
.lglow-lit{opacity:0;animation:none;background:radial-gradient(closest-side,rgba(255,196,120,.5),rgba(255,160,80,.2) 38%,transparent 70%);transition:opacity 2200ms ease}
.is-sent .lglow-lit{opacity:1}
@media (max-width:860px),(max-aspect-ratio:1/1){.bk-sum{display:none}}
@media (max-height:620px){.bk-sum{display:none}}
@media (prefers-reduced-motion:reduce){.lglow-lit,.g-opt{transition:none}}
.g-chip:disabled{opacity:.38;cursor:not-allowed}

/* Booking lantern: a quieter sky, a livelier flame, and the landing page's rising embers */
.bk-soft{position:absolute;inset:0;background:radial-gradient(ellipse 47% 60% at 50% 50%,transparent 52%,rgba(7,5,12,.5) 78%,rgba(7,5,12,.82) 100%)}
.flame{position:absolute;left:49.2%;top:44.4%;width:9%;aspect-ratio:1/2.1;transform:translate(-50%,-62%);mix-blend-mode:screen;pointer-events:none}
.flame i{position:absolute;inset:0;border-radius:50% 50% 46% 46%/68% 68% 32% 32%;transform-origin:50% 88%;background:radial-gradient(ellipse at 50% 68%,rgba(255,244,214,.6),rgba(255,190,96,.34) 42%,transparent 72%);filter:blur(3px);animation:flame-a 2.3s ease-in-out infinite}
.flame i + i{inset:-55% -85%;border-radius:50%;background:radial-gradient(closest-side,rgba(255,196,110,.3),rgba(255,150,70,.1) 55%,transparent 75%);filter:none;animation:flame-b 3.7s ease-in-out infinite}
@keyframes flame-a{0%,100%{transform:scale(1,1) skewX(0deg);opacity:.86}13%{transform:scale(.94,1.1) skewX(-3deg);opacity:1}29%{transform:scale(1.05,.93) skewX(2.5deg);opacity:.74}46%{transform:scale(.96,1.14) skewX(-1.5deg);opacity:.97}63%{transform:scale(1.03,.97) skewX(3.5deg);opacity:.8}81%{transform:scale(.97,1.07) skewX(-2.5deg);opacity:.94}}
@keyframes flame-b{0%,100%{opacity:.62;transform:scale(1)}22%{opacity:.95;transform:scale(1.06)}41%{opacity:.5;transform:scale(.96)}58%{opacity:.86;transform:scale(1.03)}77%{opacity:.58;transform:scale(.98)}}
.scn-lantern .lglow{animation-duration:2.9s}
.bk-motes{position:absolute;left:calc(var(--fh) * .6667 * .492);top:calc(var(--fh) * .21);width:0;height:0}
.motes{position:absolute;inset:0}
.mote{position:absolute;border-radius:50%;background:#FFE2B0;box-shadow:0 0 6px 2px rgba(255,190,110,.55);opacity:0;animation:mote 9s linear infinite}
.mote-far{background:#F6D9A8;box-shadow:0 0 5px 1px rgba(255,190,110,.4)}
@keyframes mote{0%{transform:translate(0,0);opacity:0}12%{opacity:.95}70%{opacity:.6}100%{transform:translate(var(--dx),var(--dy));opacity:0}}
@media (max-width:860px),(max-aspect-ratio:1/1){.bk-motes,.flame{display:none}}
@media (prefers-reduced-motion:reduce){.flame i,.mote{animation:none !important}}
/* step 1: the session already chosen on the table is shown as one line; the full list opens only if asked for */
.rq-chosen{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 20px;align-items:center;padding:20px 22px;border:1px solid #F2B865;border-radius:2px;background:rgba(242,184,101,.07);box-shadow:0 0 0 1px rgba(242,184,101,.25),0 0 34px rgba(242,184,101,.1)}
.rq-chosen .em{--cw:64px;display:none;grid-row:1 / span 2}
.rq-chosen p{margin:0;display:grid;gap:4px;font-family:'Newsreader',Georgia,serif;grid-column:2}
.rq-chosen .n{font-size:24px;line-height:1.15;color:#F3EADB}
.rq-chosen .m{font-size:16px;color:#F2B865}
.rq-chosen .d{font-size:16px;line-height:1.45;color:#CFC4B3}
.rq-chosen .g-link{grid-column:2;justify-self:start;min-height:44px}
.rq-list{display:grid;gap:12px;margin-top:14px}
.rq-chosen[hidden] + .rq-list{margin-top:0}
.s-rail a.s-rail-go{color:#F2B865}
@media (max-width:860px),(max-aspect-ratio:1/1){.rq-chosen .em{display:block}}
@media (max-width:480px){.rq-chosen{padding:16px;gap:6px 16px}.rq-chosen .em{--cw:54px}}
.rq-chosen[hidden],.rq-list[hidden]{display:none}
.rq-or{color:#E6DCCB;font-style:italic;text-decoration:underline;text-decoration-color:rgba(242,184,101,.6);text-underline-offset:6px}
.rq-or:hover{color:#F2B865}
.is-sent #rq-intro{display:none}

/* ---- The move between the two scenes, filmed (js/scene.js). With the film loaded (html.has-film) the cross-fade above is
   replaced: the guide lifts off the film's first frame, the film plays with the scroll, and the lantern scene (glow, flame,
   embers, ticket) settles over its last frame. Order in the page: film, guide, lantern. ---- */
.scn-film{visibility:hidden;transition:visibility 0s linear 320ms}
.film-mid .scn-film{visibility:visible;transition:none}
.has-film .scn-guide{opacity:1;transition:opacity 260ms ease}
.has-film.film-mid .scn-guide{opacity:0}
.has-film .scn-lantern{opacity:0;visibility:hidden;transition:opacity 420ms ease,visibility 0s linear 420ms}
.has-film.film-end .scn-lantern{opacity:1;visibility:visible;transition:opacity 700ms ease}

/* ---- The form itself (30 Nov): step markers in the top bar's lettering with a rule running off them; fields with a
   surface of their own that light like a chosen session; a tick box and a send button in the site's gold. ---- */
#book-form .g-step{padding-top:0}
#book-form .g-step:first-of-type{margin-top:14px}
.g-step legend{display:block;width:100%;padding:0;margin:0 0 24px}
.g-step .g-h2{margin-top:14px}
.rq-n{margin:0;display:flex;align-items:center;gap:18px;font-family:'Newsreader',Georgia,serif;font-weight:600;font-size:12.5px;line-height:1.4;letter-spacing:.17em;text-transform:uppercase;color:#F2B865;white-space:nowrap}
.rq-n::after{content:"";flex:1;height:1px;background:linear-gradient(90deg,rgba(242,184,101,.45),#2C2536 30%,transparent)}
#book-form .g-step + .g-step{margin-top:60px}
#book-form .g-field{gap:9px}
#book-form .g-field input,#book-form .g-field textarea{min-height:56px;padding:13px 16px;border:1px solid #2C2536;border-bottom-color:#5A5066;border-radius:2px;background:rgba(11,8,18,.6);caret-color:#F2B865;transition:border-color 220ms ease,background 220ms ease,box-shadow 320ms ease}
#book-form .g-field textarea{min-height:128px;line-height:1.5}
#book-form .g-field input:hover,#book-form .g-field textarea:hover{border-color:#6E6559}
#book-form .g-field input:focus,#book-form .g-field textarea:focus{border-color:#F2B865;background:rgba(242,184,101,.06);box-shadow:0 0 0 1px rgba(242,184,101,.25),0 0 34px rgba(242,184,101,.1)}
#book-form .g-field ::placeholder{color:#8C8273;font-style:italic;opacity:1}
#book-form .g-field input:-webkit-autofill{-webkit-text-fill-color:#F3EADB;box-shadow:0 0 0 100px #120D1C inset;caret-color:#F2B865}
#book-form .g-field input:user-invalid{border-color:#E8926B;box-shadow:0 0 0 1px rgba(232,146,107,.3)}
#book-form .g-hint{line-height:1.5}
#book-form .g-chip{transition:border-color 220ms ease,color 220ms ease,background 220ms ease,box-shadow 320ms ease}
#book-form .g-chip.is-on{box-shadow:0 0 0 1px rgba(242,184,101,.25),0 0 26px rgba(242,184,101,.1)}
#book-form .g-check{margin-top:10px;padding:18px 20px;border:1px solid #2C2536;border-radius:2px;background:rgba(11,8,18,.6);transition:border-color 220ms ease,background 220ms ease}
#book-form .g-check:hover{border-color:#6E6559}
#book-form .g-check:has(input:checked){border-color:rgba(242,184,101,.55);background:rgba(242,184,101,.05)}
#book-form .g-check input{-webkit-appearance:none;appearance:none;width:24px;height:24px;margin:1px 0 0;border:1px solid #8C8273;border-radius:2px;background:#0B0812 center/15px 15px no-repeat;cursor:pointer;transition:background-color 180ms ease,border-color 180ms ease,box-shadow 260ms ease}
#book-form .g-check input:checked{border-color:#F2B865;background-color:#F2B865;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.6l3.6 3.4 7.4-8' fill='none' stroke='%2307050C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");box-shadow:0 0 14px rgba(242,184,101,.5)}
#book-form .g-check input:focus-visible{outline:1px solid #F2B865;outline-offset:4px}
#book-form .g-check input:user-invalid{border-color:#E8926B}
.rq-end{margin-top:36px;display:flex;flex-wrap:wrap;align-items:center;gap:18px 30px}
.g-btn.rq-send{min-height:58px;padding:0 34px;border-color:#F2B865;background:linear-gradient(180deg,#F6CF88,#E9AE5C);color:#150D05;font-weight:600;font-size:19px;box-shadow:0 0 0 1px rgba(242,184,101,.25),0 10px 40px rgba(242,150,70,.18);transition:background 250ms ease,box-shadow 320ms ease,transform 180ms ease}
.g-btn.rq-send:hover{background:linear-gradient(180deg,#FFE0A6,#F2B865);color:#150D05;box-shadow:0 0 0 1px rgba(242,184,101,.4),0 12px 52px rgba(242,150,70,.34)}
.g-btn.rq-send:active{transform:translateY(1px)}
.g-btn.rq-send span:last-child{transition:transform 260ms cubic-bezier(.2,.7,.2,1)}
.g-btn.rq-send:hover span:last-child{transform:translateX(5px)}
.g-btn.rq-send:disabled{cursor:progress;opacity:.7}
.g-btn.rq-send:disabled span:last-child{animation:rq-wait 900ms ease-in-out infinite alternate}
@keyframes rq-wait{from{opacity:.25}to{opacity:1}}
@media (max-width:480px){.g-btn.rq-send{width:100%;justify-content:center}#book-form .g-check{padding:16px}}
@media (prefers-reduced-motion:reduce){#book-form .g-field input,#book-form .g-field textarea,#book-form .g-chip,#book-form .g-check,#book-form .g-check input,.g-btn.rq-send,.g-btn.rq-send span:last-child{transition:none;animation:none !important}}
