:root {
  --bg: #f7fafc;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN",
    Meiryo, "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: #0f172a;
  margin: 0;
  padding: 32px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  padding: 28px;
}

h1 {
  font-size: 20px;
  margin: 0 0 8px;
}

p.lead {
  color: var(--muted);
  margin: 0 0 20px;
}

form {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .two {
    grid-template-columns: 1fr 1fr;
  }
  .three {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

label {
  display: block;
  font-size: 13px;
  color: #111827;
}

.field {
  background: #fbfdff;
  border: 1px solid #e6eef9;
  padding: 10px;
  border-radius: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea,
input[type="file"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6eef9;
  background: white;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.inline {
  display: flex;
  gap: 12px;
  align-items: center;
}

.radio-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  display: block;
  text-align: center;
  margin-top: 16px;
}

button {
  background: var(--accent);
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
  width: 80%;
  max-width: 520px;
  margin: 24px auto 0 auto;
  display: block;
}

button:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.required {
  color: #dc2626;
  margin-left: 6px;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e6eef9;
}

.inline-selects {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-selects select {
  width: auto;
  min-width: 96px;
}

.label-inline {
  font-size: 14px;
  margin-right: 6px;
}

.billing {
  border-left: 3px solid #eef2ff;
  background: #fbfbff;
  padding: 12px;
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

.amount {
  font-weight: 600;
}
