/* Camada visual: identidade Jadlog Express */
:root {
  --primary:      #BA1D34;
  --primary-dark: #95172a;
  --secondary:    #DC0132;
  --secondary-dark:#b80029;
  --bg:           #f5f7fb;
  --dark:         #1a0a0d;
  --text:         #27374f;
  --muted:        #67768b;
  --border:       #e2e8f0;
  --success:      #168458;
  --warning:      #a96513;
  --danger:       #DC0132;
  --action:       #DC0132;
  --action-dark:  #b80029;
}

html { min-height: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 4% 2%, rgba(16, 44, 92, .055), transparent 25rem),
    radial-gradient(circle at 98% 30%, rgba(244, 119, 25, .045), transparent 27rem),
    var(--bg);
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

.r3-topbar {
  background: #1a0608;
  color: #c3d0e2;
  padding: 8px 24px;
  border: 0;
  letter-spacing: .015em;
}
.r3-topbar-inner { max-width: 1120px; }
.r3-topbar-inner strong { color: #fff; }

.r3-header,
.topbar {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid #e8edf4;
  box-shadow: 0 8px 24px rgba(13, 35, 70, .045);
}
.r3-header-inner {
  max-width: 1120px;
  min-height: 100px;
  padding: 14px 24px;
}
.r3-logo-group,
#homeLink { gap: 20px; }
.r3-logo-img,
.topbar img {
  width: 208px;
  height: auto !important;
  max-height: 78px;
  object-fit: contain;
  flex: 0 0 auto;
}
.r3-tagline,
#homeLink span {
  color: #5c6b80 !important;
  border-left: 1px solid #dce3ed !important;
  padding-left: 20px !important;
  font-size: 12px !important;
  font-weight: 600;
  line-height: 1.4 !important;
}
.r3-badge-secure,
.topbar-secure {
  background: #f0f6f4;
  border: 1px solid #d8e8e1;
  color: #236248;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 11.5px;
  letter-spacing: .015em;
}
.r3-badge-secure svg,
.topbar-secure svg { color: #168458; }

.r3-breadcrumb {
  max-width: 1120px;
  margin-top: 24px;
  color: #8190a3;
  font-size: 12.5px;
}
.r3-breadcrumb a,
.r3-breadcrumb span:first-child { color: #375273; }
.r3-breadcrumb a:hover { color: var(--secondary); }

.r3-wrap { max-width: 920px; margin-top: 28px; margin-bottom: 64px; }
.r3-card,
.card {
  border: 1px solid #e7ebf2;
  border-radius: 18px;
  box-shadow: 0 20px 55px rgba(16, 44, 92, .07), 0 2px 6px rgba(16, 44, 92, .025);
}
.r3-card { padding: clamp(26px, 5vw, 48px); }

.hero-icon,
.section-icon {
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dce7f3;
  border-radius: 18px;
  background: linear-gradient(145deg, #f9fbfe, #e9f1f9);
  box-shadow: inset 0 1px #fff, 0 8px 20px rgba(16, 44, 92, .055);
  margin-bottom: 20px;
}
.hero-icon img,
.section-icon img { width: 34px; height: 34px; }
.search-hero-box h1,
.confirm-name-card h1 {
  color: var(--dark);
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.22;
  letter-spacing: -.035em;
  margin-bottom: 10px;
}
.search-hero-box p,
.confirm-name-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 30px;
}
.r3-input-group { max-width: 560px; gap: 13px; }
.search-mode-selector {
  background: #f7f9fc;
  border: 1px solid #e5ebf3;
  border-radius: 13px;
  padding: 18px 20px;
  margin-bottom: 13px;
}
.search-mode-title { color: #32445d; font-size: 13px; margin-bottom: 13px; }
.search-mode-options { gap: 12px; }
.mode-option {
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 9px;
  min-height: 42px;
  padding: 8px 13px;
  color: #30445e;
  font-size: 12.5px;
  transition: border-color .2s, box-shadow .2s;
}
.mode-option:has(input:checked) { border-color: #a7bfd9; box-shadow: 0 0 0 3px rgba(16, 44, 92, .06); }
.mode-option input[type="radio"] { width: 18px; height: 18px; border-width: 1.5px; }
.mode-option input[type="radio"]::before { width: 8px; height: 8px; }
.r3-input,
.field input {
  border-radius: 10px;
  border-color: #d7e0eb;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 44, 92, .025);
}
.r3-input:focus,
.field input:focus { box-shadow: 0 0 0 4px rgba(16, 44, 92, .11); }
.r3-btn,
.cta,
.copy-btn {
  background: var(--action);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(220, 1, 50, .22);
  transition: transform .2s, box-shadow .2s, background .2s;
  gap: 10px;
  font-size: 17px;
}
.r3-btn-danger { background: var(--action); }
.r3-btn:not(:disabled),
.cta:not(:disabled),
.copy-btn:not(:disabled),
.bump.on .bump-btn { animation: actionPulse 2.5s ease-out infinite; }
.r3-btn:hover:not(:disabled),
.cta:hover:not(:disabled),
.copy-btn:hover {
  background: var(--action-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(220, 1, 50, .28);
  animation: none;
}
.r3-btn-danger:hover:not(:disabled),
.cta:hover:not(:disabled) { background: var(--action-dark); }
.r3-btn:focus-visible, .cta:focus-visible, .copy-btn:focus-visible { animation: none; }
.btn-secondary { font-size: 15.5px; }
#btnContinuar { font-size: 17px !important; }
@keyframes actionPulse {
  0%, 100% { background-color: var(--action); box-shadow: 0 8px 18px rgba(220, 1, 50, .22), 0 0 0 0 rgba(220, 1, 50, .22); }
  50% { background-color: #e8003b; box-shadow: 0 10px 20px rgba(220, 1, 50, .28), 0 0 0 8px rgba(220, 1, 50, 0); }
}
.button-icon { width: 19px; height: 19px; filter: brightness(0) invert(1); flex-shrink: 0; }
:is(a, button, input, textarea):focus-visible { outline: 3px solid rgba(220, 1, 50, .5); outline-offset: 3px; }

.alert-taxa-box {
  background: #fff7f6;
  border: 1px solid #f3d2ce;
  border-left: 4px solid #b42318;
  border-radius: 12px;
  padding: 20px 23px;
}
.alert-taxa-header { color: #b42318; line-height: 1.4; }
.alert-taxa-sub { color: #8c3028; line-height: 1.6; }
.order-code-badge { background: #f3f7fb; border-color: #dfe8f2; border-radius: 999px; }
.status-blinking { color: #98621e; background: #fff8e9; padding: 7px 12px; border-radius: 999px; }
.info-destinatario-card {
  background: #fbfcfe;
  border-color: #e6edf5;
  border-radius: 12px;
  padding: 23px 25px;
  gap: 18px 22px;
}
.info-field-lbl { letter-spacing: .07em; }
.aviso-operacional { background: #f3f7fb; border-left-color: #7494b8; border-radius: 0 9px 9px 0; line-height: 1.6; }
.cta-box-taxa .r3-btn { min-height: 58px; height: auto; padding-top: 12px; padding-bottom: 12px; line-height: 1.25; font-size: 17px; }
.cta-box-taxa .button-label { text-wrap: balance; }
.timeline-title { color: var(--dark); font-size: 20px; letter-spacing: -.02em; }
.r3-tl-item { gap: 18px; margin-bottom: 30px; }
.r3-tl-icon { width: 46px; height: 46px; border: 1px solid #dbe6f1; background: #f4f8fc; box-shadow: inset 0 1px #fff; }
.r3-tl-icon img { width: 23px; height: 23px; }
.r3-tl-item.done .r3-tl-icon { background: #eaf2f8; border-color: #d4e3ef; }
.r3-tl-item.active .r3-tl-icon { background: #fff0ee; border-color: #efb6af; box-shadow: 0 0 0 4px rgba(180, 35, 24, .07); }
.r3-tl-item:not(:last-child)::after { left: 22px; top: 46px; }
.r3-tl-item.done:not(:last-child)::after { background: #bed2e4; }
.r3-tl-title { color: #20344e; }
.r3-tl-item.active .r3-tl-content {
  min-width: 0;
  padding: 12px 14px;
  background: #fff7f6;
  border: 1px solid #f3d2ce;
  border-radius: 10px;
}
.r3-tl-item.active .r3-tl-title { color: #b42318; }
.r3-tl-item.active .r3-tl-desc { color: #76514c; }
.r3-tl-item.active .r3-tl-link {
  color: #b42318;
  margin-top: 8px;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.r3-tl-item.active .r3-tl-link:hover { color: #861b13; }
.r3-tl-desc { line-height: 1.55; }

.confirm-name-card { max-width: 610px; margin: 0 auto; }
.name-display-box {
  background: #f7f9fc;
  border-color: #dfe8f2;
  border-radius: 11px;
  padding: 20px;
  letter-spacing: .01em;
}
.confirm-label { color: #40516a; }

.r3-footer,
body > footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #e6ebf2;
  color: #718095;
}

/* Checkout */
.topbar { min-height: 100px; padding: 14px max(24px, calc((100vw - 1120px) / 2)); }
.wrap { max-width: 1120px; margin-top: 28px; gap: 26px; grid-template-columns: minmax(0, 1fr) 340px; }
.main-card { padding: clamp(24px, 3vw, 36px); }
.main-card h1 { color: var(--dark); line-height: 1.25; letter-spacing: -.03em; }
.main-card h1 .heading-icon { width: 28px; height: 28px; vertical-align: -.16em; margin-right: 6px; }
p.lead { line-height: 1.6; }
.stepper { background: #f7f9fc; border: 1px solid #e6ecf4; border-radius: 12px; padding: 14px; }
.step-num { width: 34px; height: 34px; }
.step-item.active .step-num { box-shadow: 0 0 0 4px rgba(16, 44, 92, .09); }
.step-item.done .step-num { background: var(--success); }
.field label { color: #40516a; }
.btn-secondary { border-radius: 10px; }
.bumps-heading { color: var(--dark); }
.bumps-sub { line-height: 1.6; }
.bump { border-color: #e2e9f1; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(16, 44, 92, .025); }
.bump.on { border-color: #a9c2db; background: #f7fafd; box-shadow: 0 0 0 3px rgba(16, 44, 92, .06); }
.bump-img img { width: 58px; height: 58px; border-radius: 9px; }
.bump-btn { border-radius: 8px; }
.bump.on .bump-btn { background: var(--action); border-color: var(--action); font-size: 14px; }
.summary-card { padding: 27px; }
.summary-card h2 { color: var(--dark); letter-spacing: -.02em; }
.summary-secure { line-height: 1.55; }
.pix-code { border-radius: 10px; }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .summary-card { position: static; }
}
@media (max-width: 600px) {
  .r3-topbar { padding: 7px 16px; }
  .r3-topbar-inner { justify-content: center; text-align: center; }
  .r3-topbar-inner span:last-child { display: none; }
  .r3-header-inner, .topbar {
    min-height: 78px;
    padding: 12px 16px;
    position: relative;
    justify-content: center;
  }
  .r3-logo-group, #homeLink { margin-inline: auto; }
  .r3-logo-img, .topbar img { width: 168px; max-height: 62px; }
  .r3-tagline, #homeLink span { display: none; }
  .r3-badge-secure, .topbar-secure {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0;
    line-height: 0;
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }
  .r3-badge-secure svg, .topbar-secure svg {
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }
  .r3-breadcrumb { margin-top: 16px; padding: 0 16px; flex-wrap: wrap; }
  .r3-wrap, .wrap { padding: 0 16px; margin-top: 20px; margin-bottom: 42px; }
  .r3-card { padding: 26px 20px; }
  .search-mode-options { gap: 9px; }
  .mode-option { flex: 1; justify-content: center; white-space: nowrap; font-size: 11px; }
  .info-destinatario-card { padding: 20px; }
  .alert-taxa-header { font-size: 13px; }
  .status-blinking { margin-bottom: 12px; }
  .cta-box-taxa .r3-btn {
    min-height: 52px;
    padding: 10px 14px;
    gap: 8px;
    font-size: 14.5px;
    line-height: 1.16;
    letter-spacing: -.015em;
  }
  .cta-box-taxa .button-label { max-width: 260px; }
  .cta-box-taxa .button-icon { width: 17px; height: 17px; }
  .r3-footer, body > footer { padding: 24px 16px !important; }
  .r3-footer-secure { justify-content: center; flex-wrap: wrap; }
  .stepper { gap: 7px; padding: 10px; }
  .step-label { font-size: 11px; }
  .step-line { min-width: 8px; }
  .bump { align-items: flex-start; flex-direction: column; }
  .bump-btn { align-self: flex-end; }
}
/* ── Banner Carousel Jadlog ── */
.jadlog-banner {
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}
.banner-track {
  display: flex;
  transition: transform .5s ease;
}
.banner-slide {
  min-width: 100%;
}
.banner-slide a { display: block; }
.banner-slide img {
  display: block;
  width: 100%;
  height: auto;
}
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 20px;
  display: flex;
  gap: 7px;
}
.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.banner-dot.active { background: #fff; border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .r3-btn, .cta, .copy-btn, .mode-option, .bump.on .bump-btn { transition: none; animation: none; }
  .r3-btn:hover:not(:disabled), .cta:hover:not(:disabled), .copy-btn:hover { transform: none; }
}
