/* ==========================================================================
   LEMOS - FORMULÁRIO UNIFICADO
   Arquivo: /wp-content/themes/SEU-TEMA/lemos-projeto/assets/lemos-formulario.css
   Versão: 5.0
   Alteração:
   - Cards para seleção múltipla de exames
   - Layout visual para envio conjunto de exames
   - Logística reversa com orientação de embalagem
   - Layout vertical dos horários salivares
   - Coleta de madrugada condicional
   - Coletas adicionais condicionais
   - Aviso visual para possível custo complementar
   ========================================================================== */

.lemos-hp-field{
    position:absolute !important;
    left:-99999px !important;
    opacity:0 !important;
    width:1px !important;
    height:1px !important;
    overflow:hidden !important;
    pointer-events:none !important;
}

.lemos-wrap {
  max-width: 950px;
  margin: 20px auto;
  padding: 40px;
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: #333;
}

.lemos-header {
  text-align: center;
  margin-bottom: 28px;
  border-bottom: 2px solid #004a80;
  padding-bottom: 15px;
}

.lemos-header h3 {
  color: #004a80;
  margin: 0;
  font-size: 26px;
}

/* Barra de testes */
.lemos-testbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  background: #f7f7f7;
  border: 1px dashed #cfcfcf;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.lemos-btn-test {
  background: #ff8f00;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  transition: transform 0.05s ease, opacity 0.2s ease;
}

.lemos-btn-test:hover { opacity: 0.92; }
.lemos-btn-test:active { transform: translateY(1px); }

.lemos-testbar-note {
  font-size: 12px;
  color: #555;
}

/* Grid e colunas */
.lemos-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.lemos-col { flex: 1; min-width: 200px; }
.lemos-col-small { flex: 0 0 100px; min-width: 100px; }
.lemos-col-medium { flex: 0 0 160px; min-width: 160px; }

/* Campos */
.lemos-group { margin-bottom: 18px; position: relative; }

.lemos-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #444;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.lemos-input,
.lemos-select,
.lemos-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.lemos-input:focus,
.lemos-select:focus,
.lemos-textarea:focus {
  outline: none;
  border-color: #004a80;
  box-shadow: 0 0 0 3px rgba(0,74,128,0.12);
}

.lemos-input[readonly] {
  background-color: #f2f2f2;
  color: #555;
  cursor: not-allowed;
  border-color: #ddd;
}

/* Seções */
.lemos-section-title {
  background-color: #f0f7fd;
  padding: 10px 15px;
  margin: 38px 0 18px 0;
  font-weight: 900;
  color: #004a80;
  border-left: 5px solid #004a80;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 6px;
}

/* Seleção múltipla de exames */
.lemos-exames-intro {
  background: #eef7ff;
  border: 1px solid #cfe5f8;
  border-left: 5px solid #004a80;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #28465c;
  margin: 8px 0 16px;
  font-weight: 700;
}

.lemos-exames-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.lemos-exame-card {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 14px 14px;
  border: 2px solid #d8e7f5;
  border-radius: 10px;
  background: #fafcff;
  cursor: pointer;
  transition: all 0.18s ease;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin: 0 !important;
}

.lemos-exame-card:hover {
  border-color: #8db2d4;
  background: #f4f9fe;
  transform: translateY(-1px);
}

.lemos-exame-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lemos-exame-card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #b9cfe2;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
  background: #ffffff;
  transition: all 0.18s ease;
}

.lemos-exame-card-title {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #004a80;
  line-height: 1.35;
}

.lemos-exame-card.is-active {
  border-color: #004a80;
  background: #eef7ff;
  box-shadow: 0 4px 14px rgba(0,74,128,0.12);
}

.lemos-exame-card.is-active .lemos-exame-card-check {
  background: #004a80;
  border-color: #004a80;
  color: #ffffff;
}

.lemos-help-exames {
  background: #fffdf7;
  border: 1px solid #f3e4bd;
  border-left: 5px solid #ffb300;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 14px;
  color: #6b4b00;
  font-weight: 700;
}

/* Boxes por exame */
.lemos-exame-box {
  background: #fafcff;
  border: 1px solid #d8e7f5;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

.lemos-box-title {
  font-weight: 900;
  color: #004a80;
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
}

.lemos-help-campos-exame {
  background: #f8fbff;
  border: 1px solid #e6f0fa;
  border-left: 5px solid #004a80;
  border-radius: 8px;
  padding: 10px 12px;
  margin: -6px 0 14px;
  color: #28465c;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

/* Checkboxes */
.lemos-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  background: #fafafa;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.lemos-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.4;
}

.lemos-checkbox-item input {
  margin-top: 3px;
}

/* Horários de coleta salivar */
.lemos-coleta-intro {
  background: #eef7ff;
  border: 1px solid #cfe5f8;
  border-left: 5px solid #004a80;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #28465c;
  margin: 8px 0 16px;
  font-weight: 600;
}

.lemos-coleta-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.lemos-coleta-item {
  background: #ffffff;
  border: 1px solid #e1edf7;
  border-radius: 8px;
  padding: 14px;
}

.lemos-label-horario {
  display: block;
  font-weight: 800 !important;
  color: #004a80 !important;
  font-size: 13px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-bottom: 8px !important;
}

.lemos-help-coleta {
  background: #f8fbff;
  border: 1px solid #e6f0fa;
  border-radius: 6px;
  padding: 8px 10px;
  margin: 0 0 8px;
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

.lemos-horario-condicional {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cfe0ef;
}

.lemos-coleta-extra-box {
  margin-top: 18px;
  background: #fffdf7;
  border: 1px solid #f3e4bd;
  border-radius: 8px;
  padding: 14px;
}

.lemos-alerta-extra {
  margin-top: 12px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-left: 5px solid #ffb300;
  color: #6b4b00;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.lemos-horario-extra {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}

.lemos-btn-remove-horario {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 8px;
  font-weight: 900;
  font-size: 12px;
}

/* Declaração */
.lemos-declaracao {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
  margin-bottom: 18px;
}

.lemos-nome-dinamico {
  font-weight: 900;
  text-decoration: underline;
  color: #004a80;
}

/* checkbox da declaração */
.lemos-checkbox-declaracao {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  cursor: pointer;
  margin: 10px 0;
}

.lemos-checkbox-declaracao input[type="checkbox"] {
  margin-top: 4px;
  flex: 0 0 auto;
}

.lemos-checkbox-declaracao span {
  flex: 1;
}

/* Radios */
.lemos-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
}

/* Upload */
.lemos-upload-box {
  background: #f8f9fa;
  padding: 18px;
  border: 2px dashed #cfcfcf;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.lemos-upload-note {
  font-size: 14px;
  color: #333;
  margin-top: 10px;
  font-weight: 800;
}

.lemos-help {
  font-size: 12px;
  color: #666;
  margin-top: 6px;
}

/* Termo LGPD */
.lemos-termo {
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
}

.lemos-termo label {
  font-size: 13px;
  text-transform: none;
  font-weight: 700;
  color: #333;
  letter-spacing: 0;
}

/* Botões */
.lemos-btn-add {
  background: #28a745;
  color: white;
  border: none;
  padding: 9px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 900;
}

.lemos-btn-add:hover {
  opacity: 0.92;
}

.lemos-btn-remove {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 10px;
  font-weight: 900;
}

.lemos-extra-time {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.lemos-time-input {
  width: 160px !important;
}

.lemos-btn {
  background-color: #004a80;
  color: white;
  padding: 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  width: 100%;
  transition: opacity 0.2s ease, transform 0.05s ease;
  margin-top: 22px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lemos-btn:hover { opacity: 0.92; }
.lemos-btn:active { transform: translateY(1px); }

/* Estados */
.lemos-hidden { display: none !important; }

.lemos-loading {
  opacity: 0.72;
  pointer-events: none;
}

/* Mensagens */
.lemos-msg {
  display: none;
  padding: 14px;
  margin-top: 18px;
  border-radius: 8px;
  text-align: center;
  font-weight: 900;
}

.lemos-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.lemos-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Logística Reversa */
.lemos-lr-box {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.lemos-lr-envio-conjunto {
  background: #ffffff;
  border: 1px solid #f1d78c;
  border-left: 5px solid #ffb300;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.lemos-lr-envio-title {
  font-size: 14px;
  font-weight: 900;
  color: #6b4b00;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lemos-lr-envio-text {
  font-size: 13px;
  line-height: 1.55;
  color: #4f3a00;
  font-weight: 600;
  margin-bottom: 8px;
}

.lemos-lr-envio-text:last-child {
  margin-bottom: 0;
}

/* Seletor de idioma */
.lemos-lang-switcher {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.lemos-lang-btn {
  min-width: 54px;
  padding: 8px 12px;
  border: 1px solid #b9cfe2;
  background: #f4f9fe;
  color: #004a80;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
}

.lemos-lang-btn:hover {
  background: #e8f2fb;
  border-color: #8db2d4;
}

.lemos-lang-btn.is-active {
  background: #004a80;
  border-color: #004a80;
  color: #ffffff;
}

/* Responsivo */
@media (max-width: 640px) {
  .lemos-wrap {
    padding: 18px;
  }

  .lemos-col-small,
  .lemos-col-medium {
    flex: 1;
    min-width: 200px;
  }

  .lemos-checkbox-grid,
  .lemos-exames-grid {
    grid-template-columns: 1fr;
  }

  .lemos-testbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .lemos-checkbox-declaracao {
    gap: 8px;
  }

  .lemos-coleta-item,
  .lemos-coleta-extra-box {
    padding: 12px;
  }

  .lemos-coleta-intro,
  .lemos-exames-intro {
    font-size: 12px;
  }

  .lemos-exame-card {
    min-height: 54px;
    padding: 12px;
  }

  .lemos-lr-envio-text {
    font-size: 12px;
  }
/* ==========================================================================
   Upload destacado de documentos
   ========================================================================== */

.lemos-upload-destaque{
  position:relative;
  background:linear-gradient(135deg,#eef7ff 0%,#dcebff 100%);
  border:3px solid #1976ff;
  border-radius:18px;
  padding:28px;
  margin-top:18px;
  margin-bottom:22px;
  text-align:left;
  box-shadow:
    0 10px 30px rgba(25,118,255,0.22),
    0 0 0 4px rgba(25,118,255,0.08);
  overflow:hidden;
}

.lemos-upload-destaque::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:6px;
  background:linear-gradient(90deg,#1976ff,#00b3ff,#1976ff);
}

.lemos-upload-header{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:24px;
  font-weight:900;
  color:#003c8f;
  margin-bottom:18px;
  line-height:1.3;
}

.lemos-upload-header span{
  display:inline-block;
}

.lemos-upload-descricao{
  font-size:16px;
  line-height:1.8;
  color:#17344f;
  margin-bottom:22px;
  font-weight:700;
}

.lemos-upload-input{
  background:#ffffff;
  border:3px dashed #1976ff !important;
  border-radius:14px !important;
  padding:22px !important;
  transition:all 0.25s ease;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:inset 0 0 0 1px rgba(25,118,255,0.08);
}

.lemos-upload-input:hover{
  background:#f5faff;
  border-color:#004fae !important;
  transform:scale(1.01);
  box-shadow:
    0 6px 18px rgba(25,118,255,0.15),
    inset 0 0 0 1px rgba(25,118,255,0.10);
}

.lemos-upload-input::file-selector-button{
  background:#1976ff;
  color:#fff;
  border:none;
  border-radius:10px;
  padding:12px 18px;
  margin-right:16px;
  font-weight:800;
  cursor:pointer;
  transition:all 0.2s ease;
}

.lemos-upload-input::file-selector-button:hover{
  background:#0059cc;
}

.lemos-upload-destaque .lemos-help{
  margin-top:16px;
  color:#234b73;
  font-size:13px;
  font-weight:800;
  letter-spacing:0.2px;
}

@media (max-width:640px){

  .lemos-upload-destaque{
    padding:20px;
    border-radius:16px;
  }

  .lemos-upload-header{
    font-size:20px;
    line-height:1.4;
  }

  .lemos-upload-descricao{
    font-size:15px;
    line-height:1.7;
  }

  .lemos-upload-input{
    padding:18px !important;
  }

  .lemos-upload-input::file-selector-button{
    display:block;
    margin-right:0;
    margin-bottom:12px;
    width:100%;
  }

}
/* V3 híbrido: somente complementos, preservando integralmente o layout 5.0 */
.lemos-v3-extra-container { margin-top: 12px; }
.lemos-v3-extra-title { margin-top: 30px; }
.lemos-v3-extra-field { background: transparent; }
.lemos-v3-inline-options { display: flex; flex-wrap: wrap; gap: 12px; }

/* Etapa: seletores pesquisáveis e itens adicionados */
.lemos-perfil-resumo{font-size:12px;line-height:1.5;color:#526779;background:#f8fbff;border:1px solid #dceaf6;border-radius:7px;padding:10px 12px;margin:-8px 0 16px}
.lemos-seletor-adicional{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,2fr) auto;gap:10px;align-items:end}
.lemos-itens-adicionados{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.lemos-item-adicionado{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid #d8e7f5;border-radius:7px;background:#fff;font-size:13px}
.lemos-item-adicionado button{flex:0 0 auto;background:#dc3545;color:#fff;border:0;border-radius:5px;padding:6px 9px;cursor:pointer;font-weight:700}
@media(max-width:760px){.lemos-seletor-adicional{grid-template-columns:1fr}.lemos-seletor-adicional .lemos-btn-add{width:100%}}


/* Lista de anexos selecionados */
.lemos-upload-lista {
    margin-top: 10px;
}

.lemos-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    margin-top: 6px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
}

.lemos-upload-item-nome {
    overflow-wrap: anywhere;
}

.lemos-upload-remover {
    flex: 0 0 auto;
    cursor: pointer;
}
