/* ==========================================================================
   COMPONENTES — botões, ingresso (formulário), campos, sucesso, facts, selo
   ========================================================================== */

/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .3s var(--spring), background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn .icon { font-size: 18px; }
.btn-block { width: 100%; }
.btn-green { background: var(--green); color: #04130D; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { background: transparent; color: inherit; border: 1px solid currentColor; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange-deep); }

/* CTA: glow pulsante em loop (pseudo-elemento: só opacity/transform) + scale 1.05 no hover */
.btn-cta {
  isolation: isolate;
  min-height: 58px;
  font-family: var(--f-display);
  font-stretch: 100%;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
  background: var(--orange);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset;
}
.btn-cta::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 16px;
  background: radial-gradient(60% 80% at 50% 50%, rgba(255, 153, 0, .8), rgba(255, 153, 0, 0) 70%);
  filter: blur(12px);
  opacity: .4;
  animation: glow 2.4s ease-in-out infinite;
  will-change: opacity, transform;
  pointer-events: none;
}
@keyframes glow { 0%, 100% { opacity: .3; transform: scale(.95); } 50% { opacity: .95; transform: scale(1.06); } }
.btn-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 100%;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 4.2s ease-in-out infinite 1.2s;
}
@keyframes sheen { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-cta .btn-label, .btn-cta .icon { position: relative; z-index: 1; }
.btn-arrow { transition: transform .3s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn-cta:hover { transform: scale(1.05); }
  .btn-cta:hover .btn-arrow { transform: translateX(5px); }
}
.btn-cta:active { transform: scale(.98); }
.btn-spinner { display: none; }
.is-loading .btn-cta { pointer-events: none; }
.is-loading .btn-cta .btn-arrow { display: none; }
.is-loading .btn-cta .btn-spinner { display: block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ingresso (card do formulário) ---------- */
.ticket {
  --t-bg: var(--paper);
  --t-fg: var(--ink);
  --t-fg-2: rgba(15, 17, 17, .62);
  --t-line: rgba(15, 17, 17, .22);
  --t-notch: var(--ink);
  --t-err: var(--red);
  position: relative;
  width: 100%;
  background: var(--t-bg);
  color: var(--t-fg);
  border-radius: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 2px 0 rgba(255, 255, 255, .5) inset;
}
.ticket--dark {
  --t-bg: var(--ink-2);
  --t-fg: var(--paper);
  --t-fg-2: rgba(239, 232, 220, .6);
  --t-line: rgba(239, 232, 220, .2);
  --t-notch: var(--paper);
  --t-err: #FF8A7A;
  box-shadow: 0 40px 80px -30px rgba(15, 17, 17, .55);
}
/* Picote lateral */
.ticket::before, .ticket::after {
  content: "";
  position: absolute;
  top: 104px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--t-notch);
}
.ticket::before { left: -11px; }
.ticket::after { right: -11px; }

.ticket-tape {
  position: absolute;
  top: -14px; left: 50%;
  width: 110px; height: 28px;
  margin-left: -55px;
  transform: rotate(-3deg);
  background: rgba(239, 232, 220, .55);
  border-left: 2px dashed rgba(255, 255, 255, .25);
  border-right: 2px dashed rgba(255, 255, 255, .25);
  pointer-events: none;
}
.ticket--dark .ticket-tape { background: rgba(255, 153, 0, .55); }

.ticket-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 10px;
  font-size: 11px;
  color: var(--t-fg-2);
}
.ticket-code {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px 18px;
  border-bottom: 1.5px dashed var(--t-line);
  font-size: 11px;
  color: var(--t-fg-2);
}
.barcode {
  display: block;
  width: 120px; height: 34px;
  color: var(--t-fg, var(--ink));
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 13px);
}
.barcode.is-drawn { background: none; }
.barcode svg { width: 100%; height: 100%; fill: currentColor; }

.ticket-body { padding: 22px 24px 24px; }
.ticket-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 90%;
  font-size: clamp(26px, 2.6vw, 32px);
  line-height: 1;
  letter-spacing: -.03em;
}
.ticket-title .serif { display: block; font-size: 1.12em; line-height: 1; color: var(--orange-deep); }
.ticket--dark .ticket-title .serif { color: var(--orange); }
.form-note { margin-top: 10px; font-size: 14px; color: var(--t-fg-2); }
.form-card-head { margin-bottom: 18px; }

/* Selo giratório (adesivo no canto do ingresso) */
.seal { width: 112px; height: 112px; overflow: visible; }
.seal text { font: 500 10.5px var(--f-mono); letter-spacing: 1.6px; fill: currentColor; }
.seal--ticket {
  position: absolute;
  top: -44px; right: -34px;
  z-index: 2;
  color: var(--ink);
}
/* Gira só o texto por dentro do SVG: a caixa do selo fica parada
   (girar o elemento inteiro faz a caixa "crescer" e gera rolagem lateral no celular) */
.seal-rot { transform-origin: 60px 60px; animation: rotate 22s linear infinite; }
@media (max-width: 1099px) {
  .seal--ticket { top: -46px; right: -6px; width: 96px; height: 96px; }   /* dentro da tela */
}
.seal--ticket circle { fill: var(--orange); }
.seal-arrow { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes rotate { to { transform: rotate(360deg); } }

/* ---------- Campos ---------- */
.lead-form { display: grid; gap: 14px; }
.field label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--t-fg);
}
.field label .mono { font-size: 10px; color: var(--t-fg-2); }
.input-wrap input {
  width: 100%;
  height: 46px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1.5px solid var(--t-line);
  border-radius: 0;
  background: transparent;
  color: var(--t-fg);
  font-size: 17px;               /* ≥16px: sem zoom automático no iOS */
  font-weight: 500;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s ease;
}
.input-wrap { position: relative; }
.input-wrap::after {             /* sublinhado laranja que cresce no foco */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--orange-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.ticket--dark .input-wrap::after { background: var(--orange); }
.input-wrap:focus-within::after { transform: scaleX(1); }
.input-wrap input::placeholder { color: var(--t-fg-2); opacity: .7; }
.input-wrap input:-webkit-autofill,
.input-wrap input:-webkit-autofill:hover,
.input-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--t-fg);
  caret-color: var(--t-fg);
  -webkit-box-shadow: 0 0 0 1000px var(--t-bg) inset;
  box-shadow: 0 0 0 1000px var(--t-bg) inset;
  transition: background-color 9999s ease-out 0s;
}
.field.is-invalid input { border-bottom-color: var(--t-err); }
.field.is-valid input { border-bottom-color: var(--green); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--t-err); }
.field-error:empty { display: none; }
.field-error .suggest { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn-cta { margin-top: 8px; }
.form-status { font-size: 14px; color: var(--t-err); text-align: center; }
.form-status:empty { display: none; }
.form-privacy { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 10.5px; color: var(--t-fg-2); text-align: center; }
.form-privacy .icon { font-size: 13px; }

.shake { animation: shake .45s var(--ease); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* ---------- Sucesso: carimbo ---------- */
.form-success { display: grid; gap: 12px; text-align: left; outline: none; }
.form-success h3 { font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.form-success p { color: var(--t-fg-2); font-size: 15px; margin-bottom: 6px; }
.stamp {
  justify-self: start;
  padding: 6px 14px;
  border: 3px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  font: 800 20px/1 var(--f-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  animation: stamp .7s var(--spring) both;
}
@keyframes stamp { 0% { opacity: 0; transform: rotate(-7deg) scale(2.4); } 55% { opacity: 1; } 100% { transform: rotate(-7deg) scale(1); } }

/* ---------- Lista de fatos (dl) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.facts > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts > div:nth-child(odd) { padding-right: 16px; }
.facts dt { font-size: 10.5px; color: var(--fg-3); margin-bottom: 4px; }
.facts dd { font-size: 12.5px; color: var(--fg); text-transform: none; letter-spacing: .01em; }

/* ---------- CTA fixo no mobile ---------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 58;
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(15, 17, 17, 0), rgba(15, 17, 17, .92) 40%);
  transform: translate3d(0, 110%, 0);
  transition: transform .5s var(--ease);
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 1100px) { .sticky-cta { display: none; } }
