/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #f1f5f9;
  color: #1e293b;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Global media and icon safeguards - Prevents giant icons / broken layouts */
img, picture {
  max-width: 100%;
  display: block;
  pointer-events: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  touch-action: manipulation;
}

/* ==========================================================================
   GOV.BR TOP BAR & HEADER (Universal)
   ========================================================================== */
.gov-top-bar, .gov-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 50;
  position: relative;
}

.gov-top-bar-logo img, .gov-header-logo img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.gov-top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gov-top-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #334155;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gov-top-btn:hover {
  background: #f1f5f9;
}

.gov-top-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gov-header-user {
  background: #0c59cf;
  color: #ffffff;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.gov-header-user svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

/* ==========================================================================
   BREADCRUMB & PROGRESS BAR
   ========================================================================== */
.breadcrumb {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 4px 16px;
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  box-sizing: border-box;
  text-align: left;
}

.breadcrumb span, .breadcrumb strong {
  color: #0c59cf;
  font-weight: 700;
}

.progress-bar-wrap {
  width: 100%;
  max-width: 480px;
  margin: 6px auto 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.progress-bar-fill {
  height: 4px;
  background: #0c59cf;
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ==========================================================================
   PAGE LAYOUT WRAPPERS & MAIN CARDS
   ========================================================================== */
.page-content, .container {
  flex: 1 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px 36px 16px;
  box-sizing: border-box;
}

.main-wrapper {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.card-container, .card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
  margin: 0 auto 20px auto;
}

/* ==========================================================================
   LOGO & BRANDING
   ========================================================================== */
.brand-logo-container {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recupera-logo {
  width: 100%;
  height: auto;
  max-height: 80px;
  object-fit: contain;
  display: block;
}

.header {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
}

/* ==========================================================================
   GREEN ALERT BANNER ("ATUALIZADO")
   ========================================================================== */
.update-banner {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
}

.update-banner-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.update-banner-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.update-banner-text {
  font-size: 12.5px;
  line-height: 1.45;
  color: #1f2937;
}

.update-banner-text strong {
  color: #16a34a;
  font-weight: 800;
}

/* ==========================================================================
   FORM INPUTS & BUTTONS
   ========================================================================== */
.consult-form {
  width: 100%;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
  width: 100%;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.form-input {
  width: 100%;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 13px 16px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.form-input::placeholder {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}

.form-input:focus {
  border-color: #0c59cf;
  box-shadow: 0 0 0 3px rgba(12, 89, 207, 0.15);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input-loading-spinner {
  position: absolute;
  right: 14px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(12, 89, 207, 0.2);
  border-top-color: #0c59cf;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}

.input-loading-spinner.active {
  display: block;
}

.input-error-msg {
  display: none;
  color: #dc2626;
  font-size: 12px;
  font-weight: 600;
  margin-top: 6px;
  text-align: left;
}

.input-error-msg.visible {
  display: block;
}

/* Auto Fetched Name Display Box */
.auto-name-box {
  margin-top: 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 10px 12px;
  animation: fadeInDown 0.3s ease;
  box-sizing: border-box;
}

.auto-name-box.hidden {
  display: none;
}

.name-box-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.name-box-badge svg {
  width: 14px;
  height: 14px;
  stroke: #16a34a;
  stroke-width: 2.5;
  fill: none;
}

.name-display-view {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.name-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 600;
}

.name-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

/* Submit & Action Buttons */
.submit-btn, .btn-next, .btn-primary {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px 18px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.submit-btn svg, .btn-next svg, .btn-primary svg {
  width: 18px;
  height: 18px;
}

.submit-btn.disabled, .submit-btn:disabled {
  background: #dbe2ea !important;
  color: #8898aa !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.submit-btn.active-btn, .submit-btn:not(:disabled), .btn-next, .btn-primary {
  background: #0c59cf;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(12, 89, 207, 0.25);
}

.submit-btn:not(:disabled):hover, .btn-next:hover, .btn-primary:hover {
  background: #0b4ec2;
  box-shadow: 0 6px 16px rgba(12, 89, 207, 0.35);
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(136, 152, 170, 0.4);
  border-top-color: #64748b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  flex-shrink: 0;
  margin-left: 8px;
}

/* ==========================================================================
   DECISIONS SECTION (CPF Page)
   ========================================================================== */
.decisions-section {
  margin-top: 20px;
  text-align: left;
}

.decisions-section p {
  font-size: 12px;
  color: #4b5563;
  line-height: 1.45;
  margin-bottom: 10px;
}

.decisions-section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.decisions-section li {
  font-size: 11.5px;
  color: #374151;
  line-height: 1.45;
  position: relative;
  padding-left: 14px;
}

.decisions-section li::before {
  content: "•";
  color: #0c59cf;
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.decisions-section li b, .decisions-section li strong {
  color: #0c59cf;
  font-weight: 700;
}

/* ==========================================================================
   SURVEY & QUESTIONNAIRE (Pesquisa / Psico)
   ========================================================================== */
.intro-box {
  margin-bottom: 16px;
  text-align: left;
}

.intro-title {
  color: #002d72;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.intro-desc {
  color: #4b5563;
  font-size: 12.5px;
  line-height: 1.5;
}

.q-header {
  margin-bottom: 14px;
  text-align: left;
}

.q-text {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.option-item {
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.option-item:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.option-item.selected {
  border-color: #0c59cf;
  background: #f0f7ff;
}

.radio-circle {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 2px solid #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.option-item.selected .radio-circle {
  border-color: #0c59cf;
}

.radio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0c59cf;
  display: none;
}

.option-item.selected .radio-dot {
  display: block;
}

.option-label {
  font-size: 13.5px;
  color: #1f2937;
  font-weight: 500;
  line-height: 1.3;
}

.option-item.selected .option-label {
  color: #0c59cf;
  font-weight: 700;
}

.alert-required {
  display: none;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
}

.alert-required.show {
  display: block;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-prev {
  background: #ffffff;
  color: #4b5563;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-prev:hover {
  background: #f8fafc;
}

.q-body.fade {
  opacity: 0;
  transition: opacity 0.18s ease;
}

.complete-state {
  display: none;
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

.complete-state.active {
  display: block;
}

.complete-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #f0fdf4;
  border: 2px solid #16a34a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #16a34a;
}

.complete-icon svg {
  width: 24px;
  height: 24px;
  stroke: #16a34a;
  stroke-width: 2.5;
  fill: none;
}

.complete-title {
  font-size: 16px;
  font-weight: 800;
  color: #002d72;
  margin-bottom: 6px;
}

.complete-sub {
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.4;
  margin-bottom: 16px;
}

.complete-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #0c59cf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* ==========================================================================
   LOADING SCREENS & STEPS (Psicotecnico / Loading screens)
   ========================================================================== */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #0c59cf;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 16px auto;
  display: block;
}

.loading-text {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  transition: opacity 0.3s ease;
  margin-top: 12px;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.step-item, .step-redirect {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
  text-align: left;
}

.step-item.show, .step-redirect.show {
  opacity: 1;
  transform: translateY(0);
}

.step-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-icon .spinner {
  width: 22px;
  height: 22px;
  border-width: 2.5px;
  margin: 0;
}

.check-icon {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 1.5px solid #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.check-icon svg {
  width: 16px;
  height: 16px;
  stroke: #16a34a;
  stroke-width: 2.5;
  fill: none;
}

.step-text {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

/* ==========================================================================
   RESULTADO PAGE (Certificado & Valor)
   ========================================================================== */
.greeting {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 18px;
}

.greeting span {
  color: #1155cc;
}

.value-box {
  background: #1155cc;
  color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(17, 85, 204, 0.25);
}

.value-box p {
  font-size: 13.5px;
  font-weight: 500;
  margin: 0;
  opacity: 0.95;
}

.value-box h2 {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0;
  letter-spacing: -0.5px;
}

.doc-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #ffffff;
  margin: 16px 0;
}

.doc-skeleton {
  width: 100%;
  height: 220px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

.doc-skeleton.hidden {
  display: none;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.doc-img {
  width: 100%;
  height: auto;
  display: block;
}

.doc-nome {
  position: absolute !important;
  top: 34.2% !important;
  left: 1.5% !important;
  width: 82% !important;
  text-align: center !important;
  font-size: clamp(7.5px, 2.3vw, 11px) !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.doc-cpf {
  position: absolute !important;
  top: 44.2% !important;
  left: 12% !important;
  width: 34% !important;
  text-align: center !important;
  font-size: clamp(7.5px, 2.3vw, 11px) !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.transf-nome {
  position: absolute;
  top: 42.6%;
  left: 21%;
  transform: translateY(-50%);
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}

.info-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 18px;
}

.notices-container {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.security-notice {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 14px 16px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
  text-align: left;
}

.user-data-box {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
}

.user-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  gap: 10px;
}

.user-data-label {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.user-data-val {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.value-summary {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: #475569;
}

.summary-row.total {
  border-top: 1.5px dashed #cbd5e1;
  padding-top: 10px;
  margin-top: 4px;
}

.refund-notice {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.45;
  text-align: center;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   PIX / RESULT MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  position: relative;
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #0f172a;
  box-sizing: border-box;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.modal-brand-header {
  text-align: center;
  margin-bottom: 12px;
}

.modal-brand-logo {
  max-width: 140px;
  height: auto;
  margin: 0 auto;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 12px;
}

/* ==========================================================================
   CHECKOUT OVERLAY & FULL-SCREEN MODAL (Página 3)
   ========================================================================== */
.checkout-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  z-index: 9999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
  box-sizing: border-box;
}

.checkout-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.chk-header-top {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chk-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chk-header-logo img {
  height: 24px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.chk-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.chk-close-btn:hover {
  background: #f1f5f9;
}

.chk-close-btn svg {
  width: 24px;
  height: 24px;
  fill: #94a3b8;
}

.chk-header-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  line-height: 1.2;
  text-align: right;
}

.chk-header-secure svg {
  width: 18px;
  height: 18px;
  fill: #16a34a;
  flex-shrink: 0;
}

.chk-alert-banner {
  width: 100%;
  max-width: 460px;
  margin: 14px auto 4px auto;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
}

.chk-main-wrapper {
  width: 100%;
  max-width: 460px;
  padding: 12px 16px 30px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chk-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

/* Product Info */
.chk-product-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.chk-product-img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.chk-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chk-product-details h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.chk-product-details span {
  font-size: 10.5px;
  font-weight: 800;
  color: #ef4444;
  background: #fef2f2;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}

.chk-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
  color: #334155;
}

.chk-total-value {
  font-size: 18px;
  font-weight: 800;
  color: #10b981;
}

/* Steps Navigator */
.chk-steps-nav {
  display: flex;
  justify-content: space-between;
  position: relative;
  gap: 10px;
}

.chk-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  opacity: 0.45;
  transition: all 0.2s ease;
  cursor: pointer;
}

.chk-step-item.active {
  opacity: 1;
}

.chk-step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.chk-step-item.active .chk-step-circle {
  background: #0c59cf;
}

.chk-step-text {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
}

/* Forms in Checkout */
.chk-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  text-align: left;
}

.chk-form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.chk-form-group input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.chk-form-group input:focus {
  border-color: #0c59cf;
  box-shadow: 0 0 0 3px rgba(12, 89, 207, 0.15);
}

.chk-security-bullets {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.chk-security-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 2px;
}

.chk-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.4;
}

.chk-bullet-item svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  fill: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.chk-btn {
  width: 100%;
  background: #0c59cf;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  box-sizing: border-box;
}

.chk-btn svg {
  width: 18px;
  height: 18px;
}

.chk-btn:hover {
  background: #0b4ec2;
}

.chk-btn.btn-copy {
  background: #10b981;
}

.chk-btn.btn-copy:hover {
  background: #059669;
}

.chk-btn.btn-outline {
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
}

.chk-btn.btn-outline:hover {
  background: #f8fafc;
}

.chk-btn.btn-loading {
  opacity: 0.8;
  pointer-events: none;
}

/* Step 2 Summary & Methods */
.chk-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.chk-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 6px;
}

.chk-summary-row:last-child {
  margin-bottom: 0;
}

.chk-summary-val-green {
  font-weight: 800;
  color: #10b981;
}

.chk-summary-label-green {
  font-weight: 700;
  color: #065f46;
}

.chk-pix-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
}

.chk-pix-box-texts h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.chk-pix-box-texts p {
  font-size: 11.5px;
  color: #10b981;
  font-weight: 600;
  margin: 0;
}

/* Step 3 QR Code & Timer */
.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.qr-code-img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  padding: 10px;
  margin: 0 auto 12px auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: block;
}

.timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.timer-badge svg {
  width: 16px;
  height: 16px;
  stroke: #ef4444;
}

.pix-copy-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pix-copy-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pix-copy-input {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 12px;
  color: #334155;
  text-overflow: ellipsis;
  outline: none;
  box-sizing: border-box;
}

.badges-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-align: center;
  line-height: 1.2;
}

.badge-item svg {
  width: 20px;
  height: 20px;
  fill: #10b981;
}

/* Universal Toast Notification */
#toastNotification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
  max-width: 90%;
  pointer-events: none;
}

#toastNotification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chk-footer {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin-top: 20px;
  line-height: 1.5;
}

/* ==========================================================================
   GOV.BR DARK BLUE FOOTER (Universal)
   ========================================================================== */
.gov-footer {
  width: 100%;
  background: #002d72;
  color: #ffffff;
  padding: 36px 20px 28px 20px;
  box-sizing: border-box;
  margin-top: auto;
}

.gov-footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.gov-footer-logo img {
  height: 28px;
  filter: brightness(0) invert(1);
  display: block;
}

.gov-footer-desc {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 10px;
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: left;
}

.gov-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  text-align: left;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.gov-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gov-footer .footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s ease;
}

.gov-footer .footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.social-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
  display: block;
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 480px) {
  .page-content, .container {
    padding: 16px 12px 30px 12px;
  }
  .card-container, .card {
    padding: 20px 14px;
    border-radius: 14px;
  }
  .gov-footer {
    padding: 28px 16px 20px 16px;
  }
}
