/* ============================================================
   Dr. 4 Patas — Brand Stylesheet
   Inclui overrides de formulario, wizard e painel do cliente
   WhiteLabel: dr4patas
   Complementa o Tailwind CDN carregado no _LayoutWL.cshtml
   ============================================================ */

/* --- Tokens de marca ---------------------------------------- */
:root {
  --teal:  #5CB5B3;
  --lime:  #A5CD77;
  --coral: #E86658;
  --dark:  #476067;
  --ink:   #1a1a1a;
}

/* --- Reset basico ------------------------------------------- */
*  { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 13px;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 400;
  font-size: 23px;
  overflow-x: hidden;
  background: #fff;
}

h1, h2, h3, h4, h5, h6, .title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* --- Card esboçado (sketch) --------------------------------- */
.card-sketch {
    width: 100%;
    margin-bottom: 20px;
    border: 2px solid var(--ink);
    box-shadow: 4px 4px 0px 0px var(--ink);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    background: #fff;
    border-radius: 14px;
    display: block;
    overflow: visible;
}

.card-sketch:hover {
  box-shadow: 8px 8px 0px 0px var(--ink);
  transform: translate(-4px, -4px);
}

/* --- Botao sketch ------------------------------------------- */
.btn-sketch {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px 0px var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  cursor: pointer;
  border-radius: 10px;
  padding: 12px 28px;
  text-decoration: none;
}

.btn-sketch:hover {
  box-shadow: 6px 6px 0px 0px var(--ink);
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.btn-sketch:active {
  box-shadow: 2px 2px 0px 0px var(--ink);
  transform: translate(2px, 2px);
}

/* --- Scroll reveal ------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Animacoes flutuantes ----------------------------------- */
/*@keyframes float-a {
  0%, 100% { transform: translateY(0px) rotate(-15deg); }
  50%       { transform: translateY(-12px) rotate(-15deg); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0px) rotate(10deg); }
  50%       { transform: translateY(-10px) rotate(10deg); }
}*/

.float-a {
  animation: float-a 3s ease-in-out infinite;
}

.float-b {
  animation: float-b 3.4s ease-in-out infinite;
  animation-delay: 0.5s;
}

/* --- Offset para navbar fixa -------------------------------- */
section[id] {
  scroll-margin-top: 72px;
}

/* --- Card de plano (duas camadas) --------------------------- */
.price-card-group {
  position: relative;
}

.price-card-shadow {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0px 0px var(--ink);
  border-radius: 14px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.price-card-group:hover .price-card-shadow {
  box-shadow: 8px 8px 0px 0px var(--ink);
  transform: translate(-4px, -4px);
}

.price-card-content {
  position: relative;
  padding: 28px;
}

/* --- Circulo de check -------------------------------------- */
.check-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

/* --- Link de navegacao ------------------------------------- */
.nav-link {
  font-size: 1.15rem;
  color: var(--dark);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.2s;
}

.nav-link:hover        { color: var(--teal); }
.nav-link:hover::after { width: 100%; }
.nav-link.active       { color: var(--teal); }
.nav-link.active::after { width: 100%; }

/* --- Link do footer --------------------------------------- */
.footer-link {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--lime);
  text-decoration: none;
}

/* --- Icone de rede social --------------------------------- */
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color 0.2s;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.social-icon:hover {
  border-color: var(--teal);
}

/* --- Sublinhado decorativo (highlight) -------------------- */
.underline-highlight {
  position: absolute;
  bottom: -6px;
  left: 50%;
  /*transform: translateX(-50%) rotate(-1deg);*/
  width: 180px;
  height: 10px;
  background: rgba(92, 181, 179, 0.25);
  border-radius: 999px;
  filter: blur(3px);
}

/* ============================================================
   FORMULARIOS — Overrides Bootstrap para identidade Dr4Patas
   ============================================================ */

/* Inputs e selects no estilo sketch */
.form-control,
input[type="text"].wl-input,
input[type="email"].wl-input,
input[type="password"].wl-input {
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 2px 2px 0 var(--ink);
  transition: box-shadow 0.2s, border-color 0.2s;
  font-family: 'Open Sans', sans-serif;
}

.form-control:focus {
  border-color: var(--teal);
  box-shadow: 4px 4px 0 var(--ink);
  outline: none;
}

/* Labels */
.col-form-label,
label.control-label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.92rem;
}

/* Cards dos partials — override Bootstrap .card */
.card.border-left-primary,
.card.border-left-success,
.card.border-left-warning,
.card.shadow {
  border: 2px solid var(--ink) !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
  border-radius: 12px !important;
  border-left-width: 2px !important;
}

.card-header {
  background: rgba(92, 181, 179, 0.08) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--dark);
}

/* Botoes primarios Bootstrap -> Dr4Patas */
.btn-primary {
  background-color: var(--coral) !important;
  border-color: var(--ink) !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
  font-weight: 700;
  transition: box-shadow 0.2s, transform 0.2s !important;
}

.btn-primary:hover {
  background-color: #d55548 !important;
  box-shadow: 5px 5px 0 var(--ink) !important;
  transform: translate(-2px, -2px);
}

.btn-success {
  background-color: var(--lime) !important;
  border-color: var(--ink) !important;
  border-width: 2px !important;
  border-radius: 8px !important;
  box-shadow: 3px 3px 0 var(--ink) !important;
  color: var(--ink) !important;
  font-weight: 700;
}

.btn-default, .btn-secondary {
  background-color: #f9f9f9 !important;
  border: 2px solid var(--ink) !important;
  border-radius: 8px !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
  color: var(--ink) !important;
  font-weight: 600;
}

/* ============================================================
   WIZARD — Override wizard-step.css para Dr4Patas
   ============================================================ */

/* Progressbar container */
#progressbar {
  list-style: none;
  padding: 0;
  margin-bottom: 32px;
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  float: none !important;
  overflow: visible;
}

/* Cada step */
#progressbar li {
  text-align: center;
  width: auto !important;
  flex: 1;
  max-width: 160px;
  position: relative;
  float: none !important;
  color: #bbb;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Linha conectora entre steps */
#progressbar li::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 60%;
  width: 80%;
  height: 2px;
  border-top: 2px dashed #ccc;
  z-index: 0;
}

#progressbar li:last-child::after { display: none; }

/* Circulo do step (substitui o <i> do FA) */
.wl-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: #e0e0e0;
  color: #888;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 auto 6px;
  position: relative;
  z-index: 1;
  transition: background 0.3s, color 0.3s;
}

.wl-step-lbl {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #aaa;
  transition: color 0.3s;
}

/* Step ativo */
#progressbar li.active .wl-step-num {
  background: var(--coral);
  color: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

#progressbar li.active .wl-step-lbl,
#progressbar li.active {
  color: var(--dark);
}

#progressbar li.active::after {
  border-color: var(--teal);
}

/* Ocultar o <i> do FontAwesome (usamos .wl-step-num no lugar) */
#progressbar li i {
  display: none !important;
}

/* Override do wizard-step.css que usava i:before e i:after */
#progressbar li i:before,
#progressbar li i:after { display: none !important; }

/* Cartao de cada etapa */
.wl-step-card {
  margin-bottom: 8px;
}

/* Header interno da etapa */
.wl-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

/* Badge grande no header da etapa */
.wl-step-badge-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  flex-shrink: 0;
}

/* Area dos botoes de navegacao do wizard */
.wl-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 8px;
  flex-wrap: wrap;
}

/* Override .msform .action-button para Dr4Patas */
.msform .action-button,
.msform .action-button-previous {
  width: auto !important;
  float: none !important;
  border-radius: 10px !important;
  border: 2px solid var(--ink) !important;
  font-weight: 700 !important;
  padding: 10px 24px !important;
  margin: 0 !important;
}

.msform .action-button {
  background: var(--coral) !important;
  color: #fff !important;
  box-shadow: 3px 3px 0 var(--ink);
}

.msform .action-button:hover {
  background: #d55548 !important;
  box-shadow: 5px 5px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.msform .action-button-previous {
  background: var(--dark) !important;
  color: #fff !important;
  box-shadow: 3px 3px 0 var(--ink);
}

/* ============================================================
   PAINEL DO CLIENTE (Cadastro.cshtml)
   ============================================================ */

.wl-panel-card {
  overflow: hidden;
}

.wl-panel-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.wl-panel-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2px;
}

.wl-panel-card-sub {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.wl-panel-card-body {
    padding: 32px;
}

/* ============================================================
   COMPATIBILIDADE COM PARTIAL BENEFICIÁRIOS (SB Admin Overrides)
   ============================================================ */

/* 1. Transforma o card da Partial no estilo Dr. 4 Patas */
.card.shadow.mb-4 {
    border: 2px solid var(--ink) !important;
    box-shadow: 4px 4px 0px 0px var(--ink) !important;
    border-radius: 14px !important;
    overflow: hidden;
}

.card-header.py-3 {
    background: rgba(92, 181, 179, 0.1) !important; /* Teal clarinho */
    border-bottom: 2px solid var(--ink) !important;
}

.card-header h6.text-primary {
    color: var(--dark) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Estilização da Tabela de Beneficiários */
.tabelaBeneficiariosHibrido {
    border: 1px solid #eee;
    border-radius: 8px;
}

    .tabelaBeneficiariosHibrido thead th {
        background-color: #f8f9fc;
        color: var(--dark);
        border-bottom: 2px solid var(--ink) !important;
        font-family: 'Poppins', sans-serif;
    }

/* 3. Botão de Excluir (X vermelho circular) */
.btn-circle.btn-danger {
    background: #fff !important;
    color: var(--coral) !important;
    border: 2px solid var(--ink) !important;
    box-shadow: 2px 2px 0 var(--ink) !important;
    transition: all 0.2s;
    width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-circle.btn-danger:hover {
        background: var(--coral) !important;
        color: #fff !important;
        transform: translate(-1px, -1px);
        box-shadow: 3px 3px 0 var(--ink) !important;
    }

    .btn-circle.btn-danger i {
        font-size: 1.2rem !important; /* Ajuste para não quebrar o layout */
    }

/* 4. Modais (Ajuste para o estilo Sketch) */
.modal-content {
    border: 3px solid var(--ink) !important;
    border-radius: 20px !important;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1) !important;
}

.modal-header {
    border-bottom: 2px solid #eee !important;
    background: #fdfdfd;
}

.modal-footer {
    border-top: 2px solid #eee !important;
}

/* 5. Inputs dentro da Partial */
.beneficiarios-container .form-control,
.modal-body .form-control {
    border: 2px solid var(--ink) !important;
    box-shadow: 2px 2px 0 var(--ink) !important;
    border-radius: 8px !important;
}

    .beneficiarios-container .form-control:focus {
        box-shadow: 4px 4px 0 var(--ink) !important;
        border-color: var(--teal) !important;
    }

/* 6. Checkbox "Estrangeiro" */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ink) !important;
    cursor: pointer;
}

/* 7. Alertas dentro da Partial */
.alert-info {
    background-color: var(--lime) !important;
    color: var(--ink) !important;
    border: 2px solid var(--ink) !important;
    border-radius: 10px !important;
    font-weight: 600;
}

/* --- Estilização Geral do Módulo de Pets --- */

/* Ajuste para a tabela híbrida de beneficiários */
.tabelaBeneficiariosHibrido {
    border-collapse: separate;
    border-spacing: 0 5px;
}

    .tabelaBeneficiariosHibrido td {
        vertical-align: middle !important;
        padding: 12px;
    }

/* Ícones de Espécie e Sexo */
.fa-dog, .fa-cat, .fa-paw {
    margin-left: 8px;
    color: #4e73df; /* Azul padrão SYS4WEB */
}

/* Botões Customizados para Pets */
.btn-pet {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: .375rem .75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    border-radius: .35rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: bold;
}

.btn-success-pet-beneficiario {
    color: #fff;
    background-color: #1cc88a;
    border: 1px solid #1cc88a;
    width: 100%;
}

    .btn-success-pet-beneficiario:hover {
        background-color: #17a673;
        border-color: #169b6b;
        color: white;
    }

/* Estilo para os Modais do IRIS V6 */
#ModalAdicionarPacientePet .modal-header,
#ModalEditarPacientePet .modal-header {
    border-bottom: 2px solid #4e73df;
}

.modal-content {
    border-radius: .5rem;
    border: none;
}

/* Alerts e Avisos de Validação */
#avisoDtNascimentoInvalida,
#avisoDtNascimentoInvalidaModal,
#avisoSemBeneficiario {
    font-size: 0.75rem;
    font-weight: bold;
    margin-top: 5px;
    display: block;
}

/* Ajustes de inputs dentro da Partial */
.form-group label.small {
    color: #4e73df;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

/* Card de Simulação (Valores) no Modal */
#divValorAdicionalPet .card,
#divValorTotalPet .card,
#divValorAdicional .card,
#divValorTotal .card {
    border-left: 4px solid #4e73df !important; /* Destaque lateral */
}

#labelValorTotalPet, #labelValorTotal {
    color: #1cc88a !important; /* Verde para mensalidade */
}

/* Estilo específico para telas menores (Responsividade) */
@media (max-width: 768px) {
    .colAcoes {
        padding-top: 15px;
        border-bottom: 2px solid #e3e6f0 !important;
    }

    .btn-pet {
        margin-bottom: 10px;
    }
}

/* ============================================================
   ESTILIZAÇÃO "SKETCH" PARA A TABELA DE PETS (DR4PATAS)
   ============================================================ */

/* 1. Ajuste da Tabela para o estilo Painel */
#TabelaBeneficiariosPet {
    border: none;
    margin-bottom: 0;
}

    #TabelaBeneficiariosPet tr {
        background: transparent;
    }

    /* Células da Tabela */
    #TabelaBeneficiariosPet td {
        padding: 16px;
        vertical-align: middle;
        color: var(--dark);
        font-size: 0.95rem;
        border-top: none !important;
    }

    /* Linha separadora com aspecto de rascunho */
    #TabelaBeneficiariosPet tr:not(:last-child) td {
        border-bottom: 2px dashed rgba(71, 96, 103, 0.2) !important;
    }

/* 2. Ícones e Elementos Visuais */
.fa-dog, .fa-cat, .fa-paw {
    color: var(--teal);
    margin: 0 5px;
    filter: drop-shadow(1px 1px 0px #fff);
}

.fa-venus {
    color: var(--coral) !important;
}

.fa-mars {
    color: var(--teal) !important;
}

/* 3. Inputs e Selects dentro da Partial (Estilo Sketch) */
.form-control {
    border: 2px solid var(--ink) !important;
    border-radius: 12px !important;
    padding: 10px 15px !important;
    font-weight: 500;
    color: var(--dark);
    box-shadow: 2px 2px 0px var(--ink);
    transition: all 0.2s ease;
}

    .form-control:focus {
        transform: translate(-1px, -1px);
        box-shadow: 4px 4px 0px var(--ink);
        background-color: #fff;
    }

/* 4. Botões Customizados */
/* Botão Editar (Primary no contexto Dr4Patas) */
.btn-primary.col-md-12 {
    background: var(--teal) !important;
    border: 2px solid var(--ink) !important;
    border-radius: 10px !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0px var(--ink);
    transition: all 0.2s;
}

    .btn-primary.col-md-12:hover {
        transform: translate(-2px, -2px);
        box-shadow: 5px 5px 0px var(--ink);
    }

/* Botão Adicionar Pet (Verde Dr4Patas) */
.btn-success-pet-beneficiario {
    background: var(--lime) !important;
    border: 2px solid var(--ink) !important;
    border-radius: 10px !important;
    color: var(--ink) !important;
    font-weight: 700;
    padding: 10px;
    text-align: center;
    display: block;
    box-shadow: 3px 3px 0px var(--ink);
    text-decoration: none !important;
}

/* 5. Modais (Devem seguir o estilo do Painel) */
.modal-content {
    border: 3px solid var(--ink) !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.1) !important;
}

.modal-header {
    background: #FFF9F0 !important;
    border-bottom: 2px solid var(--ink) !important;
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    color: var(--dark);
}

/* 6. Cards de Valores no Modal */
.card.bg-light.border-0 {
    background: #fff !important;
    border: 2px solid var(--ink) !important;
    border-radius: 12px !important;
    /*transform: rotate(1deg);*/
}

#labelValorTotalPet, #labelValorTotal {
    color: var(--teal) !important;
    font-family: 'Poppins', sans-serif;
}

/* Ajuste de labels pequenos */
label.small.font-weight-bold {
    color: var(--ink);
    font-size: 0.75rem;
    margin-bottom: 4px;
    display: block;
    text-transform: uppercase;
}

/* ============================================================
   ESTILIZAÇÃO DE FORMULÁRIOS (DADOS CADASTRAIS / ENDEREÇO)
   ============================================================ */

/* 1. Ajuste dos Containers (Colunas) */
#formManter .col-lg-4 {
    margin-bottom: 24px;
}

/* 2. Estilo dos Inputs e Selects dentro das Partials de Cadastro */
#formManter .form-control,
#formManter select {
    background-color: #fff !important;
    border: 2px solid var(--ink) !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    height: auto !important; /* Ajuste para padding maior */
    font-weight: 500;
    color: var(--dark) !important;
    box-shadow: 3px 3px 0px var(--ink) !important;
    transition: all 0.2s ease-in-out;
}

    #formManter .form-control:focus {
        transform: translate(-1px, -1px);
        box-shadow: 5px 5px 0px var(--ink) !important;
        outline: none;
    }

/* 3. Labels (Nomes dos campos) */
#formManter label {
    font-weight: 700 !important;
    color: var(--ink) !important;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

/* 4. Tooltip de ajuda (.numero / .numerotext) */
.numero .numerotext {
    background-color: #FFF9F0 !important; /* Cor de fundo Dr4Patas */
    border: 2px solid var(--ink) !important;
    color: var(--ink) !important;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    width: 240px !important;
    padding: 8px !important;
}

    /* Setinha do Tooltip (opcional, mas charmoso) */
    .numero .numerotext::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 100%;
        margin-top: -5px;
        border-width: 5px;
        border-style: solid;
        border-color: transparent var(--ink) transparent transparent;
    }

/* 5. Validation Messages */
.text-danger {
    color: var(--coral) !important;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

/* 6. Destaque para o Card de Endereço de Cobrança */
#showcob {
    transition: all 0.3s ease;
}

    #showcob .card-sketch {
        border-color: var(--coral) !important;
        background-color: rgba(232,102,88,0.05) !important;
    }

/* Ajuste de responsividade para Mobile */
@media (max-width: 991px) {
    #formManter .col-lg-4 {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* ============================================================
   ESTILIZAÇÃO DE PAGAMENTO (CHECKOUT SKETCH)
   ============================================================ */

/* 1. Container de Informações do Cartão Atual (se houver) */
#CardInfo {
    background: #fff !important;
    border: 2px solid var(--ink) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    margin-bottom: 24px !important;
    /*transform: rotate(-0.5deg);*/
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

    #CardInfo p {
        margin-bottom: 4px !important;
        font-weight: 600;
        color: var(--dark);
    }

/* 2. Botões de Seleção de Método (Pagar com Cartão/Boleto/Pix) */
.btn-primary[onclick*="Pagamento"],
.btn-primary[onclick*="Cliente"],
#DivPagarCartaoCredito label,
#DivPagarBoleto label,
#DivPagarPix label {
    background: #fff !important;
    border: 2px solid var(--ink) !important;
    color: var(--ink) !important;
    border-radius: 12px !important;
    padding: 10px 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--ink) !important;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

    .btn-primary:hover, #DivPagarCartaoCredito label:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0px var(--ink) !important;
        background: var(--teal) !important;
        color: #fff !important;
    }

/* 3. Formulário de Dados do Cartão */
#divDadosCartaoCliente {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 16px;
    border: 2px dashed var(--ink);
    margin-top: 20px;
}

    #divDadosCartaoCliente .form-control {
        border: 2px solid var(--ink) !important;
        border-radius: 10px !important;
        box-shadow: 3px 3px 0px var(--ink) !important;
        margin-bottom: 15px;
    }

/* 4. Bandeiras de Cartão */
.iconbandeira {
    filter: grayscale(100%);
    transition: all 0.3s ease;
    margin-right: 10px;
    border: 2px solid transparent;
}

    .iconbandeira:hover, .cartaoSelecionado {
        filter: grayscale(0%) !important;
        transform: scale(1.1);
        border-color: var(--teal) !important;
        border-radius: 6px;
    }

/* 5. Termo de Adesão */
.lblTermoAdesao {
    background: #FFF9F0;
    padding: 15px !important;
    border: 2px solid var(--ink);
    border-radius: 12px;
    font-weight: 600 !important;
    color: var(--dark) !important;
    display: flex !important;
    align-items: center;
    gap: 15px;
    margin: 20px 0 !important;
}

.ckbTermoAdesao {
    accent-color: var(--teal);
    width: 24px !important;
    height: 24px !important;
    cursor: pointer;
}

/* 6. Botão de Ação Principal (Efetuar Pagamento) */
.btn-success.btnpagamento {
    background: var(--lime) !important;
    border: 2px solid var(--ink) !important;
    color: var(--ink) !important;
    border-radius: 14px !important;
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    box-shadow: 5px 5px 0px var(--ink) !important;
    width: 100%;
}

    .btn-success.btnpagamento:hover {
        transform: translate(-3px, -3px);
        box-shadow: 8px 8px 0px var(--ink) !important;
    }

    .btn-success.btnpagamento:disabled {
        background: #ccc !important;
        box-shadow: none !important;
        cursor: not-allowed;
        transform: none;
    }

/* 7. Modal de Seleção de Forma */
#modalFormaPagamento .modal-content {
    border: 3px solid var(--ink) !important;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.1) !important;
}

#modalFormaPagamento .form-check-label {
    font-weight: 700;
    margin-left: 10px;
    font-size: 1.1rem;
}

/* Sobrescreve o limite de 960px para dar mais respiro aos formulários */
section > div[style*="max-width: 960px"] {
    max-width: 1240px !important;
    transition: max-width 0.3s ease;
}

/* Garante que o conteúdo das Partials preencha bem o novo espaço */
.wl-panel-card-body {
    padding: 32px 40px; /* Aumentei um pouco o respiro lateral interno */
}

/* Ajuste para que as colunas de formulário não fiquem excessivamente largas em telas UltraWide */
#formManter .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Garante que o modal fique acima do fundo escuro */
.modal {
    z-index: 1055 !important;
}
/* Garante que o fundo escuro fique logo abaixo do modal, mas acima do conteúdo da página */
.modal-backdrop {
    display: none;
    z-index: 1050 !important;
}

/* Esconde o rádio original (opcional, para não aparecer a bolinha) */
#rad0 {
    display: none;
}

    /* Esconde o fieldset por padrão */
    #rad0 + .set {
        display: none;
    }

    /* Quando o rádio estiver marcado, exibe o fieldset seguinte */
    #rad0:checked + .set {
        display: block;
    }

/* Responsivo — stack no mobile */
@media (max-width: 767px) {
  .wl-step-actions {
    justify-content: center;
  }
  #progressbar li {
    font-size: 0.75rem;
  }
  .wl-step-num {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .wl-panel-card-body {
    padding: 16px;
  }
}
