/* Simulador RCTR-C — página de ferramenta no padrão do Buscador de NCM. */
.sim-page {
  --sim-ink: #082541;
  --sim-muted: #425569;
  --sim-line: #d7dfe7;
  --sim-paper: #f7f6f4;
  --sim-orange: #ac4000;
  --sim-serif: "Source Serif 4", Georgia, serif;
}
.sim-page main { background: var(--sim-paper); }
.sim-page .sim-wrap { width: min(100% - 64px, 1424px); margin-inline: auto; }
.sim-page :is(.sim-card, .sim-result) :is(input, select):focus-visible { outline: 3px solid #0673a5; outline-offset: 2px; }

.sim-hero { position: relative; isolation: isolate; overflow: hidden; background: #061d31; color: #fff; }
.sim-hero::before {
  position: absolute; z-index: -2; inset: 0 0 0 47%; content: "";
  background: linear-gradient(90deg, #061d31, #061d3122 34%, transparent 67%),
    url('../img/editorias/editoria-seguros.webp') 50% 45% / cover no-repeat;
}
.sim-hero::after { position: absolute; inset: 0 auto 0 60%; z-index: -1; width: 15px; transform: skewX(-29deg); background: #ff8a2299; content: ""; }
.sim-hero .sim-wrap { padding-block: 18px 24px; }
.sim-page .sim-hero .breadcrumbs { margin: 0 0 7px 89px; padding: 0; }
.sim-page .sim-hero .breadcrumbs :is(a, li, li::after, li::before) { color: #e7edf4; }
.sim-hero-heading { display: flex; align-items: center; gap: 22px; max-width: 735px; }
.sim-hero-icon { flex: 0 0 67px; height: 67px; display: grid; place-items: center; border: 1px solid #ff870c; border-radius: 12px; color: #ff9b28; }
.sim-hero-icon svg { width: 40px; height: 40px; }
.sim-page .sim-hero h1 { color: #fff; font: 700 clamp(2rem, 3.3vw, 2.75rem)/1.05 var(--sim-serif) !important; margin: 0 0 5px; }
.sim-hero-heading p { color: #f0f5fa; margin: 0; max-width: 62ch; font-size: clamp(.95rem, 1.35vw, 1.125rem); line-height: 1.35; }

.sim-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); gap: clamp(18px, 2vw, 30px); align-items: start; padding-block: 22px 40px; }
.sim-card, .sim-result { min-width: 0; border: 1px solid #e4e5e7; border-radius: 13px; padding: clamp(18px, 1.85vw, 27px); background: #fff; box-shadow: 0 3px 12px #10233d13; }
.sim-page .sim-layout h2 { font: 700 1.35rem/1.15 var(--sim-serif) !important; color: var(--sim-ink); margin: 0 0 16px; }
.sim-form { display: grid; gap: 18px; }
.sim-field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.sim-field > label, .sim-field > legend { display: block; padding: 0; color: var(--sim-ink); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.sim-field small { display: block; color: var(--sim-muted); font-size: .85rem; font-weight: 400; line-height: 1.35; margin-top: 2px; }
.sim-field :is(input[type=number], select) { display: block; width: 100%; min-width: 0; min-height: 48px; font: inherit; font-size: 1.05rem; font-weight: 600; color: var(--sim-ink); background: #fbfcfd; border: 1px solid #a9b6c2; border-radius: 8px; padding: 6px 12px; }
.sim-money { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; }
.sim-money span { display: grid; place-items: center; padding: 0 12px; border: 1px solid #a9b6c2; border-right: 0; border-radius: 8px 0 0 8px; background: #eef4f8; color: var(--sim-muted); font-weight: 600; }
.sim-field .sim-money input { border-radius: 0 8px 8px 0; }
.sim-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.sim-option { position: relative; display: block; }
.sim-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sim-option span { display: grid; place-items: center; min-height: 46px; padding: 6px 8px; border: 1px solid #a9b6c2; border-radius: 8px; background: #fbfcfd; color: var(--sim-ink); font-weight: 600; font-size: .95rem; text-align: center; }
.sim-option input:checked + span { background: #0a3554; border-color: #0a3554; color: #fff; }
.sim-option input:focus-visible + span { outline: 3px solid #0673a5; outline-offset: 2px; }

.sim-result { background: #fbf9f7; border-color: #e9e4df; }
.sim-total { border-radius: 10px; padding: 22px 16px; background: #061d31; color: #fff; text-align: center; }
.sim-total .rot { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #ffb45e; }
.sim-total .val { font: 700 clamp(2rem, 3.4vw, 2.9rem)/1.15 var(--sim-serif); font-variant-numeric: tabular-nums; margin-top: 4px; white-space: nowrap; }
.sim-total .obs { font-size: .9rem; color: #dfe8f0; margin-top: 4px; }
.sim-lines { margin: 8px 0 0; }
.sim-lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--sim-line); }
.sim-lines dt { color: var(--sim-muted); font-size: .95rem; }
.sim-lines dd { margin: 0; color: var(--sim-ink); font: 700 1.15rem/1.2 var(--sim-serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-note { margin: 14px 0 0; padding: 11px 14px; border: 1px solid #e0ebf2; border-radius: 10px; background: #eaf2f7; color: var(--sim-ink); font-size: .88rem; line-height: 1.4; }

.sim-page .sim-artigo-topo { padding-top: 8px; }
.sim-page .sim-artigo-topo .artigo-cabecalho { padding-top: 0; }
.sim-page h2.artigo-cabecalho__titulo { margin-top: 10px; font-size: clamp(1.55rem, 2.4vw, 2.1rem) !important; line-height: 1.2 !important; }

@media (max-width: 900px) {
  .sim-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sim-page .sim-wrap { width: calc(100% - 30px); }
  .sim-hero .sim-wrap { padding-block: 15px 19px; }
  .sim-hero::before { inset-inline-start: 25%; opacity: .5; }
  .sim-hero::after { display: none; }
  .sim-page .sim-hero .breadcrumbs { margin-left: 0; }
  .sim-hero-heading { gap: 14px; align-items: flex-start; }
  .sim-hero-icon { flex-basis: 52px; height: 52px; }
  .sim-hero-icon svg { width: 30px; height: 30px; }
}
@media (max-width: 420px) {
  .sim-options { grid-template-columns: minmax(0, 1fr); }
}
