/* Estilos personalizados */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
/* Esconde o input original de radio/checkbox */
.option-card input[type="radio"], .option-card input[type="checkbox"] {
    display: none;
}
/* Estilo do card quando o input associado é selecionado */
.option-card input:checked + div {
    background: #7951B4;
    border-color: #B3D540;
    color: #fff !important;
    box-shadow: none;
}

.option-card input:checked + div svg, .option-card input:checked + div span {
    color: #fff !important;
}

/* Evita quebra estranha nas opções de resposta do formulário */
.option-card .font-medium {
  white-space: normal;
  word-break: break-word;
  text-align: center;
  line-height: 1.4;
}

/* Garante que o pronome dinâmico fique inline e não quebre linha */
.pet-name-placeholder-pronoun {
  display: inline !important;
  white-space: pre;
}


.form-input {
    border: 2px solid #d1d5db; /* cinza claro padrão */
    border-radius: 0.5rem;
    padding: 1rem 1.25rem; /* padding lateral extra */
    font-size: 1.125rem;
    color: #374151;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}
.form-input:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px #e9d5ff;
}
.btn {
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem;
    padding-left: 2rem; /* px-8 */
    padding-right: 2rem;
    border-radius: 0.5rem; /* rounded-lg */
    font-weight: 600; /* font-semibold */
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    width: auto;
    min-width: 120px;
    box-sizing: border-box;
}
.btn-primary {
    background-color: #B9D44A;
    color: #222;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    border-radius: 2rem;
    box-shadow: 2px 4px 0 #8650B8;
    border: 2px solid #8650B8;
    letter-spacing: 0.03em;
}
.btn-primary:hover {
    background-color: #A2C23A;
    color: #222;
}
.btn-secondary {
    background: transparent;
    color: #4B5563;
    border: 1px solid #D1D5DB;
}
.btn-secondary:hover {
    background: #F3F4F6;
}
.question-step {
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    min-height: 140px; /* diminuído de 220px */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.hidden-step {
    opacity: 0;
    transform: translateX(30px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
}
.visible-step {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}
#form-content {
    position: relative;
}
/* Estilos de erro */
.input-error {
    border-color: #EF4444 !important; /* red-500 */
}
.options-error .option-card > div {
    border-color: #EF4444 !important;
}
.error-text {
    color: #EF4444; /* red-500 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.5rem; /* mt-2 */
}

/* HEADLINES E TEXTOS */
.form-title-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.headline {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: #8650B8;
    border-radius: 2rem;
    padding: 0.5rem 2.5rem;
    margin: 0 auto 0.5rem auto;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 8px 0 rgba(137, 110, 192, 0.10);
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    z-index: 2;
}
.subheadline {
    color: #959499;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* CONTAINERS */
.main-container {
    background-color: #F5F3FF; /* bg-purple-50 */
    min-height: 100vh;
    margin: 0;
    padding: 0 0 3rem 0;
    background: url('assets/formulario/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    width: 100%;
    box-sizing: border-box;
}
.form-container {
    max-width: 1000px;
    width: 100%;
    padding: 1rem; /* p-4 */
    margin: 40px auto 0 auto;
    overflow: visible;
}
.form-card {
    background: rgba(255,255,255,0.95);
    padding: 4.5rem 3rem 3rem 3rem;
    border-radius: 1.5rem;
    border: 1.5px solid #B9A6E7;
    box-shadow: 0 2px 24px 0 rgba(137, 110, 192, 0.10);
    position: relative;
    margin-top: 2.5rem;
    width: 100%;
    max-width: 1000px;
    min-height: 400px; /* diminuído de 600px */
    overflow: visible;
    padding-bottom: 100px; /* espaço extra para navegação fixa */
    position: relative;
}
@media (min-width: 640px) {
    .form-container { padding: 1.5rem; margin-top: 56px; max-width: 1000px; }
    .form-card { 
        padding: 2rem 2rem;
        min-height: 800px; /* diminuído de 850px */
        padding-bottom: 140px;
    }
    .main-header { height: 100px; }
    
    /* Para perguntas com poucas opções ou campos de digitação no desktop */
    .form-card.compact-desktop {
        min-height: 600px;
        padding-bottom: 120px;
    }
    
    /* Para perguntas com apenas campo de texto no desktop */
    .form-card.text-only-desktop {
        min-height: 500px;
        padding-bottom: 110px;
    }
    
    /* Para a etapa inicial no desktop */
    .form-card.initial-step-desktop {
        min-height: 450px;
        padding-bottom: 100px;
    }
}
@media (max-width: 699px) {
  .form-card {
    padding: 3rem 1.2rem 2rem 1.2rem;
    min-height: 300px; /* Reduzido de 400px para mobile */
    padding-bottom: 100px; /* Aumentado para garantir espaço para navegação */
  }
  
  /* Para perguntas com poucas opções ou campos de digitação */
  .form-card.compact-mobile {
    min-height: 250px;
    padding-bottom: 90px;
  }
  
  /* Para perguntas com apenas campo de texto */
  .form-card.text-only-mobile {
    min-height: 200px;
    padding-bottom: 80px;
  }
  
  /* Para a etapa inicial (específica) */
  .form-card.initial-step-mobile {
    min-height: 180px;
    padding-bottom: 70px;
  }
}

/* BARRA DE PROGRESSO */
.progress-bar-container {
    width: 100%;
    background: #E5E7EB; /* cinza claro */
    border-radius: 9999px;
    height: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.08);
}
.progress-bar {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%); /* verde-500 para verde-600 */
    height: 100%;
    border-radius: 9999px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 6px rgba(34, 197, 94, 0.15);
}

/* NAVEGAÇÃO */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    z-index: 10;
}
.navigation.center { justify-content: center; }
.navigation.between { justify-content: space-between; }

/* Ajustes específicos para mobile */
@media (max-width: 699px) {
    .navigation {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    
    /* Garante que os botões sejam sempre visíveis */
    .nav-icon-btn {
        min-height: 60px;
        min-width: 60px;
    }
}

/* OUTROS AJUSTES */
.overflow-hidden { overflow: hidden; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(16,16,16,0.1), 0 4px 6px -2px rgba(16,16,16,0.05); }
.max-w-4xl { max-width: 56rem; }
.w-full { width: 100%; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.sm\:p-6 { padding: 1.5rem; }
.sm\:p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-8 { margin-top: 2rem; }

/* === AJUSTE PARA OPÇÕES DE SELEÇÃO IGUAIS E FLEXÍVEIS === */
.grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch; /* Garante altura igual */
    gap: 0.5rem;
    margin: 0 auto;
    width: auto;
    overflow: visible;
}
.grid > .option-card {
    flex: 1 1 160px; /* Cresce até o limite, mas nunca menor que 160px */
    min-width: 160px;
    max-width: 500px; /* Permite crescer mais se o texto for grande */
    width: auto;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    justify-content: stretch;
    align-items: stretch;
    margin-bottom: 8px;
    overflow: visible !important;
    display: flex;
}
.option-card {
  min-height: 180px !important;
  height: 100% !important; /* Garante altura igual na linha */
  overflow: visible !important;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}
.option-card > div {
  min-height: 180px !important;
  height: 100% !important;
  padding: 2rem 0.5rem !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: visible !important;
  width: 100%;
  box-sizing: border-box;
}
.option-card > div {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #F3F2F5;
    border: 2px solid #E1E1E2;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s cubic-bezier(.4,1.3,.6,1);
    color: #333;
    border-radius: 2rem;
}
.option-card > div:hover {
    background: #7951B4;
    border-color: transparent;
    color: #fff !important;

}
.option-card > div:hover span {
    color: #fff !important;
}
.option-card > div span {
  display: block;
  width: 100%;
  text-align: center;
  margin: 0 auto !important;
  white-space: normal; /* Garante quebra de linha natural */
}

/* HEADER */
.main-header {
    width: 100%;
    background: #7951B4;
    box-shadow: 0 1px 0 #eee;
    position: relative;
    z-index: 20;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100px;
    left: 0;
    right: 0;
    top: 0;
}
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 2rem 0.5rem 2rem;
    min-height: 64px;
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
    position: relative;
    height: 100%;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.logo-area {
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    gap: 0.25rem;
}
.logo-box {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: #222;
    letter-spacing: 0.05em;
    margin-right: 0.1em;
}
.logo-magenta {
    font-family: 'Bebas Neue', 'Impact', 'Arial Black', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ec4899;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-align: left;
}
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.nav-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-link {
    color: #222;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link.active,
.nav-link:hover {
    color: #22c55e;
}
.header-actions {
    position: relative;
    display: flex;
    align-items: center;
}
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 120;
    position: relative;
    align-items: center;
    justify-content: center;
}
.menu-toggle .hamburger {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    display: block;
    transition: all 0.3s;
}
.menu-toggle.open .hamburger:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #fff;
}

.menu-toggle.open .hamburger:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .hamburger:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #fff;
}
/* MENU LATERAL */
.side-menu {
    position: absolute;
    top: 48px;
    left: 0;
    right: auto;
    width: 260px;
    background: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 110;
    transition: opacity 0.25s cubic-bezier(.4,0,.2,1), transform 0.25s cubic-bezier(.4,0,.2,1);
    padding: 1.2rem 1rem 1rem 1rem;
    display: none;
    flex-direction: column;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(-10px);
}
.side-menu.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-menu li {
    margin-bottom: 1.1rem;
    display: flex;
    justify-content: center;
}
.side-menu a {
    color: #222;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}
.side-menu a.logout {
    color: #ef4444;
    font-weight: 700;
    justify-content: center;
}
.btn-icon {
    margin-right: 8px;
}

.side-menu a.login-btn,
.side-menu a.conhecer-btn {
    color: #fff;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    width: 180px;
    margin: 0 auto;
}

.side-menu a.login-btn {
    background-color: #8650B8;
}

.side-menu a.login-btn:hover {
    background-color: #7340a8;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(134, 80, 184, 0.3);
}

.side-menu a.conhecer-btn {
    background-color: #B9D44A;
}

.side-menu a.conhecer-btn:hover {
    background-color: #a8c339;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(185, 212, 74, 0.3);
}
.side-menu a:hover {
    color: #22c55e;
}

/* Estilos de hover específicos já definidos acima */
.menu-divider {
    border-bottom: 1px solid #eee;
    margin: 1.2rem auto;
    width: 80%;
}
.menu-close {
    display: none !important;
    text-align: center;
}
.side-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.side-menu-backdrop.show {
    display: block;
}
@media (max-width: 600px) {
    .header-content { 
        padding: 0.5rem 20px; 
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .header-left {
        grid-column: 1;
        display: flex;
        justify-content: flex-start;
    }
    .header-actions {
        grid-column: 2;
        display: flex;
        justify-content: center;
        position: relative;
        left: auto;
        transform: none;
    }
    .menu-toggle {
        position: relative;
        left: 0;
        transform: none;
    }
    .side-menu {
        right: auto;
        left: 0;
        transform: none;
        width: 280px;
        min-width: 280px;
        max-width: 85vw;
        padding: 0.7rem 0.3rem 0.7rem 0.3rem;
        position: fixed;
        top: 100px;
        margin-top: 10px;
        z-index: 200;
    }
    .side-menu ul li a {
        font-size: 1rem;
        padding: 0.6rem 0.5rem;
    }
    .side-menu a.login-btn,
    .side-menu a.conhecer-btn {
        width: 160px;
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .btn-icon {
        width: 14px;
        height: 14px;
    }
    .logo-magenta { font-size: 2rem; }
}

.nav-icon-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0.5rem;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s cubic-bezier(.4,1.3,.6,1);
}
.nav-icon-btn img {
    width: 82px;
    height: 75.42px;
    display: block;
    transition: transform 0.18s cubic-bezier(.4,1.3,.6,1);
}
.nav-icon-btn:hover,
.nav-icon-btn:focus {
    outline: none;
    transform: scale(1.12);
}
.nav-icon-btn:active {
    transform: scale(1.22);
}
@media (max-width: 700px) {
    .nav-icon-btn img {
        width: 48px;
        height: 44px;
    }
}

/* GRID DE DADOS PESSOAIS */
@media (min-width: 700px) {
  .personal-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 1.5rem;
    align-items: center;
    justify-items: stretch;
    width: 100%;
    max-width: 700px;
    margin: 0 auto 0.5rem auto;
  }
  .personal-data-grid > *,
  .personal-data-grid .relative {
    width: 100%;
    box-sizing: border-box;
    grid-column: auto;
  }
  .personal-data-grid .full-width {
    grid-column: 1 / 3;
  }
  .protein-none-wide {
    grid-column: span 2;
  }
}
@media (max-width: 699px) {
  .form-container {
    padding: 0.5rem;
    margin-top: 16px;
  }
  .form-card {
    padding: 2.5rem 1.5rem 2.5rem 1.5rem;
    border-radius: 1rem;
    min-height: 680px; /* diminuído de 420px */
    padding-bottom: 80px;
  }
  .question-step {
    padding-top: 12px;
    min-height: 100px; /* diminuído de 180px */
  }
  .headline {
    font-size: 1.2rem;
    padding: 0.3rem 1.2rem;
    border-radius: 1.2rem;
    margin-top: 20px;
  }
  .subheadline {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  /* Correção específica para campos de data no mobile */
  input[type="date"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    border: 2px solid #d1d5db !important;
    border-radius: 0.5rem !important;
    background-color: #fff !important;
    color: #374151 !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
  
  input[type="date"]:focus {
    border-color: #8B5CF6 !important;
    box-shadow: 0 0 0 2px #e9d5ff !important;
  }
  
  /* Garantir que o container do campo de data tenha largura completa */
  .question-step input[type="date"] {
    min-width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important;
  }
  
  /* Correção para o container space-y-4 no mobile */
  .space-y-4 {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .space-y-4 > * {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Correção para o checkbox e label no mobile */
  .question-step label.inline-flex {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
  }
  
  .question-step input[type="checkbox"] {
    margin-right: 0.5rem !important;
    flex-shrink: 0 !important;
  }
  
  /* Apenas para labels específicos, não para cards de opções */
  .question-step label.inline-flex span {
    flex: 1 !important;
    text-align: left !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  /* Garantir que os cards de opções mantenham texto centralizado */
  .option-card .font-medium {
    text-align: center !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
  }
  
  .grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    width: 100%;
    margin: 0 auto;
    align-items: stretch;
  }
  .grid > .option-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: 90px;
    max-height: 90px;
    margin-bottom: 0;
    display: flex;
  }
  .option-card {
    min-height: 110px !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
  }
  .option-card > div {
    min-height: 110px !important;
    padding: 0.7rem 0.2rem !important;
  }
  .personal-data-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 1.2rem;
  }
  .nav-icon-btn img {
    width: 64px;
    height: 58px;
  }
  #step_initial .grid {
    margin-bottom: 1.2rem;
  }
  .navigation {
    bottom: 1.2rem;
    left: 0.7rem;
    right: 0.7rem;
  }
}

/* Centralização do botão de confirmação na etapa de dados pessoais */
.confirm-btn-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1rem;
  position: relative;
  z-index: 20;
}
.confirm-btn-wrapper .btn {
  min-width: 180px;
  max-width: 90%;
} 

/* Ajuste exclusivo para etapa de dados pessoais */
.form-card-user-data {
    min-height: 850px;
    padding-bottom: 180px;
}
@media (max-width: 699px) {
  .form-card-user-data {
    min-height: 600px;
    padding-bottom: 150px;
  }
} 

.option-icon {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px;
  max-height: 100px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 699px) {
  .option-icon {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px;
    max-height: 56px;
  }
  .option-card > div {
    padding: 0.2rem !important;
  }
}

/* Aumentar padding dos boxes das opções de seleção na versão desktop */
.option-card > div {
  padding: 2.5rem 0.5rem !important;
  min-height: 180px;
} 

@media (max-width: 699px) {
  .option-card {
    min-height: 110px !important;
  }
  .option-card > div {
    min-height: 110px !important;
    padding: 0.7rem 0.3rem !important;
  }
  .grid > .option-card {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
  }
} 

.option-card > div {
  text-align: center !important;
}
.option-icon {
  margin: 0 auto !important;
} 

@media (max-width: 699px) {
  .option-card > div:hover,
  .option-card > div:active,
  .option-card input:checked + div {
    transform: none !important;
  }
  
  /* Manter estilos de seleção funcionando no mobile */
  .option-card input:checked + div {
    background: #7951B4 !important;
    border-color: #B3D540 !important;
    color: #fff !important;
  }
  
  .option-card input:checked + div span {
    color: #fff !important;
  }
  
  /* Remover hover em mobile para evitar background roxo persistente */
  .option-card > div:hover {
    background: #fff !important;
    border-color: #e5e7eb !important;
    color: #333 !important;
  }
  
  .option-card > div:hover span {
    color: #333 !important;
  }
  
  /* Garantir que opções não selecionadas tenham estilo padrão */
  .option-card > div:not(:hover) {
    background: #fff;
    border-color: #e5e7eb;
    color: #333;
  }
  
  .option-card > div:not(:hover) span {
    color: #333;
  }
} 

@media (min-width: 700px) {
  .grid > .protein-none-wide {
    max-width: 240px !important;
    min-width: 180px !important;
    width: auto !important;
    margin-left: 0;
    margin-right: 0;
  }
  .protein-none-wide {
    min-height: 180px !important;
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
  }
  .protein-none-wide > div {
    min-height: 180px !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
} 

.force-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .force-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === ESTILOS EXTRAÍDOS DO INDEX.PHP === */

/* Estilos para etapas do formulário */
.question-step {
    display: block;
}

.hidden-step {
    display: none !important;
}

.visible-step {
    display: block !important;
}

/* Estilos para autocompletar de raças */
.suggestion-item {
    transition: background-color 0.2s ease;
    font-size: 1rem;
    color: #374151;
}

.suggestion-item:hover {
    background-color: #f3e8ff !important;
}

.suggestion-item:first-child {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.suggestion-item:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Estilos para opções desabilitadas */
.option-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

.option-card.disabled .option-icon {
    opacity: 0.3;
}

.option-card.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Garantir que as sugestões apareçam */
#breed_suggestions_0,
#breed_suggestions_1,
#breed_suggestions_2,
#breed_suggestions_3 {
    position: absolute !important;
    z-index: 9999 !important;
    background: white !important;
    border: 1px solid #ccc !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    width: 100% !important;
    top: 100% !important;
    left: 0 !important;
}

#breed_suggestions_0.hidden,
#breed_suggestions_1.hidden,
#breed_suggestions_2.hidden,
#breed_suggestions_3.hidden {
    display: none !important;
}

/* Estilos de scrollbar para containers com overflow */
.max-h-64.overflow-y-auto,
.max-h-48.overflow-y-auto,
.max-h-96.overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f5f9;
}

.max-h-64.overflow-y-auto::-webkit-scrollbar,
.max-h-48.overflow-y-auto::-webkit-scrollbar,
.max-h-96.overflow-y-auto::-webkit-scrollbar {
    width: 6px;
}

.max-h-64.overflow-y-auto::-webkit-scrollbar-track,
.max-h-48.overflow-y-auto::-webkit-scrollbar-track,
.max-h-96.overflow-y-auto::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.max-h-64.overflow-y-auto::-webkit-scrollbar-thumb,
.max-h-48.overflow-y-auto::-webkit-scrollbar-thumb,
.max-h-96.overflow-y-auto::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* Reduzir tamanho dos ícones na versão desktop */
@media (min-width: 768px) {
  .option-icon {
    width: 80px !important;
    height: 80px !important;
  }
}

@media (max-width: 699px) {
  .user-data-grid { grid-template-columns: 1fr !important; }
  .user-data-grid .full-width { grid-column: 1 / 2 !important; }
}

/* Estilos para botões de seleção */
.btn-select-all, .btn-deselect-all {
    padding: 0.5rem 1rem;
    border: 2px solid #8650B8;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin: 0 0.25rem 0.5rem 0.25rem;
    background: transparent;
    color: #8650B8;
}

.btn-select-all:hover, .btn-deselect-all:hover {
    background: #8650B8;
    color: white;
}