.logar {
    display: flex;
    padding: 20px 0px;
    justify-content: space-between;
    align-items: center;
}
.corpo {
    min-height: 80vh;
}

/* Estilos da Declaração de Disponibilidade */
.declaracao-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.declaracao-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.declaracao-title h1 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 5px;
}

.declaracao-title p {
  color: #666;
  font-size: 0.95rem;
}

.preco-box {
  background: linear-gradient(135deg, #00a89d, #008b82);
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  text-align: left;
  min-width: 220px;
}

.preco-box .valor {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.preco-box .descricao {
  font-size: 0.85rem;
  opacity: 0.95;
}

/* Steps Navigation */
.steps-nav {
  display: flex;
  margin-bottom: 30px;
  gap: 0;
}

.step-item {
  flex: 1;
  padding: 15px 20px;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
  background: #f8f9fa;
  color: #666;
}

.step-item:first-child {
  border-radius: 8px 0 0 8px;
}

.step-item:last-child {
  border-radius: 0 8px 8px 0;
}

.step-item.active {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.step-item.completed {
  background: #00a89d;
  color: white;
  border-color: #00a89d;
}

/* Step Content */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* Instruções */
.instrucoes-box {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.instrucoes-lista {
  flex: 1;
}

.instrucoes-lista ol {
  margin: 0;
  padding-left: 25px;
}

.instrucoes-lista li {
  margin-bottom: 5px;
  color: #555;
  list-style-type: decimal;
}

.forma-realizacao {
  min-width: 300px;
}

.forma-realizacao label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.forma-realizacao select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  cursor: pointer;
}

/* Tabela de Cursos */
.cursos-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cursos-table th {
  background: #f8f9fa;
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: #555;
  border-bottom: 2px solid #e0e0e0;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.cursos-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.curso-info {
  text-align: center;
}

.curso-info .curso-nome {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.curso-info .curso-carga {
  color: #666;
  font-size: 0.9rem;
}

.periodo-info {
  text-align: center;
}

.periodo-datas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 5px;
}

.periodo-datas input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.9rem;
}

.periodo-datas .separador {
  color: #666;
}

.alterar-link {
  color: #00a89d;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.alterar-link:hover {
  color: #008b82;
}

.link-ementa {
  color: #00a89d;
  font-size: 0.85rem;
  text-decoration: underline;
  white-space: nowrap;
}

.link-ementa:hover {
  color: #008b82;
}

.btn-adicionar {
  background: #00a89d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
}

.btn-adicionar:hover {
  background: #008b82;
}

.btn-remover {
  background: #f25f5c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s ease;
}

.btn-remover:hover {
  background: #d94845;
}

/* Navigation Buttons */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

.btn-voltar {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.btn-voltar:hover {
  background: #1a252f;
}

.btn-avancar {
  background: #00a89d;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s ease;
}

.btn-avancar:hover {
  background: #008b82;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background-color: #fff;
}

.form-group select {
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #00a89d;
  outline: none;
}

.form-group input:read-only,
.form-group input:disabled,
.form-group select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 200px;
}

.cpf-loading-info {
  margin-top: 8px;
  color: #00a89d;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.declaracao-lista-existentes {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.declaracao-lista-existentes h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #333;
}

.declaracao-existente-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #e0e0e0;
}

.declaracao-existente-item:last-child {
  border-bottom: none;
}

.declaracao-existente-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.declaracao-reenvio-feedback {
  flex: 0 0 100%;
}

.declaracao-lista-existentes .btn-nova-declaracao {
  margin-top: 15px;
}

/* Step 3 - Pagamento */
.resumo-pedido {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.resumo-pedido h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 1.2rem;
}

.resumo-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.resumo-item:last-child {
  border-bottom: none;
  font-weight: bold;
  font-size: 1.1rem;
  color: #00a89d;
}

.metodos-pagamento {
  margin-top: 20px;
}

.metodo-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.metodo-item:hover {
  border-color: #00a89d;
}

.metodo-item.selected {
  border-color: #00a89d;
  background: #f0faf9;
}

.metodo-item input[type="radio"] {
  margin-right: 15px;
  transform: scale(1.3);
}

/* Modal para adicionar curso */
.modal-cursos {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.58);
  z-index: 1100;
  justify-content: center;
  align-items: center;
}

.modal-cursos.active {
  display: flex;
}

.modal-cursos-content {
  background: white;
  padding: 0 0 16px;
  border-radius: 16px;
  max-width: 800px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.modal-cursos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1;
  min-height: 52px;
  padding: 10px 18px;
  background: #103a7c;
}

.modal-cursos-header h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}

.modal-close-btn {
  background: none;
  border: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 21px;
  cursor: pointer;
  color: #fff;
}
.modal-close-btn:hover, .modal-close-btn:focus-visible { color: #dcecff; }
#lista-cursos-disponiveis { padding: 0 18px; }

.curso-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.curso-option:hover {
  border-color: #7eace0;
  background: #f9f9f9;
}

.curso-option-info h4 {
  margin: 0 0 5px 0;
  color: #333;
}

.curso-option-info span {
  color: #666;
  font-size: 0.9rem;
}

.btn-selecionar {
  background: #1667b4;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-selecionar:hover {
  background: #103a7c;
}

.btn-selecionar:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.search-cursos {
  width: calc(100% - 36px);
  padding: 12px 15px;
  border: 1px solid #cfe0f7;
  border-radius: 10px;
  margin: 16px 18px 12px;
  font-size: 1rem;
}

/* Mensagem de erro nas datas */
.erro-data {
  color: #d9534f;
  font-size: 0.8rem;
  margin-top: 5px;
}

.input-erro {
  border-color: #d9534f !important;
}

/* Empty state */
.empty-cursos {
  text-align: center;
  padding: 40px;
  color: #999;
}

.empty-cursos i {
  font-size: 3rem;
  margin-bottom: 15px;
}

/* Alertas Bootstrap customizados */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.alert-container .alert {
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: slideIn 0.3s ease;
}

.periodo-alert-container:empty {
  display: none;
}

.periodo-alert-container {
  margin-top: 20px;
}

.periodo-alert-container .alert {
  margin-bottom: 0;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Input desabilitado */
.periodo-datas input[type="date"]:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
  .declaracao-header {
    flex-direction: column;
  }

  .steps-nav {
    flex-direction: column;
  }

  .step-item {
    border-radius: 0;
  }

  .step-item:first-child {
    border-radius: 8px 8px 0 0;
  }

  .step-item:last-child {
    border-radius: 0 0 8px 8px;
  }

  .instrucoes-box {
    flex-direction: column;
  }

  .forma-realizacao {
    width: 100%;
  }

  .periodo-datas {
    flex-direction: column;
    gap: 5px;
  }

  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn-voltar, .btn-avancar {
    width: 100%;
    justify-content: center;
  }
}
