/* ==========================================================
   resgatar.css — estende BB-Style.css, sem alterar as cores
   já definidas (--yellow, --yellow-soft, --black, --white,
   --gray-text). Só adiciona tons de apoio para formulário
   e estados de sucesso/erro.
   ========================================================== */

:root {
  --cream: #FAF8F1;
  --line: #E8E1C8;
  --green: #1F9D55;
  --green-soft: #E7F6EC;
  --red: #D64545;
  --red-soft: #FBEAEA;
}

body.resgatar {
  background: var(--cream);
}

/* ---------- Wrapper central ---------- */

.resgatar-main {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 48px 20px 64px;
}

.resgatar-card {
  width: 100%;
  max-width: 480px;
}

/* ---------- Selo / stamp (elemento de assinatura) ---------- */

.stamp {
  width: 92px;
  height: 92px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  transform: rotate(-6deg);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
}

.stamp svg {
  width: 44px;
  height: 44px;
}

.stamp.stamp--success {
  background: var(--green-soft);
  border-color: var(--green);
  transform: rotate(0deg) scale(1.05);
}

/* ---------- Progresso (3 etapas) ---------- */

.progresso {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.progresso__passo {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  border: 2px solid var(--black);
  transition: background 0.25s ease;
}

.progresso__passo.ativo {
  background: var(--yellow);
}

.progresso__passo.concluido {
  background: var(--black);
}

/* ---------- Título da etapa ---------- */

.etapa__eyebrow {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 6px;
}

.etapa__titulo {
  text-align: center;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.2;
}

.etapa__subtitulo {
  text-align: center;
  font-size: 15px;
  color: var(--gray-text);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ---------- Formulário ---------- */

.campo {
  margin-bottom: 18px;
}

.campo label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.campo input[type="text"],
.campo input[type="tel"],
.campo input[type="email"],
.campo input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
}

.campo input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 1px;
}

.campo--erro input {
  border-color: var(--red);
  background: var(--red-soft);
}

.campo__erro-texto {
  display: none;
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.campo--erro .campo__erro-texto {
  display: block;
}

/* Checkbox "manter conectado" */

.checkbox-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.checkbox-linha input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--yellow);
  border: 2px solid var(--black);
  flex-shrink: 0;
}

.checkbox-linha label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-text);
}

.checkbox-linha label a {
  color: var(--black);
  font-weight: 700;
  text-decoration: underline;
}

.checkbox-linha--erro label {
  color: var(--red);
}

.checkbox-linha--erro input[type="checkbox"] {
  border-color: var(--red);
}

/* Widget do hCaptcha (login, esqueci a senha, criar acesso) */

.h-captcha {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

/* ---------- Botão largura total, já usa .btn .btn--filled do style.css ---------- */

.btn--full {
  width: 100%;
}

.btn--secundario {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
  width: 100%;
  margin-top: 10px;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ---------- Card de confirmação do negócio encontrado ---------- */

.negocio-encontrado {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  background: var(--yellow-soft);
  display: flex;
  gap: 14px;
  align-items: center;
}

.negocio-encontrado__icone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--black);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
}

.negocio-encontrado__nome {
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 2px;
}

.negocio-encontrado__categoria {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0;
}

/* ---------- Lista de negócios selecionáveis (quando há mais de um) ---------- */

.negocio-item {
  border: 2px solid var(--black);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--white);
  transition: background 0.15s ease;
}

.negocio-item:has(> .negocio-item__header input:checked) {
  background: var(--yellow-soft);
}

.negocio-item__header {
  display: flex;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}

.negocio-item__header input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--yellow);
  border: 2px solid var(--black);
  flex-shrink: 0;
}

.negocio-item__nome {
  font-weight: 800;
  font-size: 15px;
  margin: 0 0 2px;
}

.negocio-item__categoria {
  font-size: 13px;
  color: var(--gray-text);
  margin: 0;
}

.negocio-item__prazo {
  font-size: 12.5px;
  color: var(--gray-text);
  margin: 10px 0 12px;
  padding-left: 36px;
}

/* ---------- Escolha de plano (pílulas lado a lado) ---------- */

.negocio-item__planos {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding-left: 36px;
  flex-wrap: wrap;
}

.mini-plano {
  border: 2px solid var(--black);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: var(--white);
}

.mini-plano:has(input:checked) {
  background: var(--yellow);
}

.mini-plano input[type="radio"] {
  width: 15px;
  height: 15px;
  accent-color: var(--black);
  margin: 0;
}

/* ---------- Boost opcional ---------- */

.mini-boost {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 36px;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-text);
  cursor: pointer;
}

.mini-boost input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
  border: 2px solid var(--black);
  flex-shrink: 0;
}

/* ---------- Mensagem de status (erro geral / info) ---------- */

.aviso {
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}

.aviso.mostrar {
  display: block;
}

.aviso--erro {
  background: var(--red-soft);
  color: var(--red);
  border: 2px solid var(--red);
}

.aviso--info {
  background: var(--yellow-soft);
  color: var(--black);
  border: 2px solid var(--black);
}

/* ---------- Etapa de sucesso ---------- */

.sucesso__lista {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sucesso__lista li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--gray-text);
  font-weight: 600;
}

.sucesso__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Spinner de carregamento ---------- */

.spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  display: inline-block;
  animation: girar 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* ---------- Responsivo ---------- */

@media (max-width: 480px) {
  .resgatar-main {
    padding: 32px 16px 48px;
  }

  .negocio-encontrado {
    flex-direction: column;
    text-align: center;
  }
}