.donate-center {
  display: flex;
  justify-content: center;
}

.donate-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.qr-rate-note {
  text-align: center;
  color: var(--amber);
  font-weight: 600;
  font-size: 13px;
  margin: 0;
}

.qr-detail-note {
  text-align: center;
  margin: 0;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
}
.qr-box img {
  width: 220px;
  height: 220px;
  background: #fff;
  border-radius: 6px;
}

.promptpay-label {
  color: var(--olive-bright);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.promptpay-number {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: -4px;
}

.receiver-name-th {
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
  margin-top: 4px;
}
.receiver-name-en {
  color: var(--text-dim);
  font-size: 13px;
}

.verify-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* Reported as looking disabled, and it did: a dashed grey border, dim grey text
   and a background darker than the panel around it are the three things every
   disabled control on this site has. The dashes stay — they say "a file goes
   here" — but everything else now says the control is live.

   Colour and weight carry that on their own, so it still reads as secondary to
   the submit button below it. */
.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 16px;
  border: 1.5px dashed var(--olive);
  border-radius: var(--radius);
  background: rgba(107, 122, 63, 0.1);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.1s;
}

.upload-label:hover {
  border-color: var(--olive-bright);
  background: rgba(157, 178, 79, 0.18);
  color: #fff;
}

/* Presses. Without it a click on a <label> gives no acknowledgement at all —
   the file dialog takes a moment to open and nothing on screen has moved. */
.upload-label:active {
  transform: translateY(1px);
  background: rgba(157, 178, 79, 0.26);
}

/* The real <input type="file"> is visually hidden, so keyboard focus lands on
   something invisible. `:has()` puts the ring back on the label the user can
   actually see. */
.verify-form:has(.upload-input:focus-visible) .upload-label {
  outline: 2px solid var(--olive-bright);
  outline-offset: 2px;
}

.upload-icon {
  font-size: 17px;
  /* The paperclip is a text glyph and renders grey-brown; without this it stays
     the one dull thing on a control that is otherwise clearly live. */
  filter: saturate(0) brightness(1.6);
}

.slip-preview {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.form-result {
  font-size: 13px;
  margin: 0;
  min-height: 1.2em;
  text-align: center;
}
.form-result.success { color: var(--green); }
.form-result.error { color: var(--red); }

/* A file has been chosen. Solid border rather than dashed: the dashes are an
   invitation to drop something, and once something is there the control should
   stop asking. */
.upload-label.has-file {
  border-style: solid;
  border-color: var(--olive-bright);
  background: rgba(157, 178, 79, 0.14);
}
