/* ============================================
   FORMULÁRIO UNIFICADO v13 - DESIGN COM TIMELINE
   Inspirado no acompanhamento de pedido
   Documento no Brasil
   ============================================ */

/* ============================================
   VARIÁVEIS DE CORES
   ============================================ */
:root {
  --cor-primaria: #4F6BED;
  --cor-primaria-hover: #3d56d6;
  --cor-texto: #1a1a2e;
  --cor-texto-secundario: #4a4a68;
  --cor-texto-claro: #6b6b8a;
  --cor-borda: #e1e4f0;
  --cor-borda-focus: #4F6BED;
  --cor-fundo: #f5f6fa;
  --cor-fundo-card: #ffffff;
  --cor-fundo-selecionado: #eef0fd;
  --cor-sucesso: #10b981;
  --cor-erro: #ef4444;
}

/* ============================================
   LAYOUT GERAL
   ============================================ */
body {
  background: var(--cor-fundo);
}

/* ============================================
   TIMELINE LATERAL
   ============================================ */
.timeline-sidebar {
  background: var(--cor-fundo-card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -20px;
  width: 2px;
  background: var(--cor-borda);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cor-sucesso);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot.active {
  background: var(--cor-primaria);
}

.timeline-dot.pending {
  background: #fff;
  border: 2px solid var(--cor-borda);
}

.timeline-content h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--cor-texto);
  margin: 0 0 4px 0;
}

.timeline-content p {
  font-size: 12px;
  color: var(--cor-texto-claro);
  margin: 0;
}

/* ============================================
   SEÇÕES DO FORMULÁRIO
   ============================================ */
.form-section {
  background: var(--cor-fundo-card);
  border: 1px solid var(--cor-borda);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form-section h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cor-texto);
  margin-bottom: 8px;
  margin-top: 0;
}

.subtitle-txt {
  font-size: 14px;
  color: var(--cor-texto-secundario);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ============================================
   CAMPOS DE INPUT
   ============================================ */
.input-field {
  margin-bottom: 20px;
  width: 100%;
}

.input-field > label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--cor-texto);
  margin-bottom: 8px;
}

.input-field input[type="text"],
.input-field input[type="email"],
.input-field input[type="tel"],
.input-field select,
.input-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--cor-borda);
  border-radius: 10px;
  font-size: 15px;
  color: var(--cor-texto);
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}

.input-field input:focus,
.input-field select:focus,
.input-field textarea:focus {
  outline: none;
  border-color: var(--cor-borda-focus);
  box-shadow: 0 0 0 4px rgba(79, 107, 237, 0.1);
}

/* ============================================
   DATA DE NASCIMENTO
   ============================================ */
.date-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.date-row select {
  flex: 1;
  min-width: 0;
  padding: 14px 12px;
}

/* ============================================
   OPÇÕES (RADIO E CHECKBOX)
   ============================================ */
.opcao-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--cor-borda);
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 16px;
  transition: all 0.2s;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  cursor: pointer;
}

.opcao-item:hover {
  border-color: #c0c0c0;
  background: #fafbfc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.opcao-item.selecionado {
  border-color: var(--cor-primaria);
  background: var(--cor-fundo-selecionado);
}

.opcao-item > input[type="radio"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  margin: 2px 0 0 0 !important;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--cor-primaria);
  border-radius: 50% !important;
  pointer-events: auto !important;
  z-index: 10;
}

.opcao-item > input[type="checkbox"] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  margin: 2px 0 0 0 !important;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--cor-primaria);
  border-radius: 6px !important;
  pointer-events: auto !important;
  z-index: 10;
}

.opcao-item > label.opcao-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  flex: 1;
  gap: 16px;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  position: relative !important;
  font-size: inherit !important;
  color: inherit !important;
  min-width: 0;
  pointer-events: auto !important;
  z-index: 5;
}

.opcao-conteudo {
  flex: 1;
  min-width: 0;
  pointer-events: none;
}

.opcao-conteudo h5 {
  font-size: 16px;
  font-weight: 700;
  color: var(--cor-texto);
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.opcao-conteudo p {
  font-size: 14px;
  color: var(--cor-texto-claro);
  margin: 0;
  line-height: 1.5;
}

.opcao-preco {
  font-size: 16px;
  font-weight: 700;
  color: var(--cor-sucesso);
  white-space: nowrap;
  flex-shrink: 0;
  pointer-events: none;
}

/* ============================================
   BOTÃO CONTINUAR
   ============================================ */
.form-actions-final {
  margin-top: 32px;
  padding: 24px 0;
  text-align: center;
}

.button-continue {
  background: var(--cor-primaria);
  color: white;
  border: none;
  padding: 16px 48px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  width: auto;
  min-width: 250px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(79, 107, 237, 0.3);
}

.button-continue:hover {
  background: var(--cor-primaria-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 107, 237, 0.4);
}

/* ============================================
   ALERTAS
   ============================================ */
.alert-block {
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.alert-warning {
  background: #fff8e1;
  border: 1px solid #ffe082;
  color: #f57c00;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
  .form-section {
    padding: 20px;
    border-radius: 12px;
  }
  
  .form-section h1 {
    font-size: 18px;
  }
  
  .opcao-item {
    padding: 16px;
    gap: 12px;
  }
  
  .opcao-item > label.opcao-label {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  
  .opcao-preco {
    margin-left: 38px;
  }
  
  .button-continue {
    width: 100%;
    min-width: auto;
  }
}
