.footer-section {
  text-align: left;
}
.footer-section p {
  color: #fff;
}
.slider-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}
.slider-text {
  position: absolute;
  top: 50%;
  right: -48px;
  transform: translateY(-50%);
  font-size: 1.08rem;
  font-weight: 600;
  color: #003366;
  min-width: 32px;
  text-align: left;
  user-select: none;
}
/* Slider Switch Customizado */
.slider-label {
  font-size: 1.08rem;
  color: #003366;
  font-weight: 600;
  margin-right: 1em;
}
.slider-switch {
  position: relative;
  width: 52px;
  height: 28px;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}
.slider-track {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 14px;
  background: #e8edf6;
  border-radius: 7px;
  transform: translateY(-50%);
  transition: background 0.3s;
}
.slider-switch[aria-pressed="true"] .slider-track {
  background: #2563eb;
}
.slider-thumb {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(30,78,140,0.10);
  transform: translateY(-50%);
  transition: left 0.3s;
}
.slider-switch[aria-pressed="true"] .slider-thumb {
  left: 28px;
}
.slider-switch:focus-visible .slider-thumb {
  box-shadow: 0 0 0 3px #1b4f9126;
}
/* Customização do Bootstrap Switch para visual CAIXA */
.form-switch .form-check-input {
  width: 3.2em;
  height: 2em;
  background-color: #e8edf6;
  border-radius: 1.2em;
  border: 2px solid #cfd6e0;
  box-shadow: 0 2px 8px rgba(30,78,140,0.10);
  transition: background 0.3s, border 0.3s;
}
.form-switch .form-check-input:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}
.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 3px #1b4f9126;
}
.form-switch .form-check-label {
  font-size: 1.08rem;
  color: #003366;
  font-weight: 600;
  margin-left: 0.5em;
}
/* Ajuste para label do switch de licitação */
#bloco-licitacao label,
.br-switch label,
.switch-block label {
  min-width: 140px;
  max-width: 220px;
  white-space: normal;
  word-break: break-word;
  display: inline-block;
}
/* === GRID do formulário principal (desktop) === */
.form-grid{
  display:grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) minmax(120px, 1fr) minmax(100px, 100px);
  column-gap: 8px;
  row-gap: 22px;
  align-items:end;
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 2px 18px rgba(16,40,99,.10);
  width:100%;
  max-width:1600px;
}

.card {
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow-xl);
  padding: 32px 32px 24px 32px;
  max-width: 1100px; /* ajuste aqui para o tamanho desejado */
  margin-inline: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Switch compacto não “estoura” a coluna */
.group.compact{ width:max-content; min-width:160px; }

/* === Responsivo === */
@media (max-width:1024px){
  .form-grid{
    grid-template-columns: repeat(2, minmax(220px,1fr)) max-content; /* 2 selects + switch + botão */
    gap:14px;
  }
}
@media (max-width:640px){
  .form-grid{ grid-template-columns: 1fr; }
}

/* Esconde sem reservar espaço */
.is-hidden{ display:none !important; }

/* Botão "Iniciar" alinhado à direita (ou full no mobile) */
.form-grid .actions,
.form-grid .actions-inline { justify-self: end; }
@media (max-width: 720px){
  .form-grid .actions,
  .form-grid .actions-inline { justify-self: stretch; }
}

/* === Estilos para grupos de campos === */
.group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.group label {
  font-size: 1.02rem;
  font-weight: 800;
  color: #123;
  margin-bottom: 4px;
}
.group.compact {
  width: max-content;
  min-width: 160px;
}
.group.compact label {
  white-space: normal;
  max-width: 120px;
  word-break: break-word;
}
.switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.switch {  outline: none;
  --thumb-scale: 1;
  --switch-thumb-tx: 0px;

  position: relative;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #e8edf6;
  border: 1px solid #cfd6e0;
  box-shadow: inset 0 0 0 2px #0000;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translate(var(--switch-thumb-tx, 0px), -50%) scale(var(--thumb-scale, 1));
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .22s cubic-bezier(.2,.9,.2,1.2), box-shadow .22s;

  will-change: transform;}
.switch:active::after { --thumb-scale: 0.96; }

.switch[aria-checked="true"] {
  background: linear-gradient(90deg, #b7d1ff, #e7f0ff);
  border-color: #9dbdff;
  box-shadow: inset 0 0 0 2px #99b6ff33;
}

@keyframes thumb-pop {
  0% { transform: translateY(-50%) scale(.92); }
  60% { transform: translateY(-50%) scale(1.08); }
  100% { transform: translateY(-50%) scale(1); }
}
.switch[aria-checked="true"]::after { animation: thumb-pop 260ms ease-out; }
@keyframes pulse-ring {
  0% { transform: translate(-50%,-50%) scale(.6); opacity: .35; }
  100% { transform: translate(-50%,-50%) scale(1.8); opacity: 0; }
}
.switch.pulse::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #99b6ff66;
  animation: pulse-ring 450ms ease-out forwards;
  pointer-events: none;
}
/* ==== Switch: performance & acessibilidade ==== */
.switch {  --thumb-scale: 1;

  /* distância horizontal que o thumb percorre: 48w - 22thumb - 6padding = 20px */
  --switch-thumb-tx: 0px;
  outline: none; /* vamos estilizar o foco visível abaixo */
}
.switch::after {
  /* Em vez de 'left', usamos transform (não provoca reflow) */
  left: 3px; /* posição base (mantém compat com layout) */
  transform: translate(var(--switch-thumb-tx), -50%);
  will-change: transform;
}
.switch:focus-visible {
  box-shadow:
    0 0 0 3px #1b4f9126,
    inset 0 0 0 2px #99b6ff66;
}

.switch[aria-checked="true"] {
  /* mantém seu gradiente/cores existentes */
}
.switch[aria-checked="true"]::after {
  /* 20px é o curso horizontal calculado acima */
  /* mantemos seu 'thumb-pop', só trocando left -> transform */
  transform: translate(20px, -50%);
}
@media (prefers-reduced-motion: reduce) {
  .switch, .switch::after {  transform: translate(var(--switch-thumb-tx, 0px), -50%) scale(var(--thumb-scale, 1));
  left: 3px;
 transition: transform .22s cubic-bezier(.2,.9,.2,1.2), box-shadow .22s; animation: none !important; 
  will-change: transform;}
}

.state { font-weight: 700; }
.actions-inline {
  display: flex;
  justify-content: flex-end;
  align-items: end;  
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.08rem;
  padding: 8px 16px;
  min-width: 90px;
  box-shadow: 0 2px 8px rgba(30,78,140,0.08);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
  margin-right: 0;
}
.btn-primary {
  background: linear-gradient(90deg, #ffd54f 0%, #f7a800 100%);
  color: #1b4f91;
  border: 1px solid #f7a800;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #ffe082 0%, #ffd54f 100%);
  box-shadow: 0 4px 16px rgba(30,78,140,0.12);
  border-color: #ffd54f;
}
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px #1b4f9126, 0 10px 16px rgba(14,30,64,.1), 0 1px 0 rgba(255,255,255,.6) inset;
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-ico {
  width: 18px;
  height: 18px;
  display: block;
  fill: #1b4f91;
}
/* Forçar padding e centralização no overlay do modal wizard - APENAS quando visível */

#wizard-modal-overlay:not([style*="display:none"]) {
  display: flex !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.5) !important;
  z-index: 2000 !important;
  align-items: center !important;
  justify-content: center !important;
  overflow-y: auto !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

#wizard-modal-overlay[style*="display:none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

#wizard-modal-overlay[style*="display:none"] #wizard-modal-content {
  display: none !important;
  visibility: hidden !important;
}

/* Regra adicional para garantir fechamento completo */

#wizard-modal-overlay[style*="display:none"] * {
  display: none !important;
}

#wizard-modal-content {
  position: relative !important;
  width: 100% !important;
  max-width: 900px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: white !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* --- Wizard Modal Styles --- */

.wizard-container {
  background: #003366;
  border-radius: 20px;
  border: 1.5px solid #e7e7e7;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 800px;
  min-width: 340px;
  width: 96vw;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.wizard-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px 0 32px;
    gap: 8px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.wizard-step:not(:last-child)::after {
  display: none;
}

.wizard-step.active .wizard-icon {
  background: #F39200;
  color: #003366;
  border: 3px solid #F39200;
}

.wizard-step.completed .wizard-icon {
  background: #0056b3;
  color: #fff;
  border: 3px solid #0056b3;
}

.wizard-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e7e7e7;
  color: #003366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: bold;
  border: 3px solid #e7e7e7;
  margin-bottom: 6px;
  z-index: 1;
  transition: background 0.3s, color 0.3s, border 0.3s;
}

.wizard-label {
  font-size: 1.08rem;
  color: #333;
  text-align: center;
  font-weight: 500;
  margin: 8px 0 0 0;
  white-space: normal;
  letter-spacing: 0.5px;
  line-height: 1.3;
  transition: color 0.2s, font-weight 0.2s;
}

.wizard-step.active .wizard-label {
  color: #333;
  font-weight: 700;
  font-size: 1.13rem;
  margin-top: 10px;
}

.wizard-step.completed .wizard-label {
  color: rgba(51, 51, 51, 0.65);
  font-weight: 500;
}

.wizard-container {
  background: #003366;
  border-radius: 18px;
  border: 1.5px solid #e7e7e7;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 700px;
  width: 96vw;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 340px;
}

.wizard-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.wizard-form-row > div {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wizard-form-row input[type="text"],

.wizard-form-row input[type="number"],

.wizard-form-row select {
  width: 100%;
  box-sizing: border-box;
}

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

.wizard-link-input {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.wizard-link-input i {
  color: #0056b3;
  font-size: 1.1rem;
  margin-left: 2px;
}

.wizard-link-url {
  flex: 1;
  padding: 8px 10px 8px 32px;
  border-radius: 8px;
  border: 1.5px solid #e7e7e7;
  font-size: 1rem;
  background: #f7faff;
  color: #003366;
  position: relative;
  box-sizing: border-box;
  transition: border 0.2s;
}

.wizard-link-url:focus {
  border: 1.5px solid #F39200;
  outline: none;
  background: #fffbe6;
}

.wizard-link-ou {
  color: #b3b3b3;
  font-size: 1rem;
  font-weight: 500;
  margin-right: 4px;
  margin-left: 2px;
  white-space: nowrap;
}

/* ================= ACCORDION GOV.BR CAIXA ================== */

.br-accordion {
  background: var(--primary);
  border-radius: 18px;
  border: 1.5px solid var(--gray-200);
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
  max-width: 520px;
  margin: 0 auto;
}

.br-accordion .item {
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 18px;
  overflow: hidden;
}

.br-accordion .header {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 18px 18px 0 0;
  font-weight: 600;
  font-size: 1.13rem;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 20px 32px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1.5px solid var(--gray-200);
}

.br-accordion .header:focus-visible {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
}

.br-accordion .item[active] .header {
  background: var(--primary-light);
  color: #fff;
  border-bottom: 1.5px solid var(--gray-200);
  border-radius: 18px 18px 0 0;
}

.br-accordion .header .icon {
  color: var(--accent);
  margin-right: 32px;
  font-size: 1.25em;
}

.br-accordion .content {
  background: var(--primary-light);
  color: #fff;
  font-size: 1.08rem;
  padding: 24px 36px 24px 36px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin: 0 0 12px 0;
  border-top: 1.5px solid var(--gray-200);
  animation: fadeIn 0.3s;
}

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

/* ==============================================
   SILIC 2.0 - Sistema de Solicitações CAIXA
   CSS Consolidado - Funcional e Organizado
   ============================================== */

/* CSS Variables - Design System */

:root {
    /* Cores principais CAIXA */
    --primary: #003366;
    --primary-light: #0056b3;
    --primary-dark: #002244;
    --accent: #F39200;
    --accent-hover: #E67E22;
    
    /* Escala de cinzas */
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f7f7f7;
    --gray-200: #e7e7e7;
    --gray-300: #ddd;
    --gray-400: #b0b0b0;
    --gray-500: #717171;
    --gray-600: #666;
    --gray-700: #333;
    --gray-800: #222;
    --gray-900: #111;
    
    /* Estados */
    --success: #28a745;
    --warning: #ffc107;
    --error: #dc3545;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.15);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ==============================================
   RESET E ESTILOS BASE
   ============================================== */

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


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-700);
}

/* --- WIZARD CAIXA --- */
.wizard-content {
  background: #f8f9fa;
  color: #333;
  font-size: 1.08rem;
  padding: 24px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  margin: 24px 0 0 0;
  min-height: 180px;
  max-height: 420px;
  overflow-y: auto;
  animation: fadeIn 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

#wizard-modal-content {
  background: #F0F4F8;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 420px;
  width: 100%;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  min-width: 0;
  box-sizing: border-box;
  margin: 0 auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==============================================
   HEADER E NAVEGAÇÃO
   ============================================== */

.header {
    background-color: var(--primary);
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0 24px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    gap: 20px;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
}

.nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.nav-actions {
    display: flex;
    align-items: center;
    z-index: 1001;
    position: relative;
}

.system-title {
    color: var(--white);
    font-size: 20px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.system-subtitle {
    color: var(--white);
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.2;
}

.btn-voltar-portal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-voltar-portal:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-voltar-portal i {
    transition: transform var(--transition-normal);
}

.btn-voltar-portal:hover i {
    transform: translateX(-3px);
}

/* ==============================================
   SEÇÃO HERO - GARANTINDO VISIBILIDADE
   ============================================== */

/* Main Content */
.main-content {
    min-height: calc(100vh - 80px);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 100px 20px 120px;
    text-align: center;
    min-height: 500px;
    display: block !important;
    visibility: visible !important;
    position: relative;
}

.hero-content {
  width: 100%;
  max-width: none;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #fff;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 48px;
  opacity: 0.9;
  color: #fff;
  white-space: nowrap;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================================
   FORMULÁRIO DE BUSCA
   ============================================== */

.search-form {
  width: 100%;
  max-width: min(1080px, 92vw);
  margin-inline: auto;
  background: var(--white);
  border-radius: 32px;
  padding: 24px;
  color: var(--gray-700);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.search-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-100);
    border: none;
    border-radius: 22px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-normal);
    color: var(--gray-500);
}

.tab-button:hover {
    background: var(--gray-200);
}

.tab-button.active {
    background: var(--primary);
    color: var(--white);
}

.search-container {
  width: 100%;
  max-width: 100%; /* <-- garante que não ultrapasse o .search-form */
  margin-inline: auto;
}
.search-fields {
    display: flex;
    background: white;
}

.field-group {
    flex: 1;
    padding: 16px 20px;
    border-right: 1px solid #ddd;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.field-group:last-child {
    border-right: none;
}

.field-group label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.search-input {
    border: none;
    font-size: 14px;
    color: #666;
    background: transparent;
    width: 100%;
}

.search-button {
    background: var(--accent);
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    color: var(--primary);
    cursor: pointer;
    margin: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all var(--transition-normal);
    min-height: 48px;
    white-space: nowrap;
}

.search-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.search-button i {
    font-size: 16px;
}

.search-button span {
    font-weight: 600;
}

/* SEÇÕES DE SERVIÇOS */
.services-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 48px;
    font-weight: bold;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #003366, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon i {
    font-size: 32px;
    color: white;
}

.service-card h3 {
    font-size: 1.5rem;
    color: #003366;
    margin-bottom: 16px;
}

.service-card p {
    color: #666;
    margin-bottom: 24px;
}

.btn-service {
    background: #F39200;
    color: #003366;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: bold;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background: #003366;
    color: white;
    padding: 60px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 20px;
  color: #F39200;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  display: block;
  text-align: left;
  margin-left: 0;
}

.footer-section ul li a:hover {
    color: #F39200;
}

/* Form Validation Styles */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: var(--error);
    border-width: 2px;
    box-shadow: 0 0 0 0.125rem rgba(220, 53, 69, 0.25);
}

.form-group .error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group.has-error .error-message {
    display: block;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: var(--error);
}

/* ==============================================
   SEÇÃO DE RESULTADOS DE PESQUISA
   ============================================== */

.search-results-section {
    padding: 60px 0;
    background: var(--gray-50);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.search-results-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-clear-filters {
    background: var(--white);
    border: 1px solid var(--gray-300);
    color: var(--gray-600);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear-filters:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    color: var(--gray-700);
}

/* Filtros de Pesquisa */
.search-filters {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: end;
}

.filter-group {
    flex: 1;
}

.search-input-filter {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition-fast);
}

.search-input-filter:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.btn-search-table {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-search-table:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Informações dos Resultados */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.loading-indicator {
    color: var(--gray-600);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.loading-indicator i {
    color: var(--primary);
}

.results-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    color: var(--gray-600);
}

.results-meta select {
    padding: 6px 10px;
    border: 1px solid var(--gray-300);
    border-radius: 4px;
    font-size: 14px;
}

/* Tabela de Resultados */
.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
}

.results-table th {
    background: var(--gray-100);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 14px;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.results-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 14px;
}

.results-table tbody tr:hover {
    background: var(--gray-50);
}

.results-table tbody tr:last-child td {
    border-bottom: none;
}

/* Status Tags */
.status-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-tag.disponivel {
    background: #d4edda;
    color: #155724;
}

.status-tag.ocupado {
    background: #f8d7da;
    color: #721c24;
}

.status-tag.manutencao {
    background: #fff3cd;
    color: #856404;
}

.status-tag.reservado {
    background: #d1ecf1;
    color: #0c5460;
}

/* Ações da Tabela */
.table-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.btn-action.primary {
    background: var(--primary);
    color: var(--white);
}

.btn-action.primary:hover {
    background: var(--primary-light);
}

.btn-action.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-action.secondary:hover {
    background: var(--gray-200);
}

/* Sem Resultados */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.no-results-content i {
    font-size: 3rem;
    color: var(--gray-400);
    margin-bottom: 20px;
}

.no-results-content h3 {
    color: var(--gray-700);
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.no-results-content p {
    color: var(--gray-600);
    font-size: 14px;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.btn-pagination {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--primary-light);
}

.btn-pagination:disabled {
    background: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
}

.pagination-tags {
    display: flex;
    gap: 12px;
}

.pagination-tags .tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 12px;
    }
    
    .nav-text {
        text-align: center;
    }
    
    .nav-actions {
        display: flex;
        justify-content: center;
    }
    
    .btn-voltar-portal {
        display: inline-flex;
        visibility: visible;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
      width: 100%;
      max-width: none;
    }

    .search-form {
      width: 100%;
      max-width: min(1080px, 92vw);
      margin-inline: auto;
    }

    .search-container {
      width: 100%;
    }
    
    .search-fields {
        flex-direction: column;
    }
    
    .field-group {
        border-right: none;
        border-bottom: 1px solid var(--gray-300);
        min-height: 60px;
    }
    
    .field-group:last-child {
        border-bottom: none;
    }
    
    .search-button {
        margin: 16px 0 0 0;
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .search-results-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .results-info {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .results-table {
        min-width: 600px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 16px;
    }
    
    .pagination-tags {
        order: -1;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 16px 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .tab-button {
        font-size: 12px;
        padding: 10px 16px;
    }
    
    .tab-button span {
        display: none;
    }
}

/* Botão oculto por padrão - será mostrado via JavaScript quando apropriado */
#voltarPortalBtn {
    display: none !important;
}

/* Quando mostrado via JavaScript, aplicar estes estilos */
#voltarPortalBtn.show {
    display: inline-flex !important;
}

/* =================================================================== */
/* WIZARD FINANCEIRO STYLES */
/* =================================================================== */

/* Estilos específicos para o wizard financeiro */
.wizard-financeiro-container {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
  width: 100%;
  min-height: auto;
  margin: 0;
  max-width: none;
}

.wizard-financeiro-container .wizard-header {
  margin-bottom: 24px;
}

.wizard-financeiro-container .wizard-header h2 {
  margin: 0 0 8px 0;
  color: #222;
  font-size: 24px;
  font-weight: 600;
}

.wizard-financeiro-container .wizard-header p {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.wizard-financeiro-container .progress {
  margin: 16px 0;
  display: block;
  gap: 6px;
}

.wizard-financeiro-container .progress .step {
  flex: 1;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

.wizard-financeiro-container .progress .step.active {
  background: #4a90e2;
}

.wizard-financeiro-container .wizard-body {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.wizard-financeiro-container .form-section {
  flex: 2;
}

.wizard-financeiro-container .form-section label {
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.wizard-financeiro-container .form-section select,
.wizard-financeiro-container .form-section input {
  width: 100%;
  padding: 12px;
  margin: 8px 0 16px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wizard-financeiro-container .form-section select:focus,
.wizard-financeiro-container .form-section input:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.wizard-financeiro-container #dados-bancarios-container {
  margin-top: 20px;
}

.wizard-financeiro-container #dados-bancarios-container h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.wizard-financeiro-container .banco-block {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.wizard-financeiro-container .banco-block input,
.wizard-financeiro-container .banco-block select {
  margin: 0;
}

.wizard-financeiro-container .banco-block .agencia {
  grid-column: 1;
}

.wizard-financeiro-container .banco-block .agencia-nome {
  grid-column: 2;
}

.wizard-financeiro-container .banco-block .conta {
  grid-column: 1;
}

.wizard-financeiro-container .banco-block .tipo-conta {
  grid-column: 2;
}

.wizard-financeiro-container #adicionar-locador {
  margin-top: 8px;
  background: none;
  border: 2px dashed #4a90e2;
  color: #4a90e2;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.wizard-financeiro-container #adicionar-locador:hover {
  background: rgba(74, 144, 226, 0.05);
  border-color: #357abd;
}

.wizard-financeiro-container .resumo-section {
  flex: 1;
  background: #f1f4f9;
  border-radius: 8px;
  padding: 16px;
  height: fit-content;
}

.wizard-financeiro-container .resumo-section h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.wizard-financeiro-container .resumo-card {
  background: white;
  border-radius: 6px;
  padding: 16px;
  border: 1px solid #e1e8ed;
}

.wizard-financeiro-container .resumo-card p {
  margin: 8px 0;
  color: #333;
  font-size: 14px;
  line-height: 1.4;
}

.wizard-financeiro-container .resumo-card p strong {
  color: #222;
}

.wizard-financeiro-container .wizard-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.wizard-financeiro-container .wizard-footer button {
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: white;
  color: #666;
}

.wizard-financeiro-container .wizard-footer button:hover {
  border-color: #ccc;
  background: #f8f9fa;
}

.wizard-financeiro-container .wizard-footer button.primary {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

.wizard-financeiro-container .wizard-footer button.primary:hover {
  background: #357abd;
  border-color: #357abd;
}

.wizard-financeiro-container .remover-locador {
  grid-column: 1 / -1;
  margin-top: 8px;
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.3s ease;
}

.wizard-financeiro-container .remover-locador:hover {
  background: #c82333;
}

/* Responsividade para wizard financeiro */
@media (max-width: 768px) {
  .wizard-financeiro-container {
    padding: 16px;
    min-height: auto;
  }
  
  .wizard-financeiro-container .wizard-body {
    flex-direction: column;
    gap: 16px;
  }
  
  .wizard-financeiro-container .banco-block {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .wizard-financeiro-container .banco-block .agencia,
  .wizard-financeiro-container .banco-block .agencia-nome,
  .wizard-financeiro-container .banco-block .conta,
  .wizard-financeiro-container .banco-block .tipo-conta {
    grid-column: 1;
  }
  
  .wizard-financeiro-container .wizard-footer {
    flex-direction: column;
    gap: 12px;
  }
  
  .wizard-financeiro-container .wizard-footer button {
    width: 100%;
    justify-content: center;
  }
}

/* =================================================================== */
/* WIZARD PRINCIPAL MELHORADO (Baseado no wizard financeiro) */
/* =================================================================== */

/* Estilos específicos para o wizard principal quando carregado no modal */
#wizard-modal-inner .wizard-container {
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  padding: 24px;
  width: 100%;
  min-height: auto;
  margin: 0;
  max-width: none;
}

/* Header moderno para o wizard principal */
#wizard-modal-inner .wizard-header {
  margin-bottom: 32px;
  padding: 0 0 24px 0;
}

#wizard-modal-inner .wizard-header h2 {
  margin: 0 0 8px 8px;
  color: #222;
  font-size: 24px;
  font-weight: 600;
}

#wizard-modal-inner .wizard-header p {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px 8px;
  line-height: 1.4;
}

/* Aprimoramento dos steps do wizard principal - Estilo inspirado no wizard financeiro */
#wizard-modal-inner .wizard-steps {
  padding: 0 0 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid #e9ecef;
}

/* Sistema de progress moderno */
#wizard-modal-inner .wizard-progress {
  display: flex;
  gap: 4px;
  margin: 0 8px 8px 8px;
}

/* Força TODOS os spans em wizard-progress a terem tamanho igual */
#wizard-modal-inner .wizard-progress span {
  flex: 1 1 0% !important;
  height: 4px !important;
  background: #ddd;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

/* Padronização de tamanho para todos os progress-steps */
.progress-step {
  flex: 1 1 0%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

/* Estados dos spans - mantém tamanho igual */
#wizard-modal-inner .wizard-progress span.active,
#wizard-modal-inner .wizard-progress span.progress-step.active {
  background: #4a90e2 !important;
  flex: 1 1 0% !important;
}

#wizard-modal-inner .wizard-progress span.completed,
#wizard-modal-inner .wizard-progress span.progress-step.completed {
  background: #28a745 !important;
  flex: 1 1 0% !important;
}

.progress-step.active {
  background: #4a90e2;
  flex: 1 1 0% !important;
}

.progress-step.completed {
  background: #28a745;
  flex: 1 1 0% !important;
}

/* Steps com visual mais limpo */
#wizard-modal-inner .wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  padding: 16px 8px;
  margin: 0 4px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
}

#wizard-modal-inner .wizard-step:hover {
  background: rgba(74, 144, 226, 0.05);
}

#wizard-modal-inner .wizard-step.active {
  background: rgba(74, 144, 226, 0.08);
  border: 1px solid rgba(74, 144, 226, 0.2);
}

#wizard-modal-inner .wizard-step.completed {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

#wizard-modal-inner .wizard-step-icon {
  font-size: 20px;
  margin-bottom: 8px;
  color: #666;
  transition: color 0.3s ease;
}

#wizard-modal-inner .wizard-step.active .wizard-step-icon {
  color: #4a90e2;
}

#wizard-modal-inner .wizard-step.completed .wizard-step-icon {
  color: #28a745;
}

#wizard-modal-inner .wizard-step-label {
  font-size: 12px;
  font-weight: 500;
  color: #333;
  text-align: center;
  transition: color 0.3s ease;
  margin-top: 4px;
}

#wizard-modal-inner .wizard-step.active .wizard-step-label {
  color: #4a90e2;
  font-weight: 600;
}

#wizard-modal-inner .wizard-step.completed .wizard-step-label {
  color: #28a745;
  font-weight: 600;
}

/* Conteúdo do wizard */
#wizard-modal-inner .wizard-content {
  flex: 1;
  margin-bottom: 24px;
}

/* Melhorias nos formulários do wizard */
#wizard-modal-inner form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#wizard-modal-inner label {
  font-weight: 500;
  color: #333;
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

#wizard-modal-inner input,
#wizard-modal-inner select,
#wizard-modal-inner textarea {
  width: 100%;
  padding: 12px;
  margin: 0 0 16px 0;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

#wizard-modal-inner input:focus,
#wizard-modal-inner select:focus,
#wizard-modal-inner textarea:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

#wizard-modal-inner .wizard-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

#wizard-modal-inner .wizard-form-row > div {
  flex: 1;
  min-width: 0;
}

/* Botões de navegação do wizard */
#wizard-modal-inner .wizard-nav {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
  gap: 12px;
}

#wizard-modal-inner .wizard-nav button {
  padding: 12px 24px;
  border-radius: 6px;
  border: 1px solid #ddd;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  background: white;
  color: #666;
  min-width: 120px;
  justify-content: center;
}

#wizard-modal-inner .wizard-nav button:hover {
  border-color: #ccc;
  background: #f8f9fa;
}

#wizard-modal-inner .wizard-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#wizard-modal-inner .wizard-nav button.primary {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

#wizard-modal-inner .wizard-nav button.primary:hover:not(:disabled) {
  background: #357abd;
  border-color: #357abd;
}

#wizard-modal-inner .wizard-nav button.success {
  background: #28a745;
  color: white;
  border-color: #28a745;
}

/* Melhorias específicas nos formulários do wizard principal */
#wizard-modal-inner .wizard-form-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

#wizard-modal-inner .wizard-form-section h4 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

/* Grid layout para campos lado a lado (similar ao wizard financeiro) */
#wizard-modal-inner .wizard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

#wizard-modal-inner .wizard-form-grid.three-cols {
  grid-template-columns: 1fr 1fr 1fr;
}

#wizard-modal-inner .wizard-form-grid.full-width {
  grid-template-columns: 1fr;
}

/* Melhora estética dos botões de adicionar */
#wizard-modal-inner button[onclick*="adicionar"], 
#wizard-modal-inner button[id*="adicionar"] {
  background: none;
  border: 2px dashed #4a90e2;
  color: #4a90e2;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

#wizard-modal-inner button[onclick*="adicionar"]:hover,
#wizard-modal-inner button[id*="adicionar"]:hover {
  background: rgba(74, 144, 226, 0.05);
  border-color: #357abd;
}

#wizard-modal-inner .wizard-nav button.success:hover:not(:disabled) {
  background: #218838;
  border-color: #1e7e34;
}

/* Estilos para seções específicas do wizard */
#wizard-modal-inner .form-section {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

#wizard-modal-inner .form-section h3 {
  margin: 0 0 16px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 2px solid #4a90e2;
  padding-bottom: 8px;
}

#wizard-modal-inner .validation-message {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  color: #856404;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
}

#wizard-modal-inner .success-message {
  background: #d1edff;
  border: 1px solid #bee5eb;
  color: #0c5460;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
}

#wizard-modal-inner .error-message {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
}

/* Responsividade para o wizard principal */
@media (max-width: 768px) {
  #wizard-modal-overlay {
    padding: 10px !important;
  }
  
  #wizard-modal-content {
    max-height: 95vh !important;
    max-width: 100% !important;
  }
  
  #wizard-modal-inner .wizard-container {
    padding: 16px;
    min-height: auto;
  }
  
  #wizard-modal-inner .wizard-steps {
    flex-wrap: wrap;
    gap: 8px;
  }
  
  #wizard-modal-inner .wizard-step {
    min-width: 100px;
  }
  
  #wizard-modal-inner .wizard-step-icon {
    font-size: 20px;
  }
  
  #wizard-modal-inner .wizard-step-label {
    font-size: 11px;
  }
  
  #wizard-modal-inner .wizard-form-row {
    flex-direction: column;
    gap: 12px;
  }
  
  #wizard-modal-inner .wizard-nav {
    flex-direction: column;
  }
  
  #wizard-modal-inner .wizard-nav button {
    width: 100%;
  }
}

/* Botão de fechar wizard - alta prioridade */
#close-wizard-modal {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  background: rgba(255,255,255,0.95) !important;
  border: none !important;
  font-size: 2rem !important;
  color: #d32f2f !important;
  cursor: pointer !important;
  z-index: 99999 !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease !important;
  font-family: Arial, sans-serif !important;
  line-height: 1 !important;
}

#close-wizard-modal:hover {
  background: rgba(255,255,255,1) !important;
  color: #b71c1c !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

#close-wizard-modal:active {
  transform: scale(0.95) !important;
}
