:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: #0f172a;
  background: #f7f8fa;
  font-synthesis: none;
  --accent: #0faaaa;
  --bright: #20d2d2;
  --muted: #64748b;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}
.card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid #e7eaee;
  border-radius: 24px;
  box-shadow: 0 12px 40px #0f172a06, 0 2px 6px #0f172a03;
}
.payment-card { padding: 36px; }
.card-brand { margin-bottom: 40px; }
.brand { display: inline-block; max-width: 100%; vertical-align: top; }
.brand-logo { display: block; width: 100px; max-width: 100%; height: auto; }
.fields { display: grid; gap: 24px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
label { font-size: 14px; line-height: 1.5; font-weight: 600; }
input, textarea {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe4e9;
  background: #fff;
  border-radius: 10px;
  padding: 15px 16px;
  color: #0f172a;
  outline: none;
}
input { min-height: 56px; }
input::placeholder, textarea::placeholder { color: #8993a3; opacity: 1; }
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #20d2d21f; }
.money-input { position: relative; }
.money-input > span {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 500;
}
.money-input input {
  min-height: 78px;
  padding-left: 65px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-footer { margin-top: 20px; }
button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--bright);
  color: #0f172a;
  min-height: 56px;
  padding: 14px 20px;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: #1bc3c3; }
button:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button:disabled { opacity: .65; cursor: not-allowed; }
input:disabled, textarea:disabled { background: #f8fafc; color: var(--muted); }
.form-message {
  border-radius: 10px;
  background: #e9fafa;
  color: #24565a;
  padding: 14px;
  line-height: 1.6;
  font-size: 14px;
  margin: 20px 0 0;
  overflow-wrap: anywhere;
}
.form-message.error { background: #fff0ef; color: #8c2923; border: 1px solid #f2ceca; }
.result-card { margin-top: 24px; }
.card-heading { padding: 28px 32px 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #147779; margin: 0 0 8px; }
h2 { font-size: 23px; letter-spacing: -.5px; margin: 0; }
.result-content { padding: 16px 32px 28px; }
.result-note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.result-details { margin: 24px 0 0; }
.result-details > div { padding: 12px 0; border-top: 1px solid #edf2f2; }
.result-details dt { color: var(--muted); font-size: 12px; }
.result-details dd { margin: 6px 0 0; font-size: 14px; overflow-wrap: anywhere; }
#pix-code { overflow-wrap: anywhere; word-break: break-all; min-height: 110px; }
#pix-qr { display: block; max-width: 100%; width: 260px; height: auto; margin: 16px auto; }
#copy-message { margin: 0; font-size: 13px; line-height: 1.5; color: #24565a; }
.result-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 480px) {
  .brand-logo { width: 80px; }
  main { padding: 24px 16px; }
  .payment-card { padding: 28px 24px; border-radius: 20px; }
  .card-brand { margin-bottom: 32px; }
  .card-heading { padding: 24px 24px 0; }
  .result-content { padding: 16px 24px 24px; }
}

.security-check { margin-top: 20px; min-width: 0; }
#turnstile-widget { min-width: 0; }
#turnstile-message { font-size: 0.875rem; overflow-wrap: anywhere; }

.payment-received { border-color: var(--accent); background: #f0fbfa; }
.payment-received .card-heading { border-bottom: 1px solid #cfebe8; padding-bottom: 12px; }
.payment-received h2 { color: #10635c; }
.payment-received #payment-message { color: #24565a; }
.payment-received #status-label::before { content: "✓ "; font-size: 16px; }
.payment-warning { border-color: #dfc796; }
.payment-warning h2 { color: #78531c; }
