

/* ========== CAPTCHA ========== */
.captcha {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;

  overflow: hidden;

}


/* telas pequenas */
@media (max-width: 430px) {
  .captcha {
    transform: scale(0.75);
     transform-origin: 0 0;
    -webkit-transform: scale(0.75);
    -webkit-transform-origin: 0 0;
    max-width: 230px;
    max-height: 100px;
  }
  .captcha iframe {
    transform: scale(0.75);
  transform-origin: 0 0;
    -webkit-transform: scale(0.75);
  -webkit-transform-origin: 0 0;
  }
}

/* ========== MOBILE AJUSTES ========== */
@media (max-width: 768px) {
  .grad-hero {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

   .flip-container {
    max-width: 100%;
    perspective: none;
  }

  .flip-card {
    transform: none !important;
    transition: none !important;
    min-height: auto;
  }

  .flip-face {
    position: relative !important;
    width: 100%;
    height: auto;
    transform: none !important;
    backface-visibility: visible !important;
    visibility: visible !important;
    display: none; /* inicia escondido */
  }

  .flip-card:not(.flipped) .flip-face.front {
    display: block;
  }

  .flip-card.flipped .flip-face.back {
    display: block;
    top: 0;
  }

  .flip-card .captcha {
    margin: 1rem 0;
  }

  .flip-card:not(.flipped) .flip-face.front,
  .flip-card.flipped .flip-face.back {
    display: block;
  }

  form.glass {
    padding: 1.5rem;
    gap: 0.75rem;
  }

  /* Botões PF/PJ */
  #tabsCadastro {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mobile-direction{
    flex-direction: row !important;
  }

  .tab-btn {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }

  /* Inputs */
  input {
    font-size: 0.95rem;
    padding: 0.65rem 0.9rem;
  }

  /* Checkbox e botão lado a lado */
  .flex.items-center.justify-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .flex.items-center.justify-between button {
    width: 100%;
  }

  /* Texto menor e legível */
  label {
    font-size: 0.85rem;
  }

  /* Aumenta contraste */
  .glass input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  /* Botão criar conta */
  .glass button {
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 0.75rem;
  }

  /* Espaço inferior */
  #formCadastro {
    margin-bottom: 1rem;
  }
}

/* GRID MOBILE: empilha tudo */
@media (max-width: 768px) {
  footer .max-w-7xl {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
  }

  footer .md\:col-span-3,
  footer .md\:col-span-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  footer .border-l {
    border: none !important;
    padding-left: 0 !important;
  }

  footer img {
    max-width: 180px;
  }

  footer .text-white\/60 {
    text-align: center;
  }

  footer .flex.flex-col.md\:flex-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }

  footer .flex.flex-col.gap-2 {
    align-items: center;
  }

  footer .flex.flex-col.items-start {
    align-items: center !important;
    text-align: center !important;
  }

  footer .md\:ml-10,
  footer .md\:mr-10 {
    margin: 0 !important;
  }

  footer .mt-10 {
    margin-top: 2rem;
  }
}

/* Ajuste extra para telas muito pequenas */
@media (max-width: 400px) {
  footer img {
    max-width: 160px;
  }

  footer a.px-5 {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  footer .text-sm {
    font-size: 0.75rem;
  }
}

/* Desktop mantém 2 colunas */
@media (min-width: 768px) {
  .grad-hero .max-w-7xl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    padding: 6rem 2rem;
  }
}

/* ========= AJUSTES MOBILE ========= */
@media (max-width: 768px) {
  .grad-hero h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    text-align: center;
  }

  .grad-hero p {
    font-size: 1rem;
    text-align: center;
  }

  .grad-hero .flex.flex-wrap.gap-3 {
    justify-content: center;
  }

  .grad-hero .flex.flex-wrap.items-center.gap-2 {
    justify-content: center;
    text-align: center;
  }

  .grad-hero a.px-5.py-3 {
    font-size: 0.95rem;
    padding: 0.7rem 1.1rem;
  }

  /* corrige espaçamento inferior entre elementos */
  .grad-hero .mt-7 {
    margin-top: 1.5rem;
  }

  .grad-hero .mt-8 {
    margin-top: 1.5rem;
  }

  /* mantém o texto amarelo bem visível */
  .grad-hero span.text-yellow-400 {
    display: inline-block;
    line-height: 1.4;
  }
}

/* Header fixo com leve blur */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Animações suaves */
#mobileMenu {
  animation: slideDown 0.3s ease;
}

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

/* Ajuste de z-index pro menu não sumir atrás de nada */
#mobileMenu {
  position: relative;
  z-index: 50;
}
