* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem;
  background: #f4f6f2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1f2a1f;
  display: flex;
  justify-content: center;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
}

h1 {
  font-size: 1.3rem;
  margin-top: 0;
  color: #2f5d34;
}

.question {
  background: #eef5ea;
  border-left: 4px solid #4a8b3f;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
}

label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.consent {
  margin-top: 1rem;
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.consent label {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  font-weight: 400;
  align-items: flex-start;
}

.consent input {
  margin-top: 0.2rem;
}

.video-area {
  position: relative;
  margin-top: 1rem;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timer {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
}

.status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #a33;
}

.status.info {
  color: #555;
}

.controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

button {
  flex: 1 1 auto;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 6px;
  background: #4a8b3f;
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  background: #b6c9b2;
  cursor: not-allowed;
}

button#btn-stop {
  background: #a33;
}

button#btn-rerecord {
  background: #7a7a7a;
}

.done {
  text-align: center;
}

.done h2 {
  color: #2f5d34;
}
