:root {
  --terracota: #a2473f;
  --terracota-light: #c47068;
  --verde: #334827;
  --verde-light: #4a6b37;
  --bege: #eee0c6;
  --preto: #1e1e1e;
  --fundo: #101110;
  --cinza: #e9e9e9;
  --glass: rgba(18, 18, 18, 0.82);
  --glass-strong: rgba(24, 24, 23, 0.94);
  --border: rgba(238, 224, 198, 0.09);
  --border-hover: rgba(238, 224, 198, 0.2);
  --text-secondary: rgba(238, 224, 198, 0.6);
  --text-muted: rgba(238, 224, 198, 0.34);
  --display: "Gloria Hallelujah", cursive;
  --body: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--fundo);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--bege);
  background:
    radial-gradient(circle at 50% 20%, rgba(51, 72, 39, 0.1), transparent 34rem),
    linear-gradient(180deg, #151615 0%, #101110 60%, #0d0e0d 100%);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.texture {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed;
  z-index: -4;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.1;
}

.ambient-red {
  top: -18rem;
  left: -16rem;
  background: var(--terracota);
}

.ambient-green {
  right: -17rem;
  bottom: -20rem;
  background: var(--verde-light);
}

.doodle {
  position: fixed;
  z-index: -2;
  top: 10vh;
  width: min(21vw, 330px);
  height: 78vh;
  fill: none;
  stroke: rgba(238, 224, 198, 0.055);
  stroke-width: 1.2;
  pointer-events: none;
}

.doodle-left {
  left: 0;
}

.doodle-right {
  right: 0;
}

.shell {
  width: min(980px, calc(100% - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: 26px 0 20px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
}

.brand-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

.logo-link img {
  display: block;
  width: auto;
  height: 30px;
  opacity: 0.82;
  filter: brightness(0) saturate(100%) invert(92%) sepia(16%) saturate(574%) hue-rotate(345deg) brightness(101%);
}

.brand-line {
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, var(--terracota), var(--verde-light));
}

.brand-bar p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.form-card {
  align-self: center;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--glass);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.progress-wrap {
  padding: 25px 34px 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(238, 224, 198, 0.08);
}

#progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--terracota), var(--verde-light));
  box-shadow: 0 0 18px rgba(74, 107, 55, 0.55);
  transition: width 0.35s ease;
}

.step {
  display: none;
  min-height: 550px;
  padding: 54px 64px 62px;
  animation: enter 0.35s ease both;
}

.step.is-active {
  display: block;
}

.step-intro.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  align-items: center;
  gap: 54px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.mini-label {
  margin: 0;
  color: var(--terracota-light);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid rgba(162, 71, 63, 0.42);
  border-radius: 100px;
  background: rgba(162, 71, 63, 0.1);
}

.eyebrow i,
.method-tags i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--verde-light);
  box-shadow: 0 0 12px rgba(74, 107, 55, 0.65);
}

.intro-copy h1,
.step-heading h2,
.question-card h2,
.success h2 {
  font-family: var(--display);
  font-weight: 400;
}

.intro-copy h1 {
  margin: 24px 0 18px;
  color: var(--bege);
  font-size: clamp(30px, 3.15vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.intro-copy h1 em {
  display: block;
  color: var(--verde-light);
  font-style: normal;
}

.intro-text {
  max-width: 570px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.intro-text strong {
  color: var(--bege);
  font-weight: 500;
}

.method-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.method-tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: rgba(238, 224, 198, 0.72);
  font-size: 9px;
  font-weight: 500;
}

.method-tags i.red {
  background: var(--terracota);
  box-shadow: 0 0 12px rgba(162, 71, 63, 0.72);
}

.time-note {
  margin: 18px 0 0;
  color: var(--verde-light);
  font-size: 11px;
  font-weight: 600;
}

.time-note span {
  margin-right: 6px;
  color: var(--bege);
}

.question-card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--glass-strong);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.question-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 54px;
  height: 3px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--terracota), var(--verde-light));
}

.question-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.question-topline > span {
  color: var(--terracota-light);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.question-card h2 {
  margin: 18px 0 4px;
  color: var(--bege);
  font-size: 25px;
  line-height: 1.35;
}

.question-copy {
  margin: 0 0 20px;
  color: var(--text-secondary);
  font-size: 11px;
}

.name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field {
  display: block;
}

.field > span {
  display: block;
  margin: 0 0 8px 3px;
  color: rgba(238, 224, 198, 0.7);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.phone-field {
  width: 100%;
  min-height: 55px;
  border: 1px solid rgba(238, 224, 198, 0.11);
  border-radius: 14px;
  color: var(--bege);
  background: rgba(8, 9, 8, 0.66);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input {
  padding: 0 16px;
}

.field-large {
  max-width: 720px;
}

.field-large input {
  min-height: 68px;
  font-size: 15px;
}

.field input::placeholder,
.phone-field input::placeholder {
  color: rgba(238, 224, 198, 0.25);
}

.field input:focus,
.phone-field:focus-within {
  border-color: rgba(74, 107, 55, 0.95);
  background: rgba(12, 14, 11, 0.86);
  box-shadow: 0 0 0 3px rgba(74, 107, 55, 0.13), 0 0 26px rgba(51, 72, 39, 0.16);
}

.step:not(.step-intro) {
  max-width: 820px;
  margin: 0 auto;
  padding-top: 76px;
}

.step-heading h2 {
  margin: 24px 0 8px;
  color: var(--bege);
  font-size: clamp(34px, 4.6vw, 48px);
  line-height: 1.28;
}

.step-heading > p:last-child {
  max-width: 640px;
  margin: 0 0 30px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.phone-field {
  display: grid;
  grid-template-columns: 82px 1fr;
  max-width: 720px;
  min-height: 68px;
}

.phone-prefix {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  color: var(--terracota-light);
  font-weight: 600;
}

.phone-field input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: var(--bege);
  background: transparent;
  outline: none;
  font-size: 15px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice {
  position: relative;
  min-height: 112px;
  cursor: pointer;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.choice > span {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 20px 52px 20px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text-secondary);
  background: rgba(238, 224, 198, 0.025);
  font-size: 11px;
  transition: all 0.22s ease;
}

.choice strong {
  color: var(--bege);
  font-size: 15px;
  font-weight: 600;
}

.choice i {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  border: 1px solid rgba(238, 224, 198, 0.22);
  border-radius: 50%;
}

.choice i::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: var(--verde-light);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.choice:hover > span {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.choice input:checked + span {
  border-color: rgba(74, 107, 55, 0.78);
  background: rgba(51, 72, 39, 0.23);
  box-shadow: inset 0 0 0 1px rgba(74, 107, 55, 0.16), 0 15px 35px rgba(0, 0, 0, 0.2);
}

.choice input:checked ~ i {
  border-color: var(--verde-light);
}

.choice input:checked ~ i::after {
  transform: scale(1);
}

.field-error,
.submit-error {
  min-height: 18px;
  margin: 8px 0 2px;
  color: var(--terracota-light);
  font-size: 10px;
}

[aria-invalid="true"] {
  border-color: var(--terracota) !important;
}

.actions {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(220px, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 100px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border: 1px solid rgba(94, 133, 71, 0.55);
  color: #f3ead9;
  background: linear-gradient(135deg, var(--verde), var(--verde-light));
  box-shadow: 0 16px 35px rgba(51, 72, 39, 0.24), inset 0 1px rgba(255, 255, 255, 0.05);
}

.button-primary:hover {
  border-color: rgba(94, 133, 71, 0.85);
  box-shadow: 0 20px 44px rgba(51, 72, 39, 0.34);
}

.button-secondary {
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
  background: rgba(238, 224, 198, 0.025);
}

.button-secondary:hover {
  border-color: rgba(162, 71, 63, 0.45);
  color: var(--bege);
}

.button-full {
  width: 100%;
  margin-top: 12px;
}

.button:focus-visible,
input:focus-visible,
.choice input:focus-visible + span {
  outline: 2px solid var(--terracota-light);
  outline-offset: 3px;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.success {
  min-height: 550px;
  padding: 76px 64px;
  text-align: center;
  animation: enter 0.4s ease both;
}

.success-mark {
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 107, 55, 0.6);
  border-radius: 50%;
  background: rgba(51, 72, 39, 0.22);
  box-shadow: 0 0 45px rgba(51, 72, 39, 0.22);
}

.success-mark span {
  color: var(--verde-light);
  font-family: var(--display);
  font-size: 31px;
}

.success h2 {
  margin: 24px 0 10px;
  color: var(--bege);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.2;
}

.success h2 span {
  color: var(--verde-light);
}

.success > p:not(.eyebrow) {
  max-width: 570px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.75;
}

.success .button {
  min-width: 270px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  position: fixed;
  inset: auto 20px 20px;
  z-index: 10;
  padding: 16px;
  border: 1px solid var(--terracota);
  border-radius: 14px;
  color: var(--bege);
  background: var(--preto);
  text-align: center;
}

@media (max-width: 820px) {
  .shell {
    width: min(680px, calc(100% - 28px));
  }

  .step-intro.is-active {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .intro-copy h1 {
    max-width: 650px;
  }

  .question-card {
    max-width: 620px;
  }

  .doodle {
    width: 28vw;
    opacity: 0.65;
  }
}

@media (max-width: 600px) {
  .shell {
    width: calc(100% - 20px);
    padding: 14px 0 12px;
    gap: 12px;
  }

  .brand-bar {
    min-height: 30px;
  }

  .logo-link img {
    height: 24px;
  }

  .brand-line {
    width: 30px;
  }

  .brand-bar p {
    font-size: 8px;
  }

  .form-card {
    border-radius: 24px;
  }

  .progress-wrap {
    padding: 16px 18px 0;
  }

  .step,
  .step:not(.step-intro) {
    min-height: 0;
    padding: 24px 18px 28px;
  }

  .step-intro.is-active {
    gap: 16px;
  }

  .eyebrow {
    padding: 6px 11px;
    font-size: 8px;
  }

  .intro-copy h1 {
    margin: 12px 0 8px;
    font-size: clamp(20px, 5.8vw, 23px);
    line-height: 1.12;
  }

  .intro-text {
    font-size: 10px;
    line-height: 1.45;
  }

  .method-tags {
    display: none;
  }

  .method-tags li {
    padding: 6px 9px;
    font-size: 7.5px;
  }

  .time-note {
    margin-top: 9px;
    font-size: 8px;
  }

  .question-card {
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .question-card h2 {
    margin-top: 10px;
    font-size: 19px;
  }

  .question-copy {
    margin-bottom: 11px;
    font-size: 8.5px;
  }

  .name-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .field > span {
    margin-bottom: 6px;
    font-size: 8px;
  }

  .field input,
  .phone-field {
    min-height: 48px;
  }

  .field-large input,
  .phone-field {
    min-height: 54px;
  }

  .step-heading h2 {
    margin: 18px 0 8px;
    font-size: clamp(29px, 9vw, 39px);
    line-height: 1.22;
  }

  .step-heading > p:last-child {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 90px;
  }

  .actions {
    grid-template-columns: 0.62fr 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .button {
    min-height: 52px;
    gap: 8px;
    font-size: 10px;
  }

  .success {
    min-height: 520px;
    padding: 48px 20px;
  }

  .success-mark {
    width: 62px;
    height: 62px;
  }

  .success > p:not(.eyebrow) {
    font-size: 11px;
  }

  .success .button {
    min-width: min(270px, 100%);
  }

  footer {
    display: none;
  }

  .doodle {
    width: 54vw;
    opacity: 0.45;
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .shell {
    padding-top: 14px;
    padding-bottom: 12px;
    gap: 12px;
  }

  .step,
  .success {
    min-height: 510px;
    padding-top: 42px;
    padding-bottom: 44px;
  }

  .intro-copy h1 {
    font-size: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
