:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f8fb;
  color: #111827;
  --sme-blue: #1b7ad1;
  --sme-sky: #52ccee;
  --sme-red: #ec4c4b;
  --sme-coral: #fe9f9f;
  --sme-teal: #349d9e;
  --sme-mint: #6dd895;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.hidden {
  display: none !important;
}

.min-h-screen {
  min-height: 100vh;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mt-5 {
  margin-top: 20px;
}

.mt-6 {
  margin-top: 24px;
}

.px-5 {
  padding-left: 20px;
  padding-right: 20px;
}

.py-6 {
  padding-bottom: 24px;
  padding-top: 24px;
}

.p-4 {
  padding: 16px;
}

.p-5 {
  padding: 20px;
}

.max-w-xl {
  max-width: 576px;
}

.rounded-xl {
  border-radius: 16px;
}

.rounded-2xl {
  border-radius: 24px;
}

.bg-white {
  background: #fff;
}

.bg-emerald-50 {
  background: #eefbf7;
}

.bg-rose-50 {
  background: #fff1f2;
}

.bg-slate-50 {
  background: #f8fafc;
}

.bg-slate-100 {
  background: #f1f5f9;
}

.text-emerald-900 {
  color: #176b68;
}

.text-rose-900 {
  color: #881337;
}

.text-slate-700 {
  color: #334155;
}

.text-muted {
  color: #737382;
}

.text-xs {
  font-size: 12px;
}

.text-sm {
  font-size: 14px;
}

.text-lg {
  font-size: 18px;
}

.leading-7 {
  line-height: 1.55;
}

.shadow-card {
  box-shadow: 0 18px 40px rgba(27, 122, 209, 0.12);
}

.h-14 {
  height: 56px;
}

.h-16 {
  height: 64px;
}

.max-w-full {
  max-width: 100%;
}

.object-contain {
  object-fit: contain;
}

.object-left {
  object-position: left center;
}

.grid {
  display: grid;
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-3 {
  gap: 12px;
}

.space-y-6 > * + * {
  margin-top: 24px;
}

.flex {
  display: flex;
}

.section-title {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #737382;
  font-size: 13px;
  font-weight: 700;
}

.field-help {
  color: #64748b;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  text-align: right;
}

.field-help.error {
  color: #be123c;
}

.field-help.ok {
  color: #047857;
}

input,
select,
textarea {
  appearance: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  color: #17171f;
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  min-height: 0;
  min-width: 0;
  padding: 0;
  width: auto;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sme-blue);
  box-shadow: 0 0 0 3px rgba(82, 204, 238, 0.24);
  outline: 0;
}

input[readonly] {
  background: #f8fafc;
}

textarea {
  resize: vertical;
}

.description-field {
  margin-bottom: 10px;
}

.btn {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  min-height: 54px;
  padding: 15px 18px;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sme-blue), var(--sme-sky));
  color: #fff;
}

.btn-secondary {
  background: rgba(82, 204, 238, 0.16);
  color: #145f9e;
}

.btn:disabled {
  opacity: 0.55;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
  word-break: break-word;
}

.product-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 120px;
}

.finance-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.forecast-summary {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  color: #334155;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.forecast-metric {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-width: 0;
}

.forecast-metric span:first-child {
  color: #737382;
  font-size: 14px;
  font-weight: 700;
}

.forecast-metric span:last-child {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  text-align: right;
}

.forecast-metric.net {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 10px;
}

.declaration {
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  color: #334155;
  cursor: pointer;
  display: flex;
  gap: 14px;
  padding: 16px;
}

.checkbox-shell {
  flex-shrink: 0;
  height: 28px;
  position: relative;
  width: 28px;
}

.checkbox-shell input {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  flex: 0 0 28px;
  height: 28px;
  margin: 0;
  min-height: 28px;
  min-width: 28px;
  padding: 0;
  width: 28px;
}

.checkbox-shell input:checked {
  background: linear-gradient(135deg, var(--sme-blue), var(--sme-sky));
  border-color: var(--sme-blue);
}

.checkbox-shell input:focus-visible {
  box-shadow: 0 0 0 4px rgba(82, 204, 238, 0.24);
  outline: 0;
}

.checkbox-mark {
  border: solid #fff;
  border-width: 0 3px 3px 0;
  height: 13px;
  left: 10px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 5px;
  transform: rotate(45deg);
  width: 7px;
}

.checkbox-shell input:checked + .checkbox-mark {
  opacity: 1;
}

.declaration-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.45;
  min-width: 0;
}

.form-actions {
  display: grid;
  gap: 12px;
}

.success-screen {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 32px 12px 12px;
  text-align: center;
}

.success-icon {
  align-items: center;
  background: linear-gradient(135deg, var(--sme-teal), var(--sme-mint));
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 34px;
  font-weight: 900;
  height: 72px;
  justify-content: center;
  width: 72px;
}

.success-screen h2 {
  color: #111827;
  font-size: 26px;
  font-weight: 800;
  margin: 0;
}

.success-screen p {
  color: #737382;
  font-size: 17px;
  line-height: 1.5;
  margin: 0;
}

.success-reference {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  display: grid;
  gap: 8px;
  padding: 16px;
  width: 100%;
}

.success-reference span {
  color: #737382;
  font-size: 13px;
  font-weight: 700;
}

.success-reference strong {
  color: #111827;
  font-size: 16px;
  word-break: break-word;
}

@media (max-width: 420px) {
  .product-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .finance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mock Wallet Styles */
.mock-wallet-container {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 1000;
}

.btn-wallet-connect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid rgba(27, 122, 209, 0.3);
  border-radius: 12px;
  padding: 8px 14px;
  color: #1b7ad1;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(27, 122, 209, 0.06);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  height: 38px;
}

.btn-wallet-connect:hover {
  background: #1b7ad1;
  color: #ffffff;
  border-color: #1b7ad1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27, 122, 209, 0.15);
}

.btn-wallet-connect:active {
  transform: translateY(0);
}

.btn-wallet-connect.connected {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  cursor: default;
  transform: none;
}

.wallet-icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .mock-wallet-container {
    position: relative;
    top: 0;
    right: 0;
    margin: 0 auto 16px auto;
    max-width: 576px;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
  }
  .btn-wallet-connect {
    width: auto;
  }
}
