/* =============================================
   ESTILOS GERAIS SIMPLIFICADOS
   ============================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  background-color: #f8fafc;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   BARRA DE PROGRESSO INTERATIVA E RESPONSIVA
   ============================================= */

.progress-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 2rem;
  padding: 0 10px;
}

.progress-bar-container {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

/* Linha de fundo da barra de progresso */
.progress-bar-container::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  z-index: 1;
}

/* Barra de progresso que se move */
.progress-bar {
  position: absolute;
  top: 15px;
  left: 0;
  height: 4px;
  background-color: #1a3d7c;
  border-radius: 2px;
  z-index: 2;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

/* Container dos passos */
.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

/* Estilo para cada passo */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 0;
  cursor: pointer;
  transition: all 0.3s;
}

.progress-step:not(:last-child) {
  margin-right: 10px;
}

/* Círculos dos passos */
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #64748b;
  margin-top: 3px;
  margin-bottom: 8px;
  transition: all 0.3s;
  cursor: pointer;
  z-index: 4;
  user-select: none;
}

.step-circle:hover {
  transform: scale(1.1);
}

/* Labels dos passos */
.step-label {
  font-size: 12px;
  text-align: center;
  color: #64748b;
  font-weight: 500;
  transition: color 0.3s;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
}

/* Estados dos passos */
.step-circle.completed {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

.step-label.completed {
  color: #10b981;
  font-weight: 600;
}

.step-circle.current {
  background-color: #1a3d7c;
  border-color: #1a3d7c;
  color: white;
  box-shadow: 0 0 0 3px rgba(26, 61, 124, 0.2);
  transform: scale(1.1);
}

.step-label.current {
  color: #1a3d7c;
  font-weight: 700;
}

.step-circle.pending {
  background-color: white;
  border-color: #e2e8f0;
  color: #94a3b8;
}

.step-label.pending {
  color: #94a3b8;
}

/* =============================================
   ESTILOS DOS PASSOS DO FORMULÁRIO
   ============================================= */

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* =============================================
   BOTÕES COM POSIÇÃO FIXA
   ============================================= */

/* Container principal dos botões */
.step-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

/* Estilo específico para os botões Voltar e Próximo */
.btn-voltar {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-voltar:hover {
  background-color: #e2e8f0;
}

.btn-proximo {
  background-color: #1a3d7c;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.btn-proximo:hover {
  background-color: #153061;
}

.btn-pdf {
  background-color: #10b981;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.btn-pdf:hover {
  background-color: #0da271;
}

/* Botões gerais (mantendo compatibilidade) */
.btn-primary {
  background-color: #1a3d7c;
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background-color: #153061;
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #475569;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-success {
  background-color: #10b981;
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-success:hover {
  background-color: #0da271;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-warning:hover {
  background-color: #d97706;
}

/* =============================================
   SEÇÃO DE FOTO SIMPLIFICADA
   ============================================= */

.foto-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #cbd5e0;
}

.foto-upload-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.foto-preview-container {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.foto-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1a3d7c;
  display: none;
}

.foto-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border: 2px dashed #94a3b8;
  cursor: pointer;
  transition: background-color 0.2s;
}

.foto-placeholder:hover {
  background-color: #dbeafe;
}

.foto-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.foto-placeholder span {
  font-size: 0.8rem;
  text-align: center;
  padding: 0 0.5rem;
}

.foto-input {
  display: none;
}

.btn-remove-foto {
  background-color: #ef4444;
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.btn-remove-foto:hover {
  background-color: #dc2626;
}

/* =============================================
   ITENS DE EXPERIÊNCIA E FORMAÇÃO
   ============================================= */

.experience-item,
.education-item {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

/* =============================================
   MODAIS SIMPLIFICADOS
   ============================================= */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f8fafc;
}

.modal-header h3 {
  color: #1f2937;
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.modal-body {
  padding: 1rem;
  max-height: 60vh;
  overflow: auto;
}

#image-cropper {
  max-width: 100%;
  max-height: 300px;
  display: block;
  margin: 0 auto;
}

.modal-buttons {
  padding: 1rem;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background-color: #f9fafb;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.modal-buttons button {
  min-width: 120px;
}

/* =============================================
   MODAL DE PRÉVIA DO PDF
   ============================================= */

#pdf-preview-modal {
  background-color: rgba(0, 0, 0, 0.85);
}

#pdf-preview-container {
  background-color: white;
  border-radius: 12px;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#pdf-preview-container h3 {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  background-color: #1a3d7c;
  color: white;
  text-align: center;
}

#pdf-preview-frame {
  flex: 1;
  width: 100%;
  border: none;
}

#pdf-preview-buttons {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  background-color: #f9fafb;
}

#pdf-preview-buttons button {
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pdf-preview-download-btn {
  background-color: #1a3d7c;
  color: white;
}

#pdf-preview-download-btn:hover {
  background-color: #153061;
}

#pdf-preview-close-btn {
  background-color: #e5e7eb;
  color: #374151;
}

#pdf-preview-close-btn:hover {
  background-color: #d1d5db;
}

/* =============================================
   FORMULÁRIOS E INPUTS
   ============================================= */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="month"],
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background-color: white;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1a3d7c;
  box-shadow: 0 0 0 2px rgba(26, 61, 124, 0.1);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
}

/* =============================================
   RESPONSIVIDADE MOBILE-FIRST
   ============================================= */

/* Dispositivos muito pequenos */
@media (max-width: 360px) {
  .progress-step {
    min-width: 40px;
  }
  
  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .step-label {
    font-size: 9px;
    max-width: 40px;
  }
  
  .btn-voltar,
  .btn-proximo,
  .btn-pdf {
    padding: 10px 16px;
    font-size: 15px;
    min-width: 100px;
  }
  
  .foto-preview-container {
    width: 100px;
    height: 100px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .progress-wrapper {
    padding: 0 5px;
    margin-bottom: 1.5rem;
  }
  
  .step-circle {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  
  .step-label {
    font-size: 10px;
    max-width: 60px;
    white-space: normal;
    line-height: 1.1;
  }
  
  .progress-bar-container::before {
    top: 14px;
    height: 3px;
  }
  
  .progress-bar {
    top: 14px;
    height: 3px;
  }
  
  /* Scroll horizontal para muitos passos em telas pequenas */
  .progress-steps {
    overflow-x: auto;
    padding-top: 0;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  
  .progress-steps::-webkit-scrollbar {
    height: 4px;
  }
  
  .progress-steps::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
  }
  
  .progress-steps::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }
  
  /* Botões em mobile */
  .step-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 1.5rem;
  }
  
  .btn-voltar,
  .btn-proximo,
  .btn-pdf {
    width: 100%;
    max-width: 300px;
  }
  
  .btn-voltar {
    order: 2;
  }
  
  .btn-proximo,
  .btn-pdf {
    order: 1;
  }
}

/* Desktop (acima de 768px) */
@media (min-width: 769px) {
  .step-buttons {
    flex-direction: row;
  }
  
  .btn-voltar {
    order: 1;
  }
  
  .btn-proximo,
  .btn-pdf {
    order: 2;
  }
}

/* =============================================
   CHECKBOX E RADIO
   ============================================= */

input[type="checkbox"],
input[type="radio"] {
  accent-color: #1a3d7c;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

/* =============================================
   SCROLLBAR SUAVE
   ============================================= */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =============================================
   ESTILOS PARA LISTAS COM MARCADORES
   ============================================= */

.bullet-list {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.bullet-list li {
  margin-bottom: 4px;
  line-height: 1.4;
}

.list-textarea {
  font-family: 'Courier New', monospace;
  line-height: 1.5;
  white-space: pre;
}

.list-preview {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  margin-top: 8px;
  font-size: 14px;
}

.list-preview ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
}

.list-preview li {
  margin-bottom: 4px;
}

/* =============================================
   ESTILOS DE CONTAINER
   ============================================= */

.bg-white.rounded-2xl.shadow-lg {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* =============================================
   ANIMAÇÕES PARA TRANSITION
   ============================================= */

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.step-circle.current {
  animation: pulse 2s infinite;
}

/* =============================================
   MELHORIAS PARA EXIBIÇÃO DE ATIVIDADES
   ============================================= */

/* Estilo para as listas dentro dos itens de experiência */
.experience-item .bullet-list {
  margin-top: 6px;
  margin-bottom: 6px;
}

.experience-item .bullet-list li {
  margin-bottom: 3px;
  font-size: 14px;
  line-height: 1.4;
}

/* Destaque para o label "Atividades desenvolvidas:" */
.experience-item .text-sm.font-medium.text-gray-600 {
  font-weight: 600;
  margin-bottom: 4px;
}

/* Espaçamento melhorado para itens de experiência */
.experience-item {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

/* Responsividade para listas em mobile */
@media (max-width: 768px) {
  .experience-item .bullet-list li {
    font-size: 13px;
  }
  
  .experience-item {
    padding: 1rem;
  }
}