* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  background: #f7f7f6;
  color: #1a1a1a;
  padding: 16px;
  padding-bottom: 96px;
}

h1 {
  font-size: 1.3rem;
  margin: 8px 0 16px;
}

.sub {
  color: #555;
  margin: 0 0 16px;
}

.step[aria-hidden="true"] {
  display: none;
}

.button-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.button-grid button {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  border: 2px solid #ccc;
  border-radius: 10px;
  background: #fff;
  text-align: left;
  padding: 0 16px;
}

.button-grid button[aria-pressed="true"] {
  border-color: #1a6fd1;
  background: #e7f0fd;
  font-weight: bold;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: #333;
}

.field input {
  width: 100%;
  min-height: 48px;
  font-size: 1.2rem;
  padding: 8px 12px;
  border: 2px solid #ccc;
  border-radius: 10px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  min-height: 48px;
}

.checkbox-field input {
  width: 24px;
  height: 24px;
}

button.primary {
  display: block;
  width: 100%;
  min-height: 56px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: #1a6fd1;
  border: none;
  border-radius: 10px;
  margin-top: 8px;
}

button.back, button.retry {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
}

.error {
  color: #c0392b;
  font-weight: bold;
}
