:root {
  color-scheme: light;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ink: #102f4b;
  --blue: #1643ae;
  --muted: #466079;
  --paper: #fff;
  --line: #c9d8e1;
  --control-border: #758da4;
  --font-title: "Barlow Condensed", "Arial Narrow", sans-serif;
  --event-background: url("media/bg-com-ondas.webp");
  --entrance-easing: ease-out;
  --motion-time-scale: 2;
  --glass-speed: 1.3;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f4f8fa; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #167bba; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 1.3em;
  min-height: 46px; padding: .77em 1.45em; border: 0; border-radius: 32px;
  color: white; background: var(--blue); text-decoration: none; cursor: pointer; font-weight: 700;
}
.button:hover { background: #10368e; }
.button:disabled { opacity: .6; cursor: wait; }
.button.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/barlow-condensed-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/barlow-condensed-latin-900-normal.woff2") format("woff2"); }
.home {
  --home-sky: #076ba5;
  --home-deep: #063756;
  --home-ice: #90f2ff;
  --home-hover: #e3faff;
  --home-pressed: #c9f2ff;
  color: var(--paper);
  background: var(--home-sky);
}
.hero {
  position: relative; isolation: isolate; display: grid; overflow: clip;
  min-block-size: 100vh; min-block-size: 100svh;
  background: var(--event-background) 85% top / auto 70% no-repeat, var(--home-sky);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(to bottom, #052d5655, #052d562e 38%, transparent 64%);
}
.hero-photo {
  position: absolute; z-index: -2; inset: auto 0 0;
  inline-size: 100%; block-size: 72%; object-fit: cover; object-position: 15% bottom;
  mask-image: linear-gradient(to bottom, transparent, black 25%);
}
.event-layout {
  display: grid; grid-template: "content" auto "art" 1fr / minmax(0, 1fr);
  justify-items: center; align-items: center; row-gap: clamp(1.5rem, 4svh, 3rem);
  inline-size: min(100%, 90rem); margin-inline: auto;
  padding-inline: max(1.25rem, env(safe-area-inset-left)) max(1.25rem, env(safe-area-inset-right));
  padding-block: max(clamp(1.75rem, 7svh, 4.5rem), env(safe-area-inset-top))
    max(clamp(4.5rem, 14svh, 8rem), env(safe-area-inset-bottom));
}
.event-content {
  grid-area: content; display: grid; justify-items: center; gap: clamp(1.5rem, 4svh, 3rem);
  min-inline-size: 0;
}
.event-title { margin: 0; }
.event-title img {
  display: block; inline-size: clamp(11.5rem, 50vw, 15.5rem); max-inline-size: 100%; block-size: auto;
}
.event-details {
  display: grid; justify-items: center; gap: .65rem; min-inline-size: 0; text-align: center;
}
.event-kicker {
  margin: 0; color: var(--home-ice); text-transform: uppercase;
  font: 900 clamp(1.45rem, 5.5vw, 2.1rem)/1 var(--font-title);
}
.event-date {
  margin: 0; padding: .13em .38em .17em; border: 1px solid #d6f8ffbb; border-radius: clamp(.9rem, 3.6vw, 1.5rem);
  background: linear-gradient(151deg, #b6f4ff30, #1d77a439 54%, #8cdcff23), #06477555;
  box-shadow: inset 0 1px 5px #e1fbff77, inset 0 -1px 3px #c0edff60, 0 8px 24px #00345d32;
  font: 900 clamp(2.8rem, 13vw, 4.75rem)/1 var(--font-title);
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap;
}
.event-venue {
  display: flex; align-items: center; gap: .55em; margin: .15rem 0 0;
  font-size: clamp(1rem, 4.1vw, 1.25rem); line-height: 1.4;
}
.event-pin {
  flex: none; inline-size: .85em; block-size: .85em; border: .21em solid var(--home-ice);
  border-radius: 50% 50% 50% 0; transform: translateY(-.12em) rotate(-45deg);
}
.home-cta {
  min-block-size: 3.25rem; margin-block-start: .65rem; padding: .65rem 1.35rem;
  color: var(--home-deep); background: var(--paper); box-shadow: 0 4px 18px #00345d3d;
}
.home-cta:hover { background: var(--home-hover); }
.home-cta:active { background: var(--home-pressed); }
.home-cta:focus-visible { outline-color: var(--paper); outline-offset: 5px; }
.event-art {
  grid-area: art; position: relative; isolation: isolate; pointer-events: none;
  inline-size: min(100%, 86vw, clamp(11rem, 46svh, 31rem));
}
.event-art::before {
  content: ""; position: absolute; z-index: -1; inset: 1% -7% 8%;
  background: radial-gradient(ellipse, #69eaff40, #6cddff19 42%, transparent 72%);
}
.event-emblem { display: block; inline-size: 100%; block-size: auto; }
.event-glass { position: absolute; inset: -7%; inline-size: 114%; block-size: 114%; }
.event-art.has-glass .event-emblem { visibility: hidden; }
.event-spark {
  position: absolute; inset-inline-start: var(--spark-x); inset-block-start: var(--spark-y);
  inline-size: var(--spark-size); aspect-ratio: 1;
  background: radial-gradient(closest-side, #e3fcff9c, #86f0ff33 38%, transparent 78%);
  opacity: .33; transform: translate(-50%, -50%);
}
.event-spark::before {
  content: ""; position: absolute; inset: 8%; background: var(--paper);
  clip-path: polygon(50% 0, 53% 46%, 100% 50%, 53% 54%, 50% 100%, 47% 54%, 0 50%, 47% 46%);
}
.event-spark--rim {
  --spark-x: 87%; --spark-y: 6%; --spark-size: clamp(1.55rem, 11%, 4.4rem);
}
.event-spark--rim::after {
  content: ""; position: absolute; inset: calc(50% - .5px) -55% auto; block-size: 1px;
  background: linear-gradient(90deg, transparent, #e1fcff, transparent);
}
.event-spark--left {
  --spark-x: 3%; --spark-y: 38%; --spark-size: clamp(.9rem, 6%, 2.25rem);
}
.event-spark--right {
  --spark-x: 96%; --spark-y: 53%; --spark-size: clamp(1rem, 7%, 2.6rem);
}
.event-spark--low {
  --spark-x: 27%; --spark-y: 76%; --spark-size: clamp(.8rem, 5%, 1.85rem);
}
@media (prefers-reduced-motion: no-preference) {
  .home :is(.event-title, .event-kicker, .event-date, .event-venue, .home-cta),
  .registration :is(.masthead, .intro, .card, .timeline) {
    animation: page-entrance calc(var(--enter-duration, 235ms) * var(--motion-time-scale))
      var(--entrance-easing) calc(var(--enter-delay, 0ms) * var(--motion-time-scale)) both;
  }
  .home .event-title { --enter-duration: 530ms; --enter-rise: 14px; }
  .home .event-kicker { --enter-duration: 490ms; --enter-delay: 105ms; }
  .home .event-date { --enter-duration: 515ms; --enter-delay: 165ms; --enter-rise: 12px; }
  .home .event-venue { --enter-duration: 445ms; --enter-delay: 225ms; --enter-rise: 6px; }
  .home .home-cta { --enter-duration: 420ms; --enter-delay: 255ms; --enter-rise: 6px; }
  .registration .intro { --enter-delay: 42ms; }
  .registration .card { --enter-duration: 245ms; --enter-delay: 42ms; }
  .registration .timeline { --enter-duration: 215ms; --enter-delay: 70ms; --enter-rise: 0px; }
  .home .home-cta:focus-visible,
  .registration :is(.masthead, .card, .timeline):focus-within {
    opacity: 1 !important;
    transform: none !important;
  }
  .event-art {
    animation: art-entrance calc(620ms * var(--motion-time-scale)) var(--entrance-easing)
      calc(70ms * var(--motion-time-scale)) both,
      event-float calc(8s * var(--motion-time-scale) / var(--glass-speed)) ease-in-out
      calc(-2s * var(--motion-time-scale) / var(--glass-speed)) infinite;
  }
  .event-spark { opacity: 0; }
}
@keyframes page-entrance {
  from { opacity: 0; transform: translateY(var(--enter-rise, 9px)); }
  to { opacity: 1; transform: none; }
}
@keyframes art-entrance {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes event-float {
  0%, 100% { transform: translateY(8px); }
  50% { transform: translateY(-8px); }
}
@media (min-width: 40rem) and (min-aspect-ratio: 1/1) {
  .hero { background: var(--home-sky); }
  .hero::before { background: linear-gradient(270deg, #052d568c, #052d5640 47%, transparent 78%); }
  .hero-photo { block-size: 100%; object-position: left bottom; mask-image: none; }
  .event-layout {
    grid-template: "art content" auto / minmax(0, 1.18fr) minmax(0, 1fr);
    align-content: center; justify-items: start; column-gap: clamp(2rem, 6vw, 6rem);
    padding-inline: max(clamp(2.5rem, 6vw, 5.5rem), env(safe-area-inset-left))
      max(clamp(2.5rem, 6vw, 5.5rem), env(safe-area-inset-right));
    padding-block: max(clamp(1.5rem, 6svh, 4.5rem), env(safe-area-inset-top))
      max(clamp(1.5rem, 6svh, 4.5rem), env(safe-area-inset-bottom));
  }
  .event-content {
    justify-items: start; gap: clamp(1rem, 3.8svh, 2.75rem);
  }
  .event-title img { inline-size: clamp(12.5rem, 23vw, 18rem); }
  .event-details { justify-items: start; text-align: start; }
  .event-kicker { font-size: clamp(1.75rem, 3vw, 2.65rem); }
  .event-date { font-size: clamp(2.7rem, min(6.7vw, max(3.25rem, 11svh)), 5.75rem); }
  .event-venue { font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
  .event-art { justify-self: center; inline-size: min(100%, 79svh, 43rem); }
}
@media (max-width: 22.5rem) {
  .event-layout { padding-block-end: max(6rem, 16svh, env(safe-area-inset-bottom)); }
  .event-art { inline-size: min(100%, 80vw, 39svh); }
}
@media (min-width: 40rem) and (min-aspect-ratio: 1/1) and (max-height: 30rem) {
  .event-art { inline-size: min(100%, 72svh); }
}
/* O fundo e a assinatura são os mesmos da home; o cartão concentra os controles. */
.registration {
  --timeline-height: 98px;
  min-height: 100vh; min-height: 100dvh; background: #07547b; isolation: isolate;
}
.registration::before {
  content: ""; z-index: -1; position: fixed; inset: 0;
  background: linear-gradient(105deg, #03375bbd 0%, #003955ad 42%, #056793aa 78%),
    var(--event-background) left bottom / cover no-repeat, #076795;
}
.form-layout {
  width: min(calc(100% - clamp(44px, 8vw, 160px)), 1640px); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1.5fr);
  gap: clamp(32px, 5.4vw, 100px); align-items: center;
  --form-space: clamp(16px, 3.2vh, 42px);
  min-block-size: 100vh; min-block-size: 100dvh;
  padding-block: max(var(--form-space), env(safe-area-inset-top)) calc(var(--timeline-height) + var(--form-space));
}
.form-identity { align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(24px,4vh,52px); padding-top: min(3vh,32px); }
.form-art { display: none; }
.masthead a, .masthead img { display: block; width: clamp(148px,12vw,220px); height: auto; }
.intro { max-width: 520px; color: white; text-shadow: 0 2px 16px #002d5060; }
.intro h1, .card h2 { font-family: var(--font-title); font-weight: 900; line-height: 1; margin: 0; text-wrap: balance; }
.intro h1 { font-size: clamp(38px,3.8vw,68px); letter-spacing: -.018em; }
.intro h1 span { white-space: nowrap; }
.intro p { margin: 14px 0 0; max-width: 42ch; font-size: clamp(.97rem,1.04vw,1.12rem); line-height: 1.5; }
.card {
  min-width: 0; background: #fcfdff; border: 1px solid #ffffffa6; border-radius: 22px;
  padding: clamp(24px,2.65vw,52px); box-shadow: 0 18px 70px #002e4845;
  scroll-margin-block-start: var(--form-space);
}
.card h2 { font-size: clamp(32px,3vw,52px); color: #093553; }
.step-count {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px; color: #195881;
  text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; font-weight: bold;
}
.step-count::before { content: ""; width: 23px; height: 3px; border-radius: 2px; background: #00a4cd; }
.description, .hint, figcaption { color: var(--muted); }
.description { margin: 10px 0 21px; line-height: 1.4; }
.fields { display: grid; gap: clamp(12px,1.6vh,20px) 20px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; padding: 0; font-weight: 650; line-height: 1.4; }
.field input:not([type=radio]), .field textarea { width: 100%; min-height: 46px; margin-top: 7px; padding: 10px 12px; border: 1px solid var(--control-border); border-radius: 7px; background: white; color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.hint { font-size: .84rem; margin: 6px 0 0; }
.options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.choice { display: flex; align-items: center; gap: 8px; border-radius: 8px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--control-border); cursor: pointer; }
.choice input { margin: 0; accent-color: var(--blue); }
.choice:has(:checked) { background: #eaf4ff; border-color: #1643ae; color: #10358e; }
.choice:focus-within { outline: 2px solid #167bba; outline-offset: 2px; }
.size-grid .choice { position: relative; justify-content: center; min-width: 44px; }
.size-grid input { position: absolute; opacity: 0; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: 10px; background: #eff7f9; }
.guide figure { margin: 0; }
.guide img { display: block; width: 100%; height: auto; aspect-ratio: auto 704 / 552; object-fit: contain; }
.guide table { width: 100%; border-collapse: collapse; text-align: center; font-size: .78rem; }
.guide th, .guide td { padding: 5px; border-bottom: 1px solid var(--line); }
.guide caption, figcaption { font-size: .78rem; line-height: 1.4; }
.guide caption { font-weight: 700; padding-bottom: 7px; }
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
/* A linha pertence à lista, para que sua animação sobreviva à troca dos marcadores. */
.timeline {
  position: fixed; z-index: 2; inset: auto 0 0; min-height: var(--timeline-height);
  display: grid; align-items: center; padding: 12px max(8px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom));
  background: #073650f5; color: white; border-top: 1px solid #9adff17a; box-shadow: 0 -6px 28px #0024381a;
}
.timeline ol { position: relative; display: flex; width: min(100%,1020px); margin: 0 auto; list-style: none; padding: 0; align-items: start; }
.timeline ol::before, .timeline ol::after { content: ""; pointer-events: none; position: absolute; left: 10%; top: 18px; width: 80%; height: 3px; border-radius: 4px; background: #487188; }
.timeline ol::after { background: #65ddff; transform-origin: left; transform: scaleX(var(--progress,0)); transition: transform calc(.32s * var(--motion-time-scale)) ease; }
.timeline li { position: relative; flex: 1; min-width: 0; z-index: 1; }
.timeline button { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 1px; border: 0; color: #c4d5e0; background: transparent; font-size: clamp(.7rem,1.05vw,.92rem); }
.timeline button:enabled { cursor: pointer; }
.timeline .mark { display: grid; place-items: center; width: 36px; height: 36px; font: 700 .95rem/1 Arial,sans-serif; border-radius: 50%; background: #18485f; border: 1px solid #648293; }
.timeline button[aria-current] { color: white; font-weight: bold; }
.timeline button[aria-current] .mark { background: #70e1ff; color: #06324b; border-color: #8fe9ff; box-shadow: 0 0 0 4px #52d6ff3b; }
.timeline button:enabled .mark { background: #13637e; border-color: #65ddff; color: white; }
.timeline small { font-size: .9em; line-height: 1; }
.error, .field-error { color: #a02720; font-size: .9rem; }
.field-error { margin: 5px 0 0; }
[aria-invalid=true] { border-color: #a02720 !important; }
#notice:empty, .error:empty, .field-error:empty { display: none; }
#notice { margin: 0 0 18px; }

#result p:not(.step-count) { color: var(--muted); line-height: 1.5; }
#result .button { margin-top: 8px; }
.hint { line-height: 1.4; }
.choice { font-size: .94rem; }
#field-tipo_alimentacao .options { display: grid; grid-template-columns: 1fr 1fr; }
#field-tipo_alimentacao .choice { line-height: 1.25; }
.guide img { max-height: 180px; }
#next::after { content: "→"; }
#back::before { content: "←"; }
.actions .button { gap: .7em; }
.actions .secondary { border-color: transparent; }
.actions .secondary:hover { background: #eef4f7; }
.form-layout.finished {
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  gap: clamp(1rem, 3vh, 1.8rem); width: min(calc(100% - 32px), 47rem);
  padding-block-end: max(var(--form-space), env(safe-area-inset-bottom));
}
.form-layout.finished .form-identity { align-self: center; padding-top: 0; }
.form-layout.finished .card { margin-top: 0; }
.form-layout.finished .form-art { display: none; }
@media (min-width: 900px) {
  .form-art { display: block; inline-size: min(88%, 21rem); }
  [data-step="dados_participante"] .fields,
  [data-step="informacoes_adicionais"] .fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #field-autorizacao_dados, #field-informacao_adicional { grid-column: 1/-1; }
  #field-possui_acessibilidade:has(+ [hidden]) { grid-column: 1/-1; }
}
@media (min-width: 900px) and (max-height: 800px) {
  .registration { --timeline-height: 78px; }
  .card { padding: 20px 26px; }
  .form-layout { --form-space: 12px; }
  .description { margin: 6px 0 14px; }
  .fields { row-gap: 10px; }
  .field textarea { min-height: 60px; }
  .actions { margin-top: 15px; padding-top: 10px; }
  .guide img { max-height: 135px; }
}
@media (max-width: 899px) {
  .registration { --timeline-height: 90px; }
  .registration::before { background: linear-gradient(152deg,#034369ec 16%,#065983da 66%,#073755dd), var(--event-background) 25% bottom / cover no-repeat; }
  .form-layout {
    --form-space: 18px;
    display: block; width: min(100% - 32px,660px);
    padding-block-end: calc(var(--timeline-height) + 28px + env(safe-area-inset-bottom));
  }
  .form-identity { padding: 0; gap: 17px; }
  .masthead img, .masthead a { width: 132px; }
  .intro h1 { font-size: clamp(33px,7vw,46px); }
  .intro p { font-size: .92rem; margin-top: 7px; line-height: 1.38; }
  .card { margin-top: 18px; padding: 22px 20px; border-radius: 16px; }
  .card h2 { font-size: clamp(29px,6.8vw,38px); }
  .timeline ol::before,.timeline ol::after { top: 15px; height: 2px; }
  .timeline .mark { width: 30px; height: 30px; font-size: .82rem; }
  .timeline button { font-size: clamp(.63rem,2.6vw,.81rem); }
}
@media (max-width: 490px) {
  #field-tipo_alimentacao .options, .guide { grid-template-columns: 1fr; }
  .guide img { max-height: 185px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline ol::after { transition: none; }
}
html:has(.registration) { scroll-padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
.registration :where(button, input, textarea) { scroll-margin-block: 12px; }
