.wizard-container {
    max-width: auto;
    margin: 2rem auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;
}

.wizard-sidebar {
    background-color: #f4f6f9;
    padding: 2rem 1rem;
    border-right: 2px solid #dee2e6;
}

.wizard-content {
    background-color: #ffffff;
    padding: 2rem;
}

.wizard-steps .nav-link {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #3a4856;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    display: block;
}

.wizard-steps .nav-link::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    background: #e0f7f6; /* tom claro do verde */
    color: #005a55;
    border: 2px solid #005a55;
    border-radius: 50%;
    width: 1.8rem;
    height: 1.8rem;
    text-align: center;
    line-height: 1.6rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.wizard-steps .nav-link.active::before,
.wizard-steps .nav-link:hover::before {
    background-color: #007c7a;
    color: #fff;
    border-color: #007c7a;
}

.wizard-step-content {
    display: none;
}

.wizard-step-content.active {
    display: block;
}

aside {
    background-color: #f0f4f8;
    padding: 2rem 1rem;
    border-radius: 8px;
    min-height: 100%;
}

aside ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1rem;
}

aside ul li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

aside ul li .step-number {
    background-color: #fff;
    color: #005a55;
    border: 2px solid #005a55;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

aside li.active .step-number {
    background-color: #007c7a;
    color: white;
    border-color: #007c7a;
}

.categoria-card {
    min-height: 100px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    border-radius: 1rem;
    background-color: #fcfcfc;
}

.categoria-card:hover {
    border-color: #005a55; /* borda sólida e mais visível */
    box-shadow: 0 0 10px rgba(0, 168, 165, 0.3);
    transform: translateY(-4px);
    cursor: pointer;
}


.categoria-card.active {
    border: 2px solid #005a55;
    background-color: #e7f1ff;
}

.categoria-card.selected {
    border-color: #005a55;
    background-color: #e6fdfa;
    box-shadow: 0 0 0 4px rgba(0, 168, 165, 0.3);
}

.form-control {
    position: relative;
    padding-right: 30px; /* Espaço para o ícone */
}

.form-control.validated {
    border-color: #28a745 !important; /* Verde para validação ok */
}

.form-control.validated::after {
    content: "✔";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745; /* Verde */
    font-size: 16px;
}

.form-control.is-invalid.validated {
    border-color: #dc3545 !important; /* Vermelho para erro */
}

.form-control.is-invalid.validated::after {
    content: "✘";
    color: #dc3545; /* Vermelho */
}

/* Ajuste para select (como forma_entrega) */
.form-select {
    position: relative;
    padding-right: 30px;
}

.form-select.validated {
    border-color: #28a745 !important;
}

.form-select.validated::after {
    content: "✔";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
}

.form-select.is-invalid.validated {
    border-color: #dc3545 !important;
}

.form-select.is-invalid.validated::after {
    content: "✘";
    color: #dc3545;
}

#imagem-certidao {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#imagem-certidao.loaded {
    opacity: 1;
}

.color-nav {
    color: #ffffff !important;
}
.main-header {
    background-color: #005a55;
}
.main-header .nav-link,
.main-header .dropdown-item {
    color: #005a55 !important;
}
.main-header .nav-link:hover,
.main-header .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
.alert {
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
#campos-extras .form-control {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
#campos-extras small {
    font-size: 0.8rem;
    color: #6c757d;
}
h4, h6 {
    color: #005a55;
}

.etapa-solicitante h4 {
    color: #005a55;
    font-weight: 600;
    margin-bottom: 1rem;
}

#campos-extras h4,
#campos-dinamicos h4,
#pergunta-dados-area h4 {
    color: #005a55;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#modalImagemCertidao .modal-content {
    background: #005a55; /* Fundo preto para focar a imagem, opcional */
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

#modalImagemCertidao .modal-body {
    padding: 0;
    margin: 0;
}

#imagem-certidao {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
}

#modalCustos .table {
    font-size: 0.9rem;
}
#modalCustos .modal-body p {
    margin-bottom: 0.5rem;
}

.popover-body img {
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.8);
    opacity: 0;
}

.popover.show .popover-body img {
    transform: scale(1);
    opacity: 1;
}

#imagem-certidao {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#imagem-certidao.loaded {
    opacity: 1;
}

#imagem-certidao.loaded:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    cursor: zoom-in;
}