/* The thank-you page, where every form ends. It is built from the site's own parts: the blue
   character hero, Bizo's speech bubble, the three-step marker and the closing next-step card.
   Only what those parts do not already cover is styled here. */

/* One message per kind of form. The script picks it from the address; without scripts the general one shows. */
.thanks-variant{display:none}
html:not([data-thanks]) .thanks-variant[data-variant="generic"],
html[data-thanks="generic"] .thanks-variant[data-variant="generic"],
html[data-thanks="guide"] .thanks-variant[data-variant="guide"],
html[data-thanks="b2b"] .thanks-variant[data-variant="b2b"]{display:block}

.thanks-hero h1 strong{display:block;color:var(--cyan)}
.thanks-hero .thanks-variant>p:not(.kicker){max-width:38rem}
.thanks-hero .press{margin-top:1.7rem}
.thanks-hero .thanks-name{color:var(--white);font-weight:800}

/* Bizo says it himself: the same speech bubble as on the home page. */
.route-hero .thanks-bubble{position:absolute;margin:0;max-width:none;font-size:1rem;line-height:1.3;z-index:3;inset:9% 4% auto auto;width:12rem;padding:1rem 1.2rem;border:1px solid rgba(255,255,255,.85);border-radius:1.5rem 1.5rem 1.5rem .55rem;background:linear-gradient(145deg,#fff,var(--white));box-shadow:0 1.4rem 3rem rgba(6,17,31,.22),inset 0 1px #fff;color:var(--night);text-align:center;transform:rotate(2deg);transform-origin:0 100%}
.route-hero .thanks-bubble small{display:block;margin-bottom:.2rem;color:var(--blue);font-size:.68rem;font-weight:800}
.route-hero .thanks-bubble b{color:var(--night);font:850 1.08rem/1.25 Rubik,sans-serif}
.thanks-hero .route-orbit{inset:30% auto auto 10%}
.thanks-token{position:absolute;z-index:3;inset:58% 6% auto auto;width:2.5rem;height:2.5rem;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(255,255,255,.85);background:linear-gradient(var(--white),var(--ice));color:var(--blue);box-shadow:0 1rem 2rem rgba(6,17,31,.25),inset 0 1px #fff;font-weight:900}

/* The ticket from the guides' own covers. */
.thanks-hero .thanks-ticket{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.7rem 1.1rem;max-width:none;margin:1.5rem 0 0;padding:.85rem 1.2rem;border-radius:1rem;background:linear-gradient(145deg,#fff,var(--white));color:var(--navy);box-shadow:0 1rem 2.4rem rgba(6,17,31,.25),inset 0 1px #fff;font-size:1rem;line-height:1.2;text-align:start}
.thanks-ticket small{display:block;color:var(--muted);font-size:.68rem;font-weight:800}
.thanks-ticket b{display:block;color:var(--navy);font:850 1.02rem/1.25 Rubik,sans-serif}
.thanks-ticket__stub{padding-inline-end:1.1rem;border-inline-end:2px dashed #b9d4e3;text-align:center}
.thanks-ticket__stub b{color:var(--blue);font-size:1.2rem}
.thanks-ticket i{color:var(--blue);font-style:normal;font-weight:900}
.thanks-ticket__time{padding-inline-start:1.1rem;border-inline-start:1px solid #d0e6f1}

/* Confetti is drawn by guides/burst.js, which carries its own few styles. */

/* The guide that was asked for, as a sheet of paper beside Bizo. */
.route-hero__character img.thanks-sheet{z-index:3;width:9rem;height:auto;inset:auto auto 7% 8%;border-radius:.45rem;background:#fff;filter:none;box-shadow:0 1.2rem 2.6rem rgba(6,17,31,.4);transform:rotate(-7deg)}
.route-hero__character:hover img.thanks-sheet{filter:none;transform:rotate(-7deg)}
.thanks-sheet[hidden]{display:none}

/* What happens now: the site's three-step marker, with the first step already done. */
/* The same space above the text as below it, so the block sits in the middle of its band. */
.thanks-flow{padding-block:clamp(3.5rem,6vw,5.5rem);background:var(--white)}
.thanks-flow__inner{max-width:52rem;margin-inline:auto;text-align:center}
.thanks-flow .kicker{justify-content:center}
.thanks-flow h2{margin:.7rem 0 0;font:900 clamp(2.3rem,4vw,3.6rem)/1 Rubik,sans-serif;letter-spacing:-.05em;color:var(--navy)}
.thanks-flow .connection-flow{max-width:38rem;margin:2.2rem auto 0}
.thanks-flow .connection-flow span{font-size:.92rem}
.thanks-flow .connection-flow .is-done b{border-color:#fff;background:linear-gradient(#91ecff,var(--cyan));box-shadow:0 5px 0 #087aa8,0 .9rem 1.8rem rgba(6,17,31,.16),inset 0 1px #fff;font-size:1.1rem}
.thanks-flow .connection-flow .is-done span{color:var(--blue)}

@media(max-width:960px){
  .thanks-hero .thanks-variant>p:not(.kicker){margin-inline:auto}
  .route-hero .thanks-bubble{inset:4% 2% auto auto;width:10.5rem;padding:.75rem .9rem}
  .route-hero .thanks-bubble b{font-size:.95rem}
  .route-hero__character img.thanks-sheet{width:6.6rem;inset:auto auto 6% 6%}
  .thanks-hero .thanks-ticket{justify-content:center}
}
@media(max-width:600px){
  .thanks-hero .thanks-ticket{gap:.6rem .9rem;padding:.8rem 1rem}
  .thanks-ticket__time{flex-basis:100%;padding:.6rem 0 0;border:0;border-top:1px solid #d0e6f1;text-align:center}
  .route-hero .thanks-bubble{width:9.2rem;inset:2% 0 auto auto}
  .thanks-flow .connection-flow span{font-size:.78rem}
}

/* Motion: one short entrance and a bubble that grows from its tail. Nothing here hides content
   when motion is off, and the site-wide reduced-motion rule switches all of it off. */
@media(prefers-reduced-motion:no-preference){
  .thanks-hero .thanks-variant>*{animation:thanksIn .5s cubic-bezier(.23,1,.32,1) both}
  .thanks-hero .thanks-variant>:nth-child(2){animation-delay:.06s}
  .thanks-hero .thanks-variant>:nth-child(3){animation-delay:.12s}
  .thanks-hero .thanks-variant>:nth-child(4){animation-delay:.18s}
  .thanks-hero .thanks-variant>:nth-child(5){animation-delay:.24s}
  .route-hero .thanks-bubble{animation:thanksBubble .28s .5s cubic-bezier(.23,1,.32,1) both}
  .thanks-token{animation:thanksStamp .24s .46s cubic-bezier(.23,1,.32,1) both}
  .thanks-hero .route-orbit{animation:thanksStamp .24s .38s cubic-bezier(.23,1,.32,1) both}
}
@keyframes thanksIn{from{opacity:0;transform:translateY(.75rem)}}
@keyframes thanksBubble{from{opacity:0;transform:rotate(2deg) scale(.92)}}
@keyframes thanksStamp{from{opacity:0;transform:scale(1.22)}}

/* The closing card keeps a margin from the screen edge at every width. */
.thanks-main .next-step__box{width:auto;max-width:76rem;margin-inline:var(--gutter)}
@media(min-width:1400px){.thanks-main .next-step__box{margin-inline:auto}}
