:root { --device-w: 854px; --device-h: 480px; }

html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3f4f6;
}

.device {
  width: min(var(--device-w), 95vw);
  height: var(--device-h);
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
}

.header {
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #efefef;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 1px solid #d7d7d7;
}

.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

.card {
  width: 92%;
  max-width: 640px;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: 20px;
  margin: 0 0 12px;
}

p.hint {
  color: #555;
  font-size: 13px;
  margin: 0 0 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

label {
  font-size: 13px;
  text-align: left;
}

input[type="tel"],
input[type="text"] {
  font-size: 18px;
  padding: 8px;
  border: 1px solid #bbb;
  border-radius: 8px;
  text-align: center;
}

.actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid #888;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.footer {
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
  font-size: 12px;
  border-top: 1px solid #d7d7d7;
  background: #fbfbfb;
}

.error { color: #b00020; }

/* Replaces prior inline style on the Terms text */
.hint.legal {
  text-align: left;
  max-height: 180px;
  overflow: auto;
  margin: 0 auto;
  width: 90%;
}

/* Monospace block for raw XML when needed */
.mono {
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
