body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
}

/* Header */
.main-header {
  padding: 20px;
}

.logo {
  width: 150px;
  height: auto;
}

/* Banner */
.banner {
  background-color: #003399; /* Deep blue typical of gov */
  color: white;
  padding: 20px;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background-color: white;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0; /* Attempt at a slight wave, though image shows straight or just margin */
  display: none; /* Removed complex shape to match image simpler style */
}

.banner h1 {
  margin: 0;
  font-size: 24px;
  font-weight: normal;
}

.banner p {
  margin: 5px 0 0;
  font-size: 16px;
}

/* Details */
.details-link {
  padding: 15px 20px;
}

.details-link a {
  color: #003399;
  text-decoration: none;
  font-size: 18px;
  border-bottom: 1px dotted #003399; /* Dashed underline style */
}
.details-link a:hover {
  text-decoration: underline;
}

.separator {
  border: 0;
  border-top: 1px solid #eee;
  margin: 0;
}

/* Content */
.content {
  padding: 20px;
}

.greeting strong {
  color: #003366;
  font-size: 16px;
}

.text-body {
  text-align: justify;
  margin-bottom: 30px;
}

/* Squiggly lines simulation (red underline for 'spellcheck' look or emphasis in image) */
.squiggly {
  text-decoration: none;
}

/* Cards */
.cards-container {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 30px;
  background-color: #f0f7ff; /* Very light blue background container */
  padding: 20px;
  border-radius: 8px;
}

.card {
  background: white;
  padding: 20px 10px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card-label {
  display: block;
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.card-value {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.card-value.error {
  color: #d32f2f; /* Red */
  text-transform: uppercase;
}
.card-value.date {
  color: #555;
}

/* Warning Box */
.warning-box {
  border: 2px solid #ff9800;
  background-color: #fff8e1; /* Light yellow/orange */
  padding: 15px;
  margin-bottom: 30px;
}

.warning-header {
  color: #e65100;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.warning-header strong {
  text-decoration: none;
}

.highlight-red {
  color: #d32f2f;
  font-weight: bold;
}

/* Button */
.action-area {
  text-align: left; /* Changed to left to match image flow or center? Image shows button left/center */
  margin-bottom: 40px;
}

.btn-primary {
  background-color: #004488;
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #003366;
}

.btn-secondary {
  background-color: #f8f9fa;
  color: #003399;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border-radius: 4px;
  display: inline-block;
  border: 2px solid #003399;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #003399;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.click-instruction {
  margin-top: 15px;
  font-size: 16px;
  color: #003399;
  text-align: center; /* Image 2 shows this text centered possibly */
}

/* Footer */
.main-footer {
  text-align: center;
  padding: 20px;
  background-color: #f9f9f9;
  font-size: 14px;
  color: #666;
}

.footer-logo {
  width: 100px;
  margin-bottom: 15px;
  opacity: 0.9;
}

.footer-text p {
  margin: 5px 0;
}

.footer-text a {
  color: #003399;
  text-decoration: none;
}

.footer-separator {
  border: 0;
  border-top: 1px dashed #ccc;
  margin: 20px 0;
}

.footer-disclaimer {
  font-style: italic;
  color: #888;
}

.small-text {
  font-size: 12px;
  color: #999;
}

/* Responsive */
@media (max-width: 600px) {
  .cards-container {
    flex-direction: column;
  }

  .card {
    margin-bottom: 10px;
  }
}

/* Checkout Form Styles */
.checkout-form {
  margin-top: 20px;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.form-control:focus {
  border-color: #003399;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 51, 153, 0.3);
}

.valor-total {
  font-size: 24px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-left: 4px solid #003399;
}

/* PIX Result Styles - Modern UI */
.pix-result-container {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  font-family: "Inter", sans-serif; /* Assuming Inter or similar sans-serif */
}

.pix-qr-wrapper {
  position: relative;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.pix-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(
    circle,
    rgba(203, 213, 225, 0.5) 0%,
    transparent 70%
  );
  border-radius: 40px;
  filter: blur(20px);
  z-index: 0;
}

.pix-qr-box {
  position: relative;
  z-index: 1;
  background: white;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s;
}

.pix-qr-box:hover {
  transform: scale(1.02);
}

.qr-code-img {
  width: 200px;
  height: 200px;
  display: block;
}

/* Copy Paste Section */
.copy-paste-section {
  margin-top: 20px;
  text-align: left;
}

.copy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding: 0 4px;
}

.copy-label {
  font-size: 12px;
  font-weight: bold;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.expiry-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: bold;
  color: #d97706; /* amber-600 */
  background-color: #fffbeb; /* amber-50 */
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #fef3c7; /* amber-100 */
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.pix-input {
  width: 100%;
  height: 56px;
  padding-left: 16px;
  padding-right: 96px; /* Space for button */
  background-color: #f8fafc; /* slate-50 */
  border: 2px solid #f1f5f9; /* slate-100 */
  border-radius: 16px;
  font-family: monospace;
  font-size: 12px;
  color: #64748b; /* slate-500 */
  outline: none;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pix-input:focus {
  border-color: #cbd5e1;
}

.btn-copy-modern {
  position: absolute;
  right: 8px;
  height: 40px;
  padding: 0 16px;
  background-color: #000;
  color: white;
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-copy-modern:hover {
  background-color: #0f172a;
}

.btn-text {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Trust Info */
.trust-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  opacity: 0.6;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 15px;
  filter: grayscale(100%);
  opacity: 0.7;
}

.pix-logo-small {
  height: 16px;
  object-fit: contain;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transform: translateX(400px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 9999;
  pointer-events: none;
  min-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast-container.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.toast-icon {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toast-message {
  flex: 1;
  font-family: Arial, sans-serif;
  letter-spacing: 0.3px;
}

/* Animation for the icon */
.toast-container.show .toast-icon {
  animation: checkBounce 0.6s ease-out 0.2s;
}

@keyframes checkBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive toast for mobile */
@media (max-width: 600px) {
  .toast-container {
    top: auto;
    bottom: 20px;
    right: 20px;
    left: 20px;
    min-width: auto;
    transform: translateY(200px);
  }

  .toast-container.show {
    transform: translateY(0);
  }
}
