:root {
  --primary-color: #0057B8;
  --on-primary-color: #FFFFFF;
  --background-color: #FFFFFF;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  background: var(--background-color);
  text-align: center;
}
.card {
  padding: 2.5rem 2.5rem;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  max-width: 420px;
  width: 100%;
  box-sizing: border-box;
}
.logo {
  max-height: 60px;
  margin-bottom: 1.5rem;
}
h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
p {
  color: #555;
  margin: 0 0 1.5rem;
}
.amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.amount-button {
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  border: 2px solid var(--primary-color);
  background: #fff;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
}
.amount-button.selected {
  background: var(--primary-color);
  color: var(--on-primary-color);
}
input[type="text"],
input[type="tel"],
.phone-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.summary {
  background: #f6f7f9;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: start;
}
.summary p {
  margin: 0 0 0.35rem;
  color: #222;
}
.summary p:last-child {
  margin-bottom: 0;
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: start;
  margin-bottom: 1.5rem;
}
.consent-row input[type="checkbox"] {
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
}
.consent-row label {
  color: #333;
  font-size: 0.95rem;
}
.consent-row a {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: underline;
}
.button-secondary {
  background: transparent;
  color: var(--primary-color);
  margin-top: 0.75rem;
}
.recaptcha {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.submit {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.9rem;
  background: var(--primary-color);
  color: var(--on-primary-color);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}
.submit:disabled {
  opacity: 0.5;
  cursor: default;
}
.submit + .submit {
  margin-top: 0.75rem;
}
.error {
  color: #c62828;
  margin-bottom: 1rem;
}
.spinner {
  width: 1.1em;
  height: 1.1em;
  border: 0.15em solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -0.2em;
  margin-inline-end: 0.5em;
  animation: spin 0.7s linear infinite;
}
.spinner.dark {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: var(--primary-color);
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.status-icon {
  display: block;
  margin: 0 auto 12px;
}
.warning {
  color: #8a5a00;
  background: #fff4d6;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
.balance-line {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.refresh-button {
  width: 1.8rem;
  height: 1.8rem;
  padding: 0;
  border: 1px solid #ccd0d6;
  border-radius: 50%;
  background: transparent;
  color: var(--primary-color);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.refresh-button:disabled {
  opacity: 0.6;
  cursor: default;
}
.refresh-button .spinner { margin: 0; vertical-align: middle; }
.or-separator {
  text-align: center;
  color: #888;
  margin: -0.5rem 0 0.75rem;
}
.phone-row {
  display: flex;
  gap: 0.5rem;
}
.phone-row select {
  width: 9rem;
  flex-shrink: 0;
  background: #fff;
}
.phone-row input[type="tel"] {
  flex: 1;
  min-width: 0;
}
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.card-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  border: 2px solid var(--primary-color);
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
}
.card-option:disabled {
  opacity: 0.6;
  cursor: default;
}
.card-option-balance {
  font-weight: 700;
}
