* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #EBF4FF;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 420px;
  margin: 0 auto;
}

/* Back Button */
.back-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 16px;
  color: #1F2937;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.back-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Main Card */
.card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.section {
  margin-bottom: 20px;
}

.step-title {
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Logo Section */
.logo-section {
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.merchant-logo {
  max-width: 80px;
  height: auto;
}

/* Bank Transfer Icon */
.bank-transfer-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bank-transfer-label {
  color: #3B82F6;
  font-size: 14px;
  font-weight: 600;
}

/* Company Name */
.company-name {
  color: #9CA3AF;
  font-size: 12px;
  margin-top: 8px;
}

/* Amount Display Section */
.amount-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* QR Code Section */
.qr-section {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.qr-code {
  width: 140px;
  height: 140px;
  background: #FFFFFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.amount-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amount-label {
  color: #3B82F6;
  font-size: 14px;
  font-weight: 500;
}

.amount-value {
  color: #3B82F6;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #FFFFFF;
  border: 2px solid #3B82F6;
  border-radius: 25px;
  color: #3B82F6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.download-btn:hover {
  background: #3B82F6;
  color: #FFFFFF;
}

.download-btn:hover svg {
  stroke: #FFFFFF;
}

/* Divider */
.divider {
  height: 1px;
  background: #E5E7EB;
  margin: 20px 0;
}

/* UPI Address Section */
.upi-label {
  color: #9CA3AF;
  font-size: 13px;
  margin-bottom: 8px;
}

.upi-address-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upi-address {
  color: #1F2937;
  font-size: 20px;
  font-weight: 600;
}

.copy-btn {
  background: none;
  border: 2px solid #3B82F6;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: #3B82F6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.copy-btn:hover {
  background: #3B82F6;
  color: #FFFFFF;
}

.copy-btn:hover svg {
  stroke: #FFFFFF;
}

.copy-btn.copied {
  background: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
}

.copy-btn.copied svg {
  stroke: #FFFFFF;
}

/* UTR Input */
.utr-input {
  width: 100%;
  padding: 16px 20px;
  background: #F3F4F6;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  color: #1F2937;
  outline: none;
  transition: all 0.2s;
}

.utr-input::placeholder {
  color: #9CA3AF;
}

.utr-input:focus {
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Instructions Section */
.instructions-section {
  margin-top: 8px;
}

.instructions-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  color: #1F2937;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
}

.instructions-toggle:hover {
  color: #3B82F6;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.instructions-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.instructions-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.instructions-content.expanded {
  max-height: 500px;
}

.instructions-list {
  color: #374151;
  font-size: 14px;
  line-height: 1.6;
  padding-left: 20px;
  margin-bottom: 16px;
}

.instructions-list li {
  margin-bottom: 10px;
}

.instructions-list li strong {
  color: #1F2937;
}

.important-box {
  background: #F9FAFB;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.important-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1F2937;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.important-header svg {
  stroke: #3B82F6;
}

.important-list {
  color: #4B5563;
  font-size: 13px;
  line-height: 1.6;
  padding-left: 20px;
  margin: 0;
}

.important-list li {
  margin-bottom: 8px;
}

.important-list li:last-child {
  margin-bottom: 0;
}

/* Form Inputs */
.input-label {
  display: block;
  color: #6B7280;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background: #F3F4F6;
  border: 2px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  color: #1F2937;
  outline: none;
  transition: all 0.2s;
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input:focus {
  background: #FFFFFF;
  border-color: #3B82F6;
}

.form-input.error {
  border-color: #EF4444;
  background: #FEF2F2;
}

/* Amount Input with Currency */
.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 16px;
  color: #1F2937;
  font-size: 16px;
  font-weight: 600;
}

.amount-input {
  padding-left: 32px;
  font-weight: 600;
}

/* Preset Amount Buttons */
.preset-buttons {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.preset-btn {
  flex: 1;
  padding: 10px 8px;
  background: #FFFFFF;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  border-color: #3B82F6;
  color: #3B82F6;
}

.preset-btn.active {
  background: #3B82F6;
  border-color: #3B82F6;
  color: #FFFFFF;
}

/* Confirm Button */
.confirm-btn {
  width: 100%;
  padding: 16px 24px;
  background: #3B82F6;
  border: none;
  border-radius: 30px;
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  transition: all 0.2s;
  margin-top: 20px;
}

.confirm-btn:hover {
  background: #2563EB;
}

.confirm-btn:disabled {
  background: #9CA3AF;
  cursor: not-allowed;
}

.timer {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
.footer {
  margin-top: 24px;
  text-align: center;
}

.security-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #6B7280;
  font-size: 13px;
  margin-bottom: 16px;
}

.badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.badge {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.norton-badge {
  height: 50px;
}

.pci-badge {
  height: 35px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1F2937;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

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

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .card {
    padding: 20px;
  }

  .qr-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .amount-section {
    align-items: center;
  }

  .qr-code {
    width: 160px;
    height: 160px;
  }

  .upi-address {
    font-size: 16px;
  }
}
