:root {
      --gold: #BA9B40;
      --gold-soft: #d8c07a;
      --text: #fff7e8;
      --muted: rgba(255, 247, 232, 0.72);
      --dark: #140d0a;
      --card: rgba(18, 10, 7, 0.52);
      --border: rgba(216, 192, 122, 0.32);
      --danger: #ffd6d6;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      width: 100%;
      min-height: 100%;
      font-family: Inter, Arial, Helvetica, sans-serif;
      color: var(--text);
      background: var(--dark);
      overflow-x: hidden;
    }

    body {
      min-height: 100vh;
      background-image:
        linear-gradient(90deg, rgba(16, 9, 6, 0.34) 0%, rgba(16, 9, 6, 0.34) 32%, rgba(16, 9, 6, 0.58) 52%, rgba(16, 9, 6, 0.82) 100%),
        linear-gradient(180deg, rgba(16, 9, 6, 0.14) 0%, rgba(16, 9, 6, 0.45) 100%),
        url("fundo.webp");
      background-size: cover;
      background-position: center center;
      background-repeat: no-repeat;
    }

    main {
      width: 100%;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding: clamp(24px, 5vw, 80px);
    }

    .form-shell {
      width: min(100%, 610px);
      min-height: 560px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(18, 10, 7, 0.52), rgba(18, 10, 7, 0.28));
      border: 1px solid var(--border);
      border-radius: 34px;
      padding: clamp(28px, 4vw, 56px);
      box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .step {
      width: 100%;
      display: none;
      animation: fadeUp 420ms ease both;
    }

    .step.active {
      display: block;
    }

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

    .eyebrow {
      font-size: 0.78rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--gold-soft);
      margin-bottom: 18px;
      font-weight: 700;
    }

    .counter {
      color: var(--muted);
      font-size: 0.92rem;
      margin-bottom: 18px;
    }

    h1, h2 {
      font-family: Georgia, "Times New Roman", serif;
      font-weight: 500;
      line-height: 1.06;
      letter-spacing: -0.035em;
      color: var(--text);
    }

    h1 {
      font-size: clamp(2.35rem, 5vw, 4.65rem);
      margin-bottom: 22px;
    }

    h2 {
      font-size: clamp(2rem, 4vw, 3.55rem);
      margin-bottom: 24px;
    }

    p {
      color: var(--muted);
      font-size: clamp(1rem, 1.4vw, 1.14rem);
      line-height: 1.62;
      max-width: 520px;
      margin-bottom: 28px;
    }

    .gold {
      color: var(--gold-soft);
    }

    .options {
      display: grid;
      gap: 12px;
      margin-top: 26px;
    }

    .option {
      width: 100%;
      border: 1px solid rgba(216, 192, 122, 0.30);
      background: rgba(255, 247, 232, 0.06);
      color: var(--text);
      border-radius: 18px;
      padding: 18px 20px;
      text-align: left;
      font-size: 1.02rem;
      line-height: 1.3;
      cursor: pointer;
      transition: 180ms ease;
    }

    .option:hover,
    .option:focus {
      outline: none;
      background: rgba(186, 155, 64, 0.18);
      border-color: rgba(216, 192, 122, 0.72);
      transform: translateY(-1px);
    }

    .field {
      width: 100%;
      margin-top: 26px;
    }

    input, textarea {
      width: 100%;
      border: none;
      border-bottom: 2px solid rgba(216, 192, 122, 0.52);
      background: transparent;
      color: var(--text);
      font-size: clamp(1.35rem, 2.6vw, 2rem);
      padding: 14px 2px;
      outline: none;
      font-family: Inter, Arial, Helvetica, sans-serif;
    }

    textarea {
      min-height: 116px;
      resize: vertical;
      line-height: 1.35;
    }

    input::placeholder,
    textarea::placeholder {
      color: rgba(255, 247, 232, 0.38);
    }

    .microcopy {
      color: rgba(255, 247, 232, 0.58);
      font-size: 0.92rem;
      margin-top: 14px;
    }

    .action-row {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 24px;
      flex-wrap: wrap;
    }

    .primary {
      border: 1px solid rgba(216, 192, 122, 0.75);
      background: linear-gradient(135deg, var(--gold), #87651f);
      color: #1b1009;
      font-weight: 800;
      padding: 15px 24px;
      border-radius: 999px;
      cursor: pointer;
      font-size: 1rem;
      transition: 180ms ease;
    }

    .primary:hover {
      transform: translateY(-1px);
      filter: brightness(1.06);
    }

    .back {
      border: none;
      background: transparent;
      color: rgba(255, 247, 232, 0.62);
      cursor: pointer;
      font-size: 0.95rem;
      padding: 12px 0;
    }

    .back:hover {
      color: var(--text);
    }

    .error {
      display: none;
      color: var(--danger);
      font-size: 0.95rem;
      margin-top: 12px;
    }

    .progress {
      position: fixed;
      top: 0;
      left: 0;
      height: 4px;
      width: 100%;
      background: rgba(255, 247, 232, 0.08);
      z-index: 2;
    }

    .bar {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, #8f6c21, #d8c07a);
      transition: width 300ms ease;
    }

    .final-box {
      border: 1px solid rgba(216, 192, 122, 0.32);
      border-radius: 24px;
      padding: 22px;
      background: rgba(255, 247, 232, 0.06);
      margin-top: 24px;
    }

    .final-box strong {
      color: var(--gold-soft);
    }

    @media (max-width: 980px) {
      body {
        background-position: 34% center;
      }

      main {
        justify-content: center;
        align-items: flex-end;
        padding: 24px;
        min-height: 100svh;
      }

      .form-shell {
        min-height: auto;
        border-radius: 28px;
        padding: 28px;
        background: rgba(18, 10, 7, 0.72);
      }
    }

    @media (max-width: 560px) {
      body {
        background-image:
          linear-gradient(180deg, rgba(16, 9, 6, 0.14) 0%, rgba(16, 9, 6, 0.70) 48%, rgba(16, 9, 6, 0.96) 100%),
          url("fundo.webp");
        background-position: 39% top;
      }

      main {
        padding: 18px;
      }

      .form-shell {
        padding: 24px 20px;
        border-radius: 24px;
      }

      h1 {
        font-size: 2.38rem;
      }

      h2 {
        font-size: 2rem;
      }

      .option {
        padding: 16px;
      }
    }