﻿/*
Theme Name: Rota do Credito Prescricao
Theme URI: https://rotadocredito.com.br/
Author: Rota do Credito
Description: Tema WordPress para a Calculadora da Prescricao da plataforma Rota do Credito.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: rotacredito-prescricao
*/
:root {
  --azul: #102a43;
  --azul-claro: #1f4e79;
  --branco: #ffffff;
  --cinza-fundo: #eef2f6;
  --cinza-borda: #d7dee8;
  --cinza-texto: #52616f;
  --verde: #1f8a4c;
  --verde-fundo: #e8f6ee;
  --amarelo: #b7791f;
  --amarelo-fundo: #fff7df;
  --vermelho: #c53030;
  --vermelho-fundo: #fdecec;
  --sombra: 0 18px 45px rgba(16, 42, 67, 0.12);
  --raio: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--azul);
  background:
    linear-gradient(180deg, rgba(16, 42, 67, 0.92), rgba(31, 78, 121, 0.84) 310px, transparent 310px),
    var(--cinza-fundo);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

.pagina {
  width: min(100% - 32px, 900px);
  margin: 0 auto;
  padding: 38px 0 44px;
}

.cabecalho {
  color: var(--branco);
  margin-bottom: 26px;
}

.marca {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b7d4ef;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.subtitulo {
  max-width: 760px;
  margin-bottom: 10px;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
}

.intro {
  margin-bottom: 0;
  color: #d9e7f5;
}

.card,
.relatorio-bloco,
.aviso-legal {
  background: var(--branco);
  border: 1px solid rgba(215, 222, 232, 0.9);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.assistente {
  padding: clamp(20px, 4vw, 34px);
  margin-bottom: 24px;
}

.progresso-area {
  margin-bottom: 28px;
}

.progresso-texto {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 9px;
  color: var(--cinza-texto);
  font-size: 0.94rem;
  font-weight: 700;
}

.barra-progresso {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe4ef;
}

.barra-progresso span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--verde), #2fba73);
  transition: width 220ms ease;
}

.etapa {
  min-height: 260px;
  animation: aparecer 180ms ease;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.etapa h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  line-height: 1.2;
}

.etapa p {
  color: var(--cinza-texto);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

select,
input[type="date"] {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  color: var(--azul);
  background: var(--branco);
  border: 1px solid var(--cinza-borda);
  border-radius: 12px;
  outline: none;
}

select:focus,
input[type="date"]:focus {
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 4px rgba(31, 78, 121, 0.12);
}

.opcoes {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.opcao {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px;
  border: 1px solid var(--cinza-borda);
  border-radius: 14px;
  background: #fbfdff;
  cursor: pointer;
}

.opcao input {
  width: 19px;
  height: 19px;
  margin: 0;
  flex: 0 0 auto;
}

.opcao span {
  font-weight: 700;
}

.campo-condicional {
  margin-top: 22px;
  padding: 18px;
  border-radius: 14px;
  background: #f6f8fb;
  border: 1px solid var(--cinza-borda);
}

.mensagem-erro {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--vermelho);
  font-weight: 700;
}

.acoes,
.relatorio-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.botao {
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.botao:hover {
  transform: translateY(-1px);
}

.botao:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.botao-primario {
  color: var(--branco);
  background: var(--azul-claro);
  box-shadow: 0 10px 22px rgba(31, 78, 121, 0.24);
}

.botao-secundario {
  color: var(--azul);
  background: #e7edf4;
}

.relatorio {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.relatorio[hidden] {
  display: none;
}

.relatorio > h2 {
  margin: 14px 0 0;
  color: var(--branco);
}

.relatorio-bloco {
  padding: clamp(18px, 3vw, 28px);
}

.resultado-card {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid currentColor;
  border-left-width: 8px;
}

.resultado-card.verde {
  color: #14532d;
  background: var(--verde-fundo);
  border-color: var(--verde);
}

.resultado-card.amarelo {
  color: #7c3f00;
  background: var(--amarelo-fundo);
  border-color: #d97706;
}

.resultado-card.vermelho {
  color: #7f1d1d;
  background: var(--vermelho-fundo);
  border-color: var(--vermelho);
}

.resultado-card p,
.resultado-card h3 {
  color: inherit;
}

.selo {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.alerta-incompleto {
  margin-top: 18px;
  padding: 20px;
  color: #6b3500;
  background: #fff4cf;
  border: 2px solid #d97706;
  border-radius: 16px;
}

.alerta-incompleto strong {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.alerta-incompleto h3 {
  margin-bottom: 10px;
  color: #5f2e00;
}

.alerta-incompleto p {
  color: #6b3500;
}

.alerta-incompleto ul {
  margin: 0 0 12px;
  padding-left: 22px;
  font-weight: 700;
}

.proximos-passos-topo {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--cinza-borda);
}

.proximos-passos-topo h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--azul);
}

.proximos-passos-topo > p {
  color: var(--cinza-texto);
}

.cards-passos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 12px;
}

.card-passo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  color: var(--branco);
  background: var(--azul);
  border: 1px solid rgba(16, 42, 67, 0.28);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(16, 42, 67, 0.14);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.card-passo:hover {
  color: var(--branco);
  background: #0b1f33;
  box-shadow: 0 16px 32px rgba(16, 42, 67, 0.22);
  transform: translateY(-2px);
}

.card-passo-principal {
  background: var(--azul-claro);
  box-shadow: 0 16px 34px rgba(31, 78, 121, 0.24);
}

.card-passo strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
  line-height: 1.25;
}

.card-passo small {
  display: block;
  color: #d9e7f5;
  font-size: 0.92rem;
  line-height: 1.35;
}

.card-passo b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: var(--azul);
  background: var(--branco);
  border-radius: 50%;
  font-size: 1.2rem;
}

.nota-passos {
  margin-bottom: 0;
  font-weight: 700;
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 2px 0 16px 32px;
  border-left: 2px solid var(--cinza-borda);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--azul-claro);
  box-shadow: 0 0 0 5px #e7edf4;
}

.timeline strong {
  display: block;
  margin-bottom: 3px;
}

.lista {
  margin: 0;
  padding-left: 20px;
}

.lista li + li {
  margin-top: 8px;
}

.botoes-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.botoes-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--branco);
  background: var(--azul-claro);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.aviso-legal {
  padding: clamp(16px, 2.4vw, 22px);
  color: var(--cinza-texto);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.78);
}

.aviso-legal h2 {
  color: var(--azul);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.aviso-legal p {
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.cards-pendencias {
  display: grid;
  gap: 12px;
}

.card-pendencia {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #fffaf0;
  border: 1px solid #f1c36d;
  border-radius: 14px;
}

.card-pendencia > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: #7c3f00;
  background: #ffe8a6;
  border-radius: 50%;
  font-weight: 900;
}

.card-pendencia h3 {
  margin-bottom: 4px;
  color: #5f2e00;
  font-size: 1rem;
}

.card-pendencia p {
  margin-bottom: 0;
  color: #6b3500;
}

.rodape {
  box-shadow: none;
}

@media (max-width: 620px) {
  .pagina {
    width: min(100% - 22px, 900px);
    padding-top: 26px;
  }

  .acoes,
  .relatorio-acoes {
    justify-content: stretch;
  }

  .botao {
    width: 100%;
  }

  .cards-passos {
    grid-template-columns: 1fr;
  }

  .opcao {
    align-items: flex-start;
  }
}

@media print {
  body {
    background: var(--branco);
  }

  .cabecalho,
  .assistente,
  .rodape,
  .relatorio-acoes {
    display: none;
  }

  .pagina {
    width: 100%;
    padding: 0;
  }

  .relatorio > h2 {
    color: var(--azul);
  }

  .relatorio-bloco,
  .aviso-legal {
    box-shadow: none;
    break-inside: avoid;
  }
}

