/* Estilos temporarios da pagina Saldo Devedor.
   Pode ser removido quando o bloco equivalente estiver em ../../style/style.css. */

.saldo-page {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 34px) 0 clamp(34px, 5vw, 62px);
  color: #252525;
  text-align: left;
}

.saldo-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.8vw, 24px);
  align-items: start;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid #d7d7d7;
  border-left: 6px solid var(--primary);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f3f3f3);
}

.saldo-label {
  margin: 0 0 8px;
  color: #606060;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.saldo-hero h1 {
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 900;
  line-height: 1;
}

.saldo-hero p,
.saldo-alerta p,
.saldo-note p,
.saldo-step-card p,
.saldo-contact p {
  color: #606060;
  line-height: 1.65;
}

.saldo-hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.saldo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.saldo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: #ffffff;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
  line-height: 1.2;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.links-padrao main .saldo-btn,
body.links-padrao main .saldo-btn:visited {
  color: var(--primary);
  text-decoration: none;
}

.saldo-btn:hover,
.saldo-btn:focus-visible {
  background: #eeeeee;
  color: var(--primary-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

body.links-padrao main .saldo-btn:hover,
body.links-padrao main .saldo-btn:focus-visible {
  color: var(--primary-dark);
  text-decoration: none;
}

.saldo-btn--primary,
.saldo-btn--portal {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #ffffff;
}

.saldo-btn--primary i {
  color: inherit;
}

body.links-padrao main .saldo-btn--primary,
body.links-padrao main .saldo-btn--primary:visited,
body.links-padrao main .saldo-btn--portal,
body.links-padrao main .saldo-btn--portal:visited {
  color: #ffffff;
  text-decoration: none;
}

.saldo-btn--primary:hover,
.saldo-btn--primary:focus-visible,
.saldo-btn--portal:hover,
.saldo-btn--portal:focus-visible {
  border-color: #000000;
  background: #000000;
  color: #ffffff;
}

body.links-padrao main .saldo-btn--primary:hover,
body.links-padrao main .saldo-btn--primary:focus-visible,
body.links-padrao main .saldo-btn--portal:hover,
body.links-padrao main .saldo-btn--portal:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.saldo-alerta,
.saldo-note,
.saldo-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: clamp(18px, 3vw, 30px) 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid #d7d7d7;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  background: #f3f3f3;
}

.saldo-alerta > i,
.saldo-note > i,
.saldo-phone i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  font-size: 1rem;
}

.saldo-alerta--portal {
  position: relative;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 22px);
  align-items: center;
  padding: clamp(20px, 3.2vw, 30px);
  border: 1px solid #c8c8c8;
  border-left: 6px solid var(--primary-dark);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 243, 243, 0.96)),
    linear-gradient(90deg, rgba(42, 44, 44, 0.12), rgba(42, 44, 44, 0));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
  overflow: hidden;
}

.saldo-alerta--portal::after {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(42, 44, 44, 0.10);
  border-radius: 50%;
  pointer-events: none;
}

.saldo-alerta--portal > i {
  width: 52px;
  height: 52px;
  border-color: var(--primary-dark);
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.saldo-alerta-content {
  position: relative;
  z-index: 1;
}

.saldo-alerta-kicker {
  margin: 0 0 5px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.links-padrao main .saldo-alerta--portal h2 a,
body.links-padrao main .saldo-alerta--portal h2 a:visited {
  color: var(--primary-dark);
  text-decoration: none;
}

body.links-padrao main .saldo-alerta--portal h2 a:hover,
body.links-padrao main .saldo-alerta--portal h2 a:focus-visible {
  color: #000000;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.saldo-alerta--portal .saldo-btn--portal {
  margin-top: 10px;
}

.saldo-alerta h2,
.saldo-note h2,
.saldo-section-heading h2,
.saldo-step-card h3,
.saldo-contact h2 {
  color: var(--primary-dark);
  font-weight: 900;
}

.saldo-alerta h2,
.saldo-note h2,
.saldo-contact h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.saldo-alerta p,
.saldo-note p,
.saldo-contact p {
  margin: 0 0 8px;
}

.saldo-alerta p:last-child,
.saldo-note p:last-child,
.saldo-contact p:last-child {
  margin-bottom: 0;
}

.saldo-section {
  margin: clamp(24px, 4vw, 44px) 0;
}

.saldo-section-heading {
  max-width: 780px;
  margin-bottom: 16px;
}

.saldo-section-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.18;
}

.saldo-carousel {
  position: relative;
  padding: 0 58px 50px;
}

.saldo-carousel .carousel-inner {
  overflow: hidden;
  border-radius: 10px;
}

.saldo-carousel .carousel-item {
  min-height: 1px;
}

.saldo-step-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 560px;
  padding: 0;
  border: 1px solid #d7d7d7;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.saldo-step-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: clamp(16px, 2.4vw, 24px) clamp(16px, 2.4vw, 24px) 0;
}

.saldo-step-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.saldo-step-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.saldo-step-card p {
  margin: 0;
}

.saldo-step-media {
  display: flex;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.saldo-step-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.saldo-step-zoom {
  position: relative;
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.saldo-step-zoom:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: -6px;
}

.saldo-step-zoom-icon {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.82);
  color: #ffffff;
  font-size: 1.05rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.saldo-step-zoom:hover .saldo-step-zoom-icon,
.saldo-step-zoom:focus-visible .saldo-step-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.saldo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: none;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.saldo-lightbox--open {
  display: grid;
}

.saldo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(3px);
}

.saldo-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1180px);
  max-height: calc(100vh - clamp(28px, 6vw, 68px));
  outline: 0;
}

.saldo-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.saldo-lightbox-close:hover,
.saldo-lightbox-close:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
}

.saldo-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(26, 26, 26, 0.82);
  color: #ffffff;
  font-size: 1.2rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.saldo-lightbox-nav:hover,
.saldo-lightbox-nav:focus-visible {
  background: #ffffff;
  color: var(--primary-dark);
  transform: translateY(-50%) scale(1.04);
}

.saldo-lightbox-nav--prev {
  left: clamp(-24px, -2vw, -14px);
}

.saldo-lightbox-nav--next {
  right: clamp(-24px, -2vw, -14px);
}

.saldo-lightbox-figure {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: clamp(10px, 1.8vw, 16px);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.saldo-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 6px;
  background: #f3f3f3;
}

.saldo-lightbox-figure figcaption {
  color: var(--primary-dark);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

body.saldo-lightbox-open {
  overflow: hidden;
}

.saldo-step-media--narrow {
  justify-self: center;
  width: min(100%, 150px);
  padding: 10px;
  background: #ffffff;
}

.saldo-step-media--narrow img {
  max-height: 340px;
  object-fit: contain;
}

.saldo-carousel-control {
  position: absolute;
  top: calc(50% - 25px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary-dark);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.saldo-carousel-control:hover,
.saldo-carousel-control:focus-visible {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.saldo-carousel-control--prev {
  left: 0;
}

.saldo-carousel-control--next {
  right: 0;
}

.saldo-carousel-indicators {
  right: 58px;
  bottom: 0;
  left: 58px;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.saldo-carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background-color: #9a9a9a;
  opacity: 1;
}

.saldo-carousel-indicators .active {
  width: 34px;
  border-radius: 999px;
  background-color: var(--primary-dark);
}

.saldo-contact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.saldo-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.saldo-phone:hover,
.saldo-phone:focus-visible {
  background: #e9e9e9;
  color: var(--primary-dark);
}

body.tema-escuro .saldo-page {
  color: #f1f1f1;
}

body.tema-escuro .saldo-hero,
body.tema-escuro .saldo-step-card {
  background: #444444;
  border-color: #707070;
}

body.tema-escuro .saldo-hero {
  background: linear-gradient(135deg, #444444, #505050);
}

body.tema-escuro .saldo-alerta,
body.tema-escuro .saldo-note,
body.tema-escuro .saldo-contact {
  background: #505050;
  border-color: #707070;
}

body.tema-escuro .saldo-hero h1,
body.tema-escuro .saldo-alerta h2,
body.tema-escuro .saldo-note h2,
body.tema-escuro .saldo-section-heading h2,
body.tema-escuro .saldo-step-card h3,
body.tema-escuro .saldo-contact h2,
body.tema-escuro .saldo-phone {
  color: #ffffff;
}

body.tema-escuro .saldo-hero p,
body.tema-escuro .saldo-alerta p,
body.tema-escuro .saldo-note p,
body.tema-escuro .saldo-step-card p,
body.tema-escuro .saldo-contact p,
body.tema-escuro .saldo-label {
  color: #e1e1e1;
}

body.tema-escuro .saldo-step-media {
  background: #3b3b3b;
  border-color: #707070;
}

body.tema-escuro .saldo-step-zoom:focus-visible {
  outline-color: #e5e5e5;
}

body.tema-escuro .saldo-step-media--narrow {
  background: #444444;
}

body.tema-escuro .menu-card .saldo-symbol--menu {
  filter: brightness(0) invert(1) contrast(1.2);
}

body.tema-escuro .saldo-btn {
  background: #444444;
  border-color: #8a8a8a;
  color: #ffffff;
}

body.tema-escuro .saldo-btn--primary,
body.tema-escuro .saldo-btn--portal {
  border-color: #e5e5e5;
  background: #e5e5e5;
  color: #111111;
}

body.tema-escuro.links-padrao main .saldo-btn,
body.tema-escuro.links-padrao main .saldo-btn:visited {
  color: #ffffff;
  text-decoration: none;
}

body.tema-escuro.links-padrao main .saldo-btn--primary,
body.tema-escuro.links-padrao main .saldo-btn--primary:visited,
body.tema-escuro.links-padrao main .saldo-btn--portal,
body.tema-escuro.links-padrao main .saldo-btn--portal:visited {
  color: #111111;
  text-decoration: none;
}

body.tema-escuro .saldo-alerta > i,
body.tema-escuro .saldo-note > i,
body.tema-escuro .saldo-phone i {
  background: #444444;
  border-color: #707070;
  color: #ffffff;
}

body.tema-escuro .saldo-alerta--portal {
  border-color: #8a8a8a;
  border-left-color: #e5e5e5;
  background:
    linear-gradient(135deg, rgba(68, 68, 68, 0.96), rgba(80, 80, 80, 0.96)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

body.tema-escuro .saldo-alerta--portal::after {
  border-color: rgba(255, 255, 255, 0.14);
}

body.tema-escuro .saldo-alerta--portal > i {
  background: #e5e5e5;
  border-color: #e5e5e5;
  color: #111111;
}

body.tema-escuro .saldo-alerta-kicker {
  color: #f1f1f1;
}

body.tema-escuro.links-padrao main .saldo-alerta--portal h2 a,
body.tema-escuro.links-padrao main .saldo-alerta--portal h2 a:visited {
  color: #ffffff;
}

body.tema-escuro .saldo-btn--portal:hover,
body.tema-escuro .saldo-btn--portal:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

body.tema-escuro .saldo-lightbox-close {
  background: #444444;
  border-color: #707070;
  color: #ffffff;
}

body.tema-escuro .saldo-lightbox-close:hover,
body.tema-escuro .saldo-lightbox-close:focus-visible {
  background: #e5e5e5;
  color: #111111;
}

body.tema-escuro .saldo-lightbox-nav {
  border-color: rgba(255, 255, 255, 0.42);
}

body.tema-escuro .saldo-lightbox-nav:hover,
body.tema-escuro .saldo-lightbox-nav:focus-visible {
  background: #e5e5e5;
  color: #111111;
}

body.tema-escuro .saldo-lightbox-figure {
  background: #444444;
}

body.tema-escuro .saldo-lightbox-figure img {
  background: #3b3b3b;
}

body.tema-escuro .saldo-lightbox-figure figcaption {
  color: #ffffff;
}

body.tema-escuro .saldo-carousel-control {
  background: #444444;
  border-color: #707070;
  color: #ffffff;
}

body.tema-escuro .saldo-carousel-control:hover,
body.tema-escuro .saldo-carousel-control:focus-visible {
  background: #e5e5e5;
  color: #111111;
}

body.tema-escuro .saldo-carousel-indicators [data-bs-target] {
  background-color: #a0a0a0;
}

body.tema-escuro .saldo-carousel-indicators .active {
  background-color: #ffffff;
}

@media (max-width: 820px) {
  .saldo-hero,
  .saldo-contact {
    grid-template-columns: 1fr;
  }

  .saldo-hero-actions {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (max-width: 680px) {
  .saldo-carousel {
    padding: 0 0 52px;
  }

  .saldo-carousel-control {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .saldo-carousel-control:hover,
  .saldo-carousel-control:focus-visible {
    transform: scale(1.04);
  }

  .saldo-carousel-control--prev {
    left: 0;
  }

  .saldo-carousel-control--next {
    right: 0;
  }

  .saldo-carousel-indicators {
    right: 54px;
    left: 54px;
  }

  .saldo-lightbox-close {
    top: 8px;
    right: 8px;
  }

  .saldo-lightbox-nav {
    width: 42px;
    height: 42px;
  }

  .saldo-lightbox-nav--prev {
    left: 8px;
  }

  .saldo-lightbox-nav--next {
    right: 8px;
  }

  .saldo-lightbox-figure img {
    max-height: calc(100vh - 130px);
  }
}

@media (max-width: 560px) {
  .saldo-hero {
    padding: 20px 16px;
  }

  .saldo-hero-actions,
  .saldo-btn,
  .saldo-phone {
    width: 100%;
  }

  .saldo-alerta,
  .saldo-note {
    grid-template-columns: 1fr;
  }

  .saldo-step-copy {
    grid-template-columns: 1fr;
  }

  .saldo-step-card {
    min-height: 0;
  }
}

/* Paleta de alto contraste coerente para Saldo Devedor no tema escuro */
body.tema-escuro .saldo-page {
  color: #e8eef6;
}

body.tema-escuro .saldo-hero,
body.tema-escuro .saldo-step-card,
body.tema-escuro .saldo-alerta,
body.tema-escuro .saldo-note,
body.tema-escuro .saldo-contact {
  border-color: #3b4b5e;
  background: #18212d;
  color: #e8eef6;
}

body.tema-escuro .saldo-hero {
  background: linear-gradient(135deg, #18212d, #202c3a);
}

body.tema-escuro .saldo-alerta--portal {
  border-color: #3b4b5e;
  border-left-color: #79baff;
  background: linear-gradient(135deg, #1c2938, #16212e);
}

body.tema-escuro .saldo-hero h1,
body.tema-escuro .saldo-alerta h2,
body.tema-escuro .saldo-note h2,
body.tema-escuro .saldo-section-heading h2,
body.tema-escuro .saldo-step-card h3,
body.tema-escuro .saldo-contact h2,
body.tema-escuro .saldo-phone {
  color: #f3f7fc;
}

body.tema-escuro .saldo-hero p,
body.tema-escuro .saldo-alerta p,
body.tema-escuro .saldo-note p,
body.tema-escuro .saldo-step-card p,
body.tema-escuro .saldo-contact p,
body.tema-escuro .saldo-label {
  color: #c5d1df;
}

body.tema-escuro .saldo-alerta--portal h2 a,
body.tema-escuro .saldo-alerta--portal h2 a:visited {
  color: #c1e0ff;
}

body.tema-escuro .saldo-step-media,
body.tema-escuro .saldo-step-media--narrow {
  border-color: #3b4b5e;
  background: #111a24;
}

body.tema-escuro .saldo-btn {
  border-color: #58708a;
  background: #202d3b;
  color: #f3f7fc;
}

body.tema-escuro .saldo-btn--primary,
body.tema-escuro .saldo-btn--portal {
  border-color: #2573b8;
  background: #185f9e;
  color: #fff;
}

body.tema-escuro .saldo-alerta > i,
body.tema-escuro .saldo-note > i,
body.tema-escuro .saldo-phone i {
  border-color: #49617a;
  background: #202d3b;
  color: #c1e0ff;
}

body.tema-escuro .saldo-lightbox-figure,
body.tema-escuro .saldo-lightbox-figure img {
  border-color: #3b4b5e;
  background: #111a24;
}
