.problem-selection {
  padding-top: calc(var(--header-height) + 1rem);
  padding-bottom: 2rem;
  transition: filter 0.3s ease;
}

.problem-selection.blurred {
    filter: blur(5px) brightness(0.7);
    pointer-events: none;
    user-select: none;
}

.problem-selection h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: #222;
}

.problem-selection .section-subtitle {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: #555;
}


.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(230, 99, 0, 0.3);
  border-color: #e66300;
}

.highlight {
    margin-top: 2.5rem;
    background-color: #f28c33;
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(230, 99, 0, 0.3);
}

.card-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}
.card-icon .base-icon {
  width: 100%;
  height: 100%;
  display: block;
}
.card-icon .overlay-icon {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}


.card h3 {
    font-size: 1.25rem;
    color: #333;
}

.card-subtitle {
  margin-top: 0.5rem;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* --- ESTILOS PARA O MODAL DE CAPTURA DE LEAD --- */

#lead-capture-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#lead-capture-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

#lead-capture-modal {
  background: #fff;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  border-radius: 12px;
  box-sizing: border-box;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

#lead-capture-overlay.visible #lead-capture-modal {
    transform: scale(1);
}

#lead-capture-modal h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #333;
}
#lead-capture-modal p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #444;
}
.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(254, 119, 9, 0.2);
}

/* --- ESTILO PARA INPUT INVÁLIDO --- */
.form-group input.invalid {
    border-color: #e74c3c; /* Vermelho para indicar erro */
}

.form-group input.invalid:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2); /* Sombra vermelha no foco */
}


.modal-actions {
    text-align: right;
    margin-top: 1.5rem;
}

#btn-lead-continue {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

#btn-lead-continue:hover:not(:disabled) {
    background-color: #e66300;
    transform: scale(1.05);
}

#btn-lead-continue:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}





/* ======================================================= */
/* === ESTILO DO CHECKBOX (ALINHADO E MELHORADO) === */
/* ======================================================= */

/*
 * Container que agrupa o checkbox e o texto.
 * A propriedade 'align-items: center' é a chave para o alinhamento vertical.
*/
.form-group:has(input#aceito-termos) {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9em;
}

/* Garante que a label não tenha estilos que atrapalhem o alinhamento */
.form-group label[for="aceito-termos"] {
    font-weight: normal;
    color: #444;
    margin-top: 8px;
}

/* Esconde o checkbox padrão do navegador */
.form-group input#aceito-termos {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 0.9em; /* Tamanho pequeno */
    height: 0.9em;
    border: 0.11em solid #a0a0a0;
    border-radius: 50%;
    /* REMOVIDO: a linha 'transform' que causava o desalinhamento */
    display: grid;
    place-content: center;
    cursor: pointer;
    margin-right: 0.6em; /* Espaço entre o círculo e o texto */
    flex-shrink: 0;
    transition: all 0.2s ease-in-out;
}

/* Estilo do círculo interno */
.form-group input#aceito-termos::before {
    content: "";
    width: 1.2em;
    height: 1.2em;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--primary);
}

/* Mostra o círculo interno quando o checkbox está marcado */
.form-group input#aceito-termos:checked::before {
    transform: scale(1);
}

/* Muda a cor da borda para laranja quando está marcado */
.form-group input#aceito-termos:checked {
    border-color: var(--primary);
}

/* Adiciona um anel de foco para acessibilidade */
.form-group input#aceito-termos:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 119, 9, 0.3);
}

/* Estilo dos links "Termos de uso" e "Política de Privacidade" */
.form-group a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}




































@media (max-width: 767px) {
  .problem-selection h1 {
    font-size: 1.5rem;
  }
  .problem-selection .section-subtitle {
      font-size: 1rem;
  }
  .cards-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}