:root {
  --bg: #0a0e0a;
  --card: #12160f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --text-secondary: #a1a1aa;
  --primary: #8aa61b;
  --primary-hover: #729014;
  --primary-bright: #b9d732;
  --accent-orange: #f5a623;
  --error: #ef4444;

  --radius-card: 32px;
  --radius-field: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-display {
  font-family: var(--font-display);
}

/* Soft lime-green gradient glow behind the card */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 900px 600px at 50% 0%,
      rgba(138, 166, 27, 0.18) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 700px 500px at 85% 100%,
      rgba(245, 166, 35, 0.08) 0%,
      transparent 60%
    );
}

.wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 20px;
}

/* O conteúdo fica solto no fundo, sem uma caixa/cartão ao redor — só os
   campos de resposta e os botões têm um "bloco" próprio (ver .input-wrap
   e .btn), no mesmo espírito da landing page do workshop. Cada .screen
   define sua própria largura (a intro é mais larga, pra caber a imagem
   do ingresso ao lado do texto); o .card em si só centraliza a coluna. */
.card {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.top-logo {
  height: 56px;
  width: auto;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .top-logo {
    height: 46px;
  }
}

/* Barra de progresso (perguntas 1 a 5, escondida na intro/sucesso/erro) */
.progress {
  width: 100%;
  max-width: 420px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-bright) 100%);
  transition: width 0.35s var(--ease);
}

/* Screens */
.screen {
  width: 100%;
  max-width: 560px;
  animation: screen-enter 0.45s var(--ease);
}

.screen-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro: imagem do ingresso à esquerda, texto à direita, numa coluna mais larga */
.screen[data-screen="intro"] {
  max-width: 920px;
}

.intro-layout {
  display: flex;
  align-items: center;
  gap: 48px;
  text-align: left;
}

.intro-image {
  flex: 1.1;
  min-width: 0;
}

.intro-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.55));
  animation: ticket-float 6s ease-in-out infinite;
}

@keyframes ticket-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

.intro-content {
  flex: 1;
  min-width: 0;
}

.intro-content .eyebrow,
.intro-content .title,
.intro-content .subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

@media (max-width: 760px) {
  .intro-layout {
    flex-direction: column;
    text-align: center;
  }

  .intro-image {
    max-width: 320px;
  }

  .intro-content .eyebrow,
  .intro-content .title,
  .intro-content .subtitle {
    text-align: center;
  }
}

/* [hidden] is only in the UA stylesheet, so an explicit `display` above (like
   .screen-center's `flex`) outranks it by specificity and keeps showing —
   this rule wins on specificity regardless of source order and actually hides it. */
.screen[hidden] {
  display: none;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-orange);
  text-align: center;
  margin: 0 0 10px;
}

.title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.015em;
  text-align: center;
}

.subtitle {
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

#start-btn {
  margin-top: 4px;
}

/* Step wizard (perguntas em etapas) */
.question {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  margin: 8px 0 32px;
  letter-spacing: -0.015em;
}

.accent {
  color: var(--primary-bright);
}

.step-nav {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.step-nav .btn {
  flex: 1;
}

/* Form + fields */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border-radius: var(--radius-field);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.input-wrap:focus-within {
  border-color: rgba(138, 166, 27, 0.7);
  box-shadow: 0 0 0 4px rgba(138, 166, 27, 0.18);
}

.input-wrap input,
.input-wrap select {
  flex: 1;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 0 16px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.input-wrap select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
}

.input-wrap select option {
  background: var(--card);
  color: var(--text);
}

.input-wrap-textarea {
  position: relative;
  height: auto;
  align-items: stretch;
}

.input-wrap-textarea textarea {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 15px;
  padding: 14px 16px 26px;
  font-family: inherit;
  resize: vertical;
  min-height: 84px;
}

.char-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  pointer-events: none;
}

.char-counter.is-complete {
  color: var(--primary-bright);
}

.input-wrap input::placeholder,
.input-wrap-textarea textarea::placeholder {
  color: #5a5a63;
}

.field-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  position: relative;
  width: 100%;
  height: 56px;
  border-radius: var(--radius-field);
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.2s var(--ease),
    transform 0.15s var(--ease),
    opacity 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.985);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-primary {
  background: var(--primary);
  color: #0a0e0a;
  box-shadow: 0 8px 24px -8px rgba(138, 166, 27, 0.55);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
}

/* Spinner (hidden by default, shown via .is-loading on the button) */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(10, 14, 10, 0.3);
  border-top-color: #0a0e0a;
  animation: spin 0.7s linear infinite;
}

.btn.is-loading .btn-label {
  opacity: 0.85;
}

.btn.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success / error result screens */
.result-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  animation: pop-in 0.5s var(--ease);
}

.result-icon svg {
  width: 100%;
  height: 100%;
}

.result-icon-success {
  color: var(--primary-bright);
}

.result-icon-error {
  color: var(--error);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.screen-center .btn {
  max-width: 260px;
  margin-top: 8px;
}

.footer-note {
  font-size: 12.5px;
  color: #57575f;
  text-align: center;
  margin: 0;
}

/* WhatsApp support block */
.whatsapp-support {
  text-align: center;
  padding: 4px 8px;
}

.whatsapp-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.whatsapp-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 0 32px rgba(37, 211, 102, 0.45);
  transition:
    background-color 0.2s var(--ease),
    transform 0.15s var(--ease);
}

.whatsapp-btn:hover {
  background: #1ebd5a;
}

.whatsapp-btn:active {
  transform: scale(0.98);
}

.whatsapp-icon {
  width: 22px;
  height: 22px;
}

/* Responsive */
@media (max-width: 480px) {
  .wrapper {
    padding: 24px 20px;
  }

  .title {
    font-size: 22px;
  }

  .question {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen,
  .result-icon,
  .intro-image img {
    animation: none !important;
  }

  .btn:active:not(:disabled) {
    transform: none;
  }
}
