/* ============================================================
   Estilos utilitários da LP — complementam o Tailwind.
   Mantidos aqui para que index.html fique legível.
   ============================================================ */

/* Evita o zoom automático do iOS ao focar inputs (fonte < 16px) */
input,
select,
textarea {
  font-size: 16px;
}

/* Remove as setinhas dos inputs number (melhor no mobile) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ---------- Campos ---------- */
.field {
  display: block;
}

.lbl {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b; /* slate-800 */
}

.req {
  color: #dc2626; /* red-600 */
}

/* `input.inp` (e não apenas `.inp`) para vencer o reset do plugin
   @tailwindcss/forms, que aplica estilos via seletor de atributo. */
input.inp {
  margin-top: 0.5rem;
  display: block;
  width: 100%;
  height: 3.25rem; /* 52px — confortável para o polegar */
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1; /* slate-300 */
  background-color: #fff;
  padding: 0 1rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input.inp::placeholder {
  color: #94a3b8; /* slate-400 */
}

input.inp:focus {
  border-color: #1e4bc8; /* brand-600 */
  box-shadow: 0 0 0 3px rgba(53, 102, 227, 0.18);
}

/* Estado de erro */
input.inp.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.err {
  display: none;
  margin-top: 0.375rem;
  font-size: 13px;
  font-weight: 500;
  color: #dc2626;
}

.err.is-visible {
  display: block;
}

/* ---------- Radio / Checkbox estilizados como cartões ---------- */
.choice {
  display: block;
  cursor: pointer;
}

.choice-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 0.75rem;
  border: 1px solid #cbd5e1;
  background-color: #fff;
  padding: 0 1rem;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #334155; /* slate-700 */
  transition: all 0.15s ease;
}

/* Alinhado à esquerda quando é lista de produtos */
.choice-box--wide {
  justify-content: flex-start;
  text-align: left;
}

.choice input:checked + .choice-box {
  border-color: #1e4bc8;
  background-color: #eef4ff;
  color: #0b3b8c;
  box-shadow: inset 0 0 0 1px #1e4bc8;
}

.choice input:focus-visible + .choice-box {
  box-shadow: 0 0 0 3px rgba(53, 102, 227, 0.28);
}

.choice-box::before {
  content: "";
  margin-right: 0.75rem;
  display: none;
  height: 1.25rem;
  width: 1.25rem;
  flex-shrink: 0;
  border-radius: 0.375rem;
  border: 2px solid #cbd5e1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
}

.choice-box--wide::before {
  display: block;
}

.choice input:checked + .choice-box--wide::before {
  border-color: #1e4bc8;
  background-color: #1e4bc8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

.choice-box.is-invalid,
.is-invalid .choice-box {
  border-color: #dc2626;
}

/* ---------- Spinner do botão ---------- */
.spinner {
  height: 1.15rem;
  width: 1.15rem;
  border-radius: 9999px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

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

/* ---------- Revelação suave do campo condicional ---------- */
.reveal {
  animation: reveal 0.25s ease-out;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Honeypot anti-spam ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Respeita usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
