/* CSS principal extraído do index.html */

/* Correção para campos de data no iOS */
input[type="date"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  -webkit-appearance: none;
  appearance: none;
  background-color: white !important;
}

/* Garantir que todos os inputs tenham largura consistente */
input[type="text"], 
input[type="email"], 
input[type="date"], 
input[type="tel"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Correção específica para campos de dependentes */
#dependentes-list input[type="date"] {
  background-color: white !important;
  background: white !important;
}

/* Correção específica para campo de data de nascimento */
.date-input-fix {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: left !important;
  background-color: white !important;
}

/* Correção adicional para iOS Safari */
@supports (-webkit-touch-callout: none) {
  .date-input-fix {
    text-align: left !important;
    background-color: white !important;
  }
  
  /* Correção específica para campos de data no iOS */
  input[type="date"] {
    text-align: left !important;
    background-color: white !important;
  }
  
  /* Alinhamento à esquerda para todos os elementos de data */
  input[type="date"]::-webkit-datetime-edit {
    text-align: left !important;
    padding-left: 0 !important;
  }
  
  /* Alinhamento específico para campos de dependentes */
  #dependentes-list input[type="date"]::-webkit-datetime-edit {
    text-align: left !important;
    padding-left: 0 !important;
  }
  
  /* Placeholder personalizado para iOS */
  input[type="date"]::-webkit-datetime-edit-text {
    color: #9ca3af !important;
  }
  
  input[type="date"]::-webkit-datetime-edit-month-field,
  input[type="date"]::-webkit-datetime-edit-day-field,
  input[type="date"]::-webkit-datetime-edit-year-field {
    color: #9ca3af !important;
    text-align: left !important;
  }
  
  /* Quando tem valor, cor normal e alinhamento à esquerda */
  input[type="date"]:valid::-webkit-datetime-edit-month-field,
  input[type="date"]:valid::-webkit-datetime-edit-day-field,
  input[type="date"]:valid::-webkit-datetime-edit-year-field {
    color: #374151 !important;
    text-align: left !important;
  }
  
  /* Alinhamento específico para dependentes quando tem valor */
  #dependentes-list input[type="date"]:valid::-webkit-datetime-edit-month-field,
  #dependentes-list input[type="date"]:valid::-webkit-datetime-edit-day-field,
  #dependentes-list input[type="date"]:valid::-webkit-datetime-edit-year-field {
    color: #374151 !important;
    text-align: left !important;
  }
}

/* Correção específica para Android */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  input[type="date"] {
    text-align: left !important;
    background-color: white !important;
  }
  
  #dependentes-list input[type="date"] {
    text-align: left !important;
    background-color: white !important;
  }
  
  input[type="date"]::-webkit-datetime-edit {
    text-align: left !important;
    padding-left: 0 !important;
  }
  
  #dependentes-list input[type="date"]::-webkit-datetime-edit {
    text-align: left !important;
    padding-left: 0 !important;
  }
  
  input[type="date"]::-webkit-datetime-edit-month-field,
  input[type="date"]::-webkit-datetime-edit-day-field,
  input[type="date"]::-webkit-datetime-edit-year-field {
    text-align: left !important;
  }
  
  #dependentes-list input[type="date"]::-webkit-datetime-edit-month-field,
  #dependentes-list input[type="date"]::-webkit-datetime-edit-day-field,
  #dependentes-list input[type="date"]::-webkit-datetime-edit-year-field {
    text-align: left !important;
  }
}

/* Correção para scroll no iOS quando modal está ativo */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

/* Correção específica para iOS Safari - apenas para scroll da página */
@supports (-webkit-touch-callout: none) {
  body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

/* Transições suaves para os steps do formulário */
.form-step {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateX(0);
}

.form-step.slide-out {
  opacity: 0;
  transform: translateX(-20px);
  pointer-events: none;
}

.form-step.slide-in {
  opacity: 0;
  transform: translateX(20px);
  animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animação para transição automática dos indicadores de etapa */
.step-indicator.transitioning {
  animation: pulse-success 0.6s ease-in-out;
}

@keyframes pulse-success {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Definindo as cores da identidade visual como variáveis do Tailwind */
:root {
    --brand-deep-teal: #005768; /* Cor principal do logo */
    --brand-vibrant-green: #22c55e; /* Cor de destaque do logo */
    --brand-gray: #6b7280; /* Cor secundária do logo */
}

body {
    font-family: 'Raleway', sans-serif;
    background-color: #f8fafc; /* Um cinza muito claro para o fundo */
}

/* Gradiente sutil para a seção principal */
.hero-gradient {
    background: linear-gradient(145deg, #f0fdf4 0%, #e0f2fe 100%);
}

/* Animação para o botão de CTA */
.cta-button {
    background-color: rgb(0, 140, 255);
    transition: all 0.3s ease-in-out;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(161, 161, 161, 0.3);
}

/* Estilo para os cards de planos */
.plan-card {
    transition: all 0.3s ease-in-out;
    border: 1px solid #e2e8f0;
}
.plan-card:hover {
    transform: none;
    border-color: #3a8dcdff;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* CSS extra para destaque do preço e popover */
.dependente-preco-destaque {
    font-size: 1.25rem;
    font-weight: 800;
    color: #22c55e;
    text-shadow: 0 1px 6px rgba(34,197,94,0.12);
    margin-left: 0.5rem;
}

.popover-elig {
    position: absolute;
    z-index: 50;
    bottom: 110%;
    left: 0;
    min-width: 260px;
    background: #fff;
    color: #222;
    border-radius: 0.75rem;
    box-shadow: 0 8px 32px 0 rgba(31,38,135,0.18);
    border: 1px solid #e5e7eb;
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.4;
    display: none;
    transform: translateY(-8px);
}

.popover-elig.active {
    display: block;
}

@media (max-width: 640px) {
    .popover-elig {
        left: 50%;
        transform: translate(-50%, -8px);
        min-width: 220px;
        max-width: 90vw;
    }
}

.popover-elig-close {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    color: #888;
    cursor: pointer;
    font-size: 1.1rem;
}

#pagamento-form button[type="submit"] {
    background-color: #22c55e !important;
    color: #fff !important;
    border: none !important;
}

#pagamento-form button[type="submit"]:hover {
    background-color: #16a34a !important;
    color: #fff !important;
}

#pagamento-form button[type="submit"]:disabled {
    background-color: #a7f3d0 !important;
    color: #fff !important;
    opacity: 0.7;
}

/* Estilos inline extraídos */
.hero-section {
    background: none;
    margin-top: 30px;
}

.hero-background {
    background-image: url('../img/foto5.jpg');
    filter: brightness(0.20);
}

.check-icon {
    color: #15c880ff;
    margin-right: 0.75rem;
}

.plan-value-container {
    margin-bottom: -10px;
}

.contratar-btn {
    background-color: #22c55e !important;
    color: #fff !important;
    border: none !important;
}

.whatsapp-btn {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.popover-btn {
    cursor: pointer !important;
}

.radio-input {
    min-width: 1.25rem;
    min-height: 1.25rem;
}

/* Estilos para o accordion FAQ */
.faq-question {
    transition: all 0.3s ease;
    cursor: pointer;
    align-items: flex-start;
}

.faq-question:hover {
    background-color: #f8fafc;
}

.faq-question i[data-lucide] {
    transition: transform 0.3s ease;
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    flex-shrink: 0;
}

.faq-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
    min-width: 1.5rem !important;
    min-height: 1.5rem !important;
    flex-shrink: 0;
}

.faq-answer {
    transition: max-height 0.3s ease;
    max-height: 0;
    overflow: hidden;
} 